@skzz/components-gis 0.0.3 → 0.0.5
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.
- package/dist/index.css +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +8113 -8821
- package/dist/index.umd.js +3 -3
- package/dist/shims-vue.d.ts +6 -6
- package/dist/zz-layer/zz-layer-geojson/index.vue.d.ts +2 -0
- package/dist/zz-layer/zz-layer-shp-zzts/index.vue.d.ts +13 -0
- package/dist/zz-layer/zz-layer-shp-zzts/shpZztsRenderer.d.ts +56 -0
- package/dist/zz-legend/index.vue.d.ts +10 -0
- package/package.json +62 -62
package/dist/shims-vue.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// images.d.ts
|
|
2
|
-
declare module '*.png'
|
|
3
|
-
declare module '*.jpg'
|
|
4
|
-
declare module '*.jpeg'
|
|
5
|
-
declare module '*.gif'
|
|
6
|
-
declare module '*.svg'
|
|
1
|
+
// images.d.ts
|
|
2
|
+
declare module '*.png'
|
|
3
|
+
declare module '*.jpg'
|
|
4
|
+
declare module '*.jpeg'
|
|
5
|
+
declare module '*.gif'
|
|
6
|
+
declare module '*.svg'
|
|
7
7
|
declare module '*.webp'
|
|
@@ -10,6 +10,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
10
10
|
geojson: string | Record<string, any>;
|
|
11
11
|
name: string;
|
|
12
12
|
show: boolean;
|
|
13
|
+
hiddenValues: unknown[];
|
|
13
14
|
clampToGround: boolean;
|
|
14
15
|
token: string;
|
|
15
16
|
fitToLayer: boolean;
|
|
@@ -22,6 +23,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
22
23
|
readonly geojson?: string | Record<string, any> | undefined;
|
|
23
24
|
readonly name?: string | 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;
|
|
@@ -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,56 @@
|
|
|
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
|
+
currentLod: number;
|
|
15
|
+
lodPrimitives: Map<any, any>;
|
|
16
|
+
transitionAnimId: number | null;
|
|
17
|
+
requestInProgress: boolean;
|
|
18
|
+
debounceTimer: number | null;
|
|
19
|
+
destroyed: boolean;
|
|
20
|
+
globalInstanceId: number;
|
|
21
|
+
stackIndex: any;
|
|
22
|
+
subStackIndex: any;
|
|
23
|
+
groupKey: any;
|
|
24
|
+
_moveHandler: (() => void) | null;
|
|
25
|
+
_normOpacity(val: any): number;
|
|
26
|
+
_getScreenBounds(): {
|
|
27
|
+
region: number[];
|
|
28
|
+
width: any;
|
|
29
|
+
height: any;
|
|
30
|
+
} | null;
|
|
31
|
+
_updatePrimitiveAlpha(entries: any, alpha: any): void;
|
|
32
|
+
_destroyLodPrimitives(lod: any): void;
|
|
33
|
+
_crossFadeLod(oldLod: any, newLod: any): void;
|
|
34
|
+
_renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any): any[];
|
|
35
|
+
_getVectorTileData(geosot: any, level: any): Promise<{
|
|
36
|
+
geosot: any;
|
|
37
|
+
data: any;
|
|
38
|
+
}>;
|
|
39
|
+
loadAndRender(): Promise<void>;
|
|
40
|
+
_onCameraMoveEnd(): void;
|
|
41
|
+
_setupMoveHandler(): void;
|
|
42
|
+
_teardownMoveHandler(): void;
|
|
43
|
+
init(): Promise<void>;
|
|
44
|
+
remove(): void;
|
|
45
|
+
/** 更新图层配置(颜色、透明度、栈位等) */
|
|
46
|
+
updateOptions(options?: {}): void;
|
|
47
|
+
}
|
|
48
|
+
export const shpZztsManager: ShpZztsManager;
|
|
49
|
+
declare class ShpZztsManager {
|
|
50
|
+
layers: Map<any, any>;
|
|
51
|
+
createLayer(viewer: any, options?: {}): Promise<ShpZztsLayer | null>;
|
|
52
|
+
removeLayer(id: any): void;
|
|
53
|
+
getLayer(id: any): any;
|
|
54
|
+
removeAllLayers(): void;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -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,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@skzz/components-gis",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.umd.js",
|
|
6
|
-
"module": "./dist/index.es.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"style": "./dist/index.css",
|
|
9
|
-
"sideEffects": [
|
|
10
|
-
"*.css",
|
|
11
|
-
"./dist/index.css"
|
|
12
|
-
],
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.es.js",
|
|
17
|
-
"require": "./dist/index.umd.js"
|
|
18
|
-
},
|
|
19
|
-
"./dist/index.css": "./dist/index.css"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"dev": "vite",
|
|
26
|
-
"build": "vue-tsc --noEmit && vite build",
|
|
27
|
-
"preview": "vite preview",
|
|
28
|
-
"prepublishOnly": "npm run build"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"vue3",
|
|
32
|
-
"component",
|
|
33
|
-
"ui"
|
|
34
|
-
],
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"@element-plus/icons-vue": "^2.3.2",
|
|
37
|
-
"@skzz/libs-base": "^0.0.
|
|
38
|
-
"@skzz/libs-gis": "^0.0.1",
|
|
39
|
-
"@skzz/utils-common": "^0.0.2",
|
|
40
|
-
"@vueup/vue-quill": "1.2.0",
|
|
41
|
-
"@vueuse/core": "13.3.0",
|
|
42
|
-
"axios": "^1.11.0",
|
|
43
|
-
"cesium": "^1.134.1",
|
|
44
|
-
"element-plus": "^2.11.1",
|
|
45
|
-
"pinia": "^3.0.3",
|
|
46
|
-
"vue": "^3.5.19",
|
|
47
|
-
"vue-router": "^4.5.1"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@liumaorong/cesium-vectortile-gl-plus": "^0.1.6"
|
|
51
|
-
},
|
|
52
|
-
"publishConfig": {
|
|
53
|
-
"access": "public",
|
|
54
|
-
"registry": "https://registry.npmjs.org"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"cesium": "^1.134.1",
|
|
58
|
-
"vite-plugin-cesium": "^1.2.23"
|
|
59
|
-
},
|
|
60
|
-
"author": "Your Name",
|
|
61
|
-
"license": "MIT"
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@skzz/components-gis",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.umd.js",
|
|
6
|
+
"module": "./dist/index.es.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"style": "./dist/index.css",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"*.css",
|
|
11
|
+
"./dist/index.css"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.es.js",
|
|
17
|
+
"require": "./dist/index.umd.js"
|
|
18
|
+
},
|
|
19
|
+
"./dist/index.css": "./dist/index.css"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "vite",
|
|
26
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
27
|
+
"preview": "vite preview",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"vue3",
|
|
32
|
+
"component",
|
|
33
|
+
"ui"
|
|
34
|
+
],
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
37
|
+
"@skzz/libs-base": "^0.0.3",
|
|
38
|
+
"@skzz/libs-gis": "^0.0.1",
|
|
39
|
+
"@skzz/utils-common": "^0.0.2",
|
|
40
|
+
"@vueup/vue-quill": "1.2.0",
|
|
41
|
+
"@vueuse/core": "13.3.0",
|
|
42
|
+
"axios": "^1.11.0",
|
|
43
|
+
"cesium": "^1.134.1",
|
|
44
|
+
"element-plus": "^2.11.1",
|
|
45
|
+
"pinia": "^3.0.3",
|
|
46
|
+
"vue": "^3.5.19",
|
|
47
|
+
"vue-router": "^4.5.1"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@liumaorong/cesium-vectortile-gl-plus": "^0.1.6"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public",
|
|
54
|
+
"registry": "https://registry.npmjs.org"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"cesium": "^1.134.1",
|
|
58
|
+
"vite-plugin-cesium": "^1.2.23"
|
|
59
|
+
},
|
|
60
|
+
"author": "Your Name",
|
|
61
|
+
"license": "MIT"
|
|
62
|
+
}
|