@shopware-ag/dive
Version:
Shopware Spatial Framework
25 lines (24 loc) • 984 B
TypeScript
import { Box3, Object3D, Vector3, Vector3Like } from 'three';
import { DIVEMovable } from '../interface/Movable';
import { DIVESelectable } from '../interface/Selectable';
import { TransformControls } from 'three/examples/jsm/controls/TransformControls';
export declare class DIVENode extends Object3D implements DIVESelectable, DIVEMovable {
readonly isDIVENode: true;
readonly isSelectable: true;
readonly isMovable: true;
gizmo: TransformControls | null;
protected _positionWorldBuffer: Vector3;
protected _boundingBox: Box3;
constructor();
SetPosition(position: Vector3Like): void;
SetRotation(rotation: Vector3Like): void;
SetScale(scale: Vector3Like): void;
SetVisibility(visible: boolean): void;
SetToWorldOrigin(): void;
/**
* Can be called when the object is moved from a foreign object (gizmo, parent, etc.) to update the object's position.
*/
onMove(): void;
onSelect(): void;
onDeselect(): void;
}