@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,14 +1,198 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
|
-
var U = (
|
|
3
|
-
var v = (
|
|
4
|
-
import { defineComponent as I, watch as
|
|
2
|
+
var U = (c, d, g) => d in c ? G(c, d, { enumerable: !0, configurable: !0, writable: !0, value: g }) : c[d] = g;
|
|
3
|
+
var v = (c, d, g) => U(c, typeof d != "symbol" ? d + "" : d, g);
|
|
4
|
+
import { defineComponent as I, watch as m, createElementBlock as T, openBlock as M, createElementVNode as V, createCommentVNode as q, normalizeClass as N, unref as R, toDisplayString as K, ref as P, onMounted as J, onBeforeUnmount as Z } from "vue";
|
|
5
5
|
import "@babylonjs/loaders/glTF";
|
|
6
|
-
import { cloneDeep as
|
|
7
|
-
import { Vector3 as
|
|
6
|
+
import { cloneDeep as l, isEqual as p } from "lodash";
|
|
7
|
+
import { Vector3 as u, Engine as j, Scene as Q, Color4 as S, Color3 as y, DefaultRenderingPipeline as X, DepthOfFieldEffectBlurLevel as x, ArcRotateCamera as Y, Tools as w, HemisphericLight as $, DirectionalLight as O, PointLight as ee, SceneLoader as ie } from "@babylonjs/core";
|
|
8
8
|
import { useResizeObserver as te } from "@vueuse/core";
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
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 "./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 "../chart/src/bar/basic/index.mjs";
|
|
123
|
+
import "../chart/src/bar/animation/index.mjs";
|
|
124
|
+
import "../chart/src/bar/contrast/index.mjs";
|
|
125
|
+
import "../chart/src/bar/contrast2/index.mjs";
|
|
126
|
+
import "../chart/src/bar/contrast3/index.mjs";
|
|
127
|
+
import "../chart/src/bar/gradient-column-chart/index.mjs";
|
|
128
|
+
import "../chart/src/bar/horizontal/index.mjs";
|
|
129
|
+
import "../chart/src/bar/horizontal-stack/index.mjs";
|
|
130
|
+
import "../chart/src/bar/line-bar/index.mjs";
|
|
131
|
+
import "../chart/src/bar/line-bar2/index.mjs";
|
|
132
|
+
import "../chart/src/bar/loop/index.mjs";
|
|
133
|
+
import "../chart/src/bar/mini/index.mjs";
|
|
134
|
+
import "../chart/src/bar/polar/index.mjs";
|
|
135
|
+
import "../chart/src/bar/polar-stack/index.mjs";
|
|
136
|
+
import "../chart/src/bar/polar2/index.mjs";
|
|
137
|
+
import "../chart/src/bar/radius-circle/index.mjs";
|
|
138
|
+
import "../chart/src/bar/rank/index.mjs";
|
|
139
|
+
import "../chart/src/bar/segmented-progress/index.mjs";
|
|
140
|
+
import "../chart/src/bar/spire/index.mjs";
|
|
141
|
+
import "../chart/src/bar/stack/index.mjs";
|
|
142
|
+
import "../chart/src/bar/stack-line/index.mjs";
|
|
143
|
+
import "../chart/src/bar/stack2/index.mjs";
|
|
144
|
+
import "../chart/src/bar/stack3/index.mjs";
|
|
145
|
+
import "../chart/src/bar/staggered/index.mjs";
|
|
146
|
+
import "../chart/src/bar/three/index.mjs";
|
|
147
|
+
import "../chart/src/bar/waterfall/index.mjs";
|
|
148
|
+
import "../chart/src/bar/zebra/index.mjs";
|
|
149
|
+
import "../chart/src/line/area-gradient/index.mjs";
|
|
150
|
+
import "../chart/src/line/area-highlight/index.mjs";
|
|
151
|
+
import "../chart/src/line/area-highlight2/index.mjs";
|
|
152
|
+
import "../chart/src/line/basic/index.mjs";
|
|
153
|
+
import "../chart/src/line/bump/index.mjs";
|
|
154
|
+
import "../chart/src/line/dashed/index.mjs";
|
|
155
|
+
import "../chart/src/line/ladder/index.mjs";
|
|
156
|
+
import "../chart/src/line/logarithm/index.mjs";
|
|
157
|
+
import "../chart/src/line/multix/index.mjs";
|
|
158
|
+
import "../chart/src/line/polar-double/index.mjs";
|
|
159
|
+
import "../chart/src/line/rain-flow/index.mjs";
|
|
160
|
+
import "../chart/src/line/scale/index.mjs";
|
|
161
|
+
import "../chart/src/line/smooth/index.mjs";
|
|
162
|
+
import "../chart/src/line/smooth-area/index.mjs";
|
|
163
|
+
import "../chart/src/line/stack/index.mjs";
|
|
164
|
+
import "../chart/src/line/stack-area/index.mjs";
|
|
165
|
+
import "../chart/src/line/temp/index.mjs";
|
|
166
|
+
import "../chart/src/line/vertical/index.mjs";
|
|
167
|
+
import "../chart/src/map/basic/index.mjs";
|
|
168
|
+
import "../chart/src/map/bmap-basic/index.mjs";
|
|
169
|
+
import "../chart/src/map/bmap-heatmap/index.mjs";
|
|
170
|
+
import "../chart/src/map/bmap-rich/index.mjs";
|
|
171
|
+
import "../chart/src/map/customize/index.mjs";
|
|
172
|
+
import "../chart/src/map/lines/index.mjs";
|
|
173
|
+
import "../chart/src/map/scatter/index.mjs";
|
|
174
|
+
import "../chart/src/pie/3d/index.mjs";
|
|
175
|
+
import "../chart/src/pie/basic/index.mjs";
|
|
176
|
+
import "../chart/src/pie/basic2/index.mjs";
|
|
177
|
+
import "../chart/src/pie/customized/index.mjs";
|
|
178
|
+
import "../chart/src/pie/index/index.mjs";
|
|
179
|
+
import "../chart/src/pie/interval/index.mjs";
|
|
180
|
+
import "../chart/src/pie/legend-scroll/index.mjs";
|
|
181
|
+
import "../chart/src/pie/radius/index.mjs";
|
|
182
|
+
import "../chart/src/pie/rose/index.mjs";
|
|
183
|
+
import "../chart/src/pie/round/index.mjs";
|
|
184
|
+
import "../chart/src/pie/sunburst/index.mjs";
|
|
185
|
+
import "../chart/src/scatter/basic/index.mjs";
|
|
186
|
+
import "../chart/src/scatter/basic2/index.mjs";
|
|
187
|
+
import "../chart/src/scatter/bubble/index.mjs";
|
|
188
|
+
import "../chart/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 oe } from "../../plugins/event/index.mjs";
|
|
194
|
+
const se = { class: "zerov-widget" }, re = I({ name: "zv-commons-three-loader" }), _o = /* @__PURE__ */ I({
|
|
195
|
+
...re,
|
|
12
196
|
props: {
|
|
13
197
|
basicOption: {},
|
|
14
198
|
basicEvents: {},
|
|
@@ -18,9 +202,9 @@ const oe = { class: "zerov-widget" }, ne = I({ name: "zv-commons-three-loader" }
|
|
|
18
202
|
"on-load-success",
|
|
19
203
|
"on-play-animation"
|
|
20
204
|
],
|
|
21
|
-
setup(
|
|
22
|
-
const C =
|
|
23
|
-
const
|
|
205
|
+
setup(c, { expose: d, emit: g }) {
|
|
206
|
+
const C = g, n = c, H = (t, r) => {
|
|
207
|
+
const h = P(), L = P(), E = P(!0);
|
|
24
208
|
class W {
|
|
25
209
|
// eslint-disable-next-line no-useless-constructor
|
|
26
210
|
constructor(e) {
|
|
@@ -29,19 +213,19 @@ const oe = { class: "zerov-widget" }, ne = I({ name: "zv-commons-three-loader" }
|
|
|
29
213
|
this.loadingUIText = e;
|
|
30
214
|
}
|
|
31
215
|
displayLoadingUI() {
|
|
32
|
-
|
|
216
|
+
h.value && (E.value = !0);
|
|
33
217
|
}
|
|
34
218
|
hideLoadingUI() {
|
|
35
|
-
|
|
219
|
+
h.value && (E.value = !1);
|
|
36
220
|
}
|
|
37
221
|
}
|
|
38
222
|
class D {
|
|
39
|
-
constructor(e,
|
|
223
|
+
constructor(e, o, i) {
|
|
40
224
|
v(this, "scene");
|
|
41
225
|
v(this, "engine");
|
|
42
226
|
v(this, "meshe");
|
|
43
227
|
v(this, "defaultPipeline");
|
|
44
|
-
this.canvas = e, this.option =
|
|
228
|
+
this.canvas = e, this.option = o, this.events = i;
|
|
45
229
|
try {
|
|
46
230
|
this.engine = new j(this.canvas, !0, {}, !1), this.engine.loadingScreen = new W(""), window.addEventListener("resize", () => {
|
|
47
231
|
this.engine.resize();
|
|
@@ -63,41 +247,41 @@ const oe = { class: "zerov-widget" }, ne = I({ name: "zv-commons-three-loader" }
|
|
|
63
247
|
updateScene(e) {
|
|
64
248
|
e.colorShow ? this.scene.clearColor = S.FromHexString(e.color || "#000000") : this.scene.clearColor = new S(0, 0, 0, 0), this.scene.fogEnabled = e.fogEnabled, this.scene.fogMode = e.fogMode || 1, this.scene.fogColor = y.FromHexString(e.fogColor || "#ffffff"), this.scene.fogEnd = e.fogEnd || 60, this.scene.fogStart = e.fogStart || 1, this.scene.fogDensity = e.fogDensity || 0.1;
|
|
65
249
|
}
|
|
66
|
-
createCamera(e,
|
|
67
|
-
const i = new Y("", w.ToRadians(e.alpha || 90), w.ToRadians(e.beta || 75), e.radius || 1, new
|
|
68
|
-
i.attachControl(
|
|
250
|
+
createCamera(e, o) {
|
|
251
|
+
const i = new Y("", w.ToRadians(e.alpha || 90), w.ToRadians(e.beta || 75), e.radius || 1, new u(...e.target), o);
|
|
252
|
+
i.attachControl(h.value, !0), i.useAutoRotationBehavior = e.autoRotation, i.wheelDeltaPercentage = e.wheelDeltaPercentage || 0.01, i.zoomToMouseLocation = e.zoomToMouseLocation, i.lowerRadiusLimit = e.lowerRadiusLimit, i.upperRadiusLimit = e.upperRadiusLimit, i.minZ = 0.01;
|
|
69
253
|
}
|
|
70
254
|
updateCamera(e) {
|
|
71
|
-
const
|
|
72
|
-
|
|
255
|
+
const o = this.scene.activeCamera;
|
|
256
|
+
o && (e.radius && (o.radius = e.radius), o.beta = w.ToRadians(e.beta), o.alpha = w.ToRadians(e.alpha), o.useAutoRotationBehavior = e.autoRotation, o.zoomToMouseLocation = e.zoomToMouseLocation, o.wheelDeltaPercentage = e.wheelDeltaPercentage || 0.01, o.lowerRadiusLimit = e.lowerRadiusLimit, o.upperRadiusLimit = e.upperRadiusLimit, o.target = new u(...e.target));
|
|
73
257
|
}
|
|
74
|
-
createLights(e,
|
|
75
|
-
this.scene && this.scene.lights && this.scene.lights.forEach((i,
|
|
258
|
+
createLights(e, o) {
|
|
259
|
+
this.scene && this.scene.lights && this.scene.lights.forEach((i, a) => {
|
|
76
260
|
setTimeout(() => {
|
|
77
261
|
i.dispose();
|
|
78
262
|
});
|
|
79
263
|
}), setTimeout(() => {
|
|
80
264
|
e.forEach((i) => {
|
|
81
265
|
if (i.type === "HemisphericLight") {
|
|
82
|
-
const
|
|
83
|
-
|
|
266
|
+
const a = new $("", new u(...i.direction), o);
|
|
267
|
+
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.groundColor = y.FromHexString(i.groundColor || "#ffffff"), a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
84
268
|
}
|
|
85
269
|
if (i.type === "DirectionalLight") {
|
|
86
|
-
const
|
|
87
|
-
|
|
270
|
+
const a = new O("", new u(...i.direction), o);
|
|
271
|
+
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
88
272
|
}
|
|
89
273
|
if (i.type === "PointLight") {
|
|
90
|
-
const
|
|
91
|
-
|
|
274
|
+
const a = new ee("", new u(...i.position), o);
|
|
275
|
+
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
92
276
|
}
|
|
93
277
|
});
|
|
94
278
|
});
|
|
95
279
|
}
|
|
96
280
|
createMeshs(e) {
|
|
97
|
-
e.meshes.forEach((
|
|
98
|
-
L.value = (
|
|
99
|
-
}).then((
|
|
100
|
-
this.meshe =
|
|
281
|
+
e.meshes.forEach((o) => setTimeout(() => o.dispose())), ie.ImportMeshAsync("", this.option.meshs.url, "", e, (o) => {
|
|
282
|
+
L.value = (o.loaded / o.total * 100).toFixed(2);
|
|
283
|
+
}).then((o) => {
|
|
284
|
+
this.meshe = o.meshes, this.updateScenePipeline(this.option.pipelineOption), this.option.animationGroups = e.animationGroups.map((i) => ({
|
|
101
285
|
uniqueId: i.uniqueId,
|
|
102
286
|
name: i.name
|
|
103
287
|
})), this.events && (this.events.function[0].args[0].select = e.animationGroups.map((i) => ({
|
|
@@ -118,12 +302,12 @@ const oe = { class: "zerov-widget" }, ne = I({ name: "zv-commons-three-loader" }
|
|
|
118
302
|
i.maximumWorld.y - i.minimumWorld.y,
|
|
119
303
|
i.maximumWorld.z - i.minimumWorld.z
|
|
120
304
|
) || 1);
|
|
121
|
-
this.meshe[0].scaling = new
|
|
305
|
+
this.meshe[0].scaling = new u(b, b, b);
|
|
122
306
|
const k = i.centerWorld;
|
|
123
|
-
this.meshe[0].position = this.meshe[0].position.subtract(k.multiplyByFloats(b, b, b)), this.meshe[0].rotation = new
|
|
307
|
+
this.meshe[0].position = this.meshe[0].position.subtract(k.multiplyByFloats(b, b, b)), this.meshe[0].rotation = new u(0, 0, 0);
|
|
124
308
|
} else {
|
|
125
|
-
const { position:
|
|
126
|
-
this.meshe[0].position.set(
|
|
309
|
+
const { position: o, scaling: i, rotation: a } = e;
|
|
310
|
+
this.meshe[0].position.set(o[0] || 0, o[1] || 0, o[2] || 0), this.meshe[0].scaling.set(i[0] || 1, i[1] || 1, i[2] || 1), this.meshe[0].rotation = new u(a[0] || 0, a[1] || 0, a[2] || 0);
|
|
127
311
|
}
|
|
128
312
|
}
|
|
129
313
|
run() {
|
|
@@ -132,81 +316,81 @@ const oe = { class: "zerov-widget" }, ne = I({ name: "zv-commons-three-loader" }
|
|
|
132
316
|
dispose() {
|
|
133
317
|
this.scene && this.engine && (this.scene.dispose(), this.engine.dispose());
|
|
134
318
|
}
|
|
135
|
-
playAnimation(e,
|
|
319
|
+
playAnimation(e, o = {
|
|
136
320
|
loop: !1,
|
|
137
321
|
speedRatio: 1
|
|
138
322
|
}) {
|
|
139
323
|
if (this.scene) {
|
|
140
324
|
this.scene.stopAllAnimations();
|
|
141
325
|
const i = this.scene.getAnimationGroupByName(e);
|
|
142
|
-
i && (C("on-play-animation"),
|
|
326
|
+
i && (C("on-play-animation"), oe.parseEvents(n.useEvents, "on-play-animation"), i.start(o.loop, o.speedRatio, i.from, i.to, !1));
|
|
143
327
|
}
|
|
144
328
|
}
|
|
145
329
|
}
|
|
146
|
-
const
|
|
330
|
+
const f = P();
|
|
147
331
|
return J(() => {
|
|
148
|
-
t.meshs && (
|
|
149
|
-
|
|
332
|
+
t.meshs && (f.value = new D(h.value, t, r).run(), te(h.value, (z) => {
|
|
333
|
+
f.value && f.value.engine.resize();
|
|
150
334
|
}));
|
|
151
335
|
}), Z(() => {
|
|
152
|
-
|
|
336
|
+
f.value && (f.value.dispose(), f.value.meshe = []);
|
|
153
337
|
}), {
|
|
154
|
-
canvasRef:
|
|
155
|
-
babylon:
|
|
338
|
+
canvasRef: h,
|
|
339
|
+
babylon: f,
|
|
156
340
|
Babylon: D,
|
|
157
341
|
babylonLoadingStatus: E,
|
|
158
342
|
babylonLoadingTitle: L
|
|
159
343
|
};
|
|
160
|
-
}, { canvasRef: A, babylon:
|
|
161
|
-
return
|
|
162
|
-
playAnimation: (t,
|
|
163
|
-
const
|
|
164
|
-
loop:
|
|
165
|
-
speedRatio:
|
|
344
|
+
}, { canvasRef: A, babylon: s, Babylon: F, babylonLoadingStatus: B, babylonLoadingTitle: _ } = H(n.basicOption, n.basicEvents);
|
|
345
|
+
return d({
|
|
346
|
+
playAnimation: (t, r) => {
|
|
347
|
+
const h = r[0].value, L = {
|
|
348
|
+
loop: r[1].keys[0].defaultValue,
|
|
349
|
+
speedRatio: r[1].keys[1].defaultValue
|
|
166
350
|
};
|
|
167
|
-
|
|
351
|
+
s.value.playAnimation(h, L);
|
|
168
352
|
}
|
|
169
|
-
}),
|
|
170
|
-
!
|
|
353
|
+
}), m(() => l(n.basicOption.camera), (t, r) => {
|
|
354
|
+
!p(t, r) && s.value && s.value.updateCamera(t);
|
|
171
355
|
}, {
|
|
172
356
|
deep: !0
|
|
173
|
-
}),
|
|
174
|
-
!
|
|
357
|
+
}), m(() => l(n.basicOption.scene), (t, r) => {
|
|
358
|
+
!p(t, r) && s.value && s.value.updateScene(t);
|
|
175
359
|
}, {
|
|
176
360
|
deep: !0
|
|
177
|
-
}),
|
|
178
|
-
!
|
|
361
|
+
}), m(() => l(n.basicOption.lights), (t, r) => {
|
|
362
|
+
!p(t, r) && s.value && s.value.createLights(t, s.value.scene);
|
|
179
363
|
}, {
|
|
180
364
|
deep: !0
|
|
181
|
-
}),
|
|
182
|
-
!
|
|
365
|
+
}), m(() => l(n.basicOption.meshs.url), (t, r) => {
|
|
366
|
+
!p(t, r) && s.value && (s.value.dispose(), s.value = new F(A.value, n.basicOption, n.basicEvents).run());
|
|
183
367
|
}, {
|
|
184
368
|
deep: !0
|
|
185
|
-
}),
|
|
186
|
-
!
|
|
369
|
+
}), m(() => l(n.basicOption.meshs.position), (t, r) => {
|
|
370
|
+
!p(t, r) && s.value && s.value.meshe[0] && s.value.meshe[0].position.set(t[0], t[1], t[2]);
|
|
187
371
|
}, {
|
|
188
372
|
deep: !0
|
|
189
|
-
}),
|
|
190
|
-
!
|
|
373
|
+
}), m(() => l(n.basicOption.meshs.scaling), (t, r) => {
|
|
374
|
+
!p(t, r) && s.value && s.value.meshe[0] && s.value.meshe[0].scaling.set(t[0], t[1], t[2]);
|
|
191
375
|
}, {
|
|
192
376
|
deep: !0
|
|
193
|
-
}),
|
|
194
|
-
!
|
|
377
|
+
}), m(() => l(n.basicOption.meshs.rotation), (t, r) => {
|
|
378
|
+
!p(t, r) && s.value && s.value.meshe[0] && (s.value.meshe[0].rotation = new u(t[0], t[1], t[2]));
|
|
195
379
|
}, {
|
|
196
380
|
deep: !0
|
|
197
|
-
}),
|
|
198
|
-
!
|
|
381
|
+
}), m(() => l(n.basicOption.meshs.autoSize), (t, r) => {
|
|
382
|
+
!p(t, r) && s.value && s.value.meshe[0] && s.value.setMeshSize(n.basicOption.meshs);
|
|
199
383
|
}, {
|
|
200
384
|
deep: !0
|
|
201
|
-
}),
|
|
202
|
-
!
|
|
385
|
+
}), m(() => l(n.basicOption.defaultAnimation), (t, r) => {
|
|
386
|
+
!p(t, r) && s.value && (s.value.dispose(), s.value = new F(A.value, n.basicOption, n.basicEvents).run());
|
|
203
387
|
}, {
|
|
204
388
|
deep: !0
|
|
205
|
-
}),
|
|
206
|
-
!
|
|
389
|
+
}), m(() => l(n.basicOption.pipelineOption), (t, r) => {
|
|
390
|
+
!p(t, r) && s.value && s.value.updateScenePipeline(t);
|
|
207
391
|
}, {
|
|
208
392
|
deep: !0
|
|
209
|
-
}), (t,
|
|
393
|
+
}), (t, r) => (M(), T("div", se, [
|
|
210
394
|
V("canvas", {
|
|
211
395
|
ref_key: "canvasRef",
|
|
212
396
|
ref: A,
|
|
@@ -221,5 +405,5 @@ const oe = { class: "zerov-widget" }, ne = I({ name: "zv-commons-three-loader" }
|
|
|
221
405
|
}
|
|
222
406
|
});
|
|
223
407
|
export {
|
|
224
|
-
|
|
408
|
+
_o as default
|
|
225
409
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e1aee7f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|