@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
12 lines (8 loc) • 486 B
TypeScript
import { Viewer } from "../../../viewer";
import { PointerCircle } from "../../../extras/PointerCircle";
type Cleanup = () => void;
type OnCancel = () => void;
type OnChange = () => void;
type OnCommit = () => void;
type Ray2WorldPos = (origin: number[], direction: number[]) => boolean | number[];
declare function touchPointSelector(viewer: Viewer, pointerCircle: PointerCircle, ray2WorldPos: Ray2WorldPos): (onCancel: OnCancel, onChange: OnChange, onCommit: OnCommit) => Cleanup;