@graphty/graphty-element / session / LayerProblem
Interface: LayerProblem ​
Defined in: graphty-element/src/session/styles/Layer.ts:153
One thing wrong with a layer specification.
A code rather than a message is what a consumer switches on; the message is for the person who typed the thing, and the path and position are what let an editor point at the character rather than at the form.
Properties ​
candidates? ​
readonlyoptionalcandidates?: readonlystring[]
Defined in: graphty-element/src/session/styles/Layer.ts:163
The names that would have been right, nearest first.
code ​
readonlycode:GraphtyErrorCode
Defined in: graphty-element/src/session/styles/Layer.ts:155
The machine-readable reason.
message ​
readonlymessage:string
Defined in: graphty-element/src/session/styles/Layer.ts:157
What is wrong, in a sentence.
path? ​
readonlyoptionalpath?:string
Defined in: graphty-element/src/session/styles/Layer.ts:159
Where in the specification it is wrong, as a dotted path such as set.node.color.
position? ​
readonlyoptionalposition?:number
Defined in: graphty-element/src/session/styles/Layer.ts:161
The character offset inside an expression, when the problem is inside one.