@shjjs/visual-ui 1.0.39 → 1.0.40
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.mjs +7 -7
- package/es/commons/core/useChart.mjs +301 -301
- package/es/commons/utils/parseDataset.mjs +19 -19
- package/es/commons/utils/typescript.d.ts +5 -5
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +269 -269
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +247 -247
- package/es/components/chart/commons/hooks/useChart.mjs +316 -316
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +261 -261
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +260 -260
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +260 -260
- package/es/components/chart-other-circular-graph/index.vue.mjs +260 -260
- package/es/components/chart-other-force/index.vue.mjs +260 -260
- package/es/components/chart-other-force2/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel-split/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel2/index.vue.mjs +260 -260
- package/es/components/chart-other-gauge/index.vue.mjs +260 -260
- package/es/components/chart-other-gauge-grade/index.vue.mjs +260 -260
- package/es/components/chart-other-gauge-stage/index.vue.mjs +260 -260
- package/es/components/chart-other-graph-basic/index.vue.mjs +260 -260
- package/es/components/chart-other-graph-basic2/index.vue.mjs +260 -260
- package/es/components/chart-other-graph-calendar/index.vue.mjs +260 -260
- package/es/components/chart-other-grid-percentage/index.vue.mjs +266 -266
- package/es/components/chart-other-heatmap/index.vue.mjs +260 -260
- package/es/components/chart-other-label-gauge/index.vue.mjs +262 -262
- package/es/components/chart-other-liquidfill/index.vue.mjs +259 -259
- package/es/components/chart-other-parallel-basic/index.vue.mjs +260 -260
- package/es/components/chart-other-parallel-mul/index.vue.mjs +260 -260
- package/es/components/chart-other-radar/index.vue.mjs +281 -281
- package/es/components/chart-other-radar-stack/index.vue.mjs +261 -261
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-book/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +260 -260
- package/es/components/chart-other-theme-river/index.vue.mjs +265 -265
- package/es/components/chart-other-tree/index.vue.mjs +259 -259
- package/es/components/chart-other-tree-line/index.vue.mjs +259 -259
- package/es/components/chart-other-treemap/index.vue.mjs +259 -259
- package/es/components/chart-other-treemap-basic/index.vue.mjs +259 -259
- package/es/components/chart-other-word-cloud/index.vue.mjs +259 -259
- package/es/components/commons/custom-component-render/index.d.ts +76 -76
- package/es/components/commons/custom-component-render/index.vue.d.ts +76 -76
- package/es/components/commons/custom-component-render/index.vue.mjs +7 -7
- package/es/components/commons/custom-component-render/index.vue2.mjs +280 -280
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +279 -279
- package/es/components/commons-gaussian-splatting-view/index.vue.mjs +7 -7
- package/es/components/commons-loop-iterator/index.vue.mjs +7 -7
- package/es/components/commons-loop-iterator/index.vue2.mjs +315 -315
- package/es/components/commons-product-model/index.vue.mjs +7 -7
- package/es/components/commons-product-model/index.vue2.mjs +424 -424
- package/es/components/commons-qrcode/index.vue.d.ts +90 -90
- package/es/components/commons-qrcode/index.vue.mjs +7 -7
- package/es/components/commons-three-loader/index.vue.mjs +7 -7
- package/es/components/commons-three-loader/index.vue2.mjs +410 -410
- package/es/components/commons-three-loader3/index.vue.mjs +7 -7
- package/es/components/commons-three-loader3/index.vue2.mjs +387 -387
- package/es/components/commons-weather/index.vue.mjs +7 -7
- package/es/components/commons-weather/index.vue2.mjs +297 -297
- package/es/components/commons-weather-dynamic/index.vue.mjs +7 -7
- package/es/components/commons-weather-dynamic/index.vue2.mjs +305 -305
- package/es/components/graphical-circle/index.vue.mjs +7 -7
- package/es/components/graphical-diamond/index.vue.mjs +7 -7
- package/es/components/graphical-hexagon/index.vue.mjs +7 -7
- package/es/components/graphical-isosceles-triangle/index.vue.mjs +7 -7
- package/es/components/graphical-pentagon/index.vue.mjs +7 -7
- package/es/components/graphical-rect/index.vue.mjs +7 -7
- package/es/components/graphical-right-triangle/index.vue.mjs +7 -7
- package/es/components/index.d.ts +113 -113
- package/es/components/index.mjs +364 -364
- package/es/components/interaction/button/index.vue.mjs +7 -7
- package/es/components/interaction/button/index.vue2.mjs +280 -280
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +7 -7
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +409 -409
- package/es/components/interaction/date-picker/src/date-picker/index.d.ts +186 -186
- package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +186 -186
- package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +186 -186
- package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +186 -186
- package/es/components/interaction/tabs/index.vue.mjs +272 -272
- package/es/components/interaction/tabs-icon/index.vue.mjs +277 -277
- package/es/components/interaction-button/index.vue.mjs +7 -7
- package/es/components/interaction-button-image/index.vue.mjs +7 -7
- package/es/components/interaction-button-refresh/index.vue.mjs +7 -7
- package/es/components/interaction-data-picker/index.vue.mjs +7 -7
- package/es/components/interaction-input/index.vue.mjs +7 -7
- package/es/components/interaction-input/index.vue2.mjs +286 -286
- package/es/components/interaction-select/index.vue.mjs +7 -7
- package/es/components/interaction-select/index.vue2.mjs +422 -422
- package/es/components/interaction-slider/index.vue.mjs +7 -7
- package/es/components/interaction-slider/index.vue2.mjs +283 -283
- package/es/components/interaction-switch/index.vue.mjs +7 -7
- package/es/components/interaction-switch/index.vue2.mjs +244 -244
- package/es/components/interaction-tabs/index.vue.mjs +7 -7
- package/es/components/interaction-tabs/index.vue2.mjs +255 -255
- package/es/components/interaction-tabs2/index.vue.mjs +7 -7
- package/es/components/interaction-tabs2/index.vue2.mjs +255 -255
- package/es/components/map-earth-basic/index.vue.mjs +332 -332
- package/es/components/map-earth-cool-tech/index.vue.mjs +332 -332
- package/es/components/map-earth-fly-line/index.vue.mjs +332 -332
- package/es/components/map-earth-hacker/index.vue.mjs +332 -332
- package/es/components/map-earth-particle/index.vue.mjs +332 -332
- package/es/components/media-audio/index.vue.mjs +7 -7
- package/es/components/media-audio/index.vue2.mjs +277 -277
- package/es/components/media-audio-dynamic/index.vue.mjs +7 -7
- package/es/components/media-audio-dynamic/index.vue2.mjs +296 -296
- package/es/components/media-carousel/index.vue.mjs +7 -7
- package/es/components/media-carousel-slides/index.vue.mjs +7 -7
- package/es/components/media-flv/index.vue.mjs +284 -284
- package/es/components/media-iframe/index.vue.mjs +7 -7
- package/es/components/media-iframe/index.vue2.mjs +217 -217
- package/es/components/media-iframe-carousel/index.vue.mjs +7 -7
- package/es/components/media-iframe-dynamic/index.vue.mjs +7 -7
- package/es/components/media-iframe-dynamic/index.vue2.mjs +261 -261
- package/es/components/media-image/index.vue.mjs +7 -7
- package/es/components/media-image-dynamic/index.vue.mjs +7 -7
- package/es/components/media-image-dynamic/index.vue2.mjs +236 -236
- package/es/components/media-m3u8/index.vue.mjs +302 -302
- package/es/components/media-m3u8-dynamic/index.vue.mjs +319 -319
- package/es/components/media-video/index.vue.mjs +7 -7
- package/es/components/media-video/index.vue2.mjs +258 -258
- package/es/components/media-video-dynamic/index.vue.mjs +7 -7
- package/es/components/media-video-dynamic/index.vue2.mjs +280 -280
- package/es/components/media-wavesurfer/index.vue.mjs +7 -7
- package/es/components/scene-amap2d/index.vue.mjs +7 -7
- package/es/components/scene-amap2d/index.vue2.mjs +627 -627
- package/es/components/scene-amap3d/index.vue.mjs +7 -7
- package/es/components/scene-amap3d/index.vue2.mjs +752 -752
- package/es/components/scene-default/index.vue.mjs +7 -7
- package/es/components/scene-default/index.vue2.mjs +221 -221
- package/es/components/scene-map3d/index.vue.mjs +8 -8
- package/es/components/scene-map3d/index.vue2.mjs +480 -480
- package/es/components/scene-ue-iframe/index.vue.mjs +7 -7
- package/es/components/scene-ue-iframe/index.vue2.mjs +242 -242
- package/es/components/scene-ue-shj/index.vue.mjs +7 -7
- package/es/components/scene-ue-shj/index.vue2.mjs +219 -219
- package/es/components/scene-unity-iframe/index.vue.mjs +7 -7
- package/es/components/scene-unity-iframe/index.vue2.mjs +224 -224
- package/es/components/scene-unity-webgl/index.vue.mjs +7 -7
- package/es/components/scene-unity-webgl/index.vue2.mjs +226 -226
- package/es/components/scene-vr/index.d.ts +101 -101
- package/es/components/scene-vr/index.vue.d.ts +102 -102
- package/es/components/scene-vr/index.vue.mjs +7 -7
- package/es/components/scene-vr/index.vue2.mjs +543 -543
- package/es/components/text/list/index.vue.mjs +295 -295
- package/es/components/text-carousel/index.vue.mjs +7 -7
- package/es/components/text-count-down/index.vue.mjs +7 -7
- package/es/components/text-count-down/index.vue2.mjs +284 -284
- package/es/components/text-over-number/index.vue.mjs +7 -7
- package/es/components/text-over-number/index.vue2.mjs +286 -286
- package/es/components/text-real-time/index.vue.mjs +7 -7
- package/es/components/text-real-time/index.vue2.mjs +241 -241
- package/es/components/text-row-scroll/index.vue.mjs +7 -7
- package/es/components/text-row-scroll/index.vue2.mjs +352 -352
- package/es/components/text-table-basic/index.vue.mjs +7 -7
- package/es/components/text-table-basic/index.vue2.mjs +366 -366
- package/es/components/text-table-scroll/index.vue.mjs +7 -7
- package/es/components/text-table-scroll/index.vue2.mjs +356 -356
- package/es/components/text-text-basic/index.vue.mjs +7 -7
- package/es/components/text-text-dynamic/index.vue.mjs +7 -7
- package/es/components/text-text-dynamic/index.vue2.mjs +242 -242
- package/es/components/text-title/index.vue.mjs +7 -7
- package/es/index.mjs +388 -388
- package/es/plugins/datasource/index.mjs +216 -216
- package/es/widgets.css +1 -1
- package/package.json +2 -2
- package/umd/index.js +33660 -0
- package/umd/widgets.css +1 -0
|
@@ -1,301 +1,301 @@
|
|
|
1
|
-
import { ref as v, shallowRef as O, onMounted as b, onBeforeUnmount as k } from "vue";
|
|
2
|
-
import { useResizeObserver as D } from "@vueuse/core";
|
|
3
|
-
import { debounce as M, cloneDeep as y, isArray as c } from "lodash";
|
|
4
|
-
import T from "is-electron";
|
|
5
|
-
import * as f from "echarts";
|
|
6
|
-
import { nanoid as x } from "nanoid";
|
|
7
|
-
import "echarts-wordcloud";
|
|
8
|
-
import "echarts-liquidfill";
|
|
9
|
-
import "../../components/text-text-basic/index.mjs";
|
|
10
|
-
import "../../components/text-table-basic/index.mjs";
|
|
11
|
-
import "../../components/chart-other-gauge/index.mjs";
|
|
12
|
-
import "../../components/chart-other-gauge-stage/index.mjs";
|
|
13
|
-
import "../../components/chart-other-gauge-grade/index.mjs";
|
|
14
|
-
import "../../components/chart-other-word-cloud/index.mjs";
|
|
15
|
-
import "../../components/chart-other-liquidfill/index.mjs";
|
|
16
|
-
import "../../components/chart-other-funnel/index.mjs";
|
|
17
|
-
import "../../components/chart-other-force/index.mjs";
|
|
18
|
-
import "../../components/chart-other-radar/index.mjs";
|
|
19
|
-
import "../../components/chart-other-funnel-split/index.mjs";
|
|
20
|
-
import "../../components/chart-other-funnel-contrast/index.mjs";
|
|
21
|
-
import "../../components/chart-other-candlestick-basic/index.mjs";
|
|
22
|
-
import "../../components/chart-other-candlestick-shanghai/index.mjs";
|
|
23
|
-
import "../../components/chart-other-candlestick-demo/index.mjs";
|
|
24
|
-
import "../../components/chart-other-heatmap/index.mjs";
|
|
25
|
-
import "../../components/chart-other-force2/index.mjs";
|
|
26
|
-
import "../../components/chart-other-graph-basic/index.mjs";
|
|
27
|
-
import "../../components/chart-other-graph-basic2/index.mjs";
|
|
28
|
-
import "../../components/chart-other-graph-calendar/index.mjs";
|
|
29
|
-
import "../../components/chart-other-tree-line/index.mjs";
|
|
30
|
-
import "../../components/chart-other-treemap-basic/index.mjs";
|
|
31
|
-
import "../../components/chart-other-sunburst-basic/index.mjs";
|
|
32
|
-
import "../../components/chart-other-sunburst-basic2/index.mjs";
|
|
33
|
-
import "../../components/chart-other-sunburst-basic3/index.mjs";
|
|
34
|
-
import "../../components/chart-other-sunburst-basic4/index.mjs";
|
|
35
|
-
import "../../components/chart-other-sunburst-book/index.mjs";
|
|
36
|
-
import "../../components/chart-other-sunburst-radius/index.mjs";
|
|
37
|
-
import "../../components/chart-other-sunburst-flavors/index.mjs";
|
|
38
|
-
import "../../components/chart-other-parallel-basic/index.mjs";
|
|
39
|
-
import "../../components/chart-other-parallel-mul/index.mjs";
|
|
40
|
-
import "../../components/chart-other-circular-graph/index.mjs";
|
|
41
|
-
import "../../components/map-earth-basic/index.mjs";
|
|
42
|
-
import "../../components/map-earth-cool-tech/index.mjs";
|
|
43
|
-
import "../../components/map-earth-particle/index.mjs";
|
|
44
|
-
import "../../components/map-earth-hacker/index.mjs";
|
|
45
|
-
import "../../components/map-earth-fly-line/index.mjs";
|
|
46
|
-
import "../../components/chart-other-grid-percentage/index.mjs";
|
|
47
|
-
import "../../components/chart-other-radar-stack/index.mjs";
|
|
48
|
-
import "../../components/chart-other-funnel2/index.mjs";
|
|
49
|
-
import "../../components/chart-other-label-gauge/index.mjs";
|
|
50
|
-
import "../../components/chart-other-theme-river/index.mjs";
|
|
51
|
-
import "../../components/chart-other-tree/index.mjs";
|
|
52
|
-
import "../../components/chart-other-treemap/index.mjs";
|
|
53
|
-
import "../../components/commons-product-model/index.mjs";
|
|
54
|
-
import "../../components/commons-vr-photo/index.mjs";
|
|
55
|
-
import "../../components/commons-vr-video/index.mjs";
|
|
56
|
-
import "../../components/commons-three-loader/index.mjs";
|
|
57
|
-
import "../../components/commons-three-loader3/index.mjs";
|
|
58
|
-
import "../../components/commons-loop-iterator/index.mjs";
|
|
59
|
-
import "../../components/commons-gaussian-splatting-view/index.mjs";
|
|
60
|
-
import "../../components/commons-babylon/index.mjs";
|
|
61
|
-
import "../../components/commons-svg/index.mjs";
|
|
62
|
-
import "../../components/commons-weather/index.mjs";
|
|
63
|
-
import "../../components/commons-weather-dynamic/index.mjs";
|
|
64
|
-
import "../../components/media-wavesurfer/index.mjs";
|
|
65
|
-
import "../../components/interaction-tabs/index.mjs";
|
|
66
|
-
import "../../components/interaction-tabs2/index.mjs";
|
|
67
|
-
import "../../components/interaction-button/index.mjs";
|
|
68
|
-
import "../../components/interaction-button-image/index.mjs";
|
|
69
|
-
import "../../components/interaction-select/index.mjs";
|
|
70
|
-
import "../../components/interaction-input/index.mjs";
|
|
71
|
-
import "../../components/interaction-radio/index.mjs";
|
|
72
|
-
import "../../components/interaction-slider/index.mjs";
|
|
73
|
-
import "../../components/interaction-switch/index.mjs";
|
|
74
|
-
import "../../components/interaction-data-picker/index.mjs";
|
|
75
|
-
import "../../components/interaction-button-refresh/index.mjs";
|
|
76
|
-
import "../../components/media-image/index.mjs";
|
|
77
|
-
import "../../components/text-title/index.mjs";
|
|
78
|
-
import "../../components/commons-qrcode/index.mjs";
|
|
79
|
-
import "../../components/media-video/index.mjs";
|
|
80
|
-
import "../../components/media-audio/index.mjs";
|
|
81
|
-
import "../../components/text-real-time/index.mjs";
|
|
82
|
-
import "../../components/media-carousel/index.mjs";
|
|
83
|
-
import "../../components/media-carousel-slides/index.mjs";
|
|
84
|
-
import "../../components/media-iframe-carousel/index.mjs";
|
|
85
|
-
import "../../components/media-iframe/index.mjs";
|
|
86
|
-
import "../../components/media-m3u8/index.mjs";
|
|
87
|
-
import "../../components/media-m3u8-dynamic/index.mjs";
|
|
88
|
-
import "../../components/media-audio-dynamic/index.mjs";
|
|
89
|
-
import "../../components/media-video-dynamic/index.mjs";
|
|
90
|
-
import "../../components/media-image-dynamic/index.mjs";
|
|
91
|
-
import "../../components/media-iframe-dynamic/index.mjs";
|
|
92
|
-
import "../../components/media-flv/index.mjs";
|
|
93
|
-
import "../../components/commons-echarts/index.mjs";
|
|
94
|
-
import "../../components/text-over-number/index.mjs";
|
|
95
|
-
import "../../components/text-table-scroll/index.mjs";
|
|
96
|
-
import "../../components/text-carousel/index.mjs";
|
|
97
|
-
import "../../components/text-row-scroll/index.mjs";
|
|
98
|
-
import "../../components/text-text-dynamic/index.mjs";
|
|
99
|
-
import "../../components/text-count-down/index.mjs";
|
|
100
|
-
import "../../components/graphical-circle/index.mjs";
|
|
101
|
-
import "../../components/graphical-diamond/index.mjs";
|
|
102
|
-
import "../../components/graphical-hexagon/index.mjs";
|
|
103
|
-
import "../../components/graphical-isosceles-triangle/index.mjs";
|
|
104
|
-
import "../../components/graphical-pentagon/index.mjs";
|
|
105
|
-
import "../../components/graphical-rect/index.mjs";
|
|
106
|
-
import "../../components/graphical-right-triangle/index.mjs";
|
|
107
|
-
import "../../components/scene-map3d/index.mjs";
|
|
108
|
-
import "../../components/scene-amap2d/index.mjs";
|
|
109
|
-
import "../../components/scene-amap3d/index.mjs";
|
|
110
|
-
import "../../components/scene-vr/index.mjs";
|
|
111
|
-
import "../../components/scene-unity-iframe/index.mjs";
|
|
112
|
-
import "../../components/scene-unity-webgl/index.mjs";
|
|
113
|
-
import "../../components/scene-ue-iframe/index.mjs";
|
|
114
|
-
import "../../components/scene-ue-shj/index.mjs";
|
|
115
|
-
import "../../components/scene-default/index.mjs";
|
|
116
|
-
import "../../components/interaction/tabs/index.mjs";
|
|
117
|
-
import "../../components/interaction/tabs-icon/index.mjs";
|
|
118
|
-
import "../../components/interaction/button/index.mjs";
|
|
119
|
-
import "../../components/interaction/date-picker/src/date-picker/index.mjs";
|
|
120
|
-
import "../../components/interaction/date-picker/src/date-picker-range/index.mjs";
|
|
121
|
-
import "../../components/text/list/index.mjs";
|
|
122
|
-
import "../../components/chart/src/bar/basic/index.mjs";
|
|
123
|
-
import "../../components/chart/src/bar/animation/index.mjs";
|
|
124
|
-
import "../../components/chart/src/bar/contrast/index.mjs";
|
|
125
|
-
import "../../components/chart/src/bar/contrast2/index.mjs";
|
|
126
|
-
import "../../components/chart/src/bar/contrast3/index.mjs";
|
|
127
|
-
import "../../components/chart/src/bar/gradient-column-chart/index.mjs";
|
|
128
|
-
import "../../components/chart/src/bar/horizontal/index.mjs";
|
|
129
|
-
import "../../components/chart/src/bar/horizontal-stack/index.mjs";
|
|
130
|
-
import "../../components/chart/src/bar/line-bar/index.mjs";
|
|
131
|
-
import "../../components/chart/src/bar/line-bar2/index.mjs";
|
|
132
|
-
import "../../components/chart/src/bar/loop/index.mjs";
|
|
133
|
-
import "../../components/chart/src/bar/mini/index.mjs";
|
|
134
|
-
import "../../components/chart/src/bar/polar/index.mjs";
|
|
135
|
-
import "../../components/chart/src/bar/polar-stack/index.mjs";
|
|
136
|
-
import "../../components/chart/src/bar/polar2/index.mjs";
|
|
137
|
-
import "../../components/chart/src/bar/radius-circle/index.mjs";
|
|
138
|
-
import "../../components/chart/src/bar/rank/index.mjs";
|
|
139
|
-
import "../../components/chart/src/bar/segmented-progress/index.mjs";
|
|
140
|
-
import "../../components/chart/src/bar/spire/index.mjs";
|
|
141
|
-
import "../../components/chart/src/bar/stack/index.mjs";
|
|
142
|
-
import "../../components/chart/src/bar/stack-line/index.mjs";
|
|
143
|
-
import "../../components/chart/src/bar/stack2/index.mjs";
|
|
144
|
-
import "../../components/chart/src/bar/stack3/index.mjs";
|
|
145
|
-
import "../../components/chart/src/bar/staggered/index.mjs";
|
|
146
|
-
import "../../components/chart/src/bar/three/index.mjs";
|
|
147
|
-
import "../../components/chart/src/bar/waterfall/index.mjs";
|
|
148
|
-
import "../../components/chart/src/bar/zebra/index.mjs";
|
|
149
|
-
import "../../components/chart/src/line/area-gradient/index.mjs";
|
|
150
|
-
import "../../components/chart/src/line/area-highlight/index.mjs";
|
|
151
|
-
import "../../components/chart/src/line/area-highlight2/index.mjs";
|
|
152
|
-
import "../../components/chart/src/line/basic/index.mjs";
|
|
153
|
-
import "../../components/chart/src/line/bump/index.mjs";
|
|
154
|
-
import "../../components/chart/src/line/dashed/index.mjs";
|
|
155
|
-
import "../../components/chart/src/line/ladder/index.mjs";
|
|
156
|
-
import "../../components/chart/src/line/logarithm/index.mjs";
|
|
157
|
-
import "../../components/chart/src/line/multix/index.mjs";
|
|
158
|
-
import "../../components/chart/src/line/polar-double/index.mjs";
|
|
159
|
-
import "../../components/chart/src/line/rain-flow/index.mjs";
|
|
160
|
-
import "../../components/chart/src/line/scale/index.mjs";
|
|
161
|
-
import "../../components/chart/src/line/smooth/index.mjs";
|
|
162
|
-
import "../../components/chart/src/line/smooth-area/index.mjs";
|
|
163
|
-
import "../../components/chart/src/line/stack/index.mjs";
|
|
164
|
-
import "../../components/chart/src/line/stack-area/index.mjs";
|
|
165
|
-
import "../../components/chart/src/line/temp/index.mjs";
|
|
166
|
-
import "../../components/chart/src/line/vertical/index.mjs";
|
|
167
|
-
import "../../components/chart/src/map/basic/index.mjs";
|
|
168
|
-
import "../../components/chart/src/map/bmap-basic/index.mjs";
|
|
169
|
-
import "../../components/chart/src/map/bmap-heatmap/index.mjs";
|
|
170
|
-
import "../../components/chart/src/map/bmap-rich/index.mjs";
|
|
171
|
-
import "../../components/chart/src/map/customize/index.mjs";
|
|
172
|
-
import "../../components/chart/src/map/lines/index.mjs";
|
|
173
|
-
import "../../components/chart/src/map/scatter/index.mjs";
|
|
174
|
-
import "../../components/chart/src/pie/3d/index.mjs";
|
|
175
|
-
import "../../components/chart/src/pie/basic/index.mjs";
|
|
176
|
-
import "../../components/chart/src/pie/basic2/index.mjs";
|
|
177
|
-
import "../../components/chart/src/pie/customized/index.mjs";
|
|
178
|
-
import "../../components/chart/src/pie/index/index.mjs";
|
|
179
|
-
import "../../components/chart/src/pie/interval/index.mjs";
|
|
180
|
-
import "../../components/chart/src/pie/legend-scroll/index.mjs";
|
|
181
|
-
import "../../components/chart/src/pie/radius/index.mjs";
|
|
182
|
-
import "../../components/chart/src/pie/rose/index.mjs";
|
|
183
|
-
import "../../components/chart/src/pie/round/index.mjs";
|
|
184
|
-
import "../../components/chart/src/pie/sunburst/index.mjs";
|
|
185
|
-
import "../../components/chart/src/scatter/basic/index.mjs";
|
|
186
|
-
import "../../components/chart/src/scatter/basic2/index.mjs";
|
|
187
|
-
import "../../components/chart/src/scatter/bubble/index.mjs";
|
|
188
|
-
import "../../components/chart/src/scatter/ripples/index.mjs";
|
|
189
|
-
import "../../components/commons/custom-component-render/index.mjs";
|
|
190
|
-
/* empty css */
|
|
191
|
-
/* empty css */
|
|
192
|
-
import "../../plugins/datasource/utils/request.mjs";
|
|
193
|
-
import "../../plugins/datasource/utils/wsManager.mjs";
|
|
194
|
-
import { SHJParseEvent as n } from "../../plugins/event/index.mjs";
|
|
195
|
-
import { HoverLoop as L } from "../utils/hoverLoop.mjs";
|
|
196
|
-
const z = (p) => {
|
|
197
|
-
const o = [];
|
|
198
|
-
p.geo && (c(p.geo) ? o.push(...p.geo.map((m) => m.map)) : o.push(p.geo.map)), p.series && c(p.series) && p.series.forEach((m) => {
|
|
199
|
-
m.map && o.push(m.map);
|
|
200
|
-
});
|
|
201
|
-
const h = o.map((m) => {
|
|
202
|
-
if (m === "customize")
|
|
203
|
-
if (c(p.geo)) {
|
|
204
|
-
const e = JSON.parse(p.geo.find((s) => s.map === "customize").geoData);
|
|
205
|
-
return f.registerMap(m, e);
|
|
206
|
-
} else {
|
|
207
|
-
const e = JSON.parse(p.geo.geoData);
|
|
208
|
-
return f.registerMap(m, e);
|
|
209
|
-
}
|
|
210
|
-
else
|
|
211
|
-
return fetch((T() ? "gismap/" : "/gismap/") + m + ".json").then((e) => e.json()).then((e) => {
|
|
212
|
-
f.registerMap(m, e);
|
|
213
|
-
}).catch((e) => {
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
return Promise.all(h);
|
|
217
|
-
}, B = async (p) => {
|
|
218
|
-
p.bmap && await import(
|
|
219
|
-
/* @vite-ignore */
|
|
220
|
-
"echarts/extension/bmap/bmap"
|
|
221
|
-
);
|
|
222
|
-
}, fi = ({ basicOption: p, useEvents: o, customRenderData: h, emit: m }) => {
|
|
223
|
-
const e = x(), s = v(!0), i = O(null), d = h, a = v(null), l = v(null), S = (u, w) => {
|
|
224
|
-
try {
|
|
225
|
-
i.value || (i.value = f.init(document.getElementById(e), null, { renderer: w || "svg" }));
|
|
226
|
-
const t = y(u);
|
|
227
|
-
if (t) {
|
|
228
|
-
if (i.value.setOption(t, !0), t.hoverLoop)
|
|
229
|
-
if (l.value && clearInterval(l.value), a.value && a.value.closeSwitchTooltip(), t.hoverLoop.type === "方式二") {
|
|
230
|
-
let r = 0;
|
|
231
|
-
t.dataset && t.dataset.source && (r = t.dataset.source.length), t.series[0] && t.series[0].data && (r = t.series[0].data.length);
|
|
232
|
-
const Z = t.dataZoom[0].endValue, I = t.dataZoom[0].startValue, V = () => {
|
|
233
|
-
l.value = setInterval(() => {
|
|
234
|
-
t.dataZoom[0].endValue > r - 2 ? (t.dataZoom[0].endValue = Z, t.dataZoom[0].startValue = I) : (t.dataZoom[0].endValue = t.dataZoom[0].endValue + 1, t.dataZoom[0].startValue = t.dataZoom[0].startValue + 1), i.value.setOption(t);
|
|
235
|
-
}, t.hoverLoop.delay2);
|
|
236
|
-
};
|
|
237
|
-
i.value.on("mousemove", function() {
|
|
238
|
-
l.value && clearInterval(l.value);
|
|
239
|
-
}), i.value.on("mouseout", function() {
|
|
240
|
-
l.value && clearInterval(l.value), V();
|
|
241
|
-
}), V();
|
|
242
|
-
} else t.hoverLoop.type === "方式一" && (i.value.on("mousemove", function() {
|
|
243
|
-
a.value && a.value.closeSwitchTooltip();
|
|
244
|
-
}), i.value.on("mouseout", function() {
|
|
245
|
-
a.value && a.value.closeSwitchTooltip(), a.value = new L(i.value, t);
|
|
246
|
-
}), a.value = new L(i.value, t));
|
|
247
|
-
else
|
|
248
|
-
l.value && clearInterval(l.value), a.value && a.value.closeSwitchTooltip();
|
|
249
|
-
i.value.on("click", (r) => {
|
|
250
|
-
o && c(o) && o.length > 0 && (m("chart-click", r), n.parseEvents(o, "chart-click", r));
|
|
251
|
-
}), i.value.on("dblclick", (r) => {
|
|
252
|
-
o && c(o) && o.length > 0 && (m("chart-dblclick", r), n.parseEvents(o, "chart-dblclick", r));
|
|
253
|
-
}), i.value.on("mousedown", (r) => {
|
|
254
|
-
o && c(o) && o.length > 0 && (m("chart-mousedown", r), n.parseEvents(o, "chart-mousedown", r));
|
|
255
|
-
}), i.value.on("mouseup", (r) => {
|
|
256
|
-
o && c(o) && o.length > 0 && (m("chart-mouseup", r), n.parseEvents(o, "chart-mouseup", r));
|
|
257
|
-
}), i.value.on("mouseover", (r) => {
|
|
258
|
-
o && c(o) && o.length > 0 && (m("chart-mouseover", r), n.parseEvents(o, "chart-mouseover", r));
|
|
259
|
-
}), i.value.on("mouseout", (r) => {
|
|
260
|
-
o && c(o) && o.length > 0 && (m("chart-mouseout", r), n.parseEvents(o, "chart-mouseout", r));
|
|
261
|
-
}), i.value.on("contextmenu", (r) => {
|
|
262
|
-
o && c(o) && o.length > 0 && (m("chart-contextmenu", r), n.parseEvents(o, "chart-contextmenu", r));
|
|
263
|
-
}), s.value = !1;
|
|
264
|
-
}
|
|
265
|
-
} catch {
|
|
266
|
-
try {
|
|
267
|
-
i.value.dispose();
|
|
268
|
-
} catch {
|
|
269
|
-
}
|
|
270
|
-
i.value = null;
|
|
271
|
-
}
|
|
272
|
-
}, g = M((u) => {
|
|
273
|
-
s.value = !0, u = y(u), z(u).then(() => {
|
|
274
|
-
B(u).then(() => {
|
|
275
|
-
d(u);
|
|
276
|
-
});
|
|
277
|
-
}).catch((w) => {
|
|
278
|
-
});
|
|
279
|
-
}, 100);
|
|
280
|
-
return b(() => {
|
|
281
|
-
g(p), D(document.getElementById(e), (u) => {
|
|
282
|
-
i.value && i.value.resize();
|
|
283
|
-
});
|
|
284
|
-
}), k(() => {
|
|
285
|
-
a.value && a.value.closeSwitchTooltip(), l.value && clearInterval(l.value);
|
|
286
|
-
try {
|
|
287
|
-
i.value && i.value.dispose();
|
|
288
|
-
} catch {
|
|
289
|
-
}
|
|
290
|
-
}), {
|
|
291
|
-
id: e,
|
|
292
|
-
status: s,
|
|
293
|
-
chart: i,
|
|
294
|
-
setOption: S,
|
|
295
|
-
renderChart: g,
|
|
296
|
-
renderData: d
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
export {
|
|
300
|
-
fi as useChart
|
|
301
|
-
};
|
|
1
|
+
import { ref as v, shallowRef as O, onMounted as b, onBeforeUnmount as k } from "vue";
|
|
2
|
+
import { useResizeObserver as D } from "@vueuse/core";
|
|
3
|
+
import { debounce as M, cloneDeep as y, isArray as c } from "lodash";
|
|
4
|
+
import T from "is-electron";
|
|
5
|
+
import * as f from "echarts";
|
|
6
|
+
import { nanoid as x } from "nanoid";
|
|
7
|
+
import "echarts-wordcloud";
|
|
8
|
+
import "echarts-liquidfill";
|
|
9
|
+
import "../../components/text-text-basic/index.mjs";
|
|
10
|
+
import "../../components/text-table-basic/index.mjs";
|
|
11
|
+
import "../../components/chart-other-gauge/index.mjs";
|
|
12
|
+
import "../../components/chart-other-gauge-stage/index.mjs";
|
|
13
|
+
import "../../components/chart-other-gauge-grade/index.mjs";
|
|
14
|
+
import "../../components/chart-other-word-cloud/index.mjs";
|
|
15
|
+
import "../../components/chart-other-liquidfill/index.mjs";
|
|
16
|
+
import "../../components/chart-other-funnel/index.mjs";
|
|
17
|
+
import "../../components/chart-other-force/index.mjs";
|
|
18
|
+
import "../../components/chart-other-radar/index.mjs";
|
|
19
|
+
import "../../components/chart-other-funnel-split/index.mjs";
|
|
20
|
+
import "../../components/chart-other-funnel-contrast/index.mjs";
|
|
21
|
+
import "../../components/chart-other-candlestick-basic/index.mjs";
|
|
22
|
+
import "../../components/chart-other-candlestick-shanghai/index.mjs";
|
|
23
|
+
import "../../components/chart-other-candlestick-demo/index.mjs";
|
|
24
|
+
import "../../components/chart-other-heatmap/index.mjs";
|
|
25
|
+
import "../../components/chart-other-force2/index.mjs";
|
|
26
|
+
import "../../components/chart-other-graph-basic/index.mjs";
|
|
27
|
+
import "../../components/chart-other-graph-basic2/index.mjs";
|
|
28
|
+
import "../../components/chart-other-graph-calendar/index.mjs";
|
|
29
|
+
import "../../components/chart-other-tree-line/index.mjs";
|
|
30
|
+
import "../../components/chart-other-treemap-basic/index.mjs";
|
|
31
|
+
import "../../components/chart-other-sunburst-basic/index.mjs";
|
|
32
|
+
import "../../components/chart-other-sunburst-basic2/index.mjs";
|
|
33
|
+
import "../../components/chart-other-sunburst-basic3/index.mjs";
|
|
34
|
+
import "../../components/chart-other-sunburst-basic4/index.mjs";
|
|
35
|
+
import "../../components/chart-other-sunburst-book/index.mjs";
|
|
36
|
+
import "../../components/chart-other-sunburst-radius/index.mjs";
|
|
37
|
+
import "../../components/chart-other-sunburst-flavors/index.mjs";
|
|
38
|
+
import "../../components/chart-other-parallel-basic/index.mjs";
|
|
39
|
+
import "../../components/chart-other-parallel-mul/index.mjs";
|
|
40
|
+
import "../../components/chart-other-circular-graph/index.mjs";
|
|
41
|
+
import "../../components/map-earth-basic/index.mjs";
|
|
42
|
+
import "../../components/map-earth-cool-tech/index.mjs";
|
|
43
|
+
import "../../components/map-earth-particle/index.mjs";
|
|
44
|
+
import "../../components/map-earth-hacker/index.mjs";
|
|
45
|
+
import "../../components/map-earth-fly-line/index.mjs";
|
|
46
|
+
import "../../components/chart-other-grid-percentage/index.mjs";
|
|
47
|
+
import "../../components/chart-other-radar-stack/index.mjs";
|
|
48
|
+
import "../../components/chart-other-funnel2/index.mjs";
|
|
49
|
+
import "../../components/chart-other-label-gauge/index.mjs";
|
|
50
|
+
import "../../components/chart-other-theme-river/index.mjs";
|
|
51
|
+
import "../../components/chart-other-tree/index.mjs";
|
|
52
|
+
import "../../components/chart-other-treemap/index.mjs";
|
|
53
|
+
import "../../components/commons-product-model/index.mjs";
|
|
54
|
+
import "../../components/commons-vr-photo/index.mjs";
|
|
55
|
+
import "../../components/commons-vr-video/index.mjs";
|
|
56
|
+
import "../../components/commons-three-loader/index.mjs";
|
|
57
|
+
import "../../components/commons-three-loader3/index.mjs";
|
|
58
|
+
import "../../components/commons-loop-iterator/index.mjs";
|
|
59
|
+
import "../../components/commons-gaussian-splatting-view/index.mjs";
|
|
60
|
+
import "../../components/commons-babylon/index.mjs";
|
|
61
|
+
import "../../components/commons-svg/index.mjs";
|
|
62
|
+
import "../../components/commons-weather/index.mjs";
|
|
63
|
+
import "../../components/commons-weather-dynamic/index.mjs";
|
|
64
|
+
import "../../components/media-wavesurfer/index.mjs";
|
|
65
|
+
import "../../components/interaction-tabs/index.mjs";
|
|
66
|
+
import "../../components/interaction-tabs2/index.mjs";
|
|
67
|
+
import "../../components/interaction-button/index.mjs";
|
|
68
|
+
import "../../components/interaction-button-image/index.mjs";
|
|
69
|
+
import "../../components/interaction-select/index.mjs";
|
|
70
|
+
import "../../components/interaction-input/index.mjs";
|
|
71
|
+
import "../../components/interaction-radio/index.mjs";
|
|
72
|
+
import "../../components/interaction-slider/index.mjs";
|
|
73
|
+
import "../../components/interaction-switch/index.mjs";
|
|
74
|
+
import "../../components/interaction-data-picker/index.mjs";
|
|
75
|
+
import "../../components/interaction-button-refresh/index.mjs";
|
|
76
|
+
import "../../components/media-image/index.mjs";
|
|
77
|
+
import "../../components/text-title/index.mjs";
|
|
78
|
+
import "../../components/commons-qrcode/index.mjs";
|
|
79
|
+
import "../../components/media-video/index.mjs";
|
|
80
|
+
import "../../components/media-audio/index.mjs";
|
|
81
|
+
import "../../components/text-real-time/index.mjs";
|
|
82
|
+
import "../../components/media-carousel/index.mjs";
|
|
83
|
+
import "../../components/media-carousel-slides/index.mjs";
|
|
84
|
+
import "../../components/media-iframe-carousel/index.mjs";
|
|
85
|
+
import "../../components/media-iframe/index.mjs";
|
|
86
|
+
import "../../components/media-m3u8/index.mjs";
|
|
87
|
+
import "../../components/media-m3u8-dynamic/index.mjs";
|
|
88
|
+
import "../../components/media-audio-dynamic/index.mjs";
|
|
89
|
+
import "../../components/media-video-dynamic/index.mjs";
|
|
90
|
+
import "../../components/media-image-dynamic/index.mjs";
|
|
91
|
+
import "../../components/media-iframe-dynamic/index.mjs";
|
|
92
|
+
import "../../components/media-flv/index.mjs";
|
|
93
|
+
import "../../components/commons-echarts/index.mjs";
|
|
94
|
+
import "../../components/text-over-number/index.mjs";
|
|
95
|
+
import "../../components/text-table-scroll/index.mjs";
|
|
96
|
+
import "../../components/text-carousel/index.mjs";
|
|
97
|
+
import "../../components/text-row-scroll/index.mjs";
|
|
98
|
+
import "../../components/text-text-dynamic/index.mjs";
|
|
99
|
+
import "../../components/text-count-down/index.mjs";
|
|
100
|
+
import "../../components/graphical-circle/index.mjs";
|
|
101
|
+
import "../../components/graphical-diamond/index.mjs";
|
|
102
|
+
import "../../components/graphical-hexagon/index.mjs";
|
|
103
|
+
import "../../components/graphical-isosceles-triangle/index.mjs";
|
|
104
|
+
import "../../components/graphical-pentagon/index.mjs";
|
|
105
|
+
import "../../components/graphical-rect/index.mjs";
|
|
106
|
+
import "../../components/graphical-right-triangle/index.mjs";
|
|
107
|
+
import "../../components/scene-map3d/index.mjs";
|
|
108
|
+
import "../../components/scene-amap2d/index.mjs";
|
|
109
|
+
import "../../components/scene-amap3d/index.mjs";
|
|
110
|
+
import "../../components/scene-vr/index.mjs";
|
|
111
|
+
import "../../components/scene-unity-iframe/index.mjs";
|
|
112
|
+
import "../../components/scene-unity-webgl/index.mjs";
|
|
113
|
+
import "../../components/scene-ue-iframe/index.mjs";
|
|
114
|
+
import "../../components/scene-ue-shj/index.mjs";
|
|
115
|
+
import "../../components/scene-default/index.mjs";
|
|
116
|
+
import "../../components/interaction/tabs/index.mjs";
|
|
117
|
+
import "../../components/interaction/tabs-icon/index.mjs";
|
|
118
|
+
import "../../components/interaction/button/index.mjs";
|
|
119
|
+
import "../../components/interaction/date-picker/src/date-picker/index.mjs";
|
|
120
|
+
import "../../components/interaction/date-picker/src/date-picker-range/index.mjs";
|
|
121
|
+
import "../../components/text/list/index.mjs";
|
|
122
|
+
import "../../components/chart/src/bar/basic/index.mjs";
|
|
123
|
+
import "../../components/chart/src/bar/animation/index.mjs";
|
|
124
|
+
import "../../components/chart/src/bar/contrast/index.mjs";
|
|
125
|
+
import "../../components/chart/src/bar/contrast2/index.mjs";
|
|
126
|
+
import "../../components/chart/src/bar/contrast3/index.mjs";
|
|
127
|
+
import "../../components/chart/src/bar/gradient-column-chart/index.mjs";
|
|
128
|
+
import "../../components/chart/src/bar/horizontal/index.mjs";
|
|
129
|
+
import "../../components/chart/src/bar/horizontal-stack/index.mjs";
|
|
130
|
+
import "../../components/chart/src/bar/line-bar/index.mjs";
|
|
131
|
+
import "../../components/chart/src/bar/line-bar2/index.mjs";
|
|
132
|
+
import "../../components/chart/src/bar/loop/index.mjs";
|
|
133
|
+
import "../../components/chart/src/bar/mini/index.mjs";
|
|
134
|
+
import "../../components/chart/src/bar/polar/index.mjs";
|
|
135
|
+
import "../../components/chart/src/bar/polar-stack/index.mjs";
|
|
136
|
+
import "../../components/chart/src/bar/polar2/index.mjs";
|
|
137
|
+
import "../../components/chart/src/bar/radius-circle/index.mjs";
|
|
138
|
+
import "../../components/chart/src/bar/rank/index.mjs";
|
|
139
|
+
import "../../components/chart/src/bar/segmented-progress/index.mjs";
|
|
140
|
+
import "../../components/chart/src/bar/spire/index.mjs";
|
|
141
|
+
import "../../components/chart/src/bar/stack/index.mjs";
|
|
142
|
+
import "../../components/chart/src/bar/stack-line/index.mjs";
|
|
143
|
+
import "../../components/chart/src/bar/stack2/index.mjs";
|
|
144
|
+
import "../../components/chart/src/bar/stack3/index.mjs";
|
|
145
|
+
import "../../components/chart/src/bar/staggered/index.mjs";
|
|
146
|
+
import "../../components/chart/src/bar/three/index.mjs";
|
|
147
|
+
import "../../components/chart/src/bar/waterfall/index.mjs";
|
|
148
|
+
import "../../components/chart/src/bar/zebra/index.mjs";
|
|
149
|
+
import "../../components/chart/src/line/area-gradient/index.mjs";
|
|
150
|
+
import "../../components/chart/src/line/area-highlight/index.mjs";
|
|
151
|
+
import "../../components/chart/src/line/area-highlight2/index.mjs";
|
|
152
|
+
import "../../components/chart/src/line/basic/index.mjs";
|
|
153
|
+
import "../../components/chart/src/line/bump/index.mjs";
|
|
154
|
+
import "../../components/chart/src/line/dashed/index.mjs";
|
|
155
|
+
import "../../components/chart/src/line/ladder/index.mjs";
|
|
156
|
+
import "../../components/chart/src/line/logarithm/index.mjs";
|
|
157
|
+
import "../../components/chart/src/line/multix/index.mjs";
|
|
158
|
+
import "../../components/chart/src/line/polar-double/index.mjs";
|
|
159
|
+
import "../../components/chart/src/line/rain-flow/index.mjs";
|
|
160
|
+
import "../../components/chart/src/line/scale/index.mjs";
|
|
161
|
+
import "../../components/chart/src/line/smooth/index.mjs";
|
|
162
|
+
import "../../components/chart/src/line/smooth-area/index.mjs";
|
|
163
|
+
import "../../components/chart/src/line/stack/index.mjs";
|
|
164
|
+
import "../../components/chart/src/line/stack-area/index.mjs";
|
|
165
|
+
import "../../components/chart/src/line/temp/index.mjs";
|
|
166
|
+
import "../../components/chart/src/line/vertical/index.mjs";
|
|
167
|
+
import "../../components/chart/src/map/basic/index.mjs";
|
|
168
|
+
import "../../components/chart/src/map/bmap-basic/index.mjs";
|
|
169
|
+
import "../../components/chart/src/map/bmap-heatmap/index.mjs";
|
|
170
|
+
import "../../components/chart/src/map/bmap-rich/index.mjs";
|
|
171
|
+
import "../../components/chart/src/map/customize/index.mjs";
|
|
172
|
+
import "../../components/chart/src/map/lines/index.mjs";
|
|
173
|
+
import "../../components/chart/src/map/scatter/index.mjs";
|
|
174
|
+
import "../../components/chart/src/pie/3d/index.mjs";
|
|
175
|
+
import "../../components/chart/src/pie/basic/index.mjs";
|
|
176
|
+
import "../../components/chart/src/pie/basic2/index.mjs";
|
|
177
|
+
import "../../components/chart/src/pie/customized/index.mjs";
|
|
178
|
+
import "../../components/chart/src/pie/index/index.mjs";
|
|
179
|
+
import "../../components/chart/src/pie/interval/index.mjs";
|
|
180
|
+
import "../../components/chart/src/pie/legend-scroll/index.mjs";
|
|
181
|
+
import "../../components/chart/src/pie/radius/index.mjs";
|
|
182
|
+
import "../../components/chart/src/pie/rose/index.mjs";
|
|
183
|
+
import "../../components/chart/src/pie/round/index.mjs";
|
|
184
|
+
import "../../components/chart/src/pie/sunburst/index.mjs";
|
|
185
|
+
import "../../components/chart/src/scatter/basic/index.mjs";
|
|
186
|
+
import "../../components/chart/src/scatter/basic2/index.mjs";
|
|
187
|
+
import "../../components/chart/src/scatter/bubble/index.mjs";
|
|
188
|
+
import "../../components/chart/src/scatter/ripples/index.mjs";
|
|
189
|
+
import "../../components/commons/custom-component-render/index.mjs";
|
|
190
|
+
/* empty css */
|
|
191
|
+
/* empty css */
|
|
192
|
+
import "../../plugins/datasource/utils/request.mjs";
|
|
193
|
+
import "../../plugins/datasource/utils/wsManager.mjs";
|
|
194
|
+
import { SHJParseEvent as n } from "../../plugins/event/index.mjs";
|
|
195
|
+
import { HoverLoop as L } from "../utils/hoverLoop.mjs";
|
|
196
|
+
const z = (p) => {
|
|
197
|
+
const o = [];
|
|
198
|
+
p.geo && (c(p.geo) ? o.push(...p.geo.map((m) => m.map)) : o.push(p.geo.map)), p.series && c(p.series) && p.series.forEach((m) => {
|
|
199
|
+
m.map && o.push(m.map);
|
|
200
|
+
});
|
|
201
|
+
const h = o.map((m) => {
|
|
202
|
+
if (m === "customize")
|
|
203
|
+
if (c(p.geo)) {
|
|
204
|
+
const e = JSON.parse(p.geo.find((s) => s.map === "customize").geoData);
|
|
205
|
+
return f.registerMap(m, e);
|
|
206
|
+
} else {
|
|
207
|
+
const e = JSON.parse(p.geo.geoData);
|
|
208
|
+
return f.registerMap(m, e);
|
|
209
|
+
}
|
|
210
|
+
else
|
|
211
|
+
return fetch((T() ? "gismap/" : "/gismap/") + m + ".json").then((e) => e.json()).then((e) => {
|
|
212
|
+
f.registerMap(m, e);
|
|
213
|
+
}).catch((e) => {
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
return Promise.all(h);
|
|
217
|
+
}, B = async (p) => {
|
|
218
|
+
p.bmap && await import(
|
|
219
|
+
/* @vite-ignore */
|
|
220
|
+
"echarts/extension/bmap/bmap"
|
|
221
|
+
);
|
|
222
|
+
}, fi = ({ basicOption: p, useEvents: o, customRenderData: h, emit: m }) => {
|
|
223
|
+
const e = x(), s = v(!0), i = O(null), d = h, a = v(null), l = v(null), S = (u, w) => {
|
|
224
|
+
try {
|
|
225
|
+
i.value || (i.value = f.init(document.getElementById(e), null, { renderer: w || "svg" }));
|
|
226
|
+
const t = y(u);
|
|
227
|
+
if (t) {
|
|
228
|
+
if (i.value.setOption(t, !0), t.hoverLoop)
|
|
229
|
+
if (l.value && clearInterval(l.value), a.value && a.value.closeSwitchTooltip(), t.hoverLoop.type === "方式二") {
|
|
230
|
+
let r = 0;
|
|
231
|
+
t.dataset && t.dataset.source && (r = t.dataset.source.length), t.series[0] && t.series[0].data && (r = t.series[0].data.length);
|
|
232
|
+
const Z = t.dataZoom[0].endValue, I = t.dataZoom[0].startValue, V = () => {
|
|
233
|
+
l.value = setInterval(() => {
|
|
234
|
+
t.dataZoom[0].endValue > r - 2 ? (t.dataZoom[0].endValue = Z, t.dataZoom[0].startValue = I) : (t.dataZoom[0].endValue = t.dataZoom[0].endValue + 1, t.dataZoom[0].startValue = t.dataZoom[0].startValue + 1), i.value.setOption(t);
|
|
235
|
+
}, t.hoverLoop.delay2);
|
|
236
|
+
};
|
|
237
|
+
i.value.on("mousemove", function() {
|
|
238
|
+
l.value && clearInterval(l.value);
|
|
239
|
+
}), i.value.on("mouseout", function() {
|
|
240
|
+
l.value && clearInterval(l.value), V();
|
|
241
|
+
}), V();
|
|
242
|
+
} else t.hoverLoop.type === "方式一" && (i.value.on("mousemove", function() {
|
|
243
|
+
a.value && a.value.closeSwitchTooltip();
|
|
244
|
+
}), i.value.on("mouseout", function() {
|
|
245
|
+
a.value && a.value.closeSwitchTooltip(), a.value = new L(i.value, t);
|
|
246
|
+
}), a.value = new L(i.value, t));
|
|
247
|
+
else
|
|
248
|
+
l.value && clearInterval(l.value), a.value && a.value.closeSwitchTooltip();
|
|
249
|
+
i.value.on("click", (r) => {
|
|
250
|
+
o && c(o) && o.length > 0 && (m("chart-click", r), n.parseEvents(o, "chart-click", r));
|
|
251
|
+
}), i.value.on("dblclick", (r) => {
|
|
252
|
+
o && c(o) && o.length > 0 && (m("chart-dblclick", r), n.parseEvents(o, "chart-dblclick", r));
|
|
253
|
+
}), i.value.on("mousedown", (r) => {
|
|
254
|
+
o && c(o) && o.length > 0 && (m("chart-mousedown", r), n.parseEvents(o, "chart-mousedown", r));
|
|
255
|
+
}), i.value.on("mouseup", (r) => {
|
|
256
|
+
o && c(o) && o.length > 0 && (m("chart-mouseup", r), n.parseEvents(o, "chart-mouseup", r));
|
|
257
|
+
}), i.value.on("mouseover", (r) => {
|
|
258
|
+
o && c(o) && o.length > 0 && (m("chart-mouseover", r), n.parseEvents(o, "chart-mouseover", r));
|
|
259
|
+
}), i.value.on("mouseout", (r) => {
|
|
260
|
+
o && c(o) && o.length > 0 && (m("chart-mouseout", r), n.parseEvents(o, "chart-mouseout", r));
|
|
261
|
+
}), i.value.on("contextmenu", (r) => {
|
|
262
|
+
o && c(o) && o.length > 0 && (m("chart-contextmenu", r), n.parseEvents(o, "chart-contextmenu", r));
|
|
263
|
+
}), s.value = !1;
|
|
264
|
+
}
|
|
265
|
+
} catch {
|
|
266
|
+
try {
|
|
267
|
+
i.value.dispose();
|
|
268
|
+
} catch {
|
|
269
|
+
}
|
|
270
|
+
i.value = null;
|
|
271
|
+
}
|
|
272
|
+
}, g = M((u) => {
|
|
273
|
+
s.value = !0, u = y(u), z(u).then(() => {
|
|
274
|
+
B(u).then(() => {
|
|
275
|
+
d(u);
|
|
276
|
+
});
|
|
277
|
+
}).catch((w) => {
|
|
278
|
+
});
|
|
279
|
+
}, 100);
|
|
280
|
+
return b(() => {
|
|
281
|
+
g(p), D(document.getElementById(e), (u) => {
|
|
282
|
+
i.value && i.value.resize();
|
|
283
|
+
});
|
|
284
|
+
}), k(() => {
|
|
285
|
+
a.value && a.value.closeSwitchTooltip(), l.value && clearInterval(l.value);
|
|
286
|
+
try {
|
|
287
|
+
i.value && i.value.dispose();
|
|
288
|
+
} catch {
|
|
289
|
+
}
|
|
290
|
+
}), {
|
|
291
|
+
id: e,
|
|
292
|
+
status: s,
|
|
293
|
+
chart: i,
|
|
294
|
+
setOption: S,
|
|
295
|
+
renderChart: g,
|
|
296
|
+
renderData: d
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
export {
|
|
300
|
+
fi as useChart
|
|
301
|
+
};
|