Skip to content

@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 ​

readonly at: string

Defined in: graphty-element/src/session/types.ts:1480

ISO 8601 of the last commit or merge into the step.


bytes ​

readonly bytes: number

Defined in: graphty-element/src/session/types.ts:1486

What the step retains on the side of the cursor it is on.


id ​

readonly id: HistoryStepId

Defined in: graphty-element/src/session/types.ts:1476

Stable for the life of the step.


label ​

readonly label: string

Defined in: graphty-element/src/session/types.ts:1478

What a history list shows, such as "Changed colour of Hubs".


ops ​

readonly ops: 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 ​

readonly provenance: Readonly<Record<string, string>>

Defined in: graphty-element/src/session/types.ts:1488

Where the step came from, such as { via: "assistant" }.


slices ​

readonly slices: readonly ProjectSlice[]

Defined in: graphty-element/src/session/types.ts:1484

The slices the step changed.