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