// @ts-nocheck import type { Inflateble } from "../Common" export enum LineType { Arrow = Cesium.Material.PolylineArrowType, Dash = Cesium.Material.PolylineDashType, Simple = Cesium.Material.ColorType } export type VisableCallback = () => boolean; export interface Groupable> { groupId: string; asGroup(groupId: string): T; } export type PositeInfo = { position: Cesium.Cartesian3, } export type AreaInfo = { positionList: Array, vector?: Cesium.Cartesian3, } export interface Moveble { move(vector: Cesium.Cartesian3): T; } export interface Rotateble { rotate(hpr: Cesium.HeadingPitchRoll): T; } export interface Positeble extends Moveble { reposite(position: Cesium.Cartesian3): T; } export interface Areable extends Moveble { repositeArea(positionList: Array): T; } export type DesCallback = (des: D) => void; export interface Stateble> { // 编辑模式 startEdit(): T; stopEdit(): T; isEditing(): boolean; // 显示隐藏 show(): T; hide(): T; isVisible(): boolean; } export abstract class ElementOperator implements Inflateble { readonly id: string; readonly des: Des; readonly info: Info; readonly stateble: Stateble; constructor(id: string, stateble: Stateble, info: Info, des: Des) { this.id = id; this.stateble = stateble; this.info = info; this.des = des; } abstract inflate(): void; abstract remove(): void; abstract reposite(): void; abstract refresh(): void; }