import{_ as e,c as r,o as t,N as a}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Interface: LayerTreeNodeOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/data/common.LayerTreeNodeOptions.md","lastUpdated":null}'),o={name:"api/interfaces/data/common.LayerTreeNodeOptions.md"},i=a('
data/common.LayerTreeNodeOptions
An object that configures a LayerTreeNode
↳ LayerTreeNodeOptions
• 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.
profectus/src/data/common.tsx:190
• Optional
canClick: Computable
<boolean
>
Whether or not this tree node can be clicked.
profectus/src/features/trees/tree.ts:40
• Optional
classes: Computable
<Record
<string
, boolean
>>
Dictionary of CSS classes to apply to this feature.
profectus/src/features/trees/tree.ts:48
• color: Computable
<string
>
The color to display this tree node as
profectus/src/data/common.tsx:180
• Optional
display: Computable
<CoercableComponent
>
The content to display in the tree node. Defaults to the layer's ID
profectus/src/data/common.tsx:185
• Optional
glowColor: Computable
<string
>
The color of the glow effect shown to notify the user there's something to do with this node.
profectus/src/features/trees/tree.ts:46
• layerID: string
The ID of the layer this tree node is associated with
profectus/src/data/common.tsx:178
• Optional
mark: Computable
<string
| boolean
>
Shows a marker on the corner of the feature.
profectus/src/features/trees/tree.ts:52
• Optional
onClick: (e?
: MouseEvent
| TouchEvent
) => void
▸ (e?
): void
A function that is called when the tree node is clicked.
Name | Type |
---|---|
e? | MouseEvent | TouchEvent |
void
profectus/src/features/trees/tree.ts:56
• Optional
onHold: VoidFunction
A function that is called when the tree node is held down.
profectus/src/features/trees/tree.ts:58
• Optional
reset: GenericReset
A reset object attached to this node, used for propagating resets through the tree.
profectus/src/features/trees/tree.ts:54
• Optional
style: Computable
<StyleValue
>
CSS to apply to this feature.
profectus/src/features/trees/tree.ts:50
• Optional
visibility: Computable
<boolean
| Visibility
>
Whether this tree node should be visible.