UNPKG

@soonspacejs/plugin-heat-map

Version:

Haet-map plugin for SoonSpace.js

39 lines (38 loc) 1.46 kB
import SoonSpace from 'soonspacejs'; import type { PluginObject } from 'soonspacejs'; import HeatMapPlugin, { DrawingParam, ScenePolygonDataPoint, StoreValue, StoreValuePolygon } from '.'; declare class CreateDrawing { readonly heatMapPlugin: HeatMapPlugin; readonly store: Map<string | number, StoreValue | StoreValuePolygon>; ssp: SoonSpace; intervalId: number | null; currentMouseEvent: MouseEvent | null; lastTime: Date | undefined; events: { [key in string]: ((event: KeyboardEvent) => void) | ((event: PointerEvent) => void); }; isDragging: boolean; isStarting: boolean; createDrawingParam: DrawingParam; dataPoints: DrawingParam['data']; object: PluginObject; startResolve: ((value: ScenePolygonDataPoint[] | PromiseLike<ScenePolygonDataPoint[]>) => void) | undefined; startReject: ((value: ScenePolygonDataPoint[] | PromiseLike<ScenePolygonDataPoint[]>) => void) | undefined; constructor(heatMapPlugin: HeatMapPlugin, param: DrawingParam); start: () => Promise<ScenePolygonDataPoint[]>; cancel: () => void; dispose: () => void; done: () => void; remove: () => void; private pushPoint; private popPoint; private handleAddPoint; private setMouseEvent; private handleEventListeners; private keyEvents; private getPoint; private onPointerdown; private onPointerMove; private onPointerUp; } export default CreateDrawing;