Skip to content
On this page

Interface: LayerTreeNodeOptions

data/common.LayerTreeNodeOptions

An object that configures a LayerTreeNode

Hierarchy

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:186


canClick

Optional canClick: Computable<boolean>

Inherited from

TreeNodeOptions.canClick

Defined in

profectus/src/features/trees/tree.ts:27


classes

Optional classes: Computable<Record<string, boolean>>

Inherited from

TreeNodeOptions.classes

Defined in

profectus/src/features/trees/tree.ts:31


color

color: Computable<string>

The color to display this tree node as

Overrides

TreeNodeOptions.color

Defined in

profectus/src/data/common.tsx:176


display

Optional display: Computable<CoercableComponent>

The content to display in the tree node. Defaults to the layer's ID

Overrides

TreeNodeOptions.display

Defined in

profectus/src/data/common.tsx:181


glowColor

Optional glowColor: Computable<string>

Inherited from

TreeNodeOptions.glowColor

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:174


mark

Optional mark: Computable<string | boolean>

Inherited from

TreeNodeOptions.mark

Defined in

profectus/src/features/trees/tree.ts:33


onClick

Optional onClick: (e?: MouseEvent | TouchEvent) => void

Type declaration

▸ (e?): void

Parameters
NameType
e?MouseEvent | TouchEvent
Returns

void

Inherited from

TreeNodeOptions.onClick

Defined in

profectus/src/features/trees/tree.ts:35


onHold

Optional onHold: VoidFunction

Inherited from

TreeNodeOptions.onHold

Defined in

profectus/src/features/trees/tree.ts:36


reset

Optional reset: GenericReset

Inherited from

TreeNodeOptions.reset

Defined in

profectus/src/features/trees/tree.ts:34


style

Optional style: Computable<StyleValue>

Inherited from

TreeNodeOptions.style

Defined in

profectus/src/features/trees/tree.ts:32


visibility

Optional visibility: Computable<Visibility>

Inherited from

TreeNodeOptions.visibility

Defined in

profectus/src/features/trees/tree.ts:26