@graphty/graphty-element / session / HistoryStep
Interface: HistoryStep ​
Defined in: graphty-element/src/session/types.ts:1474
One undoable step: everything one command, gesture or transaction changed. Frozen.
Properties ​
at ​
readonlyat:string
Defined in: graphty-element/src/session/types.ts:1480
ISO 8601 of the last commit or merge into the step.
bytes ​
readonlybytes:number
Defined in: graphty-element/src/session/types.ts:1486
What the step retains on the side of the cursor it is on.
id ​
readonlyid:HistoryStepId
Defined in: graphty-element/src/session/types.ts:1476
Stable for the life of the step.
label ​
readonlylabel:string
Defined in: graphty-element/src/session/types.ts:1478
What a history list shows, such as "Changed colour of Hubs".
ops ​
readonlyops: readonly ("batch"|"set.create"|"set.rename"|"set.redefine"|"set.members"|"set.remove"|"set.restore"|"style.patch"|"style.encode"|"style.template"|"algo.run"|"algo.legacy"|"algo.remove"|"config.set"|"layout.set"|"layout.scope"|"view.dimension"|"layout.transport"|"view.immersive"|"note.add"|"note.update"|"note.remove"|"note.merge"|"positions.set"|"positions.pin"|"view.save"|"view.remove"|"view.camera"|"visibility.set"|"visibility.window"|"visibility.context"|"data.apply"|"data.import"|"data.expand"|"data.declare"|"data.setSource")[]
Defined in: graphty-element/src/session/types.ts:1482
The ops of the commands in the step, in the order they ran. Payloads are not kept for display.
provenance ​
readonlyprovenance:Readonly<Record<string,string>>
Defined in: graphty-element/src/session/types.ts:1488
Where the step came from, such as { via: "assistant" }.
slices ​
readonlyslices: readonlyProjectSlice[]
Defined in: graphty-element/src/session/types.ts:1484
The slices the step changed.