cesium-plot-js/src/interface.ts

26 lines
648 B
TypeScript
Raw Normal View History

2023-08-23 03:49:11 +00:00
// @ts-ignore
2024-02-22 13:54:59 +00:00
import * as CesiumTypeOnly from 'cesium';
export type PolygonStyle = {
2023-08-24 03:04:58 +00:00
material?: CesiumTypeOnly.MaterialProperty;
outlineWidth?: number;
2023-08-24 03:04:58 +00:00
outlineMaterial?: CesiumTypeOnly.MaterialProperty;
};
export type LineStyle = {
2023-08-24 03:04:58 +00:00
material?: CesiumTypeOnly.Color;
lineWidth?: number;
};
2023-08-14 09:47:59 +00:00
export type State = 'drawing' | 'edit' | 'static';
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;
export type VisibleOpts = {
duration?: number;
delay?: number;
callback?: (() => void)
}