Methods
alpha
- alpha(): number
- alpha(value: number): Force<Link, Node>
-
Returns number
-
Parameters
Returns Force<Link, Node>
charge
- charge(): number | function
- charge(charge: number): Force<Link, Node>
- charge(charge: function): Force<Link, Node>
-
Returns number
|
function
-
Parameters
Returns Force<Link, Node>
-
Parameters
-
charge: function
-
- (node: Node, index: number): number
-
Parameters
Returns number
Returns Force<Link, Node>
chargeDistance
- chargeDistance(): number
- chargeDistance(distance: number): Force<Link, Node>
-
Returns number
-
Parameters
Returns Force<Link, Node>
drag
-
Returns Drag<Node>
-
Parameters
Returns void
friction
- friction(): number
- friction(friction: number): Force<Link, Node>
-
Returns number
-
Parameters
Returns Force<Link, Node>
gravity
- gravity(): number
- gravity(gravity: number): Force<Link, Node>
-
Returns number
-
Parameters
Returns Force<Link, Node>
linkDistance
- linkDistance(): number | function
- linkDistance(distance: number): Force<Link, Node>
- linkDistance(distance: function): Force<Link, Node>
-
Returns number
|
function
-
Parameters
Returns Force<Link, Node>
-
Parameters
-
distance: function
-
- (link: Link, index: number): number
-
Parameters
Returns number
Returns Force<Link, Node>
linkStrength
- linkStrength(): number | function
- linkStrength(strength: number): Force<Link, Node>
- linkStrength(strength: function): Force<Link, Node>
-
Returns number
|
function
-
Parameters
Returns Force<Link, Node>
-
Parameters
-
strength: function
-
- (link: Link, index: number): number
-
Parameters
Returns number
Returns Force<Link, Node>
links
- links(): Link[]
- links(links: object[]): Force<Link, Node>
- links(links: Link[]): Force<Link, Node>
-
Returns Link[]
-
Parameters
-
links: object[]
-
source: number
-
target: number
Returns Force<Link, Node>
-
Parameters
Returns Force<Link, Node>
nodes
- nodes(): Node[]
- nodes(nodes: Node[]): Force<Link, Node>
-
Returns Node[]
-
Parameters
Returns Force<Link, Node>
on
- on(type: string): function
- on(type: string, listener: function): Force<Link, Node>
-
Parameters
Returns function
-
Parameters
-
type: string
-
listener: function
Returns Force<Link, Node>
resume
- resume(): Force<Link, Node>
-
Returns Force<Link, Node>
size
- size(): [number, number]
- size(size: [number, number]): Force<Link, Node>
-
Returns [number, number]
-
Parameters
Returns Force<Link, Node>
start
- start(): Force<Link, Node>
-
Returns Force<Link, Node>
stop
- stop(): Force<Link, Node>
-
Returns Force<Link, Node>
theta
- theta(): number
- theta(theta: number): Force<Link, Node>
-
Returns number
-
Parameters
Returns Force<Link, Node>