UNPKG

@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

29 lines (25 loc) 1.12 kB
import { Plugin, Viewer } from "../../viewer"; export declare type AxisGizmoPluginConfiguration = { /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */ id?: string; /** ID of an existing HTML canvas to display the AxisGizmo - either this or canvasElement is mandatory. When both values are given, the element reference is always preferred to the ID. */ canvasId?: string; /** Reference of an existing HTML canvas to display the AxisGizmo - either this or canvasId is mandatory. When both values are given, the element reference is always preferred to the ID. */ canvasElement?: HTMLCanvasElement; } /** * {@link Viewer} plugin that shows the axii of the World-space coordinate system. */ export declare class AxisGizmoPlugin extends Plugin { /** * @constructor * @param {Viewer} viewer The Viewer. * @param {AxisGizmoPluginConfiguration} cfg Plugin configuration. */ constructor(viewer: Viewer, cfg:AxisGizmoPluginConfiguration ); /** Shows or hides this AxisGizmoPlugin. * * @param visible */ setVisible(visible: boolean): void; }