@poor-knight/cesium-utils 0.5.2 → 0.5.4
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 +10 -10
- package/dist/cesium-utils.d.ts +31 -1
- package/dist/cesium-utils.js +1629 -1557
- package/dist/cesium-utils.umd.cjs +18 -18
- package/package.json +1 -1
package/dist/cesium-utils.d.ts
CHANGED
|
@@ -241,7 +241,10 @@ export declare function saveCameraParams(viewer: Cesium.Viewer): {
|
|
|
241
241
|
transform: Cesium.Matrix4;
|
|
242
242
|
};
|
|
243
243
|
|
|
244
|
-
/**船只图层
|
|
244
|
+
/**船只图层
|
|
245
|
+
*
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
245
248
|
export declare class ShipLayer extends default_2<{
|
|
246
249
|
createEntity: (entity: Cesium.Entity) => void;
|
|
247
250
|
}> implements Layer {
|
|
@@ -251,6 +254,28 @@ export declare class ShipLayer extends default_2<{
|
|
|
251
254
|
db: Cesium.CustomDataSource;
|
|
252
255
|
private labelDataSource;
|
|
253
256
|
private IS_MOVING_THRESHOLD;
|
|
257
|
+
private shipDisplayOptions;
|
|
258
|
+
/**
|
|
259
|
+
* 构造函数
|
|
260
|
+
* @param key 图层唯一标识
|
|
261
|
+
* @param zIndex 图层渲染顺序
|
|
262
|
+
* @param opt 配置项
|
|
263
|
+
* - clustering: label的聚合相关配置
|
|
264
|
+
* - enabled 是否启用聚合
|
|
265
|
+
* - pixelRange 聚合像素范围
|
|
266
|
+
* - minimumClusterSize 最小聚合数量
|
|
267
|
+
* - distanceDisplayConditions: 距离显示条件
|
|
268
|
+
* - near 最近显示距离
|
|
269
|
+
* - far 最远显示距离
|
|
270
|
+
* - defaultValue: 输入信息的默认值
|
|
271
|
+
* - designBeam 默认船宽
|
|
272
|
+
* - designLength 默认船长
|
|
273
|
+
* - IS_MOVING_THRESHOLD 判定移动的速度阈值(米/秒),默认1
|
|
274
|
+
* - shipDisplayOptions 船只显示配置
|
|
275
|
+
* - startFadeMinutes 船只开始淡出时间(分钟)默认1分钟
|
|
276
|
+
* - endFadeMinutes 船只达到最淡的时间(分钟)默认5分钟
|
|
277
|
+
* - hideMinutes 船只隐藏时间(分钟)默认60分钟
|
|
278
|
+
*/
|
|
254
279
|
constructor(key: string, zIndex: number, opt?: {
|
|
255
280
|
clustering?: {
|
|
256
281
|
enabled?: boolean;
|
|
@@ -266,6 +291,11 @@ export declare class ShipLayer extends default_2<{
|
|
|
266
291
|
designLength: number;
|
|
267
292
|
};
|
|
268
293
|
IS_MOVING_THRESHOLD?: number;
|
|
294
|
+
shipDisplayOptions?: {
|
|
295
|
+
startFadeMinutes?: number;
|
|
296
|
+
endFadeMinutes?: number;
|
|
297
|
+
hideMinutes?: number;
|
|
298
|
+
};
|
|
269
299
|
} | undefined);
|
|
270
300
|
private isMounted;
|
|
271
301
|
private _viewer;
|