Skip to content

pivotick v3.0.0


pivotick / PhysicsKnobs

Interface: PhysicsKnobs ​

Defined in: Simulation.ts:75

The abstract physics knobs surfaced by the Physics flyout. Each is a plain number in its own range; the Simulation setters map them onto the underlying d3-force domains. Also the complete vocabulary the Auto preset speaks — auto only ever moves a knob the user can see.

Properties ​

centering ​

centering: number

Defined in: Simulation.ts:88

Pull toward the canvas centre. Higher keeps separate components — which otherwise only ever repel — inside the frame.


collisionRadius ​

collisionRadius: number

Defined in: Simulation.ts:81

Node spacing (collision radius). Higher keeps nodes further apart.


friction ​

friction: number

Defined in: Simulation.ts:83

Motion damping. Higher settles the layout faster (calmer).


linkDistance ​

linkDistance: number

Defined in: Simulation.ts:79

Preferred edge length, in px.


repulsion ​

repulsion: number

Defined in: Simulation.ts:77

Push-apart force. Higher spreads the graph out.


settleTime ​

settleTime: number

Defined in: Simulation.ts:90

How long the layout is given to settle, in seconds.