import type { Activeble, Clearable } from "../Common"; import type { ActionCallback } from "./Common"; declare abstract class BaseHelper implements Clearable, Activeble { readonly id: string; readonly parent: ActionHelper; protected answer: boolean; constructor(id: string, parent: ActionHelper); /** * 清空所有相关回调 */ clear(): ActionHelper; /** * 开启事件响应 */ active(): ActionHelper; /** * 关闭事件响应 */ deactive(): ActionHelper; /** * 是否响应事件 */ isActived(): boolean; } export declare class ActionHelper implements Clearable { readonly simple: SimpleHelper; readonly drag: DragHelper; static dragTargetId: string | undefined; static dragSP: Cesium.Cartesian3 | undefined; static dragP: Cesium.Cartesian3 | undefined; static startDrag(targetId: string, position: Cesium.Cartesian3): void; static onDrag(position: Cesium.Cartesian3): void; static finishDrag(): void; static isDraging(): boolean; constructor(id: string); /** * 清空所有相关回调 */ clear(): ActionHelper; } declare class SimpleHelper extends BaseHelper { /** * 注册左键点击回调 */ onLeftTap(callback: ActionCallback): ActionHelper; /** * 移除左键点击回调 */ removeLeftTap(): void; /** * 注册右键点击回调 */ onRightTap(callback: ActionCallback): ActionHelper; /** * 移除右键点击回调 */ removeRightTap(): void; /** * 注册鼠标移动回调 */ onMove(callback: ActionCallback): ActionHelper; /** * 移除鼠标移动回调 */ removeMove(): void; clear(): ActionHelper; } declare class DragHelper extends BaseHelper { /** * 注册拖拽移动回调 */ onMove(callback: ActionCallback): ActionHelper; /** * 注册拖拽开始回调 */ onStart(callback: ActionCallback): ActionHelper; /** * 注册拖拽结束回调 */ onEnd(callback: ActionCallback): ActionHelper; /** * 移除拖拽回调 */ removeDrag(): void; clear(): ActionHelper; } export {};