TypeTreeNodeElement

class wvc.TypeTreeNodeElement()

A custom element representing a node in the types tree.

This component displays a type tree node with its properties and interactive controls. It does not have any dependency on the @ts3d-hoops/web-viewer Model class.

Examples

<hoops-types-tree-node nodeId="1" nodeName="Type A"></hoops-types-tree-node>

Custom Element

hoops-types-tree-node

Attributes

nodeId

The id of the node in the model

nodeName

The name of the node

Since

2025.8.0

Index

Constructors

Properties

Methods

Constructors

wvc.TypeTreeNodeElement.constructor()
TypeTreeNodeElement(): TypeTreeNodeElement

Returns: TypeTreeNodeElement

Properties

wvc.TypeTreeNodeElement.modelNodeId
modelNodeId: number

The id of the node represented by this element

wvc.TypeTreeNodeElement.modelNodes
modelNodes: number[]

The nodes associated with this type node

wvc.TypeTreeNodeElement.nodeId
nodeId: number

The tree id of the node for UI purposes (not related to the model)

wvc.TypeTreeNodeElement.nodeName
nodeName: string

The name of the node

wvc.TypeTreeNodeElement.visibility
visibility: BranchVisibility

The visibility attribute represents the visibility of the node in the viewer. It may be one of the following three states:

  • Shown - The node and all of its children are visible.
  • Hidden - The node and all of its children are hidden.
  • Mixed - The node is visible, but some of its children are not visible.

Methods

wvc.TypeTreeNodeElement.isTypeNode()
isTypeNode(): boolean

Returns: boolean