earthsdk3-cesium 3.6.0-beta.1 → 3.6.0-beta.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.
- package/dist/earthsdk3-cesium.iife.js +279 -278
- package/dist/earthsdk3-cesium.js +16961 -15525
- package/dist/earthsdk3-cesium.umd.cjs +123 -122
- package/dist/types/CzmObjects/base/CzmESObjectWithLocation.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/MVTImageryProvider.d.ts +6 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/MVTImageryProvider.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/type.d.ts +4 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/type.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/imageryProviderUtils.d.ts +2 -2
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/imageryProviderUtils.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/getRecreateEvents.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/getRecreateEvents.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/getSimpleUpdateEvents.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/getSimpleUpdateEvents.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESEntityCluster/index.d.ts +26 -12
- package/dist/types/CzmObjects/general/CzmESEntityCluster/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoDiv/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoJson/CzmGeoJson.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoJson/CzmGeoJson.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoJson/index.d.ts +7 -0
- package/dist/types/CzmObjects/general/CzmESGeoJson/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESImageLabel/index.d.ts +0 -1
- package/dist/types/CzmObjects/general/CzmESImageLabel/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index.d.ts +8 -0
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index_bak.d.ts +12 -0
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index_bak.d.ts.map +1 -0
- package/dist/types/CzmObjects/general/CzmESPoi2D/fun.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESPoi2D/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESWidget/index.d.ts +3 -3
- package/dist/types/CzmObjects/general/CzmESWidget/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/PickingManager.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/AvoidanceManager.d.ts +32 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/AvoidanceManager.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/CustomCollection.d.ts +15 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/CustomCollection.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.d.ts +85 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenObject.d.ts +29 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenObject.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenObjectPool.d.ts +31 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenObjectPool.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/index.d.ts +47 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/index.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/utils.d.ts +4 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/utils.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/TerrainManager.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.d.ts +15 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.d.ts +38 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileLoader.d.ts +39 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileLoader.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileNode.d.ts +15 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileNode.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.d.ts +24 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TilesCache..d.ts +25 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TilesCache..d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/WorkerPool.d.ts +16 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/WorkerPool.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts +53 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/utils.d.ts +3 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/utils.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/vectorTilesWorker.d.ts +2 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/vectorTilesWorker.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/index.d.ts +7 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerInstance.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/index.d.ts +3 -3
- package/dist/types/ESCesiumViewer/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/initCesiumViewer/fixBillboard.d.ts +2 -0
- package/dist/types/ESCesiumViewer/initCesiumViewer/fixBillboard.d.ts.map +1 -0
- package/dist/types/ESJTypesCzm/czmObject/CzmBillboard.d.ts +27 -0
- package/dist/types/ESJTypesCzm/czmObject/CzmBillboard.d.ts.map +1 -0
- package/dist/types/ESJTypesCzm/czmObject/CzmLabel.d.ts +27 -0
- package/dist/types/ESJTypesCzm/czmObject/CzmLabel.d.ts.map +1 -0
- package/dist/types/ESJTypesCzm/czmObject/index.d.ts +2 -0
- package/dist/types/ESJTypesCzm/czmObject/index.d.ts.map +1 -1
- package/dist/types/ESObjects/ESMVTLayer.d.ts +5 -0
- package/dist/types/ESObjects/ESMVTLayer.d.ts.map +1 -1
- package/dist/types/ESObjects/ESSignalTransmission.d.ts.map +1 -1
- package/dist/types/__declares/cesium.d.ts +17 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/calculateImageTiles.d.ts +17 -0
- package/dist/types/utils/czmUtils/calculateImageTiles.d.ts.map +1 -0
- package/dist/types/utils/czmUtils/getCzmCode/getCzmCodeFromESImageryLayer.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/getCzmCode/getCzmCodeFromESTerrainLayer.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/index.d.ts +1 -0
- package/dist/types/utils/czmUtils/index.d.ts.map +1 -1
- package/dist/types/utils/generalUtils/getImageInfo.d.ts +8 -0
- package/dist/types/utils/generalUtils/getImageInfo.d.ts.map +1 -0
- package/dist/types/utils/generalUtils/index.d.ts +1 -1
- package/dist/types/utils/generalUtils/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/types/utils/generalUtils/imgUrlToBase64.d.ts +0 -8
- package/dist/types/utils/generalUtils/imgUrlToBase64.d.ts.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Destroyable, SceneObjectKey } from "earthsdk3";
|
|
2
|
+
import * as Cesium from "cesium";
|
|
3
|
+
import { ESJScreenObjectInfo } from "earthsdk3";
|
|
4
|
+
import { CzmBillboard, CzmLabel, ESCesiumViewer, ScreenManager } from "../../../index";
|
|
5
|
+
import { ScreenObject, ScreenObjectType } from "./ScreenObject";
|
|
6
|
+
/**
|
|
7
|
+
* 管理一类对象(同图层)
|
|
8
|
+
* 负责增删改 ScreenObject
|
|
9
|
+
* 提供快速访问索引 objects: Map<SceneObjectKey, ScreenObject>
|
|
10
|
+
*/
|
|
11
|
+
export declare class ScreenLayer extends Destroyable {
|
|
12
|
+
objects: Map<SceneObjectKey, ScreenObject>;
|
|
13
|
+
screenManager: ScreenManager;
|
|
14
|
+
czmViewer: ESCesiumViewer;
|
|
15
|
+
viewer: Cesium.Viewer;
|
|
16
|
+
constructor(screenManager: ScreenManager);
|
|
17
|
+
/**
|
|
18
|
+
* 检查图层是否包含有效对象
|
|
19
|
+
* @returns 如果图层中存在有效对象则返回 true,否则返回 false
|
|
20
|
+
*/
|
|
21
|
+
layerIsEffective(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 向图层添加标签对象
|
|
24
|
+
* @param id - 场景对象的唯一标识
|
|
25
|
+
* @param style - 标签样式配置(CzmLabel 类型)
|
|
26
|
+
* @param objectInfo - 屏幕对象的基础信息
|
|
27
|
+
* @returns 新创建screenObject标识
|
|
28
|
+
* 功能说明:
|
|
29
|
+
* 1. 检查并初始化对象映射表
|
|
30
|
+
* 2. 创建 Cesium 标签并设置位置、文本等属性
|
|
31
|
+
* 3. 记录标签与场景对象的关联关系
|
|
32
|
+
* 4. 绑定响应式变量以支持动态更新
|
|
33
|
+
*/
|
|
34
|
+
addLabel(id: SceneObjectKey, style: CzmLabel, objectInfo: ESJScreenObjectInfo): string;
|
|
35
|
+
/**
|
|
36
|
+
* 向图层添加图像(广告牌)对象
|
|
37
|
+
* @param id - 场景对象的唯一标识
|
|
38
|
+
* @param style - 广告牌样式配置(CzmBillboard 类型)
|
|
39
|
+
* @param objectInfo - 屏幕对象的基础信息
|
|
40
|
+
* @returns 新创建screenObject标识
|
|
41
|
+
* 功能说明:
|
|
42
|
+
* 1. 检查并初始化对象映射表
|
|
43
|
+
* 2. 创建 Cesium 广告牌并设置位置等属性
|
|
44
|
+
* 3. 记录广告牌与场景对象的关联关系
|
|
45
|
+
* 4. 绑定响应式变量以支持动态更新
|
|
46
|
+
*/
|
|
47
|
+
addImage(id: SceneObjectKey, style: CzmBillboard, objectInfo: ESJScreenObjectInfo): string;
|
|
48
|
+
/**
|
|
49
|
+
* 向图层添加矩形对象
|
|
50
|
+
* @param id - 场景对象的唯一标识
|
|
51
|
+
* @param style - 矩形样式配置(键值对形式)
|
|
52
|
+
* @param objectInfo - 屏幕对象的基础信息
|
|
53
|
+
* @param callback - 矩形操作的回调函数
|
|
54
|
+
* @returns 新创建screenObject标识
|
|
55
|
+
* 功能说明:
|
|
56
|
+
* 1. 检查并初始化对象映射表
|
|
57
|
+
* 2. 创建自定义矩形并设置位置、样式等属性
|
|
58
|
+
* 3. 执行回调函数通知矩形创建结果
|
|
59
|
+
* 4. 记录矩形与场景对象的关联关系
|
|
60
|
+
*/
|
|
61
|
+
addRectangle(id: SceneObjectKey, style: Record<string, any>, objectInfo: ESJScreenObjectInfo, callback: Function): string;
|
|
62
|
+
/**
|
|
63
|
+
* 更新指定对象的样式
|
|
64
|
+
* @param screenObjectIds - 对象的类型ID集合
|
|
65
|
+
* @param styleObj - 新的样式配置(键值对形式)
|
|
66
|
+
* @returns 如果更新成功返回 true,否则返回 false
|
|
67
|
+
* 功能说明:
|
|
68
|
+
* 1. 查找目标对象并检查有效性
|
|
69
|
+
* 2. 遍历类型ID集合,更新对应对象的样式属性
|
|
70
|
+
*/
|
|
71
|
+
update(screenObjectIds: Set<string> | string, styleObj: Partial<Record<ScreenObjectType | "all", CzmLabel | CzmBillboard | Record<string, any>>>): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* 从图层中移除对象
|
|
74
|
+
* @param removeInfo - 对象的类型ID集合(用于精确移除)
|
|
75
|
+
* @returns 如果移除成功返回 true,否则返回 false
|
|
76
|
+
*/
|
|
77
|
+
remove(removeInfo: Set<string> | string | Partial<Record<ScreenObjectType, string | Set<string>>>, forceRemove?: boolean): boolean;
|
|
78
|
+
/** 统一生成安全 ID */
|
|
79
|
+
private makeScreenObjectId;
|
|
80
|
+
/** 获取或创建 ScreenObject */
|
|
81
|
+
private getOrCreateObject;
|
|
82
|
+
/** 如果对象三种类型都没有了,则删除该 screenObject */
|
|
83
|
+
private tryDeleteEmpty;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=ScreenLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenLayer.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAoB,cAAc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AC,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,GAAE,OAAe;IA2D/H,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAG1B,yBAAyB;IACzB,OAAO,CAAC,iBAAiB;IAQzB,qCAAqC;IACrC,OAAO,CAAC,cAAc;CAOzB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Destroyable, Event, SceneObjectKey } from "earthsdk3";
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export declare const ScreenObjectTypes: readonly ["label", "billboard", "rectangle"];
|
|
4
|
+
export type ScreenObjectType = typeof ScreenObjectTypes[number];
|
|
5
|
+
/**
|
|
6
|
+
* 储存相同位置下的对象的信息
|
|
7
|
+
* 代表一个场景对象
|
|
8
|
+
* 可持有 label、billboard、rectangle 等多种显示元素
|
|
9
|
+
* 包含 position, zOrder 等属性
|
|
10
|
+
* 包含 show方法
|
|
11
|
+
* 自动管理 Label <=> Billboard <=> Rectangle 关联
|
|
12
|
+
*/
|
|
13
|
+
export declare class ScreenObject extends Destroyable {
|
|
14
|
+
id: string;
|
|
15
|
+
position: Cesium.Cartesian3;
|
|
16
|
+
label: Cesium.Label | undefined;
|
|
17
|
+
billboard: Cesium.Billboard | undefined;
|
|
18
|
+
rectangle: Record<string, any> | undefined;
|
|
19
|
+
zOrder: number | undefined;
|
|
20
|
+
labelRefCount: number;
|
|
21
|
+
billboardRefCount: number;
|
|
22
|
+
rectangleRefCount: number;
|
|
23
|
+
private _showEvent;
|
|
24
|
+
get showEvent(): Event<[boolean]>;
|
|
25
|
+
show(show: boolean): void;
|
|
26
|
+
constructor(id: SceneObjectKey, position: Cesium.Cartesian3);
|
|
27
|
+
updateShow(show: boolean): void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ScreenObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenObject.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,eAAO,MAAM,iBAAiB,8CAA+C,CAAC;AAC9E,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAChE;;;;;;;GAOG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACzC,EAAE,SAAgB;IAClB,QAAQ,EAAE,MAAM,CAAC,UAAU,CAA0B;IACrD,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,SAAS,CAAa;IAC5C,SAAS,EAAE,MAAM,CAAC,SAAS,GAAG,SAAS,CAAa;IACpD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAa;IACvD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IACvC,aAAa,EAAE,MAAM,CAAK;IAC1B,iBAAiB,EAAE,MAAM,CAAK;IAC9B,iBAAiB,EAAE,MAAM,CAAK;IAC9B,OAAO,CAAC,UAAU,CAA2C;IAC7D,IAAI,SAAS,qBAA8B;IAC3C,IAAI,CAAC,IAAI,EAAE,OAAO;gBACN,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC,UAAU;IAQ3D,UAAU,CAAC,IAAI,EAAE,OAAO;CAK3B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Destroyable } from "earthsdk3";
|
|
2
|
+
import * as Cesium from "cesium";
|
|
3
|
+
export interface ScreenObjectPoolOptions {
|
|
4
|
+
minPoolRatio?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class ScreenObjectPool<T extends Cesium.Label | Cesium.Billboard> extends Destroyable {
|
|
7
|
+
private _collection;
|
|
8
|
+
private _pool;
|
|
9
|
+
private _minPoolRatio;
|
|
10
|
+
private _initialSize;
|
|
11
|
+
constructor(_collection: Cesium.LabelCollection | Cesium.BillboardCollection, initialSize?: number, options?: ScreenObjectPoolOptions);
|
|
12
|
+
get(style?: Partial<T>): T;
|
|
13
|
+
get(count: number, style?: Partial<T>): T[];
|
|
14
|
+
release(obj: T): void;
|
|
15
|
+
release(obj: T[]): void;
|
|
16
|
+
/** 更新对象样式 */
|
|
17
|
+
update(p: T, style?: Partial<T>): void;
|
|
18
|
+
/** 当前池中可用对象数量 */
|
|
19
|
+
get available(): number;
|
|
20
|
+
/** 从 Collection 中彻底移除对象 */
|
|
21
|
+
private removeFromCollection;
|
|
22
|
+
/** 获取单个对象,池空时自动扩容 */
|
|
23
|
+
private _getOne;
|
|
24
|
+
/**
|
|
25
|
+
* 动态回收池中多余对象
|
|
26
|
+
* 保持 pool 不低于 initialSize
|
|
27
|
+
* 同时保持 pool 数量约为 collection 长度的 minPoolRatio
|
|
28
|
+
*/
|
|
29
|
+
private _dynamicRecycle;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ScreenObjectPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenObjectPool.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenObjectPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,WAAW,uBAAuB;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,qBAAa,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAE,SAAQ,WAAW;IAKpF,OAAO,CAAC,WAAW;IAJvB,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;gBAEjB,WAAW,EAAE,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,mBAAmB,EACxE,WAAW,GAAE,MAAY,EACzB,OAAO,GAAE,uBAA+C;IAuB5D,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;IAoB3C,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI;IACrB,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,IAAI;IAcvB,aAAa;IACb,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IAgB/B,iBAAiB;IACjB,IAAI,SAAS,WAEZ;IAED,2BAA2B;IAC3B,OAAO,CAAC,oBAAoB;IAQ5B,qBAAqB;IACrB,OAAO,CAAC,OAAO;IAaf;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAS1B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Destroyable, SceneObjectKey } from "earthsdk3";
|
|
2
|
+
import { ScreenLayer } from "./ScreenLayer";
|
|
3
|
+
import { ESJScreenLayerInfo, ESJScreenObjectInfo, ESJScreenRules, Event } from "earthsdk3";
|
|
4
|
+
import * as Cesium from 'cesium';
|
|
5
|
+
import { CzmBillboard, CzmLabel, ESCesiumViewer } from "../../../index";
|
|
6
|
+
import { ScreenObjectType } from "./ScreenObject";
|
|
7
|
+
import { AvoidanceManager } from "./AvoidanceManager";
|
|
8
|
+
import { CustomCollection } from "./CustomCollection";
|
|
9
|
+
import { ScreenObjectPool } from "./ScreenObjectPool";
|
|
10
|
+
export declare class ScreenManager extends Destroyable {
|
|
11
|
+
layers: Map<string, ScreenLayer>;
|
|
12
|
+
czmViewer: ESCesiumViewer;
|
|
13
|
+
viewer: Cesium.Viewer;
|
|
14
|
+
avoidanceManager: AvoidanceManager;
|
|
15
|
+
labelCollection: ScreenObjectPool<Cesium.Label>;
|
|
16
|
+
billboardCollection: ScreenObjectPool<Cesium.Billboard>;
|
|
17
|
+
rectangleCollection: CustomCollection;
|
|
18
|
+
canvasCollection: CustomCollection;
|
|
19
|
+
/** 集合映射,方便统一处理 */
|
|
20
|
+
collectionMap: Record<ScreenObjectType, any>;
|
|
21
|
+
private _refreshEvent;
|
|
22
|
+
get refreshEvent(): Event<[]>;
|
|
23
|
+
refresh(): void;
|
|
24
|
+
constructor(_czmViewer: ESCesiumViewer);
|
|
25
|
+
getLayer(layerName: string): ScreenLayer;
|
|
26
|
+
addLabel(id: SceneObjectKey, layer: string, style: CzmLabel, objectInfo: ESJScreenObjectInfo): {
|
|
27
|
+
layer: string;
|
|
28
|
+
id: string;
|
|
29
|
+
screenObjectId: string;
|
|
30
|
+
};
|
|
31
|
+
addImage(id: SceneObjectKey, layer: string, style: CzmBillboard, objectInfo: ESJScreenObjectInfo): {
|
|
32
|
+
layer: string;
|
|
33
|
+
id: string;
|
|
34
|
+
screenObjectId: string;
|
|
35
|
+
};
|
|
36
|
+
addRectangle(id: SceneObjectKey, layer: string, style: {
|
|
37
|
+
[xx: string]: any;
|
|
38
|
+
}, objectInfo: ESJScreenObjectInfo, callback: Function): {
|
|
39
|
+
layer: string;
|
|
40
|
+
id: string;
|
|
41
|
+
screenObjectId: string;
|
|
42
|
+
};
|
|
43
|
+
update(layer: ESJScreenLayerInfo["layer"], id: ESJScreenLayerInfo["id"], screenObjectIds: ESJScreenLayerInfo["screenObjectId"], style: Partial<Record<ScreenObjectType | "all", CzmLabel | CzmBillboard | Record<string, any>>>): boolean;
|
|
44
|
+
remove(layer: ESJScreenLayerInfo["layer"], id: ESJScreenLayerInfo["id"], removeInfo: Set<string> | string | Partial<Record<ScreenObjectType, string | Set<string>>>, forceRemove?: boolean): void;
|
|
45
|
+
setRules(rules: ESJScreenRules, layer?: ESJScreenLayerInfo["layer"]): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/ScreenManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,qBAAa,aAAc,SAAQ,WAAW;IAC1C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAC7C,SAAS,EAAE,cAAc,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,eAAe,EAAE,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,mBAAmB,EAAE,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxD,mBAAmB,EAAE,gBAAgB,CAAmC;IACxE,gBAAgB,EAAE,gBAAgB,CAAmC;IACrE,kBAAkB;IAClB,aAAa,EAAE,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAE7C,OAAO,C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 -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/ScreenManager/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,YAAY,EAAuC,MAAM,gBAAgB,CAAC;AACnF,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,oBAwBzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerrainManager.d.ts","sourceRoot":"","sources":["../../../../src/ESCesiumViewer/ViewerExtensions/TerrainManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8D,WAAW,EAAS,MAAM,WAAW,CAAC;AAC3G,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,qBAAa,cAAe,SAAQ,WAAW;IAQ/B,OAAO,CAAC,OAAO;IAP3B,OAAO,CAAC,WAAW,CAA4C;IAC/D,OAAO,CAAC,iBAAiB,CAAqC;IAC9D,OAAO,CAAC,UAAU;IAClB,OAAO,KAAK,QAAQ,GAAmD;IAEhE,eAAe,EAAE,iBAAiB,GAAG,SAAS,CAAC;gBAElC,OAAO,EAAE,MAAM,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"TerrainManager.d.ts","sourceRoot":"","sources":["../../../../src/ESCesiumViewer/ViewerExtensions/TerrainManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8D,WAAW,EAAS,MAAM,WAAW,CAAC;AAC3G,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,qBAAa,cAAe,SAAQ,WAAW;IAQ/B,OAAO,CAAC,OAAO;IAP3B,OAAO,CAAC,WAAW,CAA4C;IAC/D,OAAO,CAAC,iBAAiB,CAAqC;IAC9D,OAAO,CAAC,UAAU;IAClB,OAAO,KAAK,QAAQ,GAAmD;IAEhE,eAAe,EAAE,iBAAiB,GAAG,SAAS,CAAC;gBAElC,OAAO,EAAE,MAAM,CAAC,MAAM;IAiC1C,GAAG,CAAC,OAAO,EAAE,iBAAiB;IAkB9B,MAAM,CAAC,OAAO,EAAE,iBAAiB;CAiBpC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Destroyable } from "earthsdk3";
|
|
2
|
+
type TileEvent = {
|
|
3
|
+
tileKey: string;
|
|
4
|
+
featureId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
data?: any;
|
|
7
|
+
};
|
|
8
|
+
export declare class EventManager extends Destroyable {
|
|
9
|
+
callbacks: Map<string, Set<Function>>;
|
|
10
|
+
constructor();
|
|
11
|
+
registerEvent(tileKey: string, eventType: string, callback: Function): void;
|
|
12
|
+
dispatchEvent(event: TileEvent): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=EventManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventManager.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,KAAK,SAAS,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAClF,qBAAa,YAAa,SAAQ,WAAW;IACzC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAa;;IAIlD,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAKpE,aAAa,CAAC,KAAK,EAAE,SAAS;CAIjC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Destroyable, SceneObjectKey } from "earthsdk3";
|
|
2
|
+
import { CzmESMVTLayer } from '../../../index';
|
|
3
|
+
import { BackgroundLayerSpecification, LayerSpecification } from "../../../CzmObjects/base/InnerClass/CzmImagery/extends/type";
|
|
4
|
+
export type LayerStyle = Exclude<LayerSpecification, BackgroundLayerSpecification> & {
|
|
5
|
+
labelStyle?: any;
|
|
6
|
+
billboardStyle?: any;
|
|
7
|
+
polygonStyle?: any;
|
|
8
|
+
polylineStyle?: any;
|
|
9
|
+
};
|
|
10
|
+
export declare class StyleManager extends Destroyable {
|
|
11
|
+
defaultStyle: Map<SceneObjectKey, Set<LayerStyle>>;
|
|
12
|
+
defaultSprite: Map<SceneObjectKey, [string, Record<string, {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
pixelRatio: number;
|
|
18
|
+
}>]>;
|
|
19
|
+
constructor();
|
|
20
|
+
add(czmESMVTLayer: CzmESMVTLayer): Promise<void>;
|
|
21
|
+
remove(czmESMVTLayer: CzmESMVTLayer): void;
|
|
22
|
+
setDefaultStyle(sceneObjectId: SceneObjectKey, style: LayerStyle): void;
|
|
23
|
+
getStyle(sceneObjectId: SceneObjectKey): Set<LayerStyle>;
|
|
24
|
+
/**
|
|
25
|
+
* 从MVTLayers的样式中获取Cesium的Label或Billboard样式
|
|
26
|
+
* @param layerStyle MVTLayers的样式
|
|
27
|
+
* @returns 样式
|
|
28
|
+
*/
|
|
29
|
+
/** //TODO
|
|
30
|
+
* icon-allow-overlap 图标是否允许重叠
|
|
31
|
+
* icon-color-brightness-max 图标最大亮度
|
|
32
|
+
* icon-color-brightness-min 图标最小亮度
|
|
33
|
+
*/
|
|
34
|
+
getStyleFromMVTLayers(sceneObjectId: SceneObjectKey, sourceLayer: {
|
|
35
|
+
[xx: string]: any;
|
|
36
|
+
}): LayerStyle;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=StyleManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleManager.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAgB,aAAa,EAAyC,MAAM,6BAA6B,CAAC;AAEjH,OAAO,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AAC5I,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,GAAG;IACjF,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;CACvB,CAAA;AAED,qBAAa,YAAa,SAAQ,WAAW;IACzC,YAAY,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAa;IAC/D,aAAa,EAAE,GAAG,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC,CAAa;;IAIhJ,GAAG,CAAC,aAAa,EAAE,aAAa;IActC,MAAM,CAAC,aAAa,EAAE,aAAa;IAGnC,eAAe,CAAC,aAAa,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU;IAQhE,QAAQ,CAAC,aAAa,EAAE,cAAc;IAGtC;;;;OAIG;IACH;;;;OAIG;IACH,qBAAqB,CAAC,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAgE1F"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { sourceName } from "./index";
|
|
2
|
+
import { Destroyable, SceneObjectKey } from "earthsdk3";
|
|
3
|
+
import { CzmESMVTLayer } from "../../../CzmObjects";
|
|
4
|
+
import { TileNode } from './TileNode';
|
|
5
|
+
import { TilesCache } from "./TilesCache.";
|
|
6
|
+
import { WorkerPool } from "./WorkerPool";
|
|
7
|
+
/**
|
|
8
|
+
* 瓦片加载器
|
|
9
|
+
* 只负责加载瓦片数据并解析为GeoJson格式
|
|
10
|
+
*/
|
|
11
|
+
export declare class TileLoader extends Destroyable {
|
|
12
|
+
tilesCache: TilesCache;
|
|
13
|
+
/**
|
|
14
|
+
* 等待请求的瓦片服务
|
|
15
|
+
*/
|
|
16
|
+
pendingRequests: Map<SceneObjectKey, Set<string>>;
|
|
17
|
+
/**
|
|
18
|
+
* 数据源
|
|
19
|
+
*/
|
|
20
|
+
sourcesMap: Map<SceneObjectKey, Map<sourceName, {
|
|
21
|
+
tiles: string[] | string;
|
|
22
|
+
type: "vector";
|
|
23
|
+
minzoom?: number;
|
|
24
|
+
maxzoom?: number;
|
|
25
|
+
}>>;
|
|
26
|
+
workerPool: WorkerPool;
|
|
27
|
+
/**
|
|
28
|
+
* 切片方案
|
|
29
|
+
* xyz: 谷歌瓦片方案
|
|
30
|
+
* tms: 瓦片服务方案
|
|
31
|
+
*/
|
|
32
|
+
tileSchemes: Map<SceneObjectKey, "xyz" | "tms">;
|
|
33
|
+
constructor(tilesCache: TilesCache);
|
|
34
|
+
add(czmESMVTLayer: CzmESMVTLayer): void;
|
|
35
|
+
remove(czmESMVTLayer: CzmESMVTLayer): void;
|
|
36
|
+
fetchTile(sceneObjectId: SceneObjectKey, tileKey: string): Promise<TileNode | undefined>;
|
|
37
|
+
private fetchUrl;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=TileLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileLoader.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;GAGG;AACH,qBAAa,UAAW,SAAQ,WAAW;IAqBpB,UAAU,EAAE,UAAU;IApBzC;;OAEG;IACH,eAAe,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAa;IAC9D;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,UAAU,EAAE;QAC5C,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACzB,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB,CAAC,CAAC,CAAa;IAChB,UAAU,EAAE,UAAU,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,KAAK,GAAG,KAAK,CAAC,CAAa;gBACzC,UAAU,EAAE,UAAU;IAIzC,GAAG,CAAC,aAAa,EAAE,aAAa;IA2BhC,MAAM,CAAC,aAAa,EAAE,aAAa;IAM7B,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;IAuC9F,OAAO,CAAC,QAAQ;CAkBnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Destroyable } from "earthsdk3";
|
|
2
|
+
import { FeatureDate, layerName, sourceName, TileKey, TileNodeState } from ".";
|
|
3
|
+
export declare class TileNode extends Destroyable {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
z: number;
|
|
7
|
+
tileKey: TileKey;
|
|
8
|
+
parent: TileNode | null;
|
|
9
|
+
children: Set<TileNode>;
|
|
10
|
+
data: Map<sourceName, Map<layerName, Set<FeatureDate>>>;
|
|
11
|
+
state: TileNodeState;
|
|
12
|
+
constructor(tileKey: TileKey);
|
|
13
|
+
fillParentAndChildren(tileCache: Map<TileKey, TileNode | undefined>): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=TileNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileNode.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAE/E,qBAAa,QAAS,SAAQ,WAAW;IACrC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAQ;IAC/B,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAa;IACpC,IAAI,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAa;IAEpE,KAAK,EAAE,aAAa,CAA0B;gBAIlC,OAAO,EAAE,OAAO;IAK5B,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAC;CAQtE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ScreenManager } from "../../../ESCesiumViewer";
|
|
2
|
+
import { Destroyable, SceneObjectKey } from "earthsdk3";
|
|
3
|
+
import { StyleManager } from "./StyleManager";
|
|
4
|
+
import { TileKey } from "./index";
|
|
5
|
+
import { TileNode } from "./TileNode";
|
|
6
|
+
/**
|
|
7
|
+
* 瓦片渲染器
|
|
8
|
+
* 将解析后的GeoJson点数据通过屏幕管理器渲染到屏幕上
|
|
9
|
+
*/
|
|
10
|
+
export declare class TileRenderer extends Destroyable {
|
|
11
|
+
screenManager: ScreenManager;
|
|
12
|
+
styleManager: StyleManager;
|
|
13
|
+
/**
|
|
14
|
+
* 加载的瓦片对应的屏幕对象id
|
|
15
|
+
*/
|
|
16
|
+
renderedTiles: Map<SceneObjectKey, Map<TileKey, Set<string>>>;
|
|
17
|
+
constructor(screenManager: ScreenManager, styleManager: StyleManager);
|
|
18
|
+
renderTile(sceneObjectId: SceneObjectKey, tileNode: TileNode): void;
|
|
19
|
+
update(sceneObjectId: SceneObjectKey, screenObjectIds: Set<string>, show: boolean): void;
|
|
20
|
+
update(sceneObjectId: SceneObjectKey, tileKey: string, show: boolean): void;
|
|
21
|
+
remove(sceneObjectId: SceneObjectKey, tileKey?: string): void;
|
|
22
|
+
removeAll(): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=TileRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAKtB,aAAa,EAAE,aAAa;IAAS,YAAY,EAAE,YAAY;IAJlF;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAa;gBACvD,aAAa,EAAE,aAAa,EAAS,YAAY,EAAE,YAAY;IAGlF,UAAU,CAAC,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ;IA6C5D,MAAM,CAAC,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IACxF,MAAM,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAS3E,MAAM,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM;IAqBtD,SAAS;CAMZ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Destroyable, Event, SceneObjectKey } from "earthsdk3";
|
|
2
|
+
import { TileKey } from "./index";
|
|
3
|
+
import { CzmESMVTLayer } from "../../../CzmObjects";
|
|
4
|
+
import { TileNode } from "./TileNode";
|
|
5
|
+
/**
|
|
6
|
+
* 瓦片缓存
|
|
7
|
+
* 缓存请求的xyz瓦片数据,超过缓存数量后,将最旧的瓦片删除
|
|
8
|
+
*/
|
|
9
|
+
export declare class TilesCache extends Destroyable {
|
|
10
|
+
cache: Map<SceneObjectKey, Map<TileKey, TileNode | undefined>>;
|
|
11
|
+
maxSize: number;
|
|
12
|
+
private _deleteTileEvent;
|
|
13
|
+
get deleteTileEvent(): Event<[string, string | undefined]>;
|
|
14
|
+
deleteTile(sceneObjectId: SceneObjectKey, tileKey?: TileKey): void;
|
|
15
|
+
constructor();
|
|
16
|
+
has(sceneObjectId: SceneObjectKey, tileKey?: TileKey): boolean;
|
|
17
|
+
get(sceneObjectId: SceneObjectKey): Map<TileKey, TileNode | undefined> | undefined;
|
|
18
|
+
get(sceneObjectId: SceneObjectKey, tileKey: TileKey): TileNode | undefined;
|
|
19
|
+
set(sceneObjectId: SceneObjectKey, tileKey: TileKey, tileNode: TileNode | undefined): void;
|
|
20
|
+
remove(sceneObject: SceneObjectKey): void;
|
|
21
|
+
remove(sceneObject: CzmESMVTLayer): void;
|
|
22
|
+
remove(sceneObject: SceneObjectKey, tileKey: TileKey): void;
|
|
23
|
+
remove(sceneObject: CzmESMVTLayer, tileKey: TileKey): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=TilesCache..d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TilesCache..d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TilesCache..ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC;;;GAGG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACvC,KAAK,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAa;IAC3E,OAAO,EAAE,MAAM,CAAO;IAEtB,OAAO,CAAC,gBAAgB,CAAuE;IAC/F,IAAI,eAAe,wCAAoC;IACvD,UAAU,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,OAAO;;IAI3D,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO;IAO9D,GAAG,CAAC,aAAa,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAC,GAAG,SAAS;IAClF,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS;IAc1E,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAG,SAAS;IAgBnF,MAAM,CAAC,WAAW,EAAE,cAAc,GAAG,IAAI;IACzC,MAAM,CAAC,WAAW,EAAE,aAAa,GAAG,IAAI;IACxC,MAAM,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IAC3D,MAAM,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;CAa7D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Destroyable } from "earthsdk3";
|
|
2
|
+
export declare class WorkerPool extends Destroyable {
|
|
3
|
+
private workers;
|
|
4
|
+
private queue;
|
|
5
|
+
private destroyed;
|
|
6
|
+
constructor(url: string | URL, workerCount?: number, workerOptions?: WorkerOptions);
|
|
7
|
+
/**
|
|
8
|
+
* 获取空闲 worker,如果都被占用,则等待
|
|
9
|
+
*/
|
|
10
|
+
acquire(): Promise<Worker>;
|
|
11
|
+
/**
|
|
12
|
+
* 释放 worker,如果有等待队列,则直接分配给排队的请求
|
|
13
|
+
*/
|
|
14
|
+
release(worker: Worker): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=WorkerPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkerPool.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/WorkerPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,qBAAa,UAAW,SAAQ,WAAW;IACvC,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,SAAS,CAAS;gBAEd,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa;IA8BlF;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAgB1B;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM;CAWzB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Destroyable, SceneObjectKey } from "earthsdk3";
|
|
2
|
+
import { TilesCache } from "./TilesCache.";
|
|
3
|
+
import { TileLoader } from "./TileLoader";
|
|
4
|
+
import { TileRenderer } from "./TileRenderer";
|
|
5
|
+
import { StyleManager } from "./StyleManager";
|
|
6
|
+
import { EventManager } from "./EventManager";
|
|
7
|
+
import { CzmESMVTLayer } from "../../../index";
|
|
8
|
+
import * as Cesium from 'cesium';
|
|
9
|
+
/**
|
|
10
|
+
* Viewer Camera/LOD
|
|
11
|
+
* ↓
|
|
12
|
+
* VectorTilesManager.refreshVisibleTiles()
|
|
13
|
+
* ↓
|
|
14
|
+
* TilesCache / TileLoader (异步请求 & 缓存)
|
|
15
|
+
* ↓
|
|
16
|
+
* TileRenderer.renderTile()
|
|
17
|
+
* ↓
|
|
18
|
+
* StyleManager.applyStyle()
|
|
19
|
+
* ↓
|
|
20
|
+
* EventManager 绑定事件
|
|
21
|
+
*/
|
|
22
|
+
export interface FeatureDate {
|
|
23
|
+
id: string | number;
|
|
24
|
+
geometry: any;
|
|
25
|
+
properties: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
export type TileKey = string;
|
|
28
|
+
export type sourceName = string;
|
|
29
|
+
export type layerName = string;
|
|
30
|
+
export declare const enum TileNodeState {
|
|
31
|
+
UNLOADED = 0,//未被请求
|
|
32
|
+
LOADING = 1,//正在下载
|
|
33
|
+
PROCESSING = 2,//正在处理
|
|
34
|
+
READY = 3,//下载完成
|
|
35
|
+
EXPIRED = 4,//过期
|
|
36
|
+
FAILED = 5
|
|
37
|
+
}
|
|
38
|
+
export declare class VectorTilesManager extends Destroyable {
|
|
39
|
+
viewer: Cesium.Viewer;
|
|
40
|
+
czmESMVTLayers: Map<SceneObjectKey, CzmESMVTLayer>;
|
|
41
|
+
tilesCache: TilesCache;
|
|
42
|
+
tileLoader: TileLoader;
|
|
43
|
+
tileRenderer: TileRenderer;
|
|
44
|
+
styleManager: StyleManager;
|
|
45
|
+
eventManager: EventManager;
|
|
46
|
+
lastImageryTileMap: Map<SceneObjectKey, Set<TileKey>>;
|
|
47
|
+
constructor(viewer: Cesium.Viewer);
|
|
48
|
+
add(czmESMVTLayer: CzmESMVTLayer): Promise<void>;
|
|
49
|
+
remove(czmESMVTLayer: CzmESMVTLayer): void;
|
|
50
|
+
refreshVisibleTiles(forceUpdate?: boolean): void;
|
|
51
|
+
updateTiles(tileMap: Map<SceneObjectKey, Set<TileKey>>, forceUpdate?: boolean): void;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC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WAAW,CAAC,EAAE,OAAO;CAuDhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAmGzF;AACD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,yBAoE9D"}
|
package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/vectorTilesWorker.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorTilesWorker.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/VectorTilesManager/vectorTilesWorker.ts"],"names":[],"mappings":""}
|
|
@@ -5,12 +5,14 @@ import { Destroyable } from "earthsdk3";
|
|
|
5
5
|
import * as Cesium from "cesium";
|
|
6
6
|
import { PickingManager } from "./PickingManager";
|
|
7
7
|
import { CzmPoisContext } from "../../CzmObjects";
|
|
8
|
-
import { ESCesiumViewer } from "..";
|
|
8
|
+
import { ESCesiumViewer, ScreenManager } from "..";
|
|
9
9
|
import { CursorPositionInfo } from "./CursorPositionInfo";
|
|
10
|
+
import { VectorTilesManager } from "./VectorTilesManager";
|
|
10
11
|
export * from './TerrainManager';
|
|
11
12
|
export * from './LabelManager';
|
|
12
13
|
export * from './ImageriesManager';
|
|
13
14
|
export * from './PickingManager';
|
|
15
|
+
export * from './ScreenManager';
|
|
14
16
|
export declare function getViewerExtensions(viewer: Cesium.Viewer): ViewerExtensions | undefined;
|
|
15
17
|
export declare function setViewerExtensions(viewer: Cesium.Viewer, viewerExtensions: ViewerExtensions | undefined): void;
|
|
16
18
|
export declare class ViewerExtensions extends Destroyable {
|
|
@@ -30,6 +32,10 @@ export declare class ViewerExtensions extends Destroyable {
|
|
|
30
32
|
get poiContext(): CzmPoisContext;
|
|
31
33
|
private _cursorPositionInfo;
|
|
32
34
|
get cursorPositionInfo(): CursorPositionInfo;
|
|
35
|
+
private _screenManager;
|
|
36
|
+
get screenManager(): ScreenManager;
|
|
37
|
+
private _vectorTIlesManager;
|
|
38
|
+
get vectorTIlesManager(): VectorTilesManager;
|
|
33
39
|
constructor(_viewer: Cesium.Viewer, _czmViewer: ESCesiumViewer);
|
|
34
40
|
}
|
|
35
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ESCesiumViewer/ViewerExtensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ESCesiumViewer/ViewerExtensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAwB,WAAW,EAA0B,MAAM,WAAW,CAAC;AACtF,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE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+
{"version":3,"file":"ViewerInstance.d.ts","sourceRoot":"","sources":["../../../src/ESCesiumViewer/ViewerInstance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAuB,MAAM,GAAG,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAsC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,qBAAa,cAAe,SAAQ,WAAW;IA4E/B,OAAO,CAAC,UAAU;IAAkB,OAAO,CAAC,OAAO;IA3E/D,IAAI,SAAS,mBAA8B;IAC3C,IAAI,MAAM,kBAA2B;IAGrC,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,IAAI,iBAAiB,sBAAsC;IAE3D,OAAO,CAAC,WAAW,CAAc;IACjC,IAAI,UAAU,eAA+B;IAG7C,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAsC9C;IAED,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAsBhD;gBAEmB,UAAU,EAAE,cAAc,EAAU,OAAO,EAAE,MAAM,CAAC,MAAM;IA4T9E,OAAO,CAAC,IAAI,CAA4F;CAI3G"}
|
|
@@ -121,8 +121,8 @@ export declare class ESCesiumViewer extends ESViewer {
|
|
|
121
121
|
position: [number, number, number];
|
|
122
122
|
rotation: [number, number, number];
|
|
123
123
|
} | undefined;
|
|
124
|
-
transformFlyParam(
|
|
125
|
-
transformFlyParam(
|
|
124
|
+
transformFlyParam(position: ESJVector3D, flyParam: ESJFlyInParam): ESJFlyToParam | undefined;
|
|
125
|
+
transformFlyParam(position: ESJVector3D, flyParam: ESJFlyToParam): ESJFlyInParam | undefined;
|
|
126
126
|
getLengthInPixel(): number;
|
|
127
127
|
changeToWalk(position: ESJVector3D, jumpZVelocity?: number, eyeHeight?: number): void;
|
|
128
128
|
changeToMap(): void;
|
|
@@ -170,7 +170,7 @@ export declare class ESCesiumViewer extends ESViewer {
|
|
|
170
170
|
initialRotationMode?: RotationModeType;
|
|
171
171
|
originScale?: ESJVector3D;
|
|
172
172
|
}, localPositons: ESJVector3D[]): [positons: [number, number, number][], modelMatrix: import("../utils").NativeNumber16Type];
|
|
173
|
-
isPointVisible(position: ESJVector3D): boolean;
|
|
173
|
+
isPointVisible(position: ESJVector3D | Cesium.Cartesian3): boolean;
|
|
174
174
|
getESProperties(): {
|
|
175
175
|
more: import("earthsdk3").Property[];
|
|
176
176
|
defaultMenu: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ESCesiumViewer/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAgD,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAoB,WAAW,EAAwB,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAyM,MAAM,WAAW,CAAC;AACvd,OAAO,EAAkG,YAAY,EAAE,MAAM,WAAW,CAAC;AACzI,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAA8K,gBAAgB,EAAyB,MAAM,UAAU,CAAC;AAG/O,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC;;GAEG;AACH,qBAAa,cAAe,SAAQ,QAAQ;IACxC,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAyC;IAE7D,MAAM,CAAC,iBAAiB,2BAAqB;IAC7C,MAAM,CAAC,yBAAyB,SAAiC;IACjE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