@skzz/components-gis 0.1.3 → 0.1.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.
@@ -10,9 +10,12 @@ declare class ShpZztsLayer {
10
10
  id: any;
11
11
  calTilesUrl: any;
12
12
  tileUrl: any;
13
+ layerDataUrl: any;
13
14
  opacity: number;
14
15
  batchSize: any;
15
16
  transitionDuration: any;
17
+ fetchConcurrency: number;
18
+ bulkTileThreshold: number;
16
19
  pointSize: number;
17
20
  displayRange: {
18
21
  west: number;
@@ -34,7 +37,9 @@ declare class ShpZztsLayer {
34
37
  currentLod: number;
35
38
  lodPrimitives: Map<any, any>;
36
39
  transitionAnimId: number | null;
37
- requestInProgress: boolean;
40
+ tileCache: Map<any, any>;
41
+ bulkCache: Map<any, any>;
42
+ activeAbort: AbortController | null;
38
43
  renderRequestToken: number;
39
44
  debounceTimer: number | null;
40
45
  destroyed: boolean;
@@ -73,17 +78,26 @@ declare class ShpZztsLayer {
73
78
  _destroyLodPrimitives(lod: any): void;
74
79
  _clearRenderedPrimitives(): void;
75
80
  _crossFadeLod(oldLod: any, newLod: any): void;
76
- _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): {
77
- primitive: Cesium.PointPrimitiveCollection;
78
- instanceIds: number[];
79
- instanceColors: Cesium.Color[];
80
- pointPrimitives: Cesium.PointPrimitive[];
81
- pointColors: Cesium.Color[];
82
- }[];
83
- _getVectorTileData(geosot: any, level: any): Promise<{
81
+ /**
82
+ * @param entriesSink 渐进渲染时传入本轮共享的 entries 数组:
83
+ * 多次 flush 的图元累积到同一列表(lodPrimitives 只认这个列表),
84
+ * 不传则使用本次调用的局部列表(一次性渲染路径)。
85
+ */
86
+ _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any, entriesSink: any): any;
87
+ _getVectorTileData(geosot: any, level: any, signal: any): Promise<{
84
88
  geosot: any;
85
89
  data: any;
86
90
  }>;
91
+ /**
92
+ * 拉取单个瓦片并解析为几何体(带 LRU 缓存)。
93
+ * 空瓦片也缓存(空数组):该格网本 LOD 无要素,平移回看时不再重复请求。
94
+ */
95
+ _fetchTileGeometries(geosot: any, level: any, signal: any): Promise<any>;
96
+ /**
97
+ * 整图层批量拉取:新后端 /layer/3d/getVectorLayerData 一次返回该 LOD 全部要素。
98
+ * 与逐瓦片响应同一信封格式,复用同一解析器;结果按 LOD 缓存(仅缓存非空结果)。
99
+ */
100
+ _getLayerGeometries(level: any, signal: any): Promise<any>;
87
101
  loadAndRender(): Promise<void>;
88
102
  _onCameraMoveEnd(): void;
89
103
  _setupMoveHandler(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skzz/components-gis",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",