@graphty/graphty-element / index / RunPainting
Interface: RunPainting ​
Defined in: graphty-element/src/session/runs/types.ts:709
What the element decided to paint for a run when it first completed.
A snapshot of that one decision, kept with the run so undo and redo carry it. It does not track later edits to the stack; styles.legend() and styles.explain() answer what shows now.
Properties ​
state ​
readonlystate:"pending"|"unknown"|"decided"|"opted-out"|"not-succeeded"|"no-styles"
Defined in: graphty-element/src/session/runs/types.ts:720
Where the decision stands. More states may be added in a minor release.
"decided":suggestionsis the decision; empty when the run had nothing to draw."pending": the run has not finished, or it is a batch member and the batch has not."opted-out": started withstyle: false."not-succeeded": it failed or was cancelled."no-styles": this session has no style stack."unknown": the run was recorded without a decision, so none is known.
suggestions ​
readonlysuggestions: readonlySuggestionOutcome[]
Defined in: graphty-element/src/session/runs/types.ts:722
One entry per suggestion; empty unless state is "decided".