Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Force

Type parameters

Hierarchy

  • Force

Index

Methods

alpha

  • alpha(): number
  • alpha(value: number): Force<Link, Node>

charge

  • charge(): number | function
  • charge(charge: number): Force<Link, Node>
  • charge(charge: function): Force<Link, Node>

chargeDistance

  • chargeDistance(): number
  • chargeDistance(distance: number): Force<Link, Node>

drag

friction

  • friction(): number
  • friction(friction: number): Force<Link, Node>

gravity

  • gravity(): number
  • gravity(gravity: number): Force<Link, Node>

linkDistance

  • linkDistance(): number | function
  • linkDistance(distance: number): Force<Link, Node>
  • linkDistance(distance: function): Force<Link, Node>

linkStrength

  • linkStrength(): number | function
  • linkStrength(strength: number): Force<Link, Node>
  • linkStrength(strength: function): Force<Link, Node>

links

  • links(): Link[]
  • links(links: object[]): Force<Link, Node>
  • links(links: Link[]): Force<Link, Node>

nodes

  • nodes(): Node[]
  • nodes(nodes: Node[]): Force<Link, Node>

on

  • on(type: string): function
  • on(type: string, listener: function): Force<Link, Node>

resume

  • resume(): Force<Link, Node>

size

  • size(): [number, number]
  • size(size: [number, number]): Force<Link, Node>

start

  • start(): Force<Link, Node>

stop

  • stop(): Force<Link, Node>

theta

  • theta(): number
  • theta(theta: number): Force<Link, Node>

Generated using TypeDoc