Skip to content

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

readonly optional candidates?: readonly string[]

Defined in: graphty-element/src/session/styles/Layer.ts:163

The names that would have been right, nearest first.


code ​

readonly code: GraphtyErrorCode

Defined in: graphty-element/src/session/styles/Layer.ts:155

The machine-readable reason.


message ​

readonly message: string

Defined in: graphty-element/src/session/styles/Layer.ts:157

What is wrong, in a sentence.


path? ​

readonly optional path?: 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? ​

readonly optional position?: number

Defined in: graphty-element/src/session/styles/Layer.ts:161

The character offset inside an expression, when the problem is inside one.