OptionalisOptionalonCalled during a connect gesture, after the target node is resolved but before the edge (or note-link) is created. Acts as the edge equivalent of onBeforeNodeEditCommit: a validation / enrichment / veto hook.
false / { accept: false } to veto: the preview is dropped,
nothing is added, and connect mode stays armed so the user can retry.true to accept with defaults.{ accept: true, data?, style?, id?, directed? } to accept and
supply the new edge's payload/style/id/direction.May be async (e.g. persist to a backend before deciding); the shadow-edge
preview persists until the promise settles, and no new connect gesture is
accepted while it is pending. Fires for both click- and drag-to-connect.
Also fires for note→node links (EdgeCreateContext.kind 'note-link'),
where the edge-specific fields of the decision are ignored.
whether the connection should be created, optionally with its data.
OptionalonCalled when an node edit session is about to be commited Act as a validation/interception hook.
boolean indicating if the commit should proceed or not
OptionalonCalled when the canvas is about to be zoomed.
OptionalonCalled when the canvas is clicked.
OptionalonCalled when the canvas is right clicked.
OptionalonCalled when the mouse move over the canvas.
OptionalonCalled when a user pointer down the canvas.
OptionalonCalled when a user pointer up the canvas.
OptionalonCalled when the canvas is zoomed.
OptionalonCalled when an edge is unselected by the user.
OptionalonCalled when an edge is selected by the user.
OptionalonCalled when an edge is right clicked.
OptionalonCalled when an edge is selected by the user.
OptionalonCalled when a user hovers over an edge.
OptionalonCalled when a user hovers over an edge.
OptionalonCalled when an edge is selected by the user.
OptionalonCalled when a node is unselected by the user.
OptionalonCalled when a node is clicked.
OptionalonCalled when a node is right clicked.
OptionalonCalled when a node is double clicked.
OptionalonCalled when a node drag ends.
OptionalonCalled when a node is dragged.
OptionalonCalled when a node edit session starts. Act as a UI hook.
The node edit session
A HTML Div that will be injected in the modal's body
OptionalonCalled when an node edit session gets cancelled
OptionalonCalled when a node is expanded (e.g., drilled down or pivoted).
OptionalonCalled when a user hovers over a node.
OptionalonCalled when a user hovers out of a node.
OptionalonCalled when a user pointer down a node.
OptionalonCalled when a user pointer up a node.
OptionalonCalled when a node is selected by the user.
OptionalonCalled when nodes are selected by the user.
OptionalonCalled when a note is clicked.
OptionalonCalled when a note is right clicked.
OptionalonCalled when a note is double clicked.
OptionalonCalled when a user pointer up a node.
OptionalonCalled when a user pointer down a node.
OptionalonCalled when a user pointer up a node.
OptionalonCalled when a user hovers over a note.
OptionalonCalled when a user hovers out of a note.
OptionalonCalled when a user pointer down a node.
OptionalonCalled when a user pointer up a node.
OptionalonCalled when the every tenth of simulation ticks.
OptionalonCalled when the simulation ticks.
Live validity predicate evaluated during the connect gesture as the cursor hovers candidate targets (à la React Flow's
isValidConnection). Returnfalseto mark the hovered target invalid: the shadow edge renders in an invalid style, and releasing / clicking on it creates nothing (in that case onBeforeEdgeCreate is not consulted). Runs on every pointer move, so it must be synchronous and cheap.