ModelTreeNode
-
class
wvc.ModelTreeNode() A custom element representing a node in the model tree.
This component displays a model tree node with its type, visibility state, and interactive controls. It does not have any dependency on the @ts3d-hoops/web-viewer Model class.
Examples
<hoops-model-tree-node nodeId="1" nodeName="Part1" nodeType="1"></hoops-model-tree-node> <hoops-model-tree-node nodeId="2" nodeName="Part2" nodeType="1" hidden></hoops-model-tree-node>
Custom Element
hoops-model-tree-nodeAttributes
nodeId
The id of the node in the modelnodeName
The name of the nodenodeType
The type of the node (casted into a NodeType)isRoot
Whether the node is a root nodehidden
The visibility state of the nodeSince
2025.8.0
Constructors
-
wvc.ModelTreeNode.constructor() - ModelTreeNode():
ModelTreeNodeReturns:
ModelTreeNode
Properties
-
wvc.ModelTreeNode.isRoot - isRoot: boolean
If the node is a root.
-
wvc.ModelTreeNode.nodeId - nodeId: number
The id of the node to render.
-
wvc.ModelTreeNode.nodeName - nodeName: string
The name of the node to render.
-
wvc.ModelTreeNode.nodeType - nodeType: NodeType
The type of the node to render.
-
wvc.ModelTreeNode.selected - selected: boolean
Whether the node is selected or not.
-
wvc.ModelTreeNode.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.