vim-webgl-component
Version:
A demonstration app built on top of the vim-webgl-viewer
32 lines (31 loc) • 1.14 kB
TypeScript
/**
* @module viw-webgl-component
*/
import React from 'react';
import 'react-complex-tree/lib/style.css';
import * as VIM from 'vim-webgl-viewer/';
import { ComponentCamera as CameraHelpers } from '../helpers/camera';
import { Isolation } from '../helpers/isolation';
import { BimTreeData } from './bimTreeData';
export type TreeActionRef = {
showAll: () => void;
hideAll: () => void;
collapseAll: () => void;
selectSiblings: (element: VIM.Object3D) => void;
};
/**
* Treeview component reprentation of current vim document bim data.
* @param viewer current viewer.
* @param elements an array with all element bim data.
* @param objects an array of objects to include in the tree view.
* @param isolation current isolation state.
*/
export declare function BimTree(props: {
actionRef: React.MutableRefObject<TreeActionRef>;
viewer: VIM.Viewer;
camera: CameraHelpers;
objects: VIM.Object3D[];
isolation: Isolation;
treeData: BimTreeData;
}): import("react/jsx-runtime").JSX.Element;
export declare const isControlKey: (e: React.MouseEvent<any, any>) => boolean;