@shopware-ag/dive
Version:
Shopware Spatial Framework
31 lines (30 loc) • 1.14 kB
TypeScript
import { ColorRepresentation, Object3D, Vector3 } from 'three';
import { DIVEHoverable } from '../../interface/Hoverable';
import { DraggableEvent } from '../../toolbox/BaseTool';
import { DIVERotateGizmo } from '../rotate/RotateGizmo';
import { DIVEDraggable } from '../../interface/Draggable';
export declare class DIVERadialHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
readonly isHoverable: true;
readonly isDraggable: true;
set debug(value: boolean);
parent: DIVERotateGizmo | null;
axis: 'x' | 'y' | 'z';
private _color;
private _colorHover;
private _hovered;
private _highlight;
get highlight(): boolean;
set highlight(highlight: boolean);
private _lineMaterial;
private _colliderMesh;
get forwardVector(): Vector3;
get rightVector(): Vector3;
get upVector(): Vector3;
constructor(axis: 'x' | 'y' | 'z', radius: number, arc: number, direction: Vector3, color: ColorRepresentation);
reset(): void;
onPointerEnter(): void;
onPointerLeave(): void;
onDragStart(): void;
onDrag(e: DraggableEvent): void;
onDragEnd(): void;
}