@xingm/vmap-cesium-toolbar 0.0.2-alpha.1 → 0.0.2-alpha.2
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/dist/hooks/useOverlayHelper.d.ts +20 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/overlay/MapCircle.d.ts +4 -0
- package/dist/libs/overlay/MapIcon.d.ts +4 -0
- package/dist/libs/overlay/MapInfoWindow.d.ts +27 -0
- package/dist/libs/overlay/MapLabel.d.ts +4 -0
- package/dist/libs/overlay/MapMarker.d.ts +4 -0
- package/dist/libs/overlay/MapPolygon.d.ts +4 -0
- package/dist/libs/overlay/MapPolyline.d.ts +4 -0
- package/dist/libs/overlay/MapRectangle.d.ts +4 -0
- package/dist/libs/overlay/MapSVG.d.ts +4 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -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,26 @@ 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;
|
|
66
76
|
};
|
|
67
77
|
addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
68
78
|
addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
|
|
@@ -86,26 +96,32 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
|
|
|
86
96
|
add: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
87
97
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
88
98
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
|
|
99
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
89
100
|
};
|
|
90
101
|
readonly label: {
|
|
91
102
|
add: (options: import('../libs/overlay').LabelOptions) => Entity;
|
|
92
103
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
93
104
|
updateText: (entity: Entity, text: string) => void;
|
|
94
105
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
|
|
106
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
95
107
|
};
|
|
96
108
|
readonly icon: {
|
|
97
109
|
add: (options: import('../libs/overlay').IconOptions) => Entity;
|
|
98
110
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
99
111
|
updateImage: (entity: Entity, image: string) => void;
|
|
100
112
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
|
|
113
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
101
114
|
};
|
|
102
115
|
readonly svg: {
|
|
103
116
|
add: (options: import('../libs/overlay').SvgOptions) => Entity;
|
|
104
117
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
105
118
|
updateSvg: (entity: Entity, svg: string) => void;
|
|
106
119
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
|
|
120
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
107
121
|
};
|
|
108
122
|
readonly infoWindow: {
|
|
123
|
+
setDefaultUpdateInterval: (ms: number) => void;
|
|
124
|
+
forceUpdateAll: () => void;
|
|
109
125
|
bringToFront: (entity: Entity) => void;
|
|
110
126
|
add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
|
|
111
127
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
@@ -120,22 +136,26 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
|
|
|
120
136
|
add: (options: import('../libs/overlay').PolylineOptions) => Entity;
|
|
121
137
|
updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
|
|
122
138
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
|
|
139
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
123
140
|
};
|
|
124
141
|
readonly polygon: {
|
|
125
142
|
add: (options: import('../libs/overlay').PolygonOptions) => Entity;
|
|
126
143
|
updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
|
|
127
144
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
145
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
128
146
|
};
|
|
129
147
|
readonly rectangle: {
|
|
130
148
|
add: (options: import('../libs/overlay').RectangleOptions) => Entity;
|
|
131
149
|
updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
|
|
132
150
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
151
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
133
152
|
};
|
|
134
153
|
readonly circle: {
|
|
135
154
|
add: (options: import('../libs/overlay').CircleOptions) => Entity;
|
|
136
155
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
137
156
|
updateRadius: (entity: Entity, radius: number) => void;
|
|
138
157
|
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
|
|
158
|
+
remove: (entityOrId: Entity | string) => boolean;
|
|
139
159
|
};
|
|
140
160
|
addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
141
161
|
addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
|
package/dist/index.js
CHANGED
|
@@ -1488,7 +1488,7 @@ class y {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
window.DrawHelper = y;
|
|
1490
1490
|
function P() {
|
|
1491
|
-
const e = "
|
|
1491
|
+
const e = "57962be20a8da51ffd5d652bbc86325a,ef905e1aad18c1f8899ff8adb0453064,4b0c90d0a7ad9d80226e59a6a537507f".split(","), t = Math.floor(Math.random() * e.length);
|
|
1492
1492
|
return e[t];
|
|
1493
1493
|
}
|
|
1494
1494
|
function B(h) {
|