cesium-plot-js/src/interface.ts

32 lines
770 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;
};
2024-03-23 10:45:05 +00:00
export type State = 'drawing' | 'edit' | 'static' | 'animating';
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-23 10:45:05 +00:00
export type VisibleAnimationOpts = {
duration?: number;
delay?: number;
2024-03-23 10:45:05 +00:00
callback?: () => void;
};
export type GrowthAnimationOpts = {
duration: number;
delay: number;
callback: Function;
};