Skip to main content

Module delete

Module delete 

Source
Expand description

Renderer-neutral delete-selection helpers.

These helpers turn the current store selection plus keyboard policy into normal graph transactions without depending on DOM keyboard events or renderer state.

Structs§

DeleteElements
Node/edge ids participating in a delete request.
PreDeleteRequest
Delete request an adapter can pass to an async onBeforeDelete-style hook.

Enums§

DeleteSelectionError
Error returned when a delete-selection request could not be committed.
PreDeleteResolution
Adapter decision after an async onBeforeDelete-style hook resolves.

Constants§

DELETE_SELECTION_TRANSACTION_LABEL
Default transaction label used for committed delete-selection updates.

Functions§

delete_elements_from_plan
Extracts the actual node/edge ids removed by a delete plan, including cascaded edges.
delete_selection_elements
Returns the direct node/edge selection before cascaded delete planning.
delete_selection_transaction
Builds a labeled transaction for an accepted, non-empty delete plan.
delete_selection_transaction_from_plan
Consumes a delete plan and returns a labeled transaction when it has accepted ops.
plan_delete_elements
Plans deleting explicit node/edge ids through normal delete policy.
plan_delete_selection
Plans deletion for the current node/edge selection without mutating the graph.
plan_delete_selection_for_key
Plans deletion for a keyboard event when the configured delete key matches.
prepare_delete_elements
Builds a pre-delete request for explicit node/edge ids.
prepare_delete_selection
Builds a pre-delete request for adapter-owned onBeforeDelete hooks.
prepare_delete_selection_for_key
Builds a key-gated pre-delete request when the configured delete key matches.