@poor-knight/cesium-utils 0.5.0 → 0.5.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/cesium-utils.cjs +4 -4
- package/dist/cesium-utils.d.ts +10 -3
- package/dist/cesium-utils.js +838 -808
- package/dist/cesium-utils.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/cesium-utils.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export declare function ListenLeftClick(viewer: Cesium.Viewer): default_2<{
|
|
|
66
66
|
declare type Matrix4Like = Cesium.Matrix4 | Record<string, number> | number[];
|
|
67
67
|
|
|
68
68
|
export declare class PolygonDrawer {
|
|
69
|
+
private options?;
|
|
69
70
|
private _viewer;
|
|
70
71
|
private _callBack;
|
|
71
72
|
private _posChange;
|
|
@@ -110,7 +111,11 @@ export declare class PolygonDrawer {
|
|
|
110
111
|
}
|
|
111
112
|
})
|
|
112
113
|
*/
|
|
113
|
-
constructor(viewer: Viewer, options?: PolygonDrawerOptions);
|
|
114
|
+
constructor(viewer: Viewer, options?: PolygonDrawerOptions | undefined);
|
|
115
|
+
/**
|
|
116
|
+
* 根据传入的positions初始化图形并进入编辑状态
|
|
117
|
+
*/
|
|
118
|
+
private initializeFromPositions;
|
|
114
119
|
/**
|
|
115
120
|
* 更新标签信息
|
|
116
121
|
* @param options 标签位置、标签文字, 不填则按照默认逻辑更新
|
|
@@ -185,7 +190,7 @@ export declare class PolygonDrawer {
|
|
|
185
190
|
*/
|
|
186
191
|
private endDraw;
|
|
187
192
|
clear(): void;
|
|
188
|
-
|
|
193
|
+
destroy(): void;
|
|
189
194
|
}
|
|
190
195
|
|
|
191
196
|
declare type PolygonDrawerOptions = {
|
|
@@ -201,6 +206,7 @@ declare type PolygonDrawerOptions = {
|
|
|
201
206
|
doubleClick?: string;
|
|
202
207
|
edit?: string;
|
|
203
208
|
};
|
|
209
|
+
polygon?: Omit<Cesium.PolygonGraphics.ConstructorOptions, 'hierarchy' | 'show'>;
|
|
204
210
|
};
|
|
205
211
|
|
|
206
212
|
/** 弹窗控制器 */
|
|
@@ -244,6 +250,7 @@ export declare class ShipLayer extends default_2<{
|
|
|
244
250
|
private opt?;
|
|
245
251
|
db: Cesium.CustomDataSource;
|
|
246
252
|
private labelDataSource;
|
|
253
|
+
private IS_MOVING_THRESHOLD;
|
|
247
254
|
constructor(key: string, zIndex: number, opt?: {
|
|
248
255
|
clustering?: {
|
|
249
256
|
enabled?: boolean;
|
|
@@ -258,6 +265,7 @@ export declare class ShipLayer extends default_2<{
|
|
|
258
265
|
designBeam: number;
|
|
259
266
|
designLength: number;
|
|
260
267
|
};
|
|
268
|
+
IS_MOVING_THRESHOLD?: number;
|
|
261
269
|
} | undefined);
|
|
262
270
|
private isMounted;
|
|
263
271
|
private _viewer;
|
|
@@ -273,7 +281,6 @@ export declare class ShipLayer extends default_2<{
|
|
|
273
281
|
renderFeature(feature: Feature<Point>): void;
|
|
274
282
|
/**更新or新增feature */
|
|
275
283
|
update(feature: Feature<Point>): void;
|
|
276
|
-
private readonly IS_MOVING_THRESHOLD;
|
|
277
284
|
private renderEntity;
|
|
278
285
|
private renderLabelEntity;
|
|
279
286
|
private shadowEntityMap;
|