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§
- Delete
Elements - Node/edge ids participating in a delete request.
- PreDelete
Request - Delete request an adapter can pass to an async
onBeforeDelete-style hook.
Enums§
- Delete
Selection Error - Error returned when a delete-selection request could not be committed.
- PreDelete
Resolution - 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
onBeforeDeletehooks. - prepare_
delete_ selection_ for_ key - Builds a key-gated pre-delete request when the configured delete key matches.