HaloMakeLinkParams
Arguments passed to a HaloMakeLink callback: the native
ui.Halo.MakeLinkContext fields plus the originating event and the React
context (model = the haloed source cell, paper, graph).
Extendsβ
HaloHandleEventContext
Propertiesβ
actionβ
readonly action: string;
Halo action that triggered link creation (e.g. 'link').
defaultActionβ
readonly defaultAction: string;
The handle's defaultAction, if any.
eventβ
readonly event: Event;
The originating (normalized) pointer event.
graphβ
readonly graph: Graph;
The graph the cell belongs to.
modelβ
readonly model: Cell;
The cell the halo is attached to.
paperβ
readonly paper: Paper;
The paper the halo is rendered on.
sourceβ
readonly source: EndJSON;
Resolved source end of the link.
sourceMagnetβ
readonly sourceMagnet: SVGElement;
Source magnet DOM element.
sourceViewβ
readonly sourceView: ElementView;
View of the source element.
targetβ
readonly target: EndJSON;
Resolved target end of the link.
targetMagnetβ
readonly targetMagnet: SVGElement | null;
Target magnet DOM element, or null.
targetViewβ
readonly targetView: CellView | null;
View of the target cell, or null when dropping on blank.