Newer
Older
HuangJiPC / public / static / three / examples / jsm / controls / TransformControls.d.ts
@zhangdeliang zhangdeliang on 21 Jun 908 bytes update
import {
	Object3D,
	Camera,
	Vector3,
	Euler,
	MOUSE
} from '../../../src/Three';

export class TransformControls extends Object3D {

	constructor( object: Camera, domElement?: HTMLElement );

	domElement: HTMLElement;

	// API

	camera: Camera;
	object: Object3D | undefined;
	enabled: boolean;
	axis: string | null;
	mode: string;
	translationSnap: number | null;
	rotationSnap: number | null;
	space: string;
	size: number;
	dragging: boolean;
	showX: boolean;
	showY: boolean;
	showZ: boolean;
	isTransformControls: boolean;
	mouseButtons: {
		LEFT: MOUSE;
		MIDDLE: MOUSE;
		RIGHT: MOUSE;
	};

	attach( object: Object3D ): this;
	detach(): this;
	getMode(): string;
	setMode( mode: string ): void;
	setTranslationSnap( translationSnap: Number | null ): void;
	setRotationSnap( rotationSnap: Number | null ): void;
	setSize( size: number ): void;
	setSpace( space: string ): void;
	dispose(): void;

}