// @ts-nocheck import type { ActionHelper } from "./ActionHelper"; export type ActionCallback = (helper: ActionHelper, info: ActionInfo) => void; export class ActionInfo { // 起始位置 --- 拖拽等关联性操作 readonly sp: Cesium.Cartesian3 | undefined; // 上次记录的位置 --- 拖拽等关联性操作 readonly lp: Cesium.Cartesian3 | undefined; readonly position: Cesium.Cartesian3; readonly elementId: string | undefined; constructor(position: Cesium.Cartesian3, elementId?: string, sp?: Cesium.Cartesian3, lp?: Cesium.Cartesian3) { this.position = position; this.elementId = elementId; this.sp = sp; this.lp = lp; } haveElement(): boolean { return this.elementId != undefined; } }