Skip to content
D
Documentation

ToolHandle

reference
1 min readUpdated

Import it from @grafloria/renderer.

One grabbable tool in the floating layer.

ts
interface ToolHandle

Properties

NameTypeDefaultDescription
idstringStable key (also the DOM key a host keys its
kindToolKind
worldPointCentre of the handle, in WORLD coordinates.
hitRadiusnumberHit radius in WORLD units (= screen px / zoom).
segment?{ a: Point; b: Point }resize-ux: for the four SIDE resize handles (n/e/s/w), the full edge they own, as a WORLD segment (rotated with the node). React Flow's side affordance is the whole border line, not a midpoint dot — the live audit found the 6px dots unreachable (fully inside the port's hover halo), so a side handle hit-tests as a BAND around this segment: grab the border anywhere and that edge follows.
cursorstringCSS cursor a host should show over this handle.
labelstringAccessible name (also used for tooltips / ARIA).
handleId?ResizeHandleIdFor resize.
action?HaloActionFor halo.
endpoint?'source' | 'target'For link-endpoint.
index?numberVertex index (vertex-remove) or segment index (vertex-add).
nodeId?stringOwning entity.
linkId?string

Was this page helpful?

ToolHandle — Grafloria