UNPKG

@shopware-ag/dive

Version:

Shopware Spatial Framework

21 lines (20 loc) 908 B
import { Object3D, Vector3 } from 'three/webgpu'; import { DIVEHoverable } from '../../../interfaces/Hoverable.ts'; import { OrbitController } from '../../../plugins/orbitcontroller/index.ts'; import { DIVEScaleHandle } from '../handles/ScaleHandle.ts'; import { DraggableEvent } from '../../../plugins/toolbox/index.ts'; export declare class DIVEScaleGizmo extends Object3D implements DIVEHoverable { readonly isHoverable: true; children: DIVEScaleHandle[]; private _controller; set debug(value: boolean); private _startScale; constructor(controller: OrbitController); reset(): void; update(scale: Vector3): void; private handleHighlight; onHoverAxis(handle: DIVEScaleHandle, value: boolean): void; onAxisDragStart(handle: DIVEScaleHandle): void; onAxisDrag(axis: DIVEScaleHandle, e: DraggableEvent): void; onAxisDragEnd(handle: DIVEScaleHandle): void; }