@xeokit/xeokit-sdk
Version:
3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision
72 lines (62 loc) • 1.32 kB
TypeScript
/**
* A node within a {@link TreeViewPlugin}.
*/
export declare class TreeViewNode {
/**
* Globally unique node ID.
*
* @type {String}
*/
get nodeId(): string;
/**
* Title of the TreeViewNode.
*
* @type {String}
*/
get title(): string;
/**
* ID of the corresponding {@link MetaObject}.
*
* This is only defined if the TreeViewNode represents an object.
*
* @type {String}
*/
get objectId(): string;
/**
* Type of the corresponding {@link MetaObject}.
*
* @type {String}
*/
get type(): string;
/**
* The child TreeViewNodes.
*
* @type {Array}
*/
get children(): any[];
/** The parent TreeViewNode.
*
* @type {TreeViewNode|null}
*/
get parent(): TreeViewNode | null;
/** The number of {@link Entity}s within the subtree of this TreeViewNode.
*
* @type {Number}
*/
get numEntities(): number;
/** The number of {@link Entity}s that are currently visible within the subtree of this TreeViewNode.
*
* @type {Number}
*/
get numVisibleEntities(): number;
/** Whether or not the TreeViewNode is currently checked.
*
* @type {Boolean}
*/
get checked(): boolean;
/** Whether or not the TreeViewNode is currently xrayed.
*
* @type {Boolean}
*/
get xrayed(): boolean;
}