@xingm/vmap-cesium-toolbar 0.0.4 → 0.0.6
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.
- package/README.md +1 -1
- package/dist/hooks/useDrawHelper.d.ts +1 -49
- package/dist/hooks/useHeatmapHelper.d.ts +1 -17
- package/dist/hooks/useOverlayHelper.d.ts +1 -223
- package/dist/hooks/usePointClusterHelper.d.ts +1 -11
- package/dist/index.es.js +1527 -1201
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumMapDraw.d.ts +1 -0
- package/dist/libs/CesiumMapModel.d.ts +3 -3
- package/dist/libs/CesiumOverlayService.d.ts +16 -11
- package/dist/libs/CesiumPointClusterLayer.d.ts +2 -0
- package/dist/libs/PickGovernor.d.ts +23 -0
- package/dist/libs/drawHelper/DrawLine.d.ts +1 -0
- package/dist/libs/i18n/en-US.d.ts +3 -0
- package/dist/libs/i18n/zh-CN.d.ts +3 -0
- package/dist/libs/overlay/MapCircle.d.ts +2 -0
- package/dist/libs/overlay/MapPolygon.d.ts +2 -0
- package/dist/libs/overlay/MapPolyline.d.ts +4 -0
- package/dist/libs/overlay/MapRectangle.d.ts +2 -0
- package/dist/libs/overlay/MapRing.d.ts +3 -1
- package/dist/libs/overlay/OverlayEditController.d.ts +45 -2
- package/dist/libs/overlay/OverlayEditHandles.d.ts +43 -5
- package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +1 -0
- package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +1 -0
- package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +1 -0
- package/dist/libs/overlay/types.d.ts +2 -0
- package/dist/libs/toolBar/MapLayersService.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,55 +6,7 @@ import * as Cesium from "cesium";
|
|
|
6
6
|
* - 提供线、矩形、圆形、多边形的绘制示例方法
|
|
7
7
|
*/
|
|
8
8
|
export declare function useDrawHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
|
|
9
|
-
drawHelper:
|
|
10
|
-
handleSceneModeChanged: () => void;
|
|
11
|
-
startDrawingLine: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
12
|
-
startDrawingPolygon: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
13
|
-
startDrawingRectangle: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
14
|
-
startDrawingCircle: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
15
|
-
endDrawing: () => void;
|
|
16
|
-
cancelDrawing: () => void;
|
|
17
|
-
clearAll: () => void;
|
|
18
|
-
clearAllEntities: () => void;
|
|
19
|
-
clearAllPoints: () => void;
|
|
20
|
-
removeEntity: (entity: Cesium.Entity) => void;
|
|
21
|
-
getEntityLabelEntities: (entity: Cesium.Entity) => Cesium.Entity[];
|
|
22
|
-
getFinishedEntities: () => Cesium.Entity[];
|
|
23
|
-
onMeasureComplete: (callback: (result: {
|
|
24
|
-
type: "line" | "polygon" | "rectangle" | "circle";
|
|
25
|
-
positions: Cesium.Cartesian3[];
|
|
26
|
-
distance?: number;
|
|
27
|
-
areaKm2?: number;
|
|
28
|
-
}) => void) => void;
|
|
29
|
-
onDrawStart: (callback: () => void) => void;
|
|
30
|
-
onDrawEnd: (callback: (entity: Cesium.Entity | null) => void) => void;
|
|
31
|
-
onEntityRemoved: (callback: (entity: Cesium.Entity) => void) => void;
|
|
32
|
-
destroy: () => void;
|
|
33
|
-
} | null, DrawHelper | {
|
|
34
|
-
handleSceneModeChanged: () => void;
|
|
35
|
-
startDrawingLine: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
36
|
-
startDrawingPolygon: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
37
|
-
startDrawingRectangle: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
38
|
-
startDrawingCircle: (options?: import('../libs/drawHelper').DrawOptions) => void;
|
|
39
|
-
endDrawing: () => void;
|
|
40
|
-
cancelDrawing: () => void;
|
|
41
|
-
clearAll: () => void;
|
|
42
|
-
clearAllEntities: () => void;
|
|
43
|
-
clearAllPoints: () => void;
|
|
44
|
-
removeEntity: (entity: Cesium.Entity) => void;
|
|
45
|
-
getEntityLabelEntities: (entity: Cesium.Entity) => Cesium.Entity[];
|
|
46
|
-
getFinishedEntities: () => Cesium.Entity[];
|
|
47
|
-
onMeasureComplete: (callback: (result: {
|
|
48
|
-
type: "line" | "polygon" | "rectangle" | "circle";
|
|
49
|
-
positions: Cesium.Cartesian3[];
|
|
50
|
-
distance?: number;
|
|
51
|
-
areaKm2?: number;
|
|
52
|
-
}) => void) => void;
|
|
53
|
-
onDrawStart: (callback: () => void) => void;
|
|
54
|
-
onDrawEnd: (callback: (entity: Cesium.Entity | null) => void) => void;
|
|
55
|
-
onEntityRemoved: (callback: (entity: Cesium.Entity) => void) => void;
|
|
56
|
-
destroy: () => void;
|
|
57
|
-
} | null>;
|
|
9
|
+
drawHelper: import('vue').ShallowRef<DrawHelper | null, DrawHelper | null>;
|
|
58
10
|
isDrawing: Ref<boolean, boolean>;
|
|
59
11
|
currentDrawMode: Ref<string | null, string | null>;
|
|
60
12
|
initDrawHelper: () => void;
|
|
@@ -5,23 +5,7 @@ import * as Cesium from "cesium";
|
|
|
5
5
|
* 热力图相关的辅助逻辑
|
|
6
6
|
*/
|
|
7
7
|
export declare function useHeatmapHelper(viewer: Ref<Cesium.Viewer | undefined>): {
|
|
8
|
-
heatmapLayer:
|
|
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>;
|
|
8
|
+
heatmapLayer: import('vue').ShallowRef<CesiumHeatmapLayer | null, CesiumHeatmapLayer | null>;
|
|
25
9
|
visible: Ref<boolean, boolean>;
|
|
26
10
|
initHeatmap: (options?: HeatmapOptions) => void;
|
|
27
11
|
updateHeatmapData: (points: HeatPoint[]) => void;
|
|
@@ -17,229 +17,7 @@ type OverlayHelperOptions = {
|
|
|
17
17
|
* - 管理点位模式的事件处理及清理
|
|
18
18
|
*/
|
|
19
19
|
export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
|
|
20
|
-
overlayService:
|
|
21
|
-
beginBulkUpdate: () => void;
|
|
22
|
-
endBulkUpdate: () => void;
|
|
23
|
-
bulkUpdate: <T>(fn: () => T) => T;
|
|
24
|
-
readonly marker: {
|
|
25
|
-
add: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
26
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
27
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
|
|
28
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
29
|
-
};
|
|
30
|
-
readonly label: {
|
|
31
|
-
add: (options: import('../libs/overlay').LabelOptions) => Entity;
|
|
32
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
33
|
-
updateText: (entity: Entity, text: string) => void;
|
|
34
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
|
|
35
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
36
|
-
};
|
|
37
|
-
readonly icon: {
|
|
38
|
-
add: (options: import('../libs/overlay').IconOptions) => Entity;
|
|
39
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
40
|
-
updateImage: (entity: Entity, image: string) => void;
|
|
41
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
|
|
42
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
43
|
-
};
|
|
44
|
-
readonly svg: {
|
|
45
|
-
add: (options: import('../libs/overlay').SvgOptions) => Entity;
|
|
46
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
47
|
-
updateSvg: (entity: Entity, svg: string) => void;
|
|
48
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
|
|
49
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
50
|
-
};
|
|
51
|
-
readonly infoWindow: {
|
|
52
|
-
setDefaultUpdateInterval: (ms: number) => void;
|
|
53
|
-
forceUpdateAll: () => void;
|
|
54
|
-
bringToFront: (entity: Entity) => void;
|
|
55
|
-
add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
|
|
56
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
57
|
-
updateContent: (entity: Entity, content: string | HTMLElement) => void;
|
|
58
|
-
setVisible: (entity: Entity, visible: boolean) => void;
|
|
59
|
-
show: (entity: Entity) => void;
|
|
60
|
-
hide: (entity: Entity) => void;
|
|
61
|
-
remove: (entity: Entity) => void;
|
|
62
|
-
destroy: () => void;
|
|
63
|
-
};
|
|
64
|
-
readonly polyline: {
|
|
65
|
-
add: (options: import('../libs/overlay').PolylineOptions) => Entity;
|
|
66
|
-
updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
|
|
67
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
|
|
68
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
69
|
-
};
|
|
70
|
-
readonly polygon: {
|
|
71
|
-
add: (options: import('../libs/overlay').PolygonOptions) => Entity;
|
|
72
|
-
updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
|
|
73
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
74
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
75
|
-
setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
|
|
76
|
-
applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
|
|
77
|
-
restorePrimitiveHighlight: (entity: OverlayEntity) => void;
|
|
78
|
-
};
|
|
79
|
-
readonly rectangle: {
|
|
80
|
-
add: (options: import('../libs/overlay').RectangleOptions) => Entity;
|
|
81
|
-
updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
|
|
82
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
83
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
84
|
-
setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
|
|
85
|
-
applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
|
|
86
|
-
restorePrimitiveHighlight: (entity: OverlayEntity) => void;
|
|
87
|
-
};
|
|
88
|
-
readonly circle: {
|
|
89
|
-
add: (options: import('../libs/overlay').CircleOptions) => Entity;
|
|
90
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
91
|
-
updateRadius: (entity: Entity, radius: number) => void;
|
|
92
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
93
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
94
|
-
setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
|
|
95
|
-
applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
|
|
96
|
-
restorePrimitiveHighlight: (entity: OverlayEntity) => void;
|
|
97
|
-
};
|
|
98
|
-
readonly ring: {
|
|
99
|
-
add: (options: import('../libs/overlay').RingOptions) => Entity;
|
|
100
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
101
|
-
updateRadius: (entity: Entity, radius: number) => void;
|
|
102
|
-
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;
|
|
103
|
-
setVisible: (entity: Entity, visible: boolean) => void;
|
|
104
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
105
|
-
};
|
|
106
|
-
toggleOverlayHoverHighlight: (enabled: boolean) => void;
|
|
107
|
-
setOverlayEditMode: (enabled: boolean) => void;
|
|
108
|
-
getOverlayEditModeEnabled: () => boolean;
|
|
109
|
-
stopOverlayEdit: () => void;
|
|
110
|
-
startOverlayEdit: (entityOrId: (import('..').DrawEntity & OverlayEntity) | string) => boolean;
|
|
111
|
-
toggleOverlayHighlight: (entity: OverlayEntity, reason?: "click" | "hover") => void;
|
|
112
|
-
setOverlayHighlight: (entityOrId: OverlayEntity | string, enabled: boolean, reason?: "click" | "hover") => boolean;
|
|
113
|
-
addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
114
|
-
addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
|
|
115
|
-
addIcon: (options: import('../libs/overlay').IconOptions) => Entity;
|
|
116
|
-
addSvg: (options: import('../libs/overlay').SvgOptions) => Entity;
|
|
117
|
-
addInfoWindow: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
|
|
118
|
-
addPolyline: (options: import('../libs/overlay').PolylineOptions) => Entity;
|
|
119
|
-
addPolygon: (options: import('../libs/overlay').PolygonOptions) => Entity;
|
|
120
|
-
addRectangle: (options: import('../libs/overlay').RectangleOptions) => Entity;
|
|
121
|
-
addCircle: (options: import('../libs/overlay').CircleOptions) => Entity;
|
|
122
|
-
addRing: (options: import('../libs/overlay').RingOptions) => Entity;
|
|
123
|
-
getOverlay: (id: string) => Entity | undefined;
|
|
124
|
-
removeOverlay: (id: string) => boolean;
|
|
125
|
-
removeAllOverlays: () => void;
|
|
126
|
-
updateOverlayPosition: (id: string, position: import('../libs/overlay').OverlayPosition) => boolean;
|
|
127
|
-
setOverlayVisible: (id: string, visible: boolean) => boolean;
|
|
128
|
-
getAllOverlayIds: () => string[];
|
|
129
|
-
getAllOverlays: () => Entity[];
|
|
130
|
-
destroy: () => void;
|
|
131
|
-
} | null, CesiumOverlayService | {
|
|
132
|
-
beginBulkUpdate: () => void;
|
|
133
|
-
endBulkUpdate: () => void;
|
|
134
|
-
bulkUpdate: <T>(fn: () => T) => T;
|
|
135
|
-
readonly marker: {
|
|
136
|
-
add: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
137
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
138
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
|
|
139
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
140
|
-
};
|
|
141
|
-
readonly label: {
|
|
142
|
-
add: (options: import('../libs/overlay').LabelOptions) => Entity;
|
|
143
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
144
|
-
updateText: (entity: Entity, text: string) => void;
|
|
145
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
|
|
146
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
147
|
-
};
|
|
148
|
-
readonly icon: {
|
|
149
|
-
add: (options: import('../libs/overlay').IconOptions) => Entity;
|
|
150
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
151
|
-
updateImage: (entity: Entity, image: string) => void;
|
|
152
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
|
|
153
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
154
|
-
};
|
|
155
|
-
readonly svg: {
|
|
156
|
-
add: (options: import('../libs/overlay').SvgOptions) => Entity;
|
|
157
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
158
|
-
updateSvg: (entity: Entity, svg: string) => void;
|
|
159
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
|
|
160
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
161
|
-
};
|
|
162
|
-
readonly infoWindow: {
|
|
163
|
-
setDefaultUpdateInterval: (ms: number) => void;
|
|
164
|
-
forceUpdateAll: () => void;
|
|
165
|
-
bringToFront: (entity: Entity) => void;
|
|
166
|
-
add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
|
|
167
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
168
|
-
updateContent: (entity: Entity, content: string | HTMLElement) => void;
|
|
169
|
-
setVisible: (entity: Entity, visible: boolean) => void;
|
|
170
|
-
show: (entity: Entity) => void;
|
|
171
|
-
hide: (entity: Entity) => void;
|
|
172
|
-
remove: (entity: Entity) => void;
|
|
173
|
-
destroy: () => void;
|
|
174
|
-
};
|
|
175
|
-
readonly polyline: {
|
|
176
|
-
add: (options: import('../libs/overlay').PolylineOptions) => Entity;
|
|
177
|
-
updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
|
|
178
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
|
|
179
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
180
|
-
};
|
|
181
|
-
readonly polygon: {
|
|
182
|
-
add: (options: import('../libs/overlay').PolygonOptions) => Entity;
|
|
183
|
-
updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
|
|
184
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
185
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
186
|
-
setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
|
|
187
|
-
applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
|
|
188
|
-
restorePrimitiveHighlight: (entity: OverlayEntity) => void;
|
|
189
|
-
};
|
|
190
|
-
readonly rectangle: {
|
|
191
|
-
add: (options: import('../libs/overlay').RectangleOptions) => Entity;
|
|
192
|
-
updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
|
|
193
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
194
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
195
|
-
setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
|
|
196
|
-
applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
|
|
197
|
-
restorePrimitiveHighlight: (entity: OverlayEntity) => void;
|
|
198
|
-
};
|
|
199
|
-
readonly circle: {
|
|
200
|
-
add: (options: import('../libs/overlay').CircleOptions) => Entity;
|
|
201
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
202
|
-
updateRadius: (entity: Entity, radius: number) => void;
|
|
203
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
204
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
205
|
-
setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
|
|
206
|
-
applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
|
|
207
|
-
restorePrimitiveHighlight: (entity: OverlayEntity) => void;
|
|
208
|
-
};
|
|
209
|
-
readonly ring: {
|
|
210
|
-
add: (options: import('../libs/overlay').RingOptions) => Entity;
|
|
211
|
-
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
212
|
-
updateRadius: (entity: Entity, radius: number) => void;
|
|
213
|
-
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;
|
|
214
|
-
setVisible: (entity: Entity, visible: boolean) => void;
|
|
215
|
-
remove: (entityOrId: Entity | string) => boolean;
|
|
216
|
-
};
|
|
217
|
-
toggleOverlayHoverHighlight: (enabled: boolean) => void;
|
|
218
|
-
setOverlayEditMode: (enabled: boolean) => void;
|
|
219
|
-
getOverlayEditModeEnabled: () => boolean;
|
|
220
|
-
stopOverlayEdit: () => void;
|
|
221
|
-
startOverlayEdit: (entityOrId: (import('..').DrawEntity & OverlayEntity) | string) => boolean;
|
|
222
|
-
toggleOverlayHighlight: (entity: OverlayEntity, reason?: "click" | "hover") => void;
|
|
223
|
-
setOverlayHighlight: (entityOrId: OverlayEntity | string, enabled: boolean, reason?: "click" | "hover") => boolean;
|
|
224
|
-
addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
225
|
-
addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
|
|
226
|
-
addIcon: (options: import('../libs/overlay').IconOptions) => Entity;
|
|
227
|
-
addSvg: (options: import('../libs/overlay').SvgOptions) => Entity;
|
|
228
|
-
addInfoWindow: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
|
|
229
|
-
addPolyline: (options: import('../libs/overlay').PolylineOptions) => Entity;
|
|
230
|
-
addPolygon: (options: import('../libs/overlay').PolygonOptions) => Entity;
|
|
231
|
-
addRectangle: (options: import('../libs/overlay').RectangleOptions) => Entity;
|
|
232
|
-
addCircle: (options: import('../libs/overlay').CircleOptions) => Entity;
|
|
233
|
-
addRing: (options: import('../libs/overlay').RingOptions) => Entity;
|
|
234
|
-
getOverlay: (id: string) => Entity | undefined;
|
|
235
|
-
removeOverlay: (id: string) => boolean;
|
|
236
|
-
removeAllOverlays: () => void;
|
|
237
|
-
updateOverlayPosition: (id: string, position: import('../libs/overlay').OverlayPosition) => boolean;
|
|
238
|
-
setOverlayVisible: (id: string, visible: boolean) => boolean;
|
|
239
|
-
getAllOverlayIds: () => string[];
|
|
240
|
-
getAllOverlays: () => Entity[];
|
|
241
|
-
destroy: () => void;
|
|
242
|
-
} | null>;
|
|
20
|
+
overlayService: import('vue').ShallowRef<CesiumOverlayService | null, CesiumOverlayService | null>;
|
|
243
21
|
initOverlayService: (options?: OverlayHelperOptions) => void;
|
|
244
22
|
addMarker: () => void;
|
|
245
23
|
addMarkerWithLabel: () => void;
|
|
@@ -5,17 +5,7 @@ import * as Cesium from 'cesium';
|
|
|
5
5
|
* 点聚类图层相关的辅助逻辑(Vue3 composition API)
|
|
6
6
|
*/
|
|
7
7
|
export declare function usePointClusterHelper(viewer: Ref<Cesium.Viewer | undefined>): {
|
|
8
|
-
clusterLayer:
|
|
9
|
-
setData: (points: ClusterPoint[]) => void;
|
|
10
|
-
setVisible: (visible: boolean) => void;
|
|
11
|
-
setClusteringEnabled: (enabled: boolean) => void;
|
|
12
|
-
destroy: () => void;
|
|
13
|
-
} | null, CesiumPointClusterLayer | {
|
|
14
|
-
setData: (points: ClusterPoint[]) => void;
|
|
15
|
-
setVisible: (visible: boolean) => void;
|
|
16
|
-
setClusteringEnabled: (enabled: boolean) => void;
|
|
17
|
-
destroy: () => void;
|
|
18
|
-
} | null>;
|
|
8
|
+
clusterLayer: import('vue').ShallowRef<CesiumPointClusterLayer | null, CesiumPointClusterLayer | null>;
|
|
19
9
|
visible: Ref<boolean, boolean>;
|
|
20
10
|
initCluster: (options?: PointClusterLayerOptions) => void;
|
|
21
11
|
updateClusterData: (points: ClusterPoint[]) => void;
|