@skzz/components-gis 0.0.2 → 0.0.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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 将一张地理配准图片按 EPSG:4326 Polygon/MultiPolygon 遮罩。
3
+ * rectangle 为图片覆盖范围(Cesium Rectangle),projection 决定像素坐标映射。
4
+ */
5
+ export function maskImageWithDisplayGeometry(image: any, geometry: any, rectangle: any, projection: any): any;
6
+ /**
7
+ * 包装 Cesium WMS/WMTS provider 的取图方法,仅改变虚拟胶囊传入的影像像素。
8
+ */
9
+ export function applyDisplayGeometryMask(provider: any, geometry: any): any;
@@ -6,10 +6,11 @@ declare const _default: import('vue').DefineComponent<{}, {
6
6
  reload: typeof loadGeoJson;
7
7
  setVisibility: typeof setVisibility;
8
8
  $emit: (event: "loaded" | "error" | "updated" | "click", ...args: any[]) => void;
9
+ style: Record<string, any>;
9
10
  geojson: string | Record<string, any>;
10
11
  name: string;
11
- style: Record<string, any>;
12
12
  show: boolean;
13
+ hiddenValues: unknown[];
13
14
  clampToGround: boolean;
14
15
  token: string;
15
16
  fitToLayer: boolean;
@@ -18,10 +19,11 @@ declare const _default: import('vue').DefineComponent<{}, {
18
19
  styleByProperty: Record<string, any>;
19
20
  note: Record<string, any>;
20
21
  $props: {
22
+ readonly style?: Record<string, any> | undefined;
21
23
  readonly geojson?: string | Record<string, any> | undefined;
22
24
  readonly name?: string | undefined;
23
- readonly style?: Record<string, any> | undefined;
24
25
  readonly show?: boolean | undefined;
26
+ readonly hiddenValues?: unknown[] | undefined;
25
27
  readonly clampToGround?: boolean | undefined;
26
28
  readonly token?: string | undefined;
27
29
  readonly fitToLayer?: boolean | undefined;
@@ -10,6 +10,9 @@ export interface LegendPanelItem {
10
10
  type?: 'point' | 'line' | 'polygon' | 'range' | 'icon';
11
11
  min?: number;
12
12
  max?: number;
13
+ valueMin?: number;
14
+ valueMax?: number;
15
+ isDefault?: boolean;
13
16
  [key: string]: any;
14
17
  }
15
18
  export interface MultibandLegendData {
@@ -59,15 +62,22 @@ type __VLS_Props = {
59
62
  items?: LegendPanelItem[];
60
63
  legendData?: LegendPanelData | string | null;
61
64
  position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
65
+ /** 仅 MVT/WFS 唯一值、分级时由父组件开启;只改预览显隐 */
66
+ enableValueVisibility?: boolean;
67
+ hiddenValues?: string[];
62
68
  };
63
69
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
64
70
  "update:visible": (value: boolean) => any;
71
+ "update:hiddenValues": (value: string[]) => any;
65
72
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
66
73
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
74
+ "onUpdate:hiddenValues"?: ((value: string[]) => any) | undefined;
67
75
  }>, {
68
76
  title: string;
77
+ hiddenValues: string[];
69
78
  items: LegendPanelItem[];
70
79
  legendData: LegendPanelData | string | null;
71
80
  position: "bottom-right" | "bottom-left" | "top-right" | "top-left";
81
+ enableValueVisibility: boolean;
72
82
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
73
83
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skzz/components-gis",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",