Skip to content

@graphty/graphty-element / session / ChannelRefusalCode

Type Alias: ChannelRefusalCode ​

ChannelRefusalCode = "layer.locked" | "channel.encoded"

Defined in: graphty-element/src/session/styles/explain.ts:124

Why a channel cannot be edited on the layer that won it, as the code of its ChannelExplanation.fact. The application words it; graphty-element writes no sentence for it. Each code's params:

CodeParams
layer.lockedlayerId, name: the layer, which belongs to the element and refuses every edit; add a layer above it instead
channel.encodedlayerId, name: the layer; channel; path: the path the layer works the channel out from. Resolve the rule to a fixed value (styles.resolveToStatic) first

New codes may be added in a minor release: word an unknown one generically.

Since ​

3.17.0