Skip to content

@graphty/graphty-element / session / StyleChange

Interface: StyleChange ​

Defined in: graphty-element/src/session/styles/StylesApi.ts:582

What one change to the stack was, as a host mirrors it onto an event.

Properties ​

cause ​

readonly cause: HistoryCause

Defined in: graphty-element/src/session/styles/StylesApi.ts:605

What moved the stack: an edit ("command"), or an undo, a redo, a restore or a rollback, which each publish one change per step they passed.


layers ​

readonly layers: readonly string[]

Defined in: graphty-element/src/session/styles/StylesApi.ts:586

The layers it touched, bottom first.


painted ​

readonly painted: RepaintReport | null

Defined in: graphty-element/src/session/styles/StylesApi.ts:592

How much the pass that drew this change repainted, or null when no renderer is bound to this session. When one pass covers several edits (a colour picker's drag, a held undo), each edit's change carries that pass's whole report.


reason ​

readonly reason: RepaintReason

Defined in: graphty-element/src/session/styles/StylesApi.ts:584

Which verb produced it.


unresolvedPaths ​

readonly unresolvedPaths: readonly string[]

Defined in: graphty-element/src/session/styles/StylesApi.ts:600

The paths the changed layers read that nothing in this session answers.

Not a failure: a selector naming a run that has not been started is a correct selector over a session that will answer it later. It is reported so a consumer can say why a layer paints nothing instead of showing a confident empty screen.