@skzz/components-gis 0.0.4 → 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.
@@ -0,0 +1,13 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ groupKey: string;
3
+ stackIndex: number;
4
+ subStackIndex: number;
5
+ config: Record<string, any>;
6
+ $props: {
7
+ readonly groupKey?: string | undefined;
8
+ readonly stackIndex?: number | undefined;
9
+ readonly subStackIndex?: number | undefined;
10
+ readonly config?: Record<string, any> | undefined;
11
+ };
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
@@ -0,0 +1,73 @@
1
+ export function initLayer(viewer: any, options: any): Promise<ShpZztsLayer | null>;
2
+ export function removeLayer(id: any): void;
3
+ export function getLayer(id: any): any;
4
+ export function removeAllLayers(): void;
5
+ declare class ShpZztsLayer {
6
+ constructor(viewer: any, options?: {});
7
+ viewer: any;
8
+ id: any;
9
+ calTilesUrl: any;
10
+ tileUrl: any;
11
+ opacity: number;
12
+ batchSize: any;
13
+ transitionDuration: any;
14
+ _userColor: any;
15
+ dictCode: any;
16
+ serviceName: any;
17
+ enableServiceColor: boolean;
18
+ modelColorUrl: any;
19
+ modelColorCache: Map<any, any>;
20
+ currentLod: number;
21
+ lodPrimitives: Map<any, any>;
22
+ transitionAnimId: number | null;
23
+ requestInProgress: boolean;
24
+ debounceTimer: number | null;
25
+ destroyed: boolean;
26
+ globalInstanceId: number;
27
+ stackIndex: any;
28
+ subStackIndex: any;
29
+ groupKey: any;
30
+ _moveHandler: (() => void) | null;
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;
42
+ _getScreenBounds(): {
43
+ region: number[];
44
+ width: any;
45
+ height: any;
46
+ } | null;
47
+ _updatePrimitiveAlpha(entries: any, alpha: any): void;
48
+ _destroyLodPrimitives(lod: any): void;
49
+ _crossFadeLod(oldLod: any, newLod: any): void;
50
+ _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): any[];
51
+ _getVectorTileData(geosot: any, level: any): Promise<{
52
+ geosot: any;
53
+ data: any;
54
+ }>;
55
+ loadAndRender(): Promise<void>;
56
+ _onCameraMoveEnd(): void;
57
+ _setupMoveHandler(): void;
58
+ _teardownMoveHandler(): void;
59
+ init(): Promise<void>;
60
+ remove(): void;
61
+ /** 更新图层配置(颜色、透明度、栈位等) */
62
+ updateOptions(options?: {}): void;
63
+ }
64
+ export const shpZztsManager: ShpZztsManager;
65
+ import * as Cesium from 'cesium';
66
+ declare class ShpZztsManager {
67
+ layers: Map<any, any>;
68
+ createLayer(viewer: any, options?: {}): Promise<ShpZztsLayer | null>;
69
+ removeLayer(id: any): void;
70
+ getLayer(id: any): any;
71
+ removeAllLayers(): void;
72
+ }
73
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skzz/components-gis",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "peerDependencies": {
36
36
  "@element-plus/icons-vue": "^2.3.2",
37
- "@skzz/libs-base": "^0.0.2",
37
+ "@skzz/libs-base": "^0.0.3",
38
38
  "@skzz/libs-gis": "^0.0.1",
39
39
  "@skzz/utils-common": "^0.0.2",
40
40
  "@vueup/vue-quill": "1.2.0",