Skip to content

Commit

Permalink
feat: Update TransformControls.d.ts (#109)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh <[email protected]>
  • Loading branch information
puxiao and joshuaellis authored Sep 18, 2021
1 parent 65363dd commit eeab5c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions types/three/examples/jsm/controls/TransformControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export class TransformControls extends Object3D {
camera: Camera;
object: Object3D | undefined;
enabled: boolean;
axis: string | null;
mode: string;
axis: 'X' | 'Y' | 'Z' | 'E' | 'XY' | 'YZ' | 'XZ' | 'XYZ' | 'XYZE' | null;
mode: 'translate' | 'rotate' | 'scale';
translationSnap: number | null;
rotationSnap: number | null;
space: string;
space: 'world' | 'local';
size: number;
dragging: boolean;
showX: boolean;
Expand All @@ -29,13 +29,13 @@ export class TransformControls extends Object3D {

attach(object: Object3D): this;
detach(): this;
getMode(): string;
getMode(): 'translate' | 'rotate' | 'scale';
getRaycaster(): Raycaster;
setMode(mode: string): void;
setMode(mode: 'translate' | 'rotate' | 'scale'): void;
setTranslationSnap(translationSnap: number | null): void;
setRotationSnap(rotationSnap: number | null): void;
setScaleSnap(scaleSnap: number | null): void;
setSize(size: number): void;
setSpace(space: string): void;
setSpace(space: 'world' | 'local'): void;
dispose(): void;
}

0 comments on commit eeab5c9

Please sign in to comment.