pivotick / History / HistoryEntry
Interface: HistoryEntry
Defined in: interfaces/History.ts:32
One reversible thing that happened, as one row in the history.
Properties
act?
optionalact:HistoryAct
Defined in: interfaces/History.ts:43
For a visibility or group entry, which act it records.
at
at:
number
Defined in: interfaces/History.ts:75
edgeIds
edgeIds:
string[]
Defined in: interfaces/History.ts:50
id
id:
string
Defined in: interfaces/History.ts:38
Stable handle, and what GraphHistoryLike.undo addresses. A pivot entry's id is its runId, so a PivotRunOutcome already carries the id of its own row.
kind
kind:
HistoryKind
Defined in: interfaces/History.ts:39
label
label:
string
Defined in: interfaces/History.ts:41
What the row says: Correlations, Deleted 3 nodes, Hid 5 nodes.
nodeIds
nodeIds:
string[]
Defined in: interfaces/History.ts:49
The elements this entry touched — the row's counts, and what a hover highlights. For a removal, what left the canvas: an element another source still vouches for stays, and is not named here.
ordinal?
optionalordinal:number
Defined in: interfaces/History.ts:74
For a pivot entry, which run of that pivot this is, counting from 1. The tie-break between two runs of the same pivot: counts and clocks both collide, an ordinal cannot.
persisted
persisted:
boolean
Defined in: interfaces/History.ts:63
The consumer reported this operation as written through to its backend. A persisted creation still reverses: the canvas loses what the backend keeps, which a re-fetch undoes. The row says so, and the footer counts it.
pivotId?
optionalpivotId:string
Defined in: interfaces/History.ts:68
For a pivot entry, which pivot produced it — two runs of one pivot share it. For a removal, the source that was removed.
sealed
sealed:
boolean
Defined in: interfaces/History.ts:57
Never reversed — a deletion the consumer wrote through to its backend. Undo is a canvas operation and issues no compensating write, so restoring these would put back nodes the record of truth no longer has. Listed, and stepped over inside a span rather than walling it.