@speckle/viewer
Version:
A 3d viewer for Speckle, based on threejs.
30 lines (29 loc) • 830 B
TypeScript
import { type TreeNode } from './WorldTree.js';
export declare class NodeMap {
static readonly COMPOUND_ID_CHAR = "~";
static readonly DUPLICATE_ID_CHAR = "#";
private all;
instances: {
[id: string]: {
[id: string]: TreeNode;
};
};
duplicates: {
[id: string]: {
[id: string]: TreeNode;
};
};
get nodeCount(): number;
constructor(subtreeRoot: TreeNode);
addNode(node: TreeNode): boolean;
removeNode(node: TreeNode): boolean;
getNodeById(id: string): TreeNode[] | null;
getSubtreeById(id: string): TreeNode;
hasId(id: string): boolean;
hasNodeId(id: string): boolean;
hasInstanceId(id: string): boolean;
private registerInstance;
private registerDuplicate;
private registerNode;
purge(): void;
}