vim-webgl-component
Version:
A demonstration app built on top of the vim-webgl-viewer
25 lines (24 loc) • 843 B
TypeScript
/**
* @module viw-webgl-component
*/
import * as VIM from 'vim-webgl-viewer/';
import { InputAction } from 'vim-webgl-viewer/dist/types/vim-webgl-viewer/raycaster';
import { SideState } from '../sidePanel/sideState';
import { Isolation } from './isolation';
import { ComponentCamera } from './camera';
/**
* Custom viewer input scheme for the vim component
*/
export declare class ComponentInputs implements VIM.InputScheme {
private _viewer;
private _camera;
private _default;
private _isolation;
private _sideState;
private _help;
constructor(viewer: VIM.Viewer, camera: ComponentCamera, isolation: Isolation, sideState: SideState);
private _getSelection;
onMainAction(hit: InputAction): void;
onIdleAction(hit: InputAction): void;
onKeyAction(key: number): boolean;
}