layouts
@graph-viz › Globals › layouts
Index
References
- ForceConfig
- ForceSimulation
- NodePosition
- SimulationData
- SimulationGroup
- SimulationLink
- SimulationNode
Classes
Interfaces
Type aliases
Functions
Object literals
References
ForceConfig
• ForceConfig:
ForceSimulation
• ForceSimulation:
NodePosition
• NodePosition:
SimulationData
• SimulationData:
SimulationGroup
• SimulationGroup:
SimulationLink
• SimulationLink:
SimulationNode
• SimulationNode:
Type aliases
D3Simulation
Ƭ D3Simulation: Simulation‹SimulationNodeDatum, SimulationLink›
Defined in packages/layouts/src/ForceSimulation.ts:53
Functions
forceGroup
▸ forceGroup(groups
: SimulationGroup[], defaultStrength
: number): force
Defined in packages/layouts/src/ForceSimulation.ts:62
Parameters:
Name | Type |
---|---|
groups | SimulationGroup[] |
defaultStrength | number |
Returns: force
getCentroid
▸ getCentroid(points
: SimulationNode[]): object
Defined in packages/layouts/src/ForceSimulation.ts:95
Parameters:
Name | Type |
---|---|
points | SimulationNode[] |
Returns: object
x: number
y: number
getDefaultLinkForceStrengths
▸ getDefaultLinkForceStrengths(links
: SimulationLink[]): number[]
Defined in packages/layouts/src/ForceSimulation.ts:124
Based on the default implementation
see
https://github.com/d3/d3-force#link_strength
Parameters:
Name | Type |
---|---|
links | SimulationLink[] |
Returns: number[]
getGroupedNodes
▸ getGroupedNodes(nodes
: SimulationNode[]): object
Defined in packages/layouts/src/ForceSimulation.ts:102
Parameters:
Name | Type |
---|---|
nodes | SimulationNode[] |
Returns: object
- [ groupId: string]: SimulationNode[]
Object literals
Const
FORCE_DEFAULTS
▪ FORCE_DEFAULTS: object
Defined in packages/layouts/src/ForceSimulation.ts:149
groupStrength
• groupStrength: number = 0
Defined in packages/layouts/src/ForceSimulation.ts:152
linkStrengthMultiplier
• linkStrengthMultiplier: number = 1
Defined in packages/layouts/src/ForceSimulation.ts:151
nodeCharge
• nodeCharge: number = -30
Defined in packages/layouts/src/ForceSimulation.ts:150