@skzz/components-gis 0.0.6 → 0.0.8

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.
@@ -1,3 +1,5 @@
1
+ /** 透明度/栈位变化可原地更新;瓦片地址、范围、配色变化需要重建 */
2
+ export function canReuseShpZztsLayer(layer: any, options?: {}): boolean;
1
3
  export function initLayer(viewer: any, options: any): Promise<ShpZztsLayer | null>;
2
4
  export function removeLayer(id: any): void;
3
5
  export function getLayer(id: any): any;
@@ -11,6 +13,12 @@ declare class ShpZztsLayer {
11
13
  opacity: number;
12
14
  batchSize: any;
13
15
  transitionDuration: any;
16
+ displayRange: {
17
+ west: number;
18
+ south: number;
19
+ east: number;
20
+ north: number;
21
+ } | null;
14
22
  _userColor: any;
15
23
  dictCode: any;
16
24
  serviceName: any;
@@ -21,6 +29,7 @@ declare class ShpZztsLayer {
21
29
  lodPrimitives: Map<any, any>;
22
30
  transitionAnimId: number | null;
23
31
  requestInProgress: boolean;
32
+ renderRequestToken: number;
24
33
  debounceTimer: number | null;
25
34
  destroyed: boolean;
26
35
  globalInstanceId: number;
@@ -40,12 +49,21 @@ declare class ShpZztsLayer {
40
49
  /** 按要素解析颜色:服务配色命中 > 用户统一色 > 默认淡蓝 */
41
50
  _resolveFeatureColor(geom: any, colorMap: any): Cesium.Color;
42
51
  _getScreenBounds(): {
43
- region: number[];
52
+ requestBounds: {
53
+ west: number;
54
+ south: number;
55
+ east: number;
56
+ north: number;
57
+ } | null;
58
+ region: (number | undefined)[];
44
59
  width: any;
45
60
  height: any;
46
61
  } | null;
47
62
  _updatePrimitiveAlpha(entries: any, alpha: any): void;
63
+ /** 把当前图层透明度应用到已渲染 primitive,拖动滑块时原地生效 */
64
+ _applyLayerOpacity(): void;
48
65
  _destroyLodPrimitives(lod: any): void;
66
+ _clearRenderedPrimitives(): void;
49
67
  _crossFadeLod(oldLod: any, newLod: any): void;
50
68
  _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): any[];
51
69
  _getVectorTileData(geosot: any, level: any): Promise<{
@@ -0,0 +1,19 @@
1
+ export function initEntity(options: any): Promise<any>;
2
+ export function initEntityStatic(options: any): Promise<any>;
3
+ export function removeEntity(id: any): void;
4
+ export function removeEntityNotDes(id: any): void;
5
+ export function removeAllEntities(): void;
6
+ export function getEntityLayer(id: any): any;
7
+ export let currentNewLevels: import('vue').ComputedRef<any>;
8
+ export const entityGridManager: EntityGridManager;
9
+ declare class EntityGridManager {
10
+ layers: Map<any, any>;
11
+ createLayer(options: any): Promise<any>;
12
+ removeLayer(id: any): void;
13
+ removeAllLayers(): void;
14
+ getLayer(id: any): any;
15
+ getLayerIds(): any[];
16
+ removeTilesByLayerId(id: any): void;
17
+ refreshLayer(id: any): void;
18
+ }
19
+ export {};
@@ -0,0 +1,7 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ config: Record<string, any>;
3
+ $props: {
4
+ readonly config?: Record<string, any> | undefined;
5
+ };
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skzz/components-gis",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",