@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? ​
optionalenabled?:boolean
Defined in: graphty-element/src/catalog/types.ts:664
Inherited from ​
encode? ​
Defined in: graphty-element/src/catalog/types.ts:662
Inherited from ​
kind? ​
optionalkind?:LayerKind
Defined in: graphty-element/src/catalog/types.ts:659
Inherited from ​
name ​
name:
string
Defined in: graphty-element/src/catalog/types.ts:657
Inherited from ​
selector ​
selector:
Selector
Defined in: graphty-element/src/catalog/types.ts:660
Inherited from ​
set? ​
optionalset?:Partial<Record<Channel,ChannelValue>>
Defined in: graphty-element/src/catalog/types.ts:661
Inherited from ​
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 ​
target? ​
optionaltarget?:"node"|"edge"
Defined in: graphty-element/src/catalog/types.ts:658
Inherited from ​
userData? ​
optionaluserData?:Record<string,unknown>
Defined in: graphty-element/src/catalog/types.ts:665