import type { Disposable } from '../Common'; import type { DesCallback, Stateble, Positeble, Areable, PositeInfo, AreaInfo, Groupable } from './Common'; import { ElementOperator } from './Common'; export declare abstract class BaseElement> implements Groupable, Stateble, Disposable { readonly id: string; groupId: string; protected editing: boolean; protected visible: boolean; protected constructor(id: string); abstract dispose(): void; abstract _inflateElement(): void; abstract _removeElement(): void; abstract _resetElement(): void; abstract refreshGeo(): void; asGroup(groupId: string): T; /** * 开始编辑 * */ startEdit(): T; /** * 结束编辑 * */ stopEdit(): T; /** * 是否处于编辑模式 * */ isEditing(): boolean; /** * 显示 * */ show(): T; /** * 隐藏 * */ hide(): T; /** * 是否可见 * */ isVisible(): boolean; protected asType(): T; } export declare abstract class MapElement, T extends MapElement> extends BaseElement { readonly des: Des; readonly info: Info; protected operator: Operator | undefined; protected constructor(id: string, info: Info, des?: Des); protected abstract createDes(): Des; dispose(): void; _answerDrag(): boolean; abstract init(): T; _inflateElement(): void; _removeElement(): void; _resetElement(): void; protected repositeGeo(): void; /** * 加载元素至地图 * */ inflate(): T; /** * 自定义样式 * @param callback 样式回调 * @returns */ custom(callback: DesCallback): T; /** * 更新 * */ refreshGeo(): void; } export declare abstract class PositebleElement, T extends PositebleElement> extends MapElement implements Positeble> { /** * 移动位置 * */ move(vector: Cesium.Cartesian3): T; /** * 重置位置 * */ reposite(position: Cesium.Cartesian3): T; } export declare abstract class AreableElement, T extends AreableElement> extends MapElement implements Areable> { /** * 移动位置 * */ move(vector: Cesium.Cartesian3): T; /** * 重置所有数据点 * */ repositeArea(positionList: Array): T; }