Interface: LayerTreeNodeOptions
data/common.LayerTreeNodeOptions
An object that configures a LayerTreeNode
Hierarchy
↳
LayerTreeNodeOptions
Properties
append
• Optional
append: Computable
<boolean
>
Whether or not to append the layer to the tabs list. If set to false, then the tree node will instead always remove all tabs to its right and then add the layer tab. Defaults to true.
Defined in
profectus/src/data/common.tsx:185
canClick
• Optional
canClick: Computable
<boolean
>
Inherited from
Defined in
profectus/src/features/trees/tree.ts:27
classes
• Optional
classes: Computable
<Record
<string
, boolean
>>
Inherited from
Defined in
profectus/src/features/trees/tree.ts:31
color
• color: Computable
<string
>
The color to display this tree node as
Overrides
Defined in
profectus/src/data/common.tsx:175
display
• Optional
display: Computable
<CoercableComponent
>
The content to display in the tree node. Defaults to the layer's ID
Overrides
Defined in
profectus/src/data/common.tsx:180
glowColor
• Optional
glowColor: Computable
<string
>
Inherited from
Defined in
profectus/src/features/trees/tree.ts:30
layerID
• layerID: string
The ID of the layer this tree node is associated with
Defined in
profectus/src/data/common.tsx:173
mark
• Optional
mark: Computable
<string
| boolean
>
Inherited from
Defined in
profectus/src/features/trees/tree.ts:33
onClick
• Optional
onClick: (e?
: MouseEvent
| TouchEvent
) => void
Type declaration
▸ (e?
): void
Parameters
Name | Type |
---|---|
e? | MouseEvent | TouchEvent |
Returns
void
Inherited from
Defined in
profectus/src/features/trees/tree.ts:35
onHold
• Optional
onHold: VoidFunction
Inherited from
Defined in
profectus/src/features/trees/tree.ts:36
reset
• Optional
reset: GenericReset
Inherited from
Defined in
profectus/src/features/trees/tree.ts:34
style
• Optional
style: Computable
<StyleValue
>
Inherited from
Defined in
profectus/src/features/trees/tree.ts:32
visibility
• Optional
visibility: Computable
<Visibility
>