mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-24 03:27:29 +00:00
20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
// @ts-ignore
|
|
import * as CesiumTypeOnly from 'cesium';
|
|
|
|
export type PolygonStyle = {
|
|
material?: CesiumTypeOnly.MaterialProperty;
|
|
outlineWidth?: number;
|
|
outlineMaterial?: CesiumTypeOnly.MaterialProperty;
|
|
};
|
|
|
|
export type LineStyle = {
|
|
material?: CesiumTypeOnly.Color;
|
|
lineWidth?: number;
|
|
};
|
|
|
|
export type State = 'drawing' | 'edit' | 'static';
|
|
export type GeometryStyle = PolygonStyle | LineStyle;
|
|
|
|
export type EventType = 'drawStart' | 'drawUpdate' | 'drawEnd' | 'editEnd' | 'editStart';
|
|
export type EventListener = (eventData?: any) => void;
|