Skip to content

@graphty/graphty-element / session / ElementLayerSpec

Interface: ElementLayerSpec ​

Defined in: graphty-element/src/session/styles/StylesApi.ts:576

A layer the element owns, which is the only kind that may be seeded as one.

Element layers exist by construction: they are handed to createStylesApi and cannot be added afterwards, which is what makes locked a fact about where a layer came from rather than a flag anybody can set.

Extends ​

Properties ​

enabled? ​

optional enabled?: boolean

Defined in: graphty-element/src/catalog/types.ts:664

Inherited from ​

LayerSpec.enabled


encode? ​

optional encode?: Partial<Record<Channel, Binding>>

Defined in: graphty-element/src/catalog/types.ts:662

Inherited from ​

LayerSpec.encode


kind? ​

optional kind?: LayerKind

Defined in: graphty-element/src/catalog/types.ts:659

Inherited from ​

LayerSpec.kind


name ​

name: string

Defined in: graphty-element/src/catalog/types.ts:657

Inherited from ​

LayerSpec.name


selector ​

selector: Selector

Defined in: graphty-element/src/catalog/types.ts:660

Inherited from ​

LayerSpec.selector


set? ​

optional set?: Partial<Record<Channel, ChannelValue>>

Defined in: graphty-element/src/catalog/types.ts:661

Inherited from ​

LayerSpec.set


source ​

source: object

Defined in: graphty-element/src/session/styles/StylesApi.ts:578

Always an element source. That is what makes the layer locked.

by ​

by: "element"

reason ​

reason: "default" | "selection" | "hover" | "notes"

Overrides ​

LayerSpec.source


target? ​

optional target?: "node" | "edge"

Defined in: graphty-element/src/catalog/types.ts:658

Inherited from ​

LayerSpec.target


userData? ​

optional userData?: Record<string, unknown>

Defined in: graphty-element/src/catalog/types.ts:665

Inherited from ​

LayerSpec.userData