2023-08-23 03:49:11 +00:00
|
|
|
// @ts-ignore
|
2024-02-22 13:54:59 +00:00
|
|
|
import * as CesiumTypeOnly from 'cesium';
|
2023-08-22 11:18:14 +00:00
|
|
|
|
|
|
|
export type PolygonStyle = {
|
2023-08-24 03:04:58 +00:00
|
|
|
material?: CesiumTypeOnly.MaterialProperty;
|
2023-08-22 11:18:14 +00:00
|
|
|
outlineWidth?: number;
|
2023-08-24 03:04:58 +00:00
|
|
|
outlineMaterial?: CesiumTypeOnly.MaterialProperty;
|
2023-08-22 11:18:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export type LineStyle = {
|
2023-08-24 03:04:58 +00:00
|
|
|
material?: CesiumTypeOnly.Color;
|
2023-08-22 11:18:14 +00:00
|
|
|
lineWidth?: number;
|
|
|
|
};
|
|
|
|
|
2023-08-14 09:47:59 +00:00
|
|
|
export type State = 'drawing' | 'edit' | 'static';
|
2023-08-22 11:18:14 +00:00
|
|
|
export type GeometryStyle = PolygonStyle | LineStyle;
|
2023-08-24 07:55:04 +00:00
|
|
|
|
|
|
|
export type EventType = 'drawStart' | 'drawUpdate' | 'drawEnd' | 'editEnd' | 'editStart';
|
|
|
|
export type EventListener = (eventData?: any) => void;
|
2024-03-16 14:34:11 +00:00
|
|
|
|
|
|
|
export type VisibleOpts = {
|
|
|
|
duration?: number;
|
|
|
|
delay?: number;
|
|
|
|
callback?: (() => void)
|
|
|
|
}
|