@skzz/components-gis 0.0.5 → 0.0.6

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.
@@ -11,6 +11,12 @@ declare class ShpZztsLayer {
11
11
  opacity: number;
12
12
  batchSize: any;
13
13
  transitionDuration: any;
14
+ _userColor: any;
15
+ dictCode: any;
16
+ serviceName: any;
17
+ enableServiceColor: boolean;
18
+ modelColorUrl: any;
19
+ modelColorCache: Map<any, any>;
14
20
  currentLod: number;
15
21
  lodPrimitives: Map<any, any>;
16
22
  transitionAnimId: number | null;
@@ -23,6 +29,16 @@ declare class ShpZztsLayer {
23
29
  groupKey: any;
24
30
  _moveHandler: (() => void) | null;
25
31
  _normOpacity(val: any): number;
32
+ /** 解析外部传入的颜色,未配置时回退默认淡蓝色 */
33
+ _resolveColor(): Cesium.Color;
34
+ isServiceColorEnabled(): boolean;
35
+ /**
36
+ * 按 feature_id 分批(800/批)查询配色索引,结果写入缓存。
37
+ * 返回 featureId -> color(css) 的 Map;未启用服务配色时返回空 Map。
38
+ */
39
+ loadModelColorsByIds(featureIds?: any[]): Promise<Map<any, any>>;
40
+ /** 按要素解析颜色:服务配色命中 > 用户统一色 > 默认淡蓝 */
41
+ _resolveFeatureColor(geom: any, colorMap: any): Cesium.Color;
26
42
  _getScreenBounds(): {
27
43
  region: number[];
28
44
  width: any;
@@ -31,7 +47,7 @@ declare class ShpZztsLayer {
31
47
  _updatePrimitiveAlpha(entries: any, alpha: any): void;
32
48
  _destroyLodPrimitives(lod: any): void;
33
49
  _crossFadeLod(oldLod: any, newLod: any): void;
34
- _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any): any[];
50
+ _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): any[];
35
51
  _getVectorTileData(geosot: any, level: any): Promise<{
36
52
  geosot: any;
37
53
  data: any;
@@ -46,6 +62,7 @@ declare class ShpZztsLayer {
46
62
  updateOptions(options?: {}): void;
47
63
  }
48
64
  export const shpZztsManager: ShpZztsManager;
65
+ import * as Cesium from 'cesium';
49
66
  declare class ShpZztsManager {
50
67
  layers: Map<any, any>;
51
68
  createLayer(viewer: any, options?: {}): Promise<ShpZztsLayer | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skzz/components-gis",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",