UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

40 lines 1.59 kB
import { TransformControls } from './TransformControls.js'; import { ICamera, IObject3D, IWidget } from '../../core'; export declare class TransformControls2 extends TransformControls implements IWidget, IObject3D { isWidget: true; assetType: "widget"; setDirty: any; refreshUi: any; object: IObject3D | undefined; private _keyDownListener; private _keyUpListener; constructor(camera: ICamera, canvas: HTMLCanvasElement); dispose(): void; enabled: boolean; mode: 'translate' | 'rotate' | 'scale'; translationSnap: number | null; rotationSnap: number | null; scaleSnap: number | null; space: 'world' | 'local'; size: number; showX: boolean; showY: boolean; showZ: boolean; /** * Get the threejs object * @deprecated */ get modelObject(): this; traverse: (callback: (object: IObject3D) => void) => void; traverseVisible: (callback: (object: IObject3D) => void) => void; traverseAncestors: (callback: (object: IObject3D) => void) => void; getObjectById: <T extends IObject3D = IObject3D>(id: number) => T | undefined; getObjectByName: <T extends IObject3D = IObject3D>(name: string) => T | undefined; getObjectByProperty: <T extends IObject3D = IObject3D>(name: string, value: string) => T | undefined; copy: (source: this, recursive?: boolean, ...args: any[]) => this; clone: (recursive?: boolean) => this; remove: (...object: IObject3D[]) => this; parent: IObject3D | null; children: IObject3D[]; } //# sourceMappingURL=TransformControls2.d.ts.map