@shjjs/visual-ui 1.0.35 → 1.0.37
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/es/commons/core/earth/main.vue.d.ts +2 -2
- package/es/commons/core/useChart.mjs +257 -73
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +213 -30
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +210 -27
- package/es/components/chart/commons/hooks/useChart.mjs +261 -77
- package/es/components/chart/src/map/bmap-basic/index.vue.d.ts +6 -2
- package/es/components/chart/src/map/bmap-heatmap/index.vue.d.ts +6 -2
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +212 -29
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +213 -30
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +214 -31
- package/es/components/chart-other-circular-graph/index.vue.mjs +214 -31
- package/es/components/chart-other-force/index.vue.mjs +212 -29
- package/es/components/chart-other-force2/index.vue.mjs +212 -29
- package/es/components/chart-other-funnel/index.vue.mjs +214 -31
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +214 -31
- package/es/components/chart-other-funnel-split/index.vue.mjs +214 -31
- package/es/components/chart-other-funnel2/index.vue.mjs +214 -31
- package/es/components/chart-other-gauge/index.vue.mjs +214 -31
- package/es/components/chart-other-gauge-grade/index.vue.mjs +214 -31
- package/es/components/chart-other-gauge-stage/index.vue.mjs +214 -31
- package/es/components/chart-other-graph-basic/index.vue.mjs +214 -31
- package/es/components/chart-other-graph-basic2/index.vue.mjs +214 -31
- package/es/components/chart-other-graph-calendar/index.vue.mjs +214 -31
- package/es/components/chart-other-grid-percentage/index.vue.mjs +218 -35
- package/es/components/chart-other-heatmap/index.vue.mjs +212 -29
- package/es/components/chart-other-label-gauge/index.vue.mjs +216 -33
- package/es/components/chart-other-liquidfill/index.vue.mjs +214 -31
- package/es/components/chart-other-parallel-basic/index.vue.mjs +214 -31
- package/es/components/chart-other-parallel-mul/index.vue.mjs +211 -28
- package/es/components/chart-other-radar/index.vue.mjs +224 -41
- package/es/components/chart-other-radar-stack/index.vue.mjs +211 -28
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-book/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +214 -31
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +212 -29
- package/es/components/chart-other-theme-river/index.vue.mjs +216 -33
- package/es/components/chart-other-tree/index.vue.mjs +214 -31
- package/es/components/chart-other-tree-line/index.vue.mjs +214 -31
- package/es/components/chart-other-treemap/index.vue.mjs +214 -31
- package/es/components/chart-other-treemap-basic/index.vue.mjs +214 -31
- package/es/components/chart-other-word-cloud/index.vue.mjs +216 -33
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +219 -35
- package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
- package/es/components/commons-loop-iterator/index.vue2.mjs +218 -35
- package/es/components/commons-product-model/index.vue.mjs +1 -1
- package/es/components/commons-product-model/index.vue2.mjs +246 -62
- package/es/components/commons-three-loader/index.vue.mjs +1 -1
- package/es/components/commons-three-loader/index.vue2.mjs +257 -73
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +301 -117
- package/es/components/commons-weather/index.vue.mjs +1 -1
- package/es/components/commons-weather/index.vue2.mjs +233 -48
- package/es/components/commons-weather-dynamic/index.vue.mjs +2 -2
- package/es/components/commons-weather-dynamic/index.vue2.mjs +236 -52
- package/es/components/index.d.ts +112 -111
- package/es/components/index.mjs +362 -360
- package/es/components/interaction/button/index.vue.mjs +2 -2
- package/es/components/interaction/button/index.vue2.mjs +252 -68
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +2 -2
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +324 -140
- package/es/components/interaction/date-picker/src/date-picker/index.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +211 -211
- package/es/components/interaction/tabs/index.vue.mjs +223 -39
- package/es/components/interaction/tabs-icon/index.vue.mjs +225 -41
- package/es/components/interaction-input/index.vue.mjs +2 -2
- package/es/components/interaction-input/index.vue2.mjs +244 -61
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +269 -86
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +248 -65
- package/es/components/interaction-switch/index.vue.mjs +1 -1
- package/es/components/interaction-switch/index.vue2.mjs +217 -33
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +221 -37
- package/es/components/interaction-tabs2/index.vue.mjs +1 -1
- package/es/components/interaction-tabs2/index.vue2.mjs +219 -35
- package/es/components/map-earth-basic/index.d.ts +2 -2
- package/es/components/map-earth-basic/index.vue.d.ts +2 -2
- package/es/components/map-earth-basic/index.vue.mjs +286 -103
- package/es/components/map-earth-cool-tech/index.d.ts +2 -2
- package/es/components/map-earth-cool-tech/index.vue.d.ts +2 -2
- package/es/components/map-earth-cool-tech/index.vue.mjs +286 -103
- package/es/components/map-earth-fly-line/index.d.ts +2 -2
- package/es/components/map-earth-fly-line/index.vue.d.ts +2 -2
- package/es/components/map-earth-fly-line/index.vue.mjs +286 -103
- package/es/components/map-earth-hacker/index.d.ts +2 -2
- package/es/components/map-earth-hacker/index.vue.d.ts +2 -2
- package/es/components/map-earth-hacker/index.vue.mjs +286 -103
- package/es/components/map-earth-particle/index.d.ts +2 -2
- package/es/components/map-earth-particle/index.vue.d.ts +2 -2
- package/es/components/map-earth-particle/index.vue.mjs +286 -103
- package/es/components/media-audio/index.vue.mjs +2 -2
- package/es/components/media-audio/index.vue2.mjs +219 -35
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +233 -50
- package/es/components/media-flv/index.vue.mjs +219 -35
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +199 -15
- package/es/components/media-iframe-dynamic/index.d.ts +51 -0
- package/es/components/media-iframe-dynamic/index.mjs +7 -0
- package/es/components/media-iframe-dynamic/index.vue.d.ts +51 -0
- package/es/components/media-iframe-dynamic/index.vue.mjs +7 -0
- package/es/components/media-iframe-dynamic/index.vue2.mjs +259 -0
- package/es/components/media-image-dynamic/index.vue.mjs +2 -2
- package/es/components/media-image-dynamic/index.vue2.mjs +207 -24
- package/es/components/media-m3u8/index.vue.mjs +221 -37
- package/es/components/media-m3u8-dynamic/index.vue.mjs +228 -45
- package/es/components/media-video/index.vue.mjs +2 -2
- package/es/components/media-video/index.vue2.mjs +216 -31
- package/es/components/media-video-dynamic/index.vue.mjs +2 -2
- package/es/components/media-video-dynamic/index.vue2.mjs +223 -40
- package/es/components/scene-amap2d/index.vue.mjs +1 -1
- package/es/components/scene-amap2d/index.vue2.mjs +376 -192
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +414 -231
- package/es/components/scene-default/index.vue.mjs +2 -2
- package/es/components/scene-default/index.vue2.mjs +201 -16
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +289 -106
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +212 -27
- package/es/components/scene-ue-shj/index.vue.mjs +2 -2
- package/es/components/scene-ue-shj/index.vue2.mjs +200 -15
- package/es/components/scene-unity-iframe/index.vue.mjs +1 -1
- package/es/components/scene-unity-iframe/index.vue2.mjs +204 -19
- package/es/components/scene-unity-webgl/index.vue.mjs +2 -2
- package/es/components/scene-unity-webgl/index.vue2.mjs +204 -19
- package/es/components/scene-vr/index.vue.mjs +2 -2
- package/es/components/scene-vr/index.vue2.mjs +302 -118
- package/es/components/text/list/index.vue.mjs +240 -56
- package/es/components/text-count-down/index.vue.mjs +2 -2
- package/es/components/text-count-down/index.vue2.mjs +245 -60
- package/es/components/text-over-number/index.vue.mjs +2 -2
- package/es/components/text-over-number/index.vue2.mjs +243 -60
- package/es/components/text-real-time/index.vue.mjs +2 -2
- package/es/components/text-real-time/index.vue2.mjs +212 -28
- package/es/components/text-row-scroll/index.vue.mjs +1 -1
- package/es/components/text-row-scroll/index.vue2.mjs +288 -105
- package/es/components/text-table-basic/index.vue.mjs +2 -2
- package/es/components/text-table-basic/index.vue2.mjs +286 -103
- package/es/components/text-table-scroll/index.vue.mjs +2 -2
- package/es/components/text-table-scroll/index.vue2.mjs +291 -108
- package/es/components/text-text-dynamic/index.vue.mjs +2 -2
- package/es/components/text-text-dynamic/index.vue2.mjs +218 -35
- package/es/index.d.ts +1 -0
- package/es/index.mjs +386 -370
- package/es/{commons/plugins → plugins}/datasource/index.mjs +217 -214
- package/es/{commons/plugins → plugins}/datasource/sources/api.mjs +32 -32
- package/es/{commons/plugins → plugins}/datasource/sources/static.mjs +17 -17
- package/es/{commons/plugins → plugins}/datasource/sources/storage.mjs +28 -28
- package/es/{commons/plugins → plugins}/datasource/sources/url.mjs +17 -17
- package/es/{commons/plugins → plugins}/datasource/sources/variable.mjs +17 -17
- package/es/{commons/plugins → plugins}/datasource/sources/ws.mjs +139 -139
- package/es/{commons/plugins → plugins}/datasource/utils/axios.mjs +134 -134
- package/es/{commons/plugins → plugins}/datasource/utils/request.mjs +5 -5
- package/es/{commons/plugins → plugins}/datasource/utils/utils.mjs +229 -229
- package/es/{commons/plugins → plugins}/datasource/utils/wsManager.mjs +78 -78
- package/es/{commons/plugins → plugins}/event/actions/fullScreenAction.mjs +8 -8
- package/es/{commons/plugins → plugins}/event/actions/invokeAction.mjs +11 -11
- package/es/{commons/plugins → plugins}/event/actions/linkAction.mjs +8 -8
- package/es/{commons/plugins → plugins}/event/actions/moveAction.mjs +15 -15
- package/es/{commons/plugins → plugins}/event/actions/refreshVariableAction.mjs +18 -18
- package/es/{commons/plugins → plugins}/event/actions/rotateAction.mjs +19 -19
- package/es/{commons/plugins → plugins}/event/actions/scaleAction.mjs +24 -24
- package/es/{commons/plugins → plugins}/event/actions/sendApiAction.mjs +16 -16
- package/es/{commons/plugins → plugins}/event/actions/ueCommonsWebscoketAction.mjs +31 -31
- package/es/{commons/plugins → plugins}/event/actions/ueShjExecMethodAction.mjs +31 -31
- package/es/{commons/plugins → plugins}/event/actions/unityIframeExecMethodAction.mjs +28 -28
- package/es/{commons/plugins → plugins}/event/actions/unityWebglExecMethodAction.mjs +28 -28
- package/es/{commons/plugins → plugins}/event/actions/updatePageAction.mjs +6 -6
- package/es/{commons/plugins → plugins}/event/actions/updateVariableAction.mjs +25 -25
- package/es/{commons/plugins → plugins}/event/actions/updateWidgetAction.mjs +14 -14
- package/es/{commons/plugins → plugins}/event/actions/vrSceneMethodAction.mjs +12 -12
- package/es/{commons/plugins → plugins}/event/index.mjs +161 -161
- package/es/{commons/plugins → plugins}/event/utils/utils.mjs +50 -50
- package/es/{commons → plugins}/utils/componentRefs.mjs +37 -37
- package/es/{commons → plugins}/utils/getNextElement.mjs +12 -12
- package/es/widgets.css +1 -1
- package/package.json +1 -1
- package/es/commons/plugins/datasource/index.d.ts +0 -73
- package/es/commons/plugins/datasource/sources/api.d.ts +0 -1
- package/es/commons/plugins/datasource/sources/static.d.ts +0 -1
- package/es/commons/plugins/datasource/sources/storage.d.ts +0 -1
- package/es/commons/plugins/datasource/sources/url.d.ts +0 -1
- package/es/commons/plugins/datasource/sources/variable.d.ts +0 -1
- package/es/commons/plugins/datasource/sources/ws.d.ts +0 -32
- package/es/commons/plugins/datasource/utils/axios.d.ts +0 -70
- package/es/commons/plugins/datasource/utils/request.d.ts +0 -3
- package/es/commons/plugins/datasource/utils/utils.d.ts +0 -115
- package/es/commons/plugins/datasource/utils/wsManager.d.ts +0 -16
- package/es/commons/plugins/event/actions/fullScreenAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/invokeAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/linkAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/moveAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/refreshVariableAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/rotateAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/scaleAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/sendApiAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/updatePageAction.d.ts +0 -8
- package/es/commons/plugins/event/actions/updateVariableAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +0 -7
- package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +0 -7
- package/es/commons/plugins/event/index.d.ts +0 -206
- package/es/commons/plugins/event/utils/utils.d.ts +0 -22
- package/es/commons/utils/componentRefs.d.ts +0 -28
- package/es/commons/utils/getNextElement.d.ts +0 -7
|
@@ -1,16 +1,199 @@
|
|
|
1
|
-
import { defineComponent as I, watch as
|
|
1
|
+
import { defineComponent as I, watch as d, createElementBlock as ee, openBlock as te, normalizeClass as ae, unref as re, shallowRef as M, ref as h, onMounted as oe, onUnmounted as se, createElementVNode as ie, pushScopeId as le, popScopeId as ne } from "vue";
|
|
2
2
|
import ce from "@amap/amap-jsapi-loader";
|
|
3
|
-
import
|
|
4
|
-
import { nanoid as
|
|
3
|
+
import me from "axios";
|
|
4
|
+
import { nanoid as de } from "nanoid";
|
|
5
5
|
import { debounce as w } from "lodash";
|
|
6
|
-
import
|
|
7
|
-
|
|
6
|
+
import "../text-text-basic/index.mjs";
|
|
7
|
+
import "../text-table-basic/index.mjs";
|
|
8
|
+
import "../chart-other-gauge/index.mjs";
|
|
9
|
+
import "../chart-other-gauge-stage/index.mjs";
|
|
10
|
+
import "../chart-other-gauge-grade/index.mjs";
|
|
11
|
+
import "../chart-other-word-cloud/index.mjs";
|
|
12
|
+
import "../chart-other-liquidfill/index.mjs";
|
|
13
|
+
import "../chart-other-funnel/index.mjs";
|
|
14
|
+
import "../chart-other-force/index.mjs";
|
|
15
|
+
import "../chart-other-radar/index.mjs";
|
|
16
|
+
import "../chart-other-funnel-split/index.mjs";
|
|
17
|
+
import "../chart-other-funnel-contrast/index.mjs";
|
|
18
|
+
import "../chart-other-candlestick-basic/index.mjs";
|
|
19
|
+
import "../chart-other-candlestick-shanghai/index.mjs";
|
|
20
|
+
import "../chart-other-candlestick-demo/index.mjs";
|
|
21
|
+
import "../chart-other-heatmap/index.mjs";
|
|
22
|
+
import "../chart-other-force2/index.mjs";
|
|
23
|
+
import "../chart-other-graph-basic/index.mjs";
|
|
24
|
+
import "../chart-other-graph-basic2/index.mjs";
|
|
25
|
+
import "../chart-other-graph-calendar/index.mjs";
|
|
26
|
+
import "../chart-other-tree-line/index.mjs";
|
|
27
|
+
import "../chart-other-treemap-basic/index.mjs";
|
|
28
|
+
import "../chart-other-sunburst-basic/index.mjs";
|
|
29
|
+
import "../chart-other-sunburst-basic2/index.mjs";
|
|
30
|
+
import "../chart-other-sunburst-basic3/index.mjs";
|
|
31
|
+
import "../chart-other-sunburst-basic4/index.mjs";
|
|
32
|
+
import "../chart-other-sunburst-book/index.mjs";
|
|
33
|
+
import "../chart-other-sunburst-radius/index.mjs";
|
|
34
|
+
import "../chart-other-sunburst-flavors/index.mjs";
|
|
35
|
+
import "../chart-other-parallel-basic/index.mjs";
|
|
36
|
+
import "../chart-other-parallel-mul/index.mjs";
|
|
37
|
+
import "../chart-other-circular-graph/index.mjs";
|
|
38
|
+
import "../map-earth-basic/index.mjs";
|
|
39
|
+
import "../map-earth-cool-tech/index.mjs";
|
|
40
|
+
import "../map-earth-particle/index.mjs";
|
|
41
|
+
import "../map-earth-hacker/index.mjs";
|
|
42
|
+
import "../map-earth-fly-line/index.mjs";
|
|
43
|
+
import "../chart-other-grid-percentage/index.mjs";
|
|
44
|
+
import "../chart-other-radar-stack/index.mjs";
|
|
45
|
+
import "../chart-other-funnel2/index.mjs";
|
|
46
|
+
import "../chart-other-label-gauge/index.mjs";
|
|
47
|
+
import "../chart-other-theme-river/index.mjs";
|
|
48
|
+
import "../chart-other-tree/index.mjs";
|
|
49
|
+
import "../chart-other-treemap/index.mjs";
|
|
50
|
+
import "../commons-product-model/index.mjs";
|
|
51
|
+
import "../commons-vr-photo/index.mjs";
|
|
52
|
+
import "../commons-vr-video/index.mjs";
|
|
53
|
+
import "../commons-three-loader/index.mjs";
|
|
54
|
+
import "../commons-three-loader3/index.mjs";
|
|
55
|
+
import "../commons-loop-iterator/index.mjs";
|
|
56
|
+
import "../commons-gaussian-splatting-view/index.mjs";
|
|
57
|
+
import "../commons-babylon/index.mjs";
|
|
58
|
+
import "../commons-svg/index.mjs";
|
|
59
|
+
import "../commons-weather/index.mjs";
|
|
60
|
+
import "../commons-weather-dynamic/index.mjs";
|
|
61
|
+
import "../media-wavesurfer/index.mjs";
|
|
62
|
+
import "../interaction-tabs/index.mjs";
|
|
63
|
+
import "../interaction-tabs2/index.mjs";
|
|
64
|
+
import "../interaction-button/index.mjs";
|
|
65
|
+
import "../interaction-button-image/index.mjs";
|
|
66
|
+
import "../interaction-select/index.mjs";
|
|
67
|
+
import "../interaction-input/index.mjs";
|
|
68
|
+
import "../interaction-radio/index.mjs";
|
|
69
|
+
import "../interaction-slider/index.mjs";
|
|
70
|
+
import "../interaction-switch/index.mjs";
|
|
71
|
+
import "../interaction-data-picker/index.mjs";
|
|
72
|
+
import "../interaction-button-refresh/index.mjs";
|
|
73
|
+
import "../media-image/index.mjs";
|
|
74
|
+
import "../text-title/index.mjs";
|
|
75
|
+
import "../commons-qrcode/index.mjs";
|
|
76
|
+
import "../media-video/index.mjs";
|
|
77
|
+
import "../media-audio/index.mjs";
|
|
78
|
+
import "../text-real-time/index.mjs";
|
|
79
|
+
import "../media-carousel/index.mjs";
|
|
80
|
+
import "../media-carousel-slides/index.mjs";
|
|
81
|
+
import "../media-iframe-carousel/index.mjs";
|
|
82
|
+
import "../media-iframe/index.mjs";
|
|
83
|
+
import "../media-m3u8/index.mjs";
|
|
84
|
+
import "../media-m3u8-dynamic/index.mjs";
|
|
85
|
+
import "../media-audio-dynamic/index.mjs";
|
|
86
|
+
import "../media-video-dynamic/index.mjs";
|
|
87
|
+
import "../media-image-dynamic/index.mjs";
|
|
88
|
+
import "../media-iframe-dynamic/index.mjs";
|
|
89
|
+
import "../media-flv/index.mjs";
|
|
90
|
+
import "../commons-echarts/index.mjs";
|
|
91
|
+
import "../text-over-number/index.mjs";
|
|
92
|
+
import "../text-table-scroll/index.mjs";
|
|
93
|
+
import "../text-carousel/index.mjs";
|
|
94
|
+
import "../text-row-scroll/index.mjs";
|
|
95
|
+
import "../text-text-dynamic/index.mjs";
|
|
96
|
+
import "../text-count-down/index.mjs";
|
|
97
|
+
import "../graphical-circle/index.mjs";
|
|
98
|
+
import "../graphical-diamond/index.mjs";
|
|
99
|
+
import "../graphical-hexagon/index.mjs";
|
|
100
|
+
import "../graphical-isosceles-triangle/index.mjs";
|
|
101
|
+
import "../graphical-pentagon/index.mjs";
|
|
102
|
+
import "../graphical-rect/index.mjs";
|
|
103
|
+
import "../graphical-right-triangle/index.mjs";
|
|
104
|
+
import "../scene-map3d/index.mjs";
|
|
105
|
+
import "../scene-amap2d/index.mjs";
|
|
106
|
+
import "./index.mjs";
|
|
107
|
+
import "../scene-vr/index.mjs";
|
|
108
|
+
import "../scene-unity-iframe/index.mjs";
|
|
109
|
+
import "../scene-unity-webgl/index.mjs";
|
|
110
|
+
import "../scene-ue-iframe/index.mjs";
|
|
111
|
+
import "../scene-ue-shj/index.mjs";
|
|
112
|
+
import "../scene-default/index.mjs";
|
|
113
|
+
import "../interaction/tabs/index.mjs";
|
|
114
|
+
import "../interaction/tabs-icon/index.mjs";
|
|
115
|
+
import "../interaction/button/index.mjs";
|
|
116
|
+
import "../interaction/date-picker/src/date-picker/index.mjs";
|
|
117
|
+
import "../interaction/date-picker/src/date-picker-range/index.mjs";
|
|
118
|
+
import "../text/list/index.mjs";
|
|
119
|
+
import "../chart/src/bar/basic/index.mjs";
|
|
120
|
+
import "../chart/src/bar/animation/index.mjs";
|
|
121
|
+
import "../chart/src/bar/contrast/index.mjs";
|
|
122
|
+
import "../chart/src/bar/contrast2/index.mjs";
|
|
123
|
+
import "../chart/src/bar/contrast3/index.mjs";
|
|
124
|
+
import "../chart/src/bar/gradient-column-chart/index.mjs";
|
|
125
|
+
import "../chart/src/bar/horizontal/index.mjs";
|
|
126
|
+
import "../chart/src/bar/horizontal-stack/index.mjs";
|
|
127
|
+
import "../chart/src/bar/line-bar/index.mjs";
|
|
128
|
+
import "../chart/src/bar/line-bar2/index.mjs";
|
|
129
|
+
import "../chart/src/bar/loop/index.mjs";
|
|
130
|
+
import "../chart/src/bar/mini/index.mjs";
|
|
131
|
+
import "../chart/src/bar/polar/index.mjs";
|
|
132
|
+
import "../chart/src/bar/polar-stack/index.mjs";
|
|
133
|
+
import "../chart/src/bar/polar2/index.mjs";
|
|
134
|
+
import "../chart/src/bar/radius-circle/index.mjs";
|
|
135
|
+
import "../chart/src/bar/rank/index.mjs";
|
|
136
|
+
import "../chart/src/bar/segmented-progress/index.mjs";
|
|
137
|
+
import "../chart/src/bar/spire/index.mjs";
|
|
138
|
+
import "../chart/src/bar/stack/index.mjs";
|
|
139
|
+
import "../chart/src/bar/stack-line/index.mjs";
|
|
140
|
+
import "../chart/src/bar/stack2/index.mjs";
|
|
141
|
+
import "../chart/src/bar/stack3/index.mjs";
|
|
142
|
+
import "../chart/src/bar/staggered/index.mjs";
|
|
143
|
+
import "../chart/src/bar/three/index.mjs";
|
|
144
|
+
import "../chart/src/bar/waterfall/index.mjs";
|
|
145
|
+
import "../chart/src/bar/zebra/index.mjs";
|
|
146
|
+
import "../chart/src/line/area-gradient/index.mjs";
|
|
147
|
+
import "../chart/src/line/area-highlight/index.mjs";
|
|
148
|
+
import "../chart/src/line/area-highlight2/index.mjs";
|
|
149
|
+
import "../chart/src/line/basic/index.mjs";
|
|
150
|
+
import "../chart/src/line/bump/index.mjs";
|
|
151
|
+
import "../chart/src/line/dashed/index.mjs";
|
|
152
|
+
import "../chart/src/line/ladder/index.mjs";
|
|
153
|
+
import "../chart/src/line/logarithm/index.mjs";
|
|
154
|
+
import "../chart/src/line/multix/index.mjs";
|
|
155
|
+
import "../chart/src/line/polar-double/index.mjs";
|
|
156
|
+
import "../chart/src/line/rain-flow/index.mjs";
|
|
157
|
+
import "../chart/src/line/scale/index.mjs";
|
|
158
|
+
import "../chart/src/line/smooth/index.mjs";
|
|
159
|
+
import "../chart/src/line/smooth-area/index.mjs";
|
|
160
|
+
import "../chart/src/line/stack/index.mjs";
|
|
161
|
+
import "../chart/src/line/stack-area/index.mjs";
|
|
162
|
+
import "../chart/src/line/temp/index.mjs";
|
|
163
|
+
import "../chart/src/line/vertical/index.mjs";
|
|
164
|
+
import "../chart/src/map/basic/index.mjs";
|
|
165
|
+
import "../chart/src/map/bmap-basic/index.mjs";
|
|
166
|
+
import "../chart/src/map/bmap-heatmap/index.mjs";
|
|
167
|
+
import "../chart/src/map/bmap-rich/index.mjs";
|
|
168
|
+
import "../chart/src/map/customize/index.mjs";
|
|
169
|
+
import "../chart/src/map/lines/index.mjs";
|
|
170
|
+
import "../chart/src/map/scatter/index.mjs";
|
|
171
|
+
import "../chart/src/pie/3d/index.mjs";
|
|
172
|
+
import "../chart/src/pie/basic/index.mjs";
|
|
173
|
+
import "../chart/src/pie/basic2/index.mjs";
|
|
174
|
+
import "../chart/src/pie/customized/index.mjs";
|
|
175
|
+
import "../chart/src/pie/index/index.mjs";
|
|
176
|
+
import "../chart/src/pie/interval/index.mjs";
|
|
177
|
+
import "../chart/src/pie/legend-scroll/index.mjs";
|
|
178
|
+
import "../chart/src/pie/radius/index.mjs";
|
|
179
|
+
import "../chart/src/pie/rose/index.mjs";
|
|
180
|
+
import "../chart/src/pie/round/index.mjs";
|
|
181
|
+
import "../chart/src/pie/sunburst/index.mjs";
|
|
182
|
+
import "../chart/src/scatter/basic/index.mjs";
|
|
183
|
+
import "../chart/src/scatter/basic2/index.mjs";
|
|
184
|
+
import "../chart/src/scatter/bubble/index.mjs";
|
|
185
|
+
import "../chart/src/scatter/ripples/index.mjs";
|
|
186
|
+
/* empty css */
|
|
187
|
+
/* empty css */
|
|
188
|
+
import { SHJDatasourceV2 as pe } from "../../plugins/datasource/index.mjs";
|
|
189
|
+
import { SHJParseEvent as p } from "../../plugins/event/index.mjs";
|
|
190
|
+
const ue = (v) => (le("data-v-8fbdd15f"), v = v(), ne(), v), ye = /* @__PURE__ */ ue(() => /* @__PURE__ */ ie("div", {
|
|
8
191
|
id: "zerov-amap-3d",
|
|
9
192
|
class: "zerov-amap-container"
|
|
10
|
-
}, null, -1)),
|
|
11
|
-
|
|
12
|
-
],
|
|
13
|
-
...
|
|
193
|
+
}, null, -1)), ge = [
|
|
194
|
+
ye
|
|
195
|
+
], fe = I({ name: "zv-scene-amap3d" }), Zr = /* @__PURE__ */ I({
|
|
196
|
+
...fe,
|
|
14
197
|
props: {
|
|
15
198
|
basicOption: {},
|
|
16
199
|
sources: {},
|
|
@@ -27,15 +210,15 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
27
210
|
"amap3d-scene-dragend",
|
|
28
211
|
"amap3d-scene-pulseLinkLayer"
|
|
29
212
|
],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
|
|
213
|
+
setup(v, { expose: A, emit: B }) {
|
|
214
|
+
const o = v, u = B;
|
|
215
|
+
p.parseEvents(o.useEvents, "on-page-loaded", null);
|
|
33
216
|
const W = () => {
|
|
34
|
-
const
|
|
217
|
+
const i = M(), c = M(), S = h(!1), b = h(), k = h(), z = h(), m = h(), C = (t) => {
|
|
35
218
|
E(), window._AMapSecurityConfig = {
|
|
36
|
-
securityJsCode:
|
|
219
|
+
securityJsCode: t.basic.securityJsCode
|
|
37
220
|
}, ce.load({
|
|
38
|
-
key:
|
|
221
|
+
key: t.basic.key,
|
|
39
222
|
// 申请好的Web端开发者Key,首次调用 load 时必填
|
|
40
223
|
version: "2.0",
|
|
41
224
|
// 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
|
@@ -44,8 +227,8 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
44
227
|
},
|
|
45
228
|
plugins: ["AMap.ControlBar", "AMap.ToolBar", "AMap.Scale", "AMap.HeatMap", "AMap.GeoJSON", "AMap.ImageLayer", "AMap.TileLayer"]
|
|
46
229
|
}).then((e) => {
|
|
47
|
-
|
|
48
|
-
const
|
|
230
|
+
m.value = e;
|
|
231
|
+
const r = new m.value.createDefaultLayer({
|
|
49
232
|
visible: !0,
|
|
50
233
|
// 是否可见
|
|
51
234
|
opacity: 1,
|
|
@@ -53,180 +236,180 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
53
236
|
zIndex: 0
|
|
54
237
|
// 叠加层级
|
|
55
238
|
});
|
|
56
|
-
|
|
57
|
-
rotateEnable:
|
|
239
|
+
i.value = new e.Map("zerov-amap-3d", {
|
|
240
|
+
rotateEnable: t.config.rotateEnable,
|
|
58
241
|
// 是否开启地图旋转交互 鼠标右键 + 鼠标画圈移动 或 键盘Ctrl + 鼠标画圈移动
|
|
59
|
-
pitchEnable:
|
|
242
|
+
pitchEnable: t.config.pitchEnable,
|
|
60
243
|
// 是否开启地图倾斜交互 鼠标右键 + 鼠标上下移动或键盘Ctrl + 鼠标上下移动
|
|
61
|
-
resizeEnable:
|
|
62
|
-
zoomEnable:
|
|
63
|
-
dragEnable:
|
|
64
|
-
zoom:
|
|
244
|
+
resizeEnable: t.config.resizeEnable,
|
|
245
|
+
zoomEnable: t.config.zoomEnable,
|
|
246
|
+
dragEnable: t.config.dragEnable,
|
|
247
|
+
zoom: t.config.zoom,
|
|
65
248
|
// 初始化地图层级
|
|
66
249
|
viewMode: "3D",
|
|
67
250
|
// 开启3D视图,默认为关闭
|
|
68
|
-
zooms:
|
|
251
|
+
zooms: t.config.zooms,
|
|
69
252
|
// 地图显示的缩放级别范围
|
|
70
|
-
center:
|
|
253
|
+
center: t.config.center,
|
|
71
254
|
// 初始地图中心经纬度
|
|
72
|
-
mapStyle:
|
|
73
|
-
features:
|
|
74
|
-
pitch:
|
|
255
|
+
mapStyle: t.config.mapStyle,
|
|
256
|
+
features: t.config.features,
|
|
257
|
+
pitch: t.config.pitch,
|
|
75
258
|
// 0-83
|
|
76
|
-
rotation:
|
|
259
|
+
rotation: t.config.rotation,
|
|
77
260
|
// 0-360
|
|
78
|
-
wallColor:
|
|
79
|
-
roofColor:
|
|
80
|
-
skyColor:
|
|
81
|
-
layers: [
|
|
261
|
+
wallColor: t.config.floors.wallColor,
|
|
262
|
+
roofColor: t.config.floors.roofColor,
|
|
263
|
+
skyColor: t.config.skyColor,
|
|
264
|
+
layers: [r]
|
|
82
265
|
}), c.value = new window.Loca.Container({
|
|
83
|
-
map:
|
|
84
|
-
}), z.value = new
|
|
85
|
-
visible:
|
|
266
|
+
map: i.value
|
|
267
|
+
}), z.value = new m.value.Scale({
|
|
268
|
+
visible: t.config.plugin.scale.visible,
|
|
86
269
|
position: {
|
|
87
|
-
left:
|
|
88
|
-
bottom:
|
|
270
|
+
left: t.config.plugin.scale.position.left + "px",
|
|
271
|
+
bottom: t.config.plugin.scale.position.bottom + "px"
|
|
89
272
|
}
|
|
90
|
-
}),
|
|
91
|
-
visible:
|
|
92
|
-
showControlButton:
|
|
273
|
+
}), i.value.addControl(z.value), b.value = new e.ControlBar({
|
|
274
|
+
visible: t.config.plugin.controlBar.visible,
|
|
275
|
+
showControlButton: t.config.plugin.controlBar.showControlButton,
|
|
93
276
|
position: {
|
|
94
|
-
right:
|
|
95
|
-
top:
|
|
277
|
+
right: t.config.plugin.controlBar.position.right + "px",
|
|
278
|
+
top: t.config.plugin.controlBar.position.top + "px"
|
|
96
279
|
}
|
|
97
|
-
}),
|
|
98
|
-
visible:
|
|
280
|
+
}), i.value.addControl(b.value), k.value = new e.ToolBar({
|
|
281
|
+
visible: t.config.plugin.toolBar.visible,
|
|
99
282
|
position: {
|
|
100
|
-
left:
|
|
101
|
-
top:
|
|
283
|
+
left: t.config.plugin.toolBar.position.left + "px",
|
|
284
|
+
top: t.config.plugin.toolBar.position.top + "px"
|
|
102
285
|
}
|
|
103
|
-
}),
|
|
286
|
+
}), i.value.addControl(k.value), L(e), i.value.on("complete", () => {
|
|
104
287
|
setTimeout(() => {
|
|
105
|
-
S.value = !0,
|
|
288
|
+
S.value = !0, u("amap3d-scene-success"), p.parseEvents(o.useEvents, "amap3d-scene-success", null);
|
|
106
289
|
}, 666);
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
}),
|
|
110
|
-
|
|
111
|
-
}),
|
|
112
|
-
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
|
|
290
|
+
}), i.value.on("zoomstart", () => {
|
|
291
|
+
u("amap3d-scene-zoomstart"), p.parseEvents(o.useEvents, "amap3d-scene-zoomstart", null);
|
|
292
|
+
}), i.value.on("zoomend", () => {
|
|
293
|
+
u("amap3d-scene-zoomend"), p.parseEvents(o.useEvents, "amap3d-scene-zoomend", null);
|
|
294
|
+
}), i.value.on("click", (a) => {
|
|
295
|
+
u("amap3d-scene-mapclick", a.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-mapclick", a.lnglat);
|
|
296
|
+
}), i.value.on("dragstart", (a) => {
|
|
297
|
+
u("amap3d-scene-dragstart", a.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-dragstart", a.lnglat);
|
|
298
|
+
}), i.value.on("dragend", (a) => {
|
|
299
|
+
u("amap3d-scene-dragend", a.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-dragend", a.lnglat);
|
|
117
300
|
});
|
|
118
301
|
}).catch((e) => {
|
|
119
302
|
});
|
|
120
|
-
}, L = w((
|
|
121
|
-
|
|
122
|
-
tId:
|
|
123
|
-
sources:
|
|
124
|
-
callback: (
|
|
303
|
+
}, L = w((t) => {
|
|
304
|
+
o.sources && o.sources.length > 0 ? pe.parse({
|
|
305
|
+
tId: o.uuid,
|
|
306
|
+
sources: o.sources,
|
|
307
|
+
callback: (r) => {
|
|
125
308
|
try {
|
|
126
|
-
const
|
|
127
|
-
|
|
309
|
+
const a = o.basicOption.widgets.find((s) => s._sourceId === r.id);
|
|
310
|
+
a && a.type === "heatmap" && G(window.Loca, a, f(r.data[0].data, "Point")), a && a.type === "dotlayers" && H(window.Loca, a, f(r.data[0].data, "Point")), a && a.type === "scatter" && Z(window.Loca, a, f(r.data[0].data, "Point")), a && a.type === "labelsLayer" && R(window.Loca, a, f(r.data[0].data, "Point")), a && a.type === "signagePoints" && j(window.Loca, a, f(r.data[0].data, "Point")), a && a.type === "pulseLinkLayer" && V(window.Loca, a, f(r.data[0].data, "LineString"));
|
|
128
311
|
} catch {
|
|
129
312
|
}
|
|
130
|
-
|
|
131
|
-
O(
|
|
313
|
+
o.basicOption.widgets.filter((a) => a.type === "boundary").forEach((a) => {
|
|
314
|
+
O(t, a);
|
|
132
315
|
});
|
|
133
316
|
}
|
|
134
|
-
}) :
|
|
135
|
-
O(
|
|
317
|
+
}) : o.basicOption.widgets.filter((r) => r.type === "boundary").forEach((r) => {
|
|
318
|
+
O(t, r);
|
|
136
319
|
});
|
|
137
|
-
const e =
|
|
138
|
-
for (let
|
|
139
|
-
(e[
|
|
140
|
-
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
const
|
|
145
|
-
|
|
320
|
+
const e = i.value.getLayers();
|
|
321
|
+
for (let r = 0; r < e.length; r++)
|
|
322
|
+
(e[r].type === "sketchTileLayer" || e[r]._opts.type === "sketchImageLayer") && i.value.removeLayer(e[r]);
|
|
323
|
+
o.basicOption.widgets.filter((r) => r.type === "sketchTile").forEach((r) => {
|
|
324
|
+
const a = F(r);
|
|
325
|
+
a && i.value.addLayer(a);
|
|
326
|
+
}), o.basicOption.widgets.filter((r) => r.type === "sketchImage").forEach((r) => {
|
|
327
|
+
const a = N(r);
|
|
328
|
+
i.value.addLayer(a);
|
|
146
329
|
});
|
|
147
|
-
}, 200), T = (
|
|
148
|
-
const
|
|
149
|
-
for (let
|
|
150
|
-
const
|
|
151
|
-
|
|
330
|
+
}, 200), T = (t) => {
|
|
331
|
+
const r = t.slice(t.indexOf("(") + 1, t.lastIndexOf(")")).split(",").map((s) => s.trim()), a = {};
|
|
332
|
+
for (let s = 1; s < r.length; s++) {
|
|
333
|
+
const n = r[s].split(" "), l = n[0], y = parseFloat(n[1]) / 100, Y = Math.round(y * 100) / 100;
|
|
334
|
+
a[Y] = l;
|
|
152
335
|
}
|
|
153
|
-
return
|
|
154
|
-
}, F = (
|
|
336
|
+
return a;
|
|
337
|
+
}, F = (t) => {
|
|
155
338
|
try {
|
|
156
|
-
return new
|
|
157
|
-
bounds: new
|
|
158
|
-
|
|
159
|
-
|
|
339
|
+
return new m.value.TileLayer({
|
|
340
|
+
bounds: new m.value.Bounds(
|
|
341
|
+
t.bounds[0],
|
|
342
|
+
t.bounds[1]
|
|
160
343
|
),
|
|
161
|
-
getTileUrl: function(
|
|
344
|
+
getTileUrl: function(r, a, s) {
|
|
162
345
|
try {
|
|
163
|
-
return
|
|
346
|
+
return t.url.replace("{z}", s).replace("{x}", r).replace("{y}", a);
|
|
164
347
|
} catch {
|
|
165
348
|
}
|
|
166
349
|
},
|
|
167
350
|
type: "sketchTileLayer",
|
|
168
|
-
tileSize:
|
|
169
|
-
opacity:
|
|
170
|
-
zIndex:
|
|
171
|
-
zooms:
|
|
351
|
+
tileSize: t.tileSize,
|
|
352
|
+
opacity: t.opacity,
|
|
353
|
+
zIndex: t.zIndex,
|
|
354
|
+
zooms: t.zooms
|
|
172
355
|
});
|
|
173
356
|
} catch {
|
|
174
357
|
}
|
|
175
358
|
return null;
|
|
176
|
-
}, N = (
|
|
359
|
+
}, N = (t) => {
|
|
177
360
|
try {
|
|
178
|
-
return new
|
|
179
|
-
bounds: new
|
|
180
|
-
|
|
361
|
+
return new m.value.ImageLayer({
|
|
362
|
+
bounds: new m.value.Bounds(
|
|
363
|
+
t.bounds[0],
|
|
181
364
|
// 左下 手绘图左下相对于地图的经纬度
|
|
182
|
-
|
|
365
|
+
t.bounds[1]
|
|
183
366
|
// 右上 手绘图右上相对于地图的经纬度
|
|
184
367
|
),
|
|
185
368
|
type: "sketchImageLayer",
|
|
186
|
-
opacity:
|
|
187
|
-
url:
|
|
188
|
-
zIndex:
|
|
189
|
-
zooms:
|
|
369
|
+
opacity: t.opacity,
|
|
370
|
+
url: t.url,
|
|
371
|
+
zIndex: t.zIndex,
|
|
372
|
+
zooms: t.zooms
|
|
190
373
|
// 设置可见级别,[最小级别,最大级别]
|
|
191
374
|
});
|
|
192
375
|
} catch {
|
|
193
376
|
}
|
|
194
377
|
return null;
|
|
195
|
-
}, G = (
|
|
378
|
+
}, G = (t, e, r) => {
|
|
196
379
|
try {
|
|
197
|
-
const
|
|
380
|
+
const a = new t.HeatMapLayer({
|
|
198
381
|
zIndex: 10,
|
|
199
382
|
opacity: e.opacity,
|
|
200
383
|
visible: !0,
|
|
201
384
|
zooms: [2, 22]
|
|
202
|
-
}),
|
|
203
|
-
data:
|
|
385
|
+
}), s = new t.GeoJSONSource({
|
|
386
|
+
data: r
|
|
204
387
|
});
|
|
205
|
-
|
|
388
|
+
a.setSource(s, {
|
|
206
389
|
radius: e.style.radius,
|
|
207
390
|
unit: e.style.unit,
|
|
208
391
|
height: e.style.height,
|
|
209
392
|
opacity: e.style.opacity,
|
|
210
393
|
gradient: T(e.style.gradient),
|
|
211
|
-
value: function(
|
|
212
|
-
return
|
|
394
|
+
value: function(n, l) {
|
|
395
|
+
return l.coordinates[2] || 0;
|
|
213
396
|
},
|
|
214
397
|
min: e.style.min,
|
|
215
398
|
max: e.style.max,
|
|
216
399
|
// 4.6
|
|
217
400
|
heightBezier: [0, 0.53, 0.37, 0.98]
|
|
218
|
-
}), c.value.add(
|
|
401
|
+
}), c.value.add(a);
|
|
219
402
|
} catch {
|
|
220
403
|
}
|
|
221
|
-
}, O = async (
|
|
404
|
+
}, O = async (t, e) => {
|
|
222
405
|
try {
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
225
|
-
const
|
|
226
|
-
geoJSON:
|
|
227
|
-
getPolygon: function(
|
|
228
|
-
const
|
|
229
|
-
path:
|
|
406
|
+
const r = await me.get(e.geojson);
|
|
407
|
+
if (r.status === 200) {
|
|
408
|
+
const a = new t.GeoJSON({
|
|
409
|
+
geoJSON: r.data,
|
|
410
|
+
getPolygon: function(s, n) {
|
|
411
|
+
const l = new t.Polygon({
|
|
412
|
+
path: n,
|
|
230
413
|
zIndex: e.zIndex,
|
|
231
414
|
fillColor: e.style.fillColor,
|
|
232
415
|
// 填充色
|
|
@@ -241,8 +424,8 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
241
424
|
strokeStyle: e.style.strokeStyle
|
|
242
425
|
// 线条样式
|
|
243
426
|
});
|
|
244
|
-
return
|
|
245
|
-
|
|
427
|
+
return l.on("mouseover", () => {
|
|
428
|
+
l.setOptions({
|
|
246
429
|
fillOpacity: e.mouseover.fillOpacity,
|
|
247
430
|
fillColor: e.mouseover.fillColor,
|
|
248
431
|
strokeOpacity: e.mouseover.strokeOpacity,
|
|
@@ -250,8 +433,8 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
250
433
|
strokeStyle: e.mouseover.strokeStyle,
|
|
251
434
|
strokeWeight: e.mouseover.strokeWeight
|
|
252
435
|
});
|
|
253
|
-
}),
|
|
254
|
-
|
|
436
|
+
}), l.on("mouseout", () => {
|
|
437
|
+
l.setOptions({
|
|
255
438
|
fillColor: e.style.fillColor,
|
|
256
439
|
// 填充色
|
|
257
440
|
strokeOpacity: e.style.strokeOpacity,
|
|
@@ -265,23 +448,23 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
265
448
|
strokeStyle: e.style.strokeStyle
|
|
266
449
|
// 线条样式
|
|
267
450
|
});
|
|
268
|
-
}),
|
|
451
|
+
}), l;
|
|
269
452
|
}
|
|
270
453
|
});
|
|
271
|
-
|
|
454
|
+
i.value.add(a);
|
|
272
455
|
}
|
|
273
456
|
} catch {
|
|
274
457
|
}
|
|
275
|
-
}, H = (
|
|
458
|
+
}, H = (t, e, r) => {
|
|
276
459
|
try {
|
|
277
|
-
const
|
|
278
|
-
data:
|
|
279
|
-
}),
|
|
460
|
+
const a = new t.GeoJSONSource({
|
|
461
|
+
data: r
|
|
462
|
+
}), s = new t.PointLayer({
|
|
280
463
|
zIndex: e.zIndex,
|
|
281
464
|
blend: e.blend,
|
|
282
465
|
visible: e.visible,
|
|
283
466
|
opacity: e.opacity
|
|
284
|
-
}),
|
|
467
|
+
}), n = {
|
|
285
468
|
radius: e.style.radius,
|
|
286
469
|
unit: e.style.unit,
|
|
287
470
|
color: e.style.color,
|
|
@@ -289,7 +472,7 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
289
472
|
blurWidth: e.style.blurWidth,
|
|
290
473
|
borderColor: e.style.borderColor
|
|
291
474
|
};
|
|
292
|
-
|
|
475
|
+
s.setSource(a), s.setStyle(n), c.value.add(s), s.addAnimate({
|
|
293
476
|
key: e.animate.key,
|
|
294
477
|
value: e.animate.value,
|
|
295
478
|
duration: e.animate.duration,
|
|
@@ -302,18 +485,18 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
302
485
|
});
|
|
303
486
|
} catch {
|
|
304
487
|
}
|
|
305
|
-
}, Z = (
|
|
488
|
+
}, Z = (t, e, r) => {
|
|
306
489
|
try {
|
|
307
|
-
const
|
|
308
|
-
data:
|
|
309
|
-
}),
|
|
490
|
+
const a = new t.GeoJSONSource({
|
|
491
|
+
data: r
|
|
492
|
+
}), s = new t.ScatterLayer({
|
|
310
493
|
loca: c.value,
|
|
311
494
|
zIndex: e.zIndex,
|
|
312
495
|
opacity: e.opacity,
|
|
313
496
|
visible: e.visible,
|
|
314
497
|
zooms: e.zooms
|
|
315
498
|
});
|
|
316
|
-
|
|
499
|
+
s.setSource(a), s.setStyle({
|
|
317
500
|
unit: e.style.unit,
|
|
318
501
|
size: e.style.size,
|
|
319
502
|
borderWidth: e.style.borderWidth,
|
|
@@ -323,11 +506,11 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
323
506
|
}), c.value.animate.start();
|
|
324
507
|
} catch {
|
|
325
508
|
}
|
|
326
|
-
}, R = (
|
|
509
|
+
}, R = (t, e, r) => {
|
|
327
510
|
try {
|
|
328
|
-
const
|
|
329
|
-
data:
|
|
330
|
-
}),
|
|
511
|
+
const a = new t.GeoJSONSource({
|
|
512
|
+
data: r
|
|
513
|
+
}), s = new t.LabelsLayer({
|
|
331
514
|
eventSupport: !0,
|
|
332
515
|
visible: e.visible,
|
|
333
516
|
zooms: e.zooms,
|
|
@@ -336,7 +519,7 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
336
519
|
allowCollision: e.allowCollision,
|
|
337
520
|
zIndex: e.zIndex
|
|
338
521
|
});
|
|
339
|
-
|
|
522
|
+
s.setSource(a), s.setStyle({
|
|
340
523
|
icon: {
|
|
341
524
|
image: e.icon.image,
|
|
342
525
|
size: e.icon.size,
|
|
@@ -346,7 +529,7 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
346
529
|
},
|
|
347
530
|
text: {
|
|
348
531
|
// 每项配置都可使用回调函数来动态配置
|
|
349
|
-
content: (
|
|
532
|
+
content: (n, l) => l.properties[e.text.content],
|
|
350
533
|
zooms: e.text.zooms,
|
|
351
534
|
offset: e.text.offset,
|
|
352
535
|
direction: e.text.direction,
|
|
@@ -363,29 +546,29 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
363
546
|
fontWeight: e.text.style.fontWeight
|
|
364
547
|
}
|
|
365
548
|
}
|
|
366
|
-
}),
|
|
367
|
-
const
|
|
368
|
-
for (const
|
|
369
|
-
|
|
370
|
-
}),
|
|
371
|
-
}),
|
|
549
|
+
}), s.on("complete", () => {
|
|
550
|
+
const n = s.getLabelsLayer().getAllOverlays();
|
|
551
|
+
for (const l of n)
|
|
552
|
+
l.on("click", (y) => {
|
|
553
|
+
}), l.on("mouseover", (y) => {
|
|
554
|
+
}), l.on("mouseout", (y) => {
|
|
372
555
|
});
|
|
373
|
-
}), c.value.add(
|
|
556
|
+
}), c.value.add(s);
|
|
374
557
|
} catch {
|
|
375
558
|
}
|
|
376
|
-
}, j = (
|
|
559
|
+
}, j = (t, e, r) => {
|
|
377
560
|
try {
|
|
378
|
-
const
|
|
379
|
-
data:
|
|
380
|
-
}),
|
|
561
|
+
const a = new t.GeoJSONSource({
|
|
562
|
+
data: r
|
|
563
|
+
}), s = new t.ZMarkerLayer({
|
|
381
564
|
zIndex: e.signs.zIndex,
|
|
382
565
|
visible: e.signs.visible,
|
|
383
566
|
zooms: e.signs.zooms,
|
|
384
567
|
opacity: e.signs.opacity,
|
|
385
568
|
depth: !1
|
|
386
569
|
});
|
|
387
|
-
|
|
388
|
-
content: (
|
|
570
|
+
s.setSource(a), s.setStyle({
|
|
571
|
+
content: (l, y) => `<div style="
|
|
389
572
|
width: ${e.signs.style.width}px;
|
|
390
573
|
height: ${e.signs.style.height + 148}px;
|
|
391
574
|
">
|
|
@@ -401,7 +584,7 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
401
584
|
color:${e.signs.style.fillColor};
|
|
402
585
|
margin:0;
|
|
403
586
|
">
|
|
404
|
-
${
|
|
587
|
+
${y.properties.name}
|
|
405
588
|
</p>
|
|
406
589
|
</div>`,
|
|
407
590
|
unit: e.signs.style.unit,
|
|
@@ -409,16 +592,16 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
409
592
|
alwaysFront: e.signs.style.alwaysFront,
|
|
410
593
|
size: [e.signs.style.width, e.signs.style.height + 148],
|
|
411
594
|
altitude: e.signs.style.altitude
|
|
412
|
-
}), c.value.add(
|
|
413
|
-
const
|
|
595
|
+
}), c.value.add(s);
|
|
596
|
+
const n = new t.ZMarkerLayer({
|
|
414
597
|
zIndex: e.landmark.zIndex,
|
|
415
598
|
visible: e.landmark.visible,
|
|
416
599
|
zooms: e.landmark.zooms,
|
|
417
600
|
opacity: e.landmark.opacity,
|
|
418
601
|
depth: !1
|
|
419
602
|
});
|
|
420
|
-
|
|
421
|
-
content: (
|
|
603
|
+
n.setSource(a), n.setStyle({
|
|
604
|
+
content: (l, y) => `<div style="
|
|
422
605
|
width: ${e.landmark.style.size[0]}px;
|
|
423
606
|
height: ${e.landmark.style.size[1]}px;
|
|
424
607
|
background: url(${e.landmark.style.image});
|
|
@@ -430,7 +613,7 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
430
613
|
alwaysFront: e.landmark.style.alwaysFront,
|
|
431
614
|
size: e.landmark.style.size,
|
|
432
615
|
altitude: e.landmark.style.altitude
|
|
433
|
-
}),
|
|
616
|
+
}), n.addAnimate({
|
|
434
617
|
key: "altitude",
|
|
435
618
|
value: [0, 1],
|
|
436
619
|
random: e.landmark.animate.random,
|
|
@@ -439,29 +622,29 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
439
622
|
delay: e.landmark.animate.delay,
|
|
440
623
|
yoyo: e.landmark.animate.yoyo,
|
|
441
624
|
repeat: e.landmark.animate.repeat
|
|
442
|
-
}), c.value.add(
|
|
625
|
+
}), c.value.add(n), c.value.animate.start();
|
|
443
626
|
} catch {
|
|
444
627
|
}
|
|
445
|
-
}, V = (
|
|
446
|
-
const
|
|
628
|
+
}, V = (t, e, r) => {
|
|
629
|
+
const a = new t.PulseLinkLayer({
|
|
447
630
|
zIndex: e.zIndex,
|
|
448
631
|
opacity: e.opacity,
|
|
449
632
|
visible: e.visible,
|
|
450
633
|
zooms: e.zooms,
|
|
451
634
|
depth: e.depth
|
|
452
|
-
}),
|
|
453
|
-
data:
|
|
635
|
+
}), s = new t.GeoJSONSource({
|
|
636
|
+
data: r
|
|
454
637
|
});
|
|
455
|
-
|
|
638
|
+
a.setSource(s), a.setStyle({
|
|
456
639
|
unit: e.style.unit,
|
|
457
640
|
dash: [4e4, 0, 4e4, 0],
|
|
458
641
|
lineWidth: e.style.lineWidth,
|
|
459
|
-
height: function(
|
|
460
|
-
return
|
|
642
|
+
height: function(n, l) {
|
|
643
|
+
return l.distance / 3 + e.style.height;
|
|
461
644
|
},
|
|
462
645
|
// altitude: 1000,
|
|
463
646
|
smoothSteps: 30,
|
|
464
|
-
speed: function(
|
|
647
|
+
speed: function(n, l) {
|
|
465
648
|
return 1e5 + Math.random() * e.style.speed;
|
|
466
649
|
},
|
|
467
650
|
flowLength: e.style.flowLength,
|
|
@@ -470,65 +653,65 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
470
653
|
// 弧顶位置比例
|
|
471
654
|
headColor: e.style.headColor,
|
|
472
655
|
trailColor: e.style.trailColor
|
|
473
|
-
}),
|
|
474
|
-
const
|
|
475
|
-
|
|
476
|
-
}), c.value.add(
|
|
477
|
-
},
|
|
478
|
-
const
|
|
656
|
+
}), i.value.on("click", (n) => {
|
|
657
|
+
const l = a.queryFeature(n.pixel.toArray());
|
|
658
|
+
l && (u("amap3d-scene-pulseLinkLayer", l), p.parseEvents(o.useEvents, "amap3d-scene-pulseLinkLayer", l));
|
|
659
|
+
}), c.value.add(a), c.value.animate.start();
|
|
660
|
+
}, f = (t, e) => {
|
|
661
|
+
const r = {
|
|
479
662
|
type: "FeatureCollection",
|
|
480
663
|
features: []
|
|
481
664
|
};
|
|
482
|
-
return
|
|
483
|
-
const
|
|
665
|
+
return t.forEach((a, s) => {
|
|
666
|
+
const n = {
|
|
484
667
|
type: "Feature",
|
|
485
|
-
id:
|
|
668
|
+
id: de(),
|
|
486
669
|
properties: {
|
|
487
670
|
type: e === "Point" ? e : 0,
|
|
488
|
-
...
|
|
671
|
+
...a
|
|
489
672
|
},
|
|
490
673
|
geometry: {
|
|
491
674
|
type: e,
|
|
492
|
-
coordinates:
|
|
675
|
+
coordinates: a.value
|
|
493
676
|
}
|
|
494
677
|
};
|
|
495
|
-
|
|
496
|
-
}),
|
|
497
|
-
}, U = (
|
|
498
|
-
|
|
499
|
-
dragEnable:
|
|
500
|
-
zoomEnable:
|
|
501
|
-
rotateEnable:
|
|
502
|
-
pitchEnable:
|
|
503
|
-
}),
|
|
678
|
+
r.features.push(n);
|
|
679
|
+
}), r;
|
|
680
|
+
}, U = (t) => {
|
|
681
|
+
i.value.setFeatures(t.config.features), i.value.setPitch(t.config.pitch), i.value.setRotation(t.config.rotation), i.value.setStatus({
|
|
682
|
+
dragEnable: t.config.dragEnable,
|
|
683
|
+
zoomEnable: t.config.zoomEnable,
|
|
684
|
+
rotateEnable: t.config.rotateEnable,
|
|
685
|
+
pitchEnable: t.config.pitchEnable
|
|
686
|
+
}), t.config.plugin.scale.visible ? z.value.show() : z.value.hide(), t.config.plugin.toolBar.visible ? k.value.show() : k.value.hide(), t.config.plugin.controlBar.visible ? b.value.show() : b.value.hide();
|
|
504
687
|
}, q = () => {
|
|
505
|
-
|
|
506
|
-
}, K = (
|
|
507
|
-
|
|
508
|
-
}, Q = (
|
|
509
|
-
|
|
510
|
-
}, X = (
|
|
511
|
-
|
|
688
|
+
i.value.clearMap(), c.value.clear(), L(m.value);
|
|
689
|
+
}, K = (t) => {
|
|
690
|
+
i.value.setMapStyle(t.config.mapStyle);
|
|
691
|
+
}, Q = (t) => {
|
|
692
|
+
i.value.setZoom(t.config.zoom, !1, 200);
|
|
693
|
+
}, X = (t) => {
|
|
694
|
+
i.value.setCenter(t.config.center, !1, 200);
|
|
512
695
|
}, E = () => {
|
|
513
|
-
|
|
696
|
+
i.value && (i.value.clearMap(), i.value.destroy(), i.value = null, c.value && (c.value.clear(), c.value.destroy(), c.value = null));
|
|
514
697
|
};
|
|
515
|
-
return
|
|
698
|
+
return oe(() => {
|
|
516
699
|
setTimeout(() => {
|
|
517
|
-
C(
|
|
700
|
+
C(o.basicOption);
|
|
518
701
|
}, 0);
|
|
519
|
-
}),
|
|
702
|
+
}), se(() => E()), {
|
|
520
703
|
initAMap3d: C,
|
|
521
704
|
updateAMapStyle: K,
|
|
522
705
|
updateAMapConfig: U,
|
|
523
706
|
updateAMapComponents: q,
|
|
524
707
|
updateAMapZoom: Q,
|
|
525
708
|
updateAMapCenter: X,
|
|
526
|
-
amap3d:
|
|
709
|
+
amap3d: i,
|
|
527
710
|
loading: S,
|
|
528
|
-
AMapPrototype:
|
|
711
|
+
AMapPrototype: m
|
|
529
712
|
};
|
|
530
713
|
}, {
|
|
531
|
-
initAMap3d:
|
|
714
|
+
initAMap3d: g,
|
|
532
715
|
updateAMapStyle: P,
|
|
533
716
|
updateAMapConfig: x,
|
|
534
717
|
updateAMapComponents: _,
|
|
@@ -536,33 +719,33 @@ const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
536
719
|
updateAMapCenter: J,
|
|
537
720
|
loading: D
|
|
538
721
|
} = W();
|
|
539
|
-
return
|
|
540
|
-
x(
|
|
541
|
-
}, { deep: !0 }),
|
|
542
|
-
$(
|
|
543
|
-
}, { deep: !0 }),
|
|
544
|
-
J(
|
|
545
|
-
}, { deep: !0 }),
|
|
546
|
-
|
|
547
|
-
}, 300), { deep: !0 }),
|
|
548
|
-
|
|
549
|
-
}, 300), { deep: !0 }),
|
|
722
|
+
return d(() => o.basicOption.config, () => {
|
|
723
|
+
x(o.basicOption);
|
|
724
|
+
}, { deep: !0 }), d(() => o.basicOption.config.zoom, () => {
|
|
725
|
+
$(o.basicOption);
|
|
726
|
+
}, { deep: !0 }), d(() => o.basicOption.config.center, () => {
|
|
727
|
+
J(o.basicOption);
|
|
728
|
+
}, { deep: !0 }), d(() => o.basicOption.config.floors, w(() => {
|
|
729
|
+
g(o.basicOption);
|
|
730
|
+
}, 300), { deep: !0 }), d(() => o.basicOption.config.skyColor, w(() => {
|
|
731
|
+
g(o.basicOption);
|
|
732
|
+
}, 300), { deep: !0 }), d(() => o.basicOption.widgets, () => {
|
|
550
733
|
_();
|
|
551
|
-
}, { deep: !0 }),
|
|
552
|
-
P(
|
|
553
|
-
}, { deep: !0 }),
|
|
554
|
-
|
|
555
|
-
}, { deep: !0 }),
|
|
556
|
-
|
|
734
|
+
}, { deep: !0 }), d(() => o.basicOption.config.mapStyle, () => {
|
|
735
|
+
P(o.basicOption);
|
|
736
|
+
}, { deep: !0 }), d(() => o.basicOption.basic, () => {
|
|
737
|
+
g(o.basicOption);
|
|
738
|
+
}, { deep: !0 }), d(() => o.sources, () => {
|
|
739
|
+
g(o.basicOption);
|
|
557
740
|
}, { deep: !0 }), A({
|
|
558
|
-
refresh: () =>
|
|
559
|
-
refreshView: () => x(
|
|
560
|
-
refreshData: () =>
|
|
561
|
-
}), (
|
|
562
|
-
class:
|
|
563
|
-
},
|
|
741
|
+
refresh: () => g(o.basicOption),
|
|
742
|
+
refreshView: () => x(o.basicOption),
|
|
743
|
+
refreshData: () => g(o.basicOption)
|
|
744
|
+
}), (i, c) => (te(), ee("div", {
|
|
745
|
+
class: ae(["amap-3d-wrap", { show: re(D) }])
|
|
746
|
+
}, ge, 2));
|
|
564
747
|
}
|
|
565
748
|
});
|
|
566
749
|
export {
|
|
567
|
-
|
|
750
|
+
Zr as default
|
|
568
751
|
};
|