@graphty/graphty-element / index / StyleChangedEvent
Interface: StyleChangedEvent ​
Defined in: graphty-element/src/events.ts:234
Emitted after the style stack changed and the graph was repainted for it.
The detail is counts and words, never layers, so it survives structured cloning; a consumer that wants the stack itself reads session.styles.list().
Properties ​
layers ​
layers:
number
Defined in: graphty-element/src/events.ts:239
How many layers the change touched.
painted ​
painted:
RepaintReport|null
Defined in: graphty-element/src/events.ts:241
How much was repainted, or null when no renderer is bound.
reason ​
reason:
RepaintReason
Defined in: graphty-element/src/events.ts:237
Which style verb produced the change.
type ​
type:
"style-changed"
Defined in: graphty-element/src/events.ts:235
unresolvedPaths ​
unresolvedPaths:
string[]
Defined in: graphty-element/src/events.ts:243
The paths the changed layers read that nothing in the session answers yet.