Skip to content

NodeRotationConfig

Configuration for node rotation behavior.

computeSnapAngleForNode: (node) => null | number

Computes the snap angle for a node’s rotation.

Node

The node to compute the snap angle for.

null | number

The angle in degrees to snap to, or null if default snapping should be used.


defaultSnapAngle: number

The default snap angle in degrees. Used if computeSnapAngleForNode returns null.

15

shouldSnapForNode: (node) => boolean

Determines if rotation snapping should be enabled for a node.

Node

The node to check for rotation snapping.

boolean

True if rotation should snap, false otherwise.