Skip to content

pivotick v3.0.0


pivotick / InterractionCallbacks / DeleteContext

Interface: DeleteContext ​

Defined in: interfaces/InterractionCallbacks.ts:476

Context passed to InterractionCallbacks.onBeforeDelete.

Properties ​

cascadingEdges ​

cascadingEdges: Edge[]

Defined in: interfaces/InterractionCallbacks.ts:489

Edges that will also be destroyed as a consequence of removing nodes — graph.removeNode cascades into every incident edge. Resolved by the library, not the consumer. They follow whichever nodes survive a narrowed decision, so they can't be narrowed on their own.


confirm() ​

confirm: (options?) => Promise<boolean>

Defined in: interfaces/InterractionCallbacks.ts:497

Open a confirmation modal, resolving true on confirm and false on any cancel path (Cancel, ×, overlay, Esc) — so if (!await confirm(…)) return false is the whole guard. Resolves false in UI modes with no modal slot.

Parameters ​

options? ​

ConfirmOptions

Returns ​

Promise<boolean>


edges ​

edges: Edge[]

Defined in: interfaces/InterractionCallbacks.ts:480

Edges the user asked to delete (never overlapping cascadingEdges).


nodes ​

nodes: Node[]

Defined in: interfaces/InterractionCallbacks.ts:478

Nodes the user asked to delete.


notes ​

notes: Note[]

Defined in: interfaces/InterractionCallbacks.ts:482

Notes the user asked to delete.


origin ​

origin: DeleteOrigin

Defined in: interfaces/InterractionCallbacks.ts:491

Which affordance initiated the delete.