@skzz/components-gis 0.1.1 → 0.1.3
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.es.js +2244 -1384
- package/dist/index.umd.js +5 -5
- package/dist/utils/buildMvtWfsLabelUrl.d.ts +2 -0
- package/dist/utils/polygonLabelPosition.d.ts +9 -0
- package/dist/zz-layer/zz-layer-geojson/index.vue.d.ts +8 -0
- package/dist/zz-layer/zz-layer-shp-zzts/shpZztsRenderer.d.ts +15 -1
- package/dist/zz-layer/zz-layer-zzts3dv2/entityGridV2.d.ts +19 -0
- package/dist/zz-layer/zz-layer-zzts3dv2/index.vue.d.ts +13 -0
- package/dist/zz-model/zz-3dtiles/index.vue.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Cesium from 'cesium';
|
|
2
|
+
/** Cesium 面 entity 注记落点:ENU 本地米制 polylabel,与渲染几何一致 */
|
|
3
|
+
export declare function cesiumPolygonLabelPosition(entity: {
|
|
4
|
+
polygon?: {
|
|
5
|
+
hierarchy?: {
|
|
6
|
+
getValue?: (time: Cesium.JulianDate) => Cesium.PolygonHierarchy;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}): Cesium.Cartesian3 | undefined;
|
|
@@ -13,11 +13,15 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
13
13
|
hiddenValues: unknown[];
|
|
14
14
|
clampToGround: boolean;
|
|
15
15
|
token: string;
|
|
16
|
+
directRequest: boolean;
|
|
17
|
+
showProperties: boolean;
|
|
18
|
+
sourceCrs: string;
|
|
16
19
|
fitToLayer: boolean;
|
|
17
20
|
fitDuration: number;
|
|
18
21
|
layerZIndex: number;
|
|
19
22
|
styleByProperty: Record<string, any>;
|
|
20
23
|
note: Record<string, any>;
|
|
24
|
+
noteOnly: boolean;
|
|
21
25
|
$props: {
|
|
22
26
|
readonly style?: Record<string, any> | undefined;
|
|
23
27
|
readonly geojson?: string | Record<string, any> | undefined;
|
|
@@ -26,11 +30,15 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
26
30
|
readonly hiddenValues?: unknown[] | undefined;
|
|
27
31
|
readonly clampToGround?: boolean | undefined;
|
|
28
32
|
readonly token?: string | undefined;
|
|
33
|
+
readonly directRequest?: boolean | undefined;
|
|
34
|
+
readonly showProperties?: boolean | undefined;
|
|
35
|
+
readonly sourceCrs?: string | undefined;
|
|
29
36
|
readonly fitToLayer?: boolean | undefined;
|
|
30
37
|
readonly fitDuration?: number | undefined;
|
|
31
38
|
readonly layerZIndex?: number | undefined;
|
|
32
39
|
readonly styleByProperty?: Record<string, any> | undefined;
|
|
33
40
|
readonly note?: Record<string, any> | undefined;
|
|
41
|
+
readonly noteOnly?: boolean | undefined;
|
|
34
42
|
};
|
|
35
43
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
44
|
export default _default;
|
|
@@ -13,6 +13,7 @@ declare class ShpZztsLayer {
|
|
|
13
13
|
opacity: number;
|
|
14
14
|
batchSize: any;
|
|
15
15
|
transitionDuration: any;
|
|
16
|
+
pointSize: number;
|
|
16
17
|
displayRange: {
|
|
17
18
|
west: number;
|
|
18
19
|
south: number;
|
|
@@ -20,6 +21,11 @@ declare class ShpZztsLayer {
|
|
|
20
21
|
north: number;
|
|
21
22
|
} | null;
|
|
22
23
|
_userColor: any;
|
|
24
|
+
outline: {
|
|
25
|
+
color: string;
|
|
26
|
+
width: number;
|
|
27
|
+
} | null;
|
|
28
|
+
outlineHeightOffset: number;
|
|
23
29
|
dictCode: any;
|
|
24
30
|
serviceName: any;
|
|
25
31
|
enableServiceColor: boolean;
|
|
@@ -48,6 +54,8 @@ declare class ShpZztsLayer {
|
|
|
48
54
|
loadModelColorsByIds(featureIds?: any[]): Promise<Map<any, any>>;
|
|
49
55
|
/** 按要素解析颜色:服务配色命中 > 用户统一色 > 默认淡蓝 */
|
|
50
56
|
_resolveFeatureColor(geom: any, colorMap: any): Cesium.Color;
|
|
57
|
+
/** 边线颜色:优先用户配置色,与 WFS/MVT 预览语义一致(不跟随分类填充色) */
|
|
58
|
+
_resolveOutlineColor(): Cesium.Color;
|
|
51
59
|
_getScreenBounds(): {
|
|
52
60
|
requestBounds: {
|
|
53
61
|
west: number;
|
|
@@ -65,7 +73,13 @@ declare class ShpZztsLayer {
|
|
|
65
73
|
_destroyLodPrimitives(lod: any): void;
|
|
66
74
|
_clearRenderedPrimitives(): void;
|
|
67
75
|
_crossFadeLod(oldLod: any, newLod: any): void;
|
|
68
|
-
_renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any):
|
|
76
|
+
_renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): {
|
|
77
|
+
primitive: Cesium.PointPrimitiveCollection;
|
|
78
|
+
instanceIds: number[];
|
|
79
|
+
instanceColors: Cesium.Color[];
|
|
80
|
+
pointPrimitives: Cesium.PointPrimitive[];
|
|
81
|
+
pointColors: Cesium.Color[];
|
|
82
|
+
}[];
|
|
69
83
|
_getVectorTileData(geosot: any, level: any): Promise<{
|
|
70
84
|
geosot: any;
|
|
71
85
|
data: any;
|
|
@@ -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 entityGridV2Manager: EntityGridV2Manager;
|
|
9
|
+
declare class EntityGridV2Manager {
|
|
10
|
+
layers: Map<any, any>;
|
|
11
|
+
createLayer(options: any): 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,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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skzz/components-gis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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.
|
|
37
|
+
"@skzz/libs-base": "^0.0.4",
|
|
38
38
|
"@skzz/libs-gis": "^0.0.1",
|
|
39
39
|
"@skzz/utils-common": "^0.0.2",
|
|
40
40
|
"@vueup/vue-quill": "1.2.0",
|