UNPKG

@shopware-ag/dive

Version:

Shopware Spatial Framework

30 lines (29 loc) 885 B
import { Color, Object3D } from 'three'; import { DIVEMovable } from '../interface/Movable'; import { DIVESelectable } from '../interface/Selectable'; import { TransformControls } from 'three/examples/jsm/controls/TransformControls'; /** * A basic point light. * * Can change the color, intensity, and visibility of the light. * * Can be moved and selected. * * @module */ export default class DIVEPointLight extends Object3D implements DIVESelectable, DIVEMovable { readonly isDIVELight: true; readonly isDIVEPointLight: true; readonly isMovable: true; readonly isSelectable: true; gizmo: TransformControls | null; private light; private mesh; constructor(); SetColor(color: Color): void; SetIntensity(intensity: number): void; SetEnabled(enabled: boolean): void; onMove(): void; onSelect(): void; onDeselect(): void; }