LinkLayout
Resolved geometry of one link on a specific paper: the source and target endpoint coordinates plus the rendered SVG path. Returned by useLinkLayout so you can draw or measure alongside a link.
Properties
d
readonly d: string;
SVG path data (the d attribute) for the link's rendered route.
sourceX
readonly sourceX: number;
X coordinate of the link's source endpoint, in paper coordinates.
sourceY
readonly sourceY: number;
Y coordinate of the link's source endpoint, in paper coordinates.
targetX
readonly targetX: number;
X coordinate of the link's target endpoint, in paper coordinates.
targetY
readonly targetY: number;
Y coordinate of the link's target endpoint, in paper coordinates.