UNPKG

@shopware-ag/dive

Version:

Shopware Spatial Framework

27 lines (26 loc) 1.04 kB
import { DIVEScene } from '../../scene/Scene.ts'; import { default as DIVETransformTool } from '../transform/TransformTool.ts'; import { default as DIVEOrbitControls } from '../../controls/OrbitControls.ts'; import { DIVESelectable } from '../../interface/Selectable.ts'; import { DIVEBaseTool } from '../BaseTool.ts'; export declare const isSelectTool: (tool: DIVEBaseTool) => tool is DIVESelectTool; export interface DIVEObjectEventMap { select: object; } /** * A Tool to select and move objects in the scene. * * Objects have to implement the DIVESelectable interface to be selectable and DIVEMovable to be movable. * * @module */ export declare class DIVESelectTool extends DIVETransformTool { readonly isSelectTool: boolean; constructor(scene: DIVEScene, controller: DIVEOrbitControls); Activate(): void; Select(selectable: DIVESelectable): void; Deselect(selectable: DIVESelectable): void; AttachGizmo(selectable: DIVESelectable): void; DetachGizmo(): void; onClick(e: PointerEvent): void; }