@xingm/vmap-cesium-toolbar 0.0.2-alpha.1 → 0.0.2-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ export declare function useDrawHelper(viewer: Ref<Cesium.Viewer | undefined>, me
13
13
  startDrawingRectangle: (options?: import('../libs/drawHelper').DrawOptions) => void;
14
14
  startDrawingCircle: (options?: import('../libs/drawHelper').DrawOptions) => void;
15
15
  endDrawing: () => void;
16
+ cancelDrawing: () => void;
16
17
  clearAll: () => void;
17
18
  clearAllEntities: () => void;
18
19
  clearAllPoints: () => void;
@@ -35,6 +36,7 @@ export declare function useDrawHelper(viewer: Ref<Cesium.Viewer | undefined>, me
35
36
  startDrawingRectangle: (options?: import('../libs/drawHelper').DrawOptions) => void;
36
37
  startDrawingCircle: (options?: import('../libs/drawHelper').DrawOptions) => void;
37
38
  endDrawing: () => void;
39
+ cancelDrawing: () => void;
38
40
  clearAll: () => void;
39
41
  clearAllEntities: () => void;
40
42
  clearAllPoints: () => void;
@@ -0,0 +1,34 @@
1
+ import { Ref } from 'vue';
2
+ import { default as CesiumHeatmapLayer, HeatPoint, HeatmapOptions, HeatmapGradient, HeatmapAutoUpdateOptions } from '../libs/CesiumHeatmapLayer';
3
+ import * as Cesium from "cesium";
4
+ /**
5
+ * 热力图相关的辅助逻辑
6
+ */
7
+ export declare function useHeatmapHelper(viewer: Ref<Cesium.Viewer | undefined>): {
8
+ heatmapLayer: Ref<{
9
+ setData: (points: HeatPoint[]) => void;
10
+ setGradient: (gradient: HeatmapGradient) => void;
11
+ setOpacity: (opacity: number) => void;
12
+ setVisible: (visible: boolean) => void;
13
+ destroy: () => void;
14
+ setAutoUpdate: (options?: HeatmapAutoUpdateOptions) => void;
15
+ stopAutoUpdate: () => void;
16
+ } | null, CesiumHeatmapLayer | {
17
+ setData: (points: HeatPoint[]) => void;
18
+ setGradient: (gradient: HeatmapGradient) => void;
19
+ setOpacity: (opacity: number) => void;
20
+ setVisible: (visible: boolean) => void;
21
+ destroy: () => void;
22
+ setAutoUpdate: (options?: HeatmapAutoUpdateOptions) => void;
23
+ stopAutoUpdate: () => void;
24
+ } | null>;
25
+ visible: Ref<boolean, boolean>;
26
+ initHeatmap: (options?: HeatmapOptions) => void;
27
+ updateHeatmapData: (points: HeatPoint[]) => void;
28
+ setHeatmapVisible: (v: boolean) => void;
29
+ setHeatmapOpacity: (alpha: number) => void;
30
+ setHeatmapGradient: (gradient: HeatmapGradient) => void;
31
+ setHeatmapAutoUpdate: (options?: HeatmapAutoUpdateOptions) => void;
32
+ stopHeatmapAutoUpdate: () => void;
33
+ destroyHeatmap: () => void;
34
+ };
@@ -13,26 +13,32 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
13
13
  add: (options: import('../libs/overlay').MarkerOptions) => Entity;
14
14
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
15
15
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
16
+ remove: (entityOrId: Entity | string) => boolean;
16
17
  };
17
18
  readonly label: {
18
19
  add: (options: import('../libs/overlay').LabelOptions) => Entity;
19
20
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
20
21
  updateText: (entity: Entity, text: string) => void;
21
22
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
23
+ remove: (entityOrId: Entity | string) => boolean;
22
24
  };
23
25
  readonly icon: {
24
26
  add: (options: import('../libs/overlay').IconOptions) => Entity;
25
27
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
26
28
  updateImage: (entity: Entity, image: string) => void;
27
29
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
30
+ remove: (entityOrId: Entity | string) => boolean;
28
31
  };
29
32
  readonly svg: {
30
33
  add: (options: import('../libs/overlay').SvgOptions) => Entity;
31
34
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
32
35
  updateSvg: (entity: Entity, svg: string) => void;
33
36
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
37
+ remove: (entityOrId: Entity | string) => boolean;
34
38
  };
35
39
  readonly infoWindow: {
40
+ setDefaultUpdateInterval: (ms: number) => void;
41
+ forceUpdateAll: () => void;
36
42
  bringToFront: (entity: Entity) => void;
37
43
  add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
38
44
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
@@ -47,22 +53,34 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
47
53
  add: (options: import('../libs/overlay').PolylineOptions) => Entity;
48
54
  updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
49
55
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
56
+ remove: (entityOrId: Entity | string) => boolean;
50
57
  };
51
58
  readonly polygon: {
52
59
  add: (options: import('../libs/overlay').PolygonOptions) => Entity;
53
60
  updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
54
61
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
62
+ remove: (entityOrId: Entity | string) => boolean;
55
63
  };
56
64
  readonly rectangle: {
57
65
  add: (options: import('../libs/overlay').RectangleOptions) => Entity;
58
66
  updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
59
67
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
68
+ remove: (entityOrId: Entity | string) => boolean;
60
69
  };
61
70
  readonly circle: {
62
71
  add: (options: import('../libs/overlay').CircleOptions) => Entity;
63
72
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
64
73
  updateRadius: (entity: Entity, radius: number) => void;
65
74
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
75
+ remove: (entityOrId: Entity | string) => boolean;
76
+ };
77
+ readonly ring: {
78
+ add: (options: import('../libs/overlay').RingOptions) => Entity;
79
+ updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
80
+ updateRadius: (entity: Entity, radius: number) => void;
81
+ updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
82
+ setVisible: (entity: Entity, visible: boolean) => void;
83
+ remove: (entityOrId: Entity | string) => boolean;
66
84
  };
67
85
  addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
68
86
  addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
@@ -73,6 +91,7 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
73
91
  addPolygon: (options: import('../libs/overlay').PolygonOptions) => Entity;
74
92
  addRectangle: (options: import('../libs/overlay').RectangleOptions) => Entity;
75
93
  addCircle: (options: import('../libs/overlay').CircleOptions) => Entity;
94
+ addRing: (options: import('../libs/overlay').RingOptions) => Entity;
76
95
  getOverlay: (id: string) => Entity | undefined;
77
96
  removeOverlay: (id: string) => boolean;
78
97
  removeAllOverlays: () => void;
@@ -86,26 +105,32 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
86
105
  add: (options: import('../libs/overlay').MarkerOptions) => Entity;
87
106
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
88
107
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
108
+ remove: (entityOrId: Entity | string) => boolean;
89
109
  };
90
110
  readonly label: {
91
111
  add: (options: import('../libs/overlay').LabelOptions) => Entity;
92
112
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
93
113
  updateText: (entity: Entity, text: string) => void;
94
114
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
115
+ remove: (entityOrId: Entity | string) => boolean;
95
116
  };
96
117
  readonly icon: {
97
118
  add: (options: import('../libs/overlay').IconOptions) => Entity;
98
119
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
99
120
  updateImage: (entity: Entity, image: string) => void;
100
121
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
122
+ remove: (entityOrId: Entity | string) => boolean;
101
123
  };
102
124
  readonly svg: {
103
125
  add: (options: import('../libs/overlay').SvgOptions) => Entity;
104
126
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
105
127
  updateSvg: (entity: Entity, svg: string) => void;
106
128
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
129
+ remove: (entityOrId: Entity | string) => boolean;
107
130
  };
108
131
  readonly infoWindow: {
132
+ setDefaultUpdateInterval: (ms: number) => void;
133
+ forceUpdateAll: () => void;
109
134
  bringToFront: (entity: Entity) => void;
110
135
  add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
111
136
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
@@ -120,22 +145,34 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
120
145
  add: (options: import('../libs/overlay').PolylineOptions) => Entity;
121
146
  updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
122
147
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
148
+ remove: (entityOrId: Entity | string) => boolean;
123
149
  };
124
150
  readonly polygon: {
125
151
  add: (options: import('../libs/overlay').PolygonOptions) => Entity;
126
152
  updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
127
153
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
154
+ remove: (entityOrId: Entity | string) => boolean;
128
155
  };
129
156
  readonly rectangle: {
130
157
  add: (options: import('../libs/overlay').RectangleOptions) => Entity;
131
158
  updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
132
159
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
160
+ remove: (entityOrId: Entity | string) => boolean;
133
161
  };
134
162
  readonly circle: {
135
163
  add: (options: import('../libs/overlay').CircleOptions) => Entity;
136
164
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
137
165
  updateRadius: (entity: Entity, radius: number) => void;
138
166
  updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
167
+ remove: (entityOrId: Entity | string) => boolean;
168
+ };
169
+ readonly ring: {
170
+ add: (options: import('../libs/overlay').RingOptions) => Entity;
171
+ updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
172
+ updateRadius: (entity: Entity, radius: number) => void;
173
+ updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
174
+ setVisible: (entity: Entity, visible: boolean) => void;
175
+ remove: (entityOrId: Entity | string) => boolean;
139
176
  };
140
177
  addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
141
178
  addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
@@ -146,6 +183,7 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
146
183
  addPolygon: (options: import('../libs/overlay').PolygonOptions) => Entity;
147
184
  addRectangle: (options: import('../libs/overlay').RectangleOptions) => Entity;
148
185
  addCircle: (options: import('../libs/overlay').CircleOptions) => Entity;
186
+ addRing: (options: import('../libs/overlay').RingOptions) => Entity;
149
187
  getOverlay: (id: string) => Entity | undefined;
150
188
  removeOverlay: (id: string) => boolean;
151
189
  removeAllOverlays: () => void;
@@ -165,6 +203,7 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
165
203
  addLine: () => void;
166
204
  addArea: () => void;
167
205
  addCircle: () => void;
206
+ addRing: () => void;
168
207
  addPolygon: () => void;
169
208
  addRectangle: () => void;
170
209
  addInfoWindow: () => void;