@skzz/components-gis 0.0.5 → 0.0.7
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 +1 -1
- package/dist/index.es.js +1067 -319
- package/dist/index.umd.js +2 -2
- package/dist/shims-vue.d.ts +6 -6
- package/dist/zz-layer/zz-layer-shp-zzts/shpZztsRenderer.d.ts +33 -2
- package/dist/zz-layer/zz-layer-zzts3dtype/entityGrid.d.ts +19 -0
- package/dist/zz-layer/zz-layer-zzts3dtype/index.vue.d.ts +7 -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'
|
|
@@ -11,10 +11,23 @@ declare class ShpZztsLayer {
|
|
|
11
11
|
opacity: number;
|
|
12
12
|
batchSize: any;
|
|
13
13
|
transitionDuration: any;
|
|
14
|
+
displayRange: {
|
|
15
|
+
west: number;
|
|
16
|
+
south: number;
|
|
17
|
+
east: number;
|
|
18
|
+
north: number;
|
|
19
|
+
} | null;
|
|
20
|
+
_userColor: any;
|
|
21
|
+
dictCode: any;
|
|
22
|
+
serviceName: any;
|
|
23
|
+
enableServiceColor: boolean;
|
|
24
|
+
modelColorUrl: any;
|
|
25
|
+
modelColorCache: Map<any, any>;
|
|
14
26
|
currentLod: number;
|
|
15
27
|
lodPrimitives: Map<any, any>;
|
|
16
28
|
transitionAnimId: number | null;
|
|
17
29
|
requestInProgress: boolean;
|
|
30
|
+
renderRequestToken: number;
|
|
18
31
|
debounceTimer: number | null;
|
|
19
32
|
destroyed: boolean;
|
|
20
33
|
globalInstanceId: number;
|
|
@@ -23,15 +36,32 @@ declare class ShpZztsLayer {
|
|
|
23
36
|
groupKey: any;
|
|
24
37
|
_moveHandler: (() => void) | null;
|
|
25
38
|
_normOpacity(val: any): number;
|
|
39
|
+
/** 解析外部传入的颜色,未配置时回退默认淡蓝色 */
|
|
40
|
+
_resolveColor(): Cesium.Color;
|
|
41
|
+
isServiceColorEnabled(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 按 feature_id 分批(800/批)查询配色索引,结果写入缓存。
|
|
44
|
+
* 返回 featureId -> color(css) 的 Map;未启用服务配色时返回空 Map。
|
|
45
|
+
*/
|
|
46
|
+
loadModelColorsByIds(featureIds?: any[]): Promise<Map<any, any>>;
|
|
47
|
+
/** 按要素解析颜色:服务配色命中 > 用户统一色 > 默认淡蓝 */
|
|
48
|
+
_resolveFeatureColor(geom: any, colorMap: any): Cesium.Color;
|
|
26
49
|
_getScreenBounds(): {
|
|
27
|
-
|
|
50
|
+
requestBounds: {
|
|
51
|
+
west: number;
|
|
52
|
+
south: number;
|
|
53
|
+
east: number;
|
|
54
|
+
north: number;
|
|
55
|
+
} | null;
|
|
56
|
+
region: (number | undefined)[];
|
|
28
57
|
width: any;
|
|
29
58
|
height: any;
|
|
30
59
|
} | null;
|
|
31
60
|
_updatePrimitiveAlpha(entries: any, alpha: any): void;
|
|
32
61
|
_destroyLodPrimitives(lod: any): void;
|
|
62
|
+
_clearRenderedPrimitives(): void;
|
|
33
63
|
_crossFadeLod(oldLod: any, newLod: any): void;
|
|
34
|
-
_renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any): any[];
|
|
64
|
+
_renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): any[];
|
|
35
65
|
_getVectorTileData(geosot: any, level: any): Promise<{
|
|
36
66
|
geosot: any;
|
|
37
67
|
data: any;
|
|
@@ -46,6 +76,7 @@ declare class ShpZztsLayer {
|
|
|
46
76
|
updateOptions(options?: {}): void;
|
|
47
77
|
}
|
|
48
78
|
export const shpZztsManager: ShpZztsManager;
|
|
79
|
+
import * as Cesium from 'cesium';
|
|
49
80
|
declare class ShpZztsManager {
|
|
50
81
|
layers: Map<any, any>;
|
|
51
82
|
createLayer(viewer: any, options?: {}): Promise<ShpZztsLayer | null>;
|
|
@@ -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,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.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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@skzz/components-gis",
|
|
3
|
+
"version": "0.0.7",
|
|
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
|
+
}
|