OptionaldeletionOptionaledgeInteractive edge creation — the Create ▸ Add edge tool (drag-to-connect and click-click alike) and the node context-menu's "Connect to…". What the new edge carries, and whether it is allowed, is decided by InterractionCallbacks.onBeforeEdgeCreate.
OptionaledgeOptionalenabled?: booleanOffer the edge editor at all. false hides the "Edit Edge" context-menu
entry.
Optionalfields?: FieldConfig[]Optional field list for the edge edit modal. Inferred from the edge's data when undefined.
OptionallabelPrompt?: EdgeLabelPromptModeWhen set, every interactive edge create prompts the end-user for a label
(stored on the new edge's data.label) using the chosen UI — no callback
needed. An onBeforeEdgeCreate hook, if present, takes over and this is
ignored (the hook can prompt itself via ctx.promptLabel).
Optionalrender?: (session: EdgeEditSession) => HTMLDivElementOptional custom body renderer for the edge edit modal — the static twin of
InterractionCallbacks.onEdgeEdit. A custom body owns the draft:
mutate session.draft as the user types.
OptionalnodeInteractive node creation — the Create ▸ Add node tool and the canvas context-menu's "Add Node Here". What the new node carries is decided by InterractionCallbacks.onBeforeNodeCreate.
OptionalnodeOptionalenabled?: booleanOffer the node editor at all. false hides the Create ▸ Edit node tool —
a consumer whose backend forbids edits removes the affordance rather than
vetoing every commit.
Optionalfields?: FieldConfig[]Optional custom field generator. Inferred if undefined
Optionalrender?: (session: NodeEditSession) => voidOptional custom modal renderer. Leave undefined for default edition modal
Deleting graph elements from the UI — the sidebar bulk-action Delete button and the node / edge / note context-menu delete entries. Every one of them is gated by InterractionCallbacks.onBeforeDelete; this switch decides whether they are shown in the first place.