@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,410 +1,410 @@
|
|
|
1
|
-
var G = Object.defineProperty;
|
|
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
|
-
import "@babylonjs/loaders/glTF";
|
|
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
|
-
import { useResizeObserver as te } from "@vueuse/core";
|
|
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
|
-
import "../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 oe } from "../../plugins/event/index.mjs";
|
|
195
|
-
const re = { class: "zerov-widget" }, se = I({ name: "zv-commons-three-loader" }), Wo = /* @__PURE__ */ I({
|
|
196
|
-
...se,
|
|
197
|
-
props: {
|
|
198
|
-
basicOption: {},
|
|
199
|
-
basicEvents: {},
|
|
200
|
-
useEvents: {}
|
|
201
|
-
},
|
|
202
|
-
emits: [
|
|
203
|
-
"on-load-success",
|
|
204
|
-
"on-play-animation"
|
|
205
|
-
],
|
|
206
|
-
setup(c, { expose: d, emit: g }) {
|
|
207
|
-
const C = g, n = c, H = (t, s) => {
|
|
208
|
-
const h = P(), L = P(), E = P(!0);
|
|
209
|
-
class W {
|
|
210
|
-
// eslint-disable-next-line no-useless-constructor
|
|
211
|
-
constructor(e) {
|
|
212
|
-
// optional, but needed due to interface definitions
|
|
213
|
-
v(this, "loadingUIBackgroundColor");
|
|
214
|
-
this.loadingUIText = e;
|
|
215
|
-
}
|
|
216
|
-
displayLoadingUI() {
|
|
217
|
-
h.value && (E.value = !0);
|
|
218
|
-
}
|
|
219
|
-
hideLoadingUI() {
|
|
220
|
-
h.value && (E.value = !1);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
class D {
|
|
224
|
-
constructor(e, o, i) {
|
|
225
|
-
v(this, "scene");
|
|
226
|
-
v(this, "engine");
|
|
227
|
-
v(this, "meshe");
|
|
228
|
-
v(this, "defaultPipeline");
|
|
229
|
-
this.canvas = e, this.option = o, this.events = i;
|
|
230
|
-
try {
|
|
231
|
-
this.engine = new j(this.canvas, !0, {}, !1), this.engine.loadingScreen = new W(""), window.addEventListener("resize", () => {
|
|
232
|
-
this.engine.resize();
|
|
233
|
-
}), this.scene = this.createScene();
|
|
234
|
-
} catch {
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
createScene() {
|
|
238
|
-
return this.scene = new Q(this.engine), this.option.scene.colorShow ? this.scene.clearColor = S.FromHexString(this.option.scene.color || "#000000") : this.scene.clearColor = new S(0, 0, 0, 0), this.scene.fogEnabled = this.option.scene.fogEnabled, this.scene.fogMode = this.option.scene.fogMode || 1, this.scene.fogColor = y.FromHexString(this.option.scene.fogColor || "#ffffff"), this.scene.fogEnd = this.option.scene.fogEnd || 60, this.scene.fogStart = this.option.scene.fogStart || 1, this.scene.fogDensity = this.option.scene.fogDensity || 0.1, this.createCamera(this.option.camera, this.scene), this.createLights(this.option.lights, this.scene), this.createMeshs(this.scene), this.scene;
|
|
239
|
-
}
|
|
240
|
-
updateScenePipeline(e) {
|
|
241
|
-
this.scene.activeCamera && e && (e.enabled ? (this.defaultPipeline || (this.defaultPipeline = new X(
|
|
242
|
-
"defaultPipeline",
|
|
243
|
-
!0,
|
|
244
|
-
this.scene,
|
|
245
|
-
[this.scene.activeCamera]
|
|
246
|
-
)), this.defaultPipeline.samples = e.samples ? 4 : 1, this.defaultPipeline.fxaaEnabled = e.fxaaEnabled, this.defaultPipeline.grainEnabled = e.grainEnabled, this.defaultPipeline.grain.intensity = e.grainIntensity, this.defaultPipeline.grain.animated = e.grainAnimated, this.defaultPipeline.bloomEnabled = e.bloomEnabled, this.defaultPipeline.bloomThreshold = e.bloomThreshold, this.defaultPipeline.bloomWeight = e.bloomWeight, this.defaultPipeline.bloomKernel = e.bloomKernel, this.defaultPipeline.bloomScale = e.bloomScale, this.defaultPipeline.depthOfFieldEnabled = e.depthOfFieldEnabled, e.depthOfFieldBlurLevel < 1 ? this.defaultPipeline.depthOfFieldBlurLevel = x.Low : e.depthOfFieldBlurLevel < 2 ? this.defaultPipeline.depthOfFieldBlurLevel = x.Medium : e.depthOfFieldBlurLevel < 3 && (this.defaultPipeline.depthOfFieldBlurLevel = x.High), this.defaultPipeline.depthOfField.focusDistance = e.depthOfFieldFocusDistance, this.defaultPipeline.depthOfField.fStop = e.depthOfFieldFStop, this.defaultPipeline.depthOfField.focalLength = e.depthOfFieldFocalLength, this.defaultPipeline.chromaticAberrationEnabled = e.chromaticAberrationEnabled, this.defaultPipeline.chromaticAberration.aberrationAmount = e.chromaticAberrationAberrationAmount, this.defaultPipeline.chromaticAberration.radialIntensity = e.chromaticAberrationRadialIntensity, e.chromaticAberrationDirection === 0 ? (this.defaultPipeline.chromaticAberration.direction.x = 0, this.defaultPipeline.chromaticAberration.direction.y = 0) : (this.defaultPipeline.chromaticAberration.direction.x = Math.sin(e.chromaticAberrationDirection), this.defaultPipeline.chromaticAberration.direction.y = Math.cos(e.chromaticAberrationDirection)), this.defaultPipeline.sharpenEnabled = e.sharpenEnabled, this.defaultPipeline.sharpen.edgeAmount = e.sharpenEdgeAmount, this.defaultPipeline.sharpen.colorAmount = e.sharpenColorAmount) : this.defaultPipeline && (this.defaultPipeline.dispose(), this.defaultPipeline = null));
|
|
247
|
-
}
|
|
248
|
-
updateScene(e) {
|
|
249
|
-
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;
|
|
250
|
-
}
|
|
251
|
-
createCamera(e, o) {
|
|
252
|
-
const i = new Y("", w.ToRadians(e.alpha || 90), w.ToRadians(e.beta || 75), e.radius || 1, new u(...e.target), o);
|
|
253
|
-
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;
|
|
254
|
-
}
|
|
255
|
-
updateCamera(e) {
|
|
256
|
-
const o = this.scene.activeCamera;
|
|
257
|
-
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));
|
|
258
|
-
}
|
|
259
|
-
createLights(e, o) {
|
|
260
|
-
this.scene && this.scene.lights && this.scene.lights.forEach((i, a) => {
|
|
261
|
-
setTimeout(() => {
|
|
262
|
-
i.dispose();
|
|
263
|
-
});
|
|
264
|
-
}), setTimeout(() => {
|
|
265
|
-
e.forEach((i) => {
|
|
266
|
-
if (i.type === "HemisphericLight") {
|
|
267
|
-
const a = new $("", new u(...i.direction), o);
|
|
268
|
-
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.groundColor = y.FromHexString(i.groundColor || "#ffffff"), a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
269
|
-
}
|
|
270
|
-
if (i.type === "DirectionalLight") {
|
|
271
|
-
const a = new O("", new u(...i.direction), o);
|
|
272
|
-
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
273
|
-
}
|
|
274
|
-
if (i.type === "PointLight") {
|
|
275
|
-
const a = new ee("", new u(...i.position), o);
|
|
276
|
-
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
createMeshs(e) {
|
|
282
|
-
e.meshes.forEach((o) => setTimeout(() => o.dispose())), ie.ImportMeshAsync("", this.option.meshs.url, "", e, (o) => {
|
|
283
|
-
L.value = (o.loaded / o.total * 100).toFixed(2);
|
|
284
|
-
}).then((o) => {
|
|
285
|
-
this.meshe = o.meshes, this.updateScenePipeline(this.option.pipelineOption), this.option.animationGroups = e.animationGroups.map((i) => ({
|
|
286
|
-
uniqueId: i.uniqueId,
|
|
287
|
-
name: i.name
|
|
288
|
-
})), this.events && (this.events.function[0].args[0].select = e.animationGroups.map((i) => ({
|
|
289
|
-
name: i.name,
|
|
290
|
-
value: i.name
|
|
291
|
-
}))), this.option.defaultAnimation && this.option.defaultAnimation.name ? this.playAnimation(this.option.defaultAnimation.name, {
|
|
292
|
-
loop: this.option.defaultAnimation.loop,
|
|
293
|
-
speedRatio: this.option.defaultAnimation.speedRatio
|
|
294
|
-
}) : e.animationGroups && e.animationGroups[0] && e.animationGroups[0].stop(), this.setMeshSize(this.option.meshs), setTimeout(() => {
|
|
295
|
-
this.engine.hideLoadingUI(), C("on-load-success"), this.engine.hideLoadingUI();
|
|
296
|
-
}, 100);
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
setMeshSize(e) {
|
|
300
|
-
if (e.autoSize) {
|
|
301
|
-
const i = this.meshe[0].getBoundingInfo().boundingBox, b = 0.7 / (Math.max(
|
|
302
|
-
i.maximumWorld.x - i.minimumWorld.x,
|
|
303
|
-
i.maximumWorld.y - i.minimumWorld.y,
|
|
304
|
-
i.maximumWorld.z - i.minimumWorld.z
|
|
305
|
-
) || 1);
|
|
306
|
-
this.meshe[0].scaling = new u(b, b, b);
|
|
307
|
-
const k = i.centerWorld;
|
|
308
|
-
this.meshe[0].position = this.meshe[0].position.subtract(k.multiplyByFloats(b, b, b)), this.meshe[0].rotation = new u(0, 0, 0);
|
|
309
|
-
} else {
|
|
310
|
-
const { position: o, scaling: i, rotation: a } = e;
|
|
311
|
-
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);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
run() {
|
|
315
|
-
return this.engine.runRenderLoop(() => this.scene.render()), this;
|
|
316
|
-
}
|
|
317
|
-
dispose() {
|
|
318
|
-
this.scene && this.engine && (this.scene.dispose(), this.engine.dispose());
|
|
319
|
-
}
|
|
320
|
-
playAnimation(e, o = {
|
|
321
|
-
loop: !1,
|
|
322
|
-
speedRatio: 1
|
|
323
|
-
}) {
|
|
324
|
-
if (this.scene) {
|
|
325
|
-
this.scene.stopAllAnimations();
|
|
326
|
-
const i = this.scene.getAnimationGroupByName(e);
|
|
327
|
-
i && (C("on-play-animation"), oe.parseEvents(n.useEvents, "on-play-animation"), i.start(o.loop, o.speedRatio, i.from, i.to, !1));
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
const f = P();
|
|
332
|
-
return J(() => {
|
|
333
|
-
t.meshs && (f.value = new D(h.value, t, s).run(), te(h.value, (z) => {
|
|
334
|
-
f.value && f.value.engine.resize();
|
|
335
|
-
}));
|
|
336
|
-
}), Z(() => {
|
|
337
|
-
f.value && (f.value.dispose(), f.value.meshe = []);
|
|
338
|
-
}), {
|
|
339
|
-
canvasRef: h,
|
|
340
|
-
babylon: f,
|
|
341
|
-
Babylon: D,
|
|
342
|
-
babylonLoadingStatus: E,
|
|
343
|
-
babylonLoadingTitle: L
|
|
344
|
-
};
|
|
345
|
-
}, { canvasRef: A, babylon: r, Babylon: F, babylonLoadingStatus: B, babylonLoadingTitle: _ } = H(n.basicOption, n.basicEvents);
|
|
346
|
-
return d({
|
|
347
|
-
playAnimation: (t, s) => {
|
|
348
|
-
const h = s[0].value, L = {
|
|
349
|
-
loop: s[1].keys[0].defaultValue,
|
|
350
|
-
speedRatio: s[1].keys[1].defaultValue
|
|
351
|
-
};
|
|
352
|
-
r.value.playAnimation(h, L);
|
|
353
|
-
}
|
|
354
|
-
}), m(() => l(n.basicOption.camera), (t, s) => {
|
|
355
|
-
!p(t, s) && r.value && r.value.updateCamera(t);
|
|
356
|
-
}, {
|
|
357
|
-
deep: !0
|
|
358
|
-
}), m(() => l(n.basicOption.scene), (t, s) => {
|
|
359
|
-
!p(t, s) && r.value && r.value.updateScene(t);
|
|
360
|
-
}, {
|
|
361
|
-
deep: !0
|
|
362
|
-
}), m(() => l(n.basicOption.lights), (t, s) => {
|
|
363
|
-
!p(t, s) && r.value && r.value.createLights(t, r.value.scene);
|
|
364
|
-
}, {
|
|
365
|
-
deep: !0
|
|
366
|
-
}), m(() => l(n.basicOption.meshs.url), (t, s) => {
|
|
367
|
-
!p(t, s) && r.value && (r.value.dispose(), r.value = new F(A.value, n.basicOption, n.basicEvents).run());
|
|
368
|
-
}, {
|
|
369
|
-
deep: !0
|
|
370
|
-
}), m(() => l(n.basicOption.meshs.position), (t, s) => {
|
|
371
|
-
!p(t, s) && r.value && r.value.meshe[0] && r.value.meshe[0].position.set(t[0], t[1], t[2]);
|
|
372
|
-
}, {
|
|
373
|
-
deep: !0
|
|
374
|
-
}), m(() => l(n.basicOption.meshs.scaling), (t, s) => {
|
|
375
|
-
!p(t, s) && r.value && r.value.meshe[0] && r.value.meshe[0].scaling.set(t[0], t[1], t[2]);
|
|
376
|
-
}, {
|
|
377
|
-
deep: !0
|
|
378
|
-
}), m(() => l(n.basicOption.meshs.rotation), (t, s) => {
|
|
379
|
-
!p(t, s) && r.value && r.value.meshe[0] && (r.value.meshe[0].rotation = new u(t[0], t[1], t[2]));
|
|
380
|
-
}, {
|
|
381
|
-
deep: !0
|
|
382
|
-
}), m(() => l(n.basicOption.meshs.autoSize), (t, s) => {
|
|
383
|
-
!p(t, s) && r.value && r.value.meshe[0] && r.value.setMeshSize(n.basicOption.meshs);
|
|
384
|
-
}, {
|
|
385
|
-
deep: !0
|
|
386
|
-
}), m(() => l(n.basicOption.defaultAnimation), (t, s) => {
|
|
387
|
-
!p(t, s) && r.value && (r.value.dispose(), r.value = new F(A.value, n.basicOption, n.basicEvents).run());
|
|
388
|
-
}, {
|
|
389
|
-
deep: !0
|
|
390
|
-
}), m(() => l(n.basicOption.pipelineOption), (t, s) => {
|
|
391
|
-
!p(t, s) && r.value && r.value.updateScenePipeline(t);
|
|
392
|
-
}, {
|
|
393
|
-
deep: !0
|
|
394
|
-
}), (t, s) => (M(), T("div", re, [
|
|
395
|
-
V("canvas", {
|
|
396
|
-
ref_key: "canvasRef",
|
|
397
|
-
ref: A,
|
|
398
|
-
class: N(["widget", { show: !R(B) }])
|
|
399
|
-
}, null, 2),
|
|
400
|
-
R(B) ? (M(), T("div", {
|
|
401
|
-
key: 0,
|
|
402
|
-
ref: "babylonLoadingRef",
|
|
403
|
-
class: "babylon-loading"
|
|
404
|
-
}, " 正在加载模型...(" + K(R(_)) + "%) ", 513)) : q("", !0)
|
|
405
|
-
]));
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
export {
|
|
409
|
-
Wo as default
|
|
410
|
-
};
|
|
1
|
+
var G = Object.defineProperty;
|
|
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
|
+
import "@babylonjs/loaders/glTF";
|
|
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
|
+
import { useResizeObserver as te } from "@vueuse/core";
|
|
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
|
+
import "../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 oe } from "../../plugins/event/index.mjs";
|
|
195
|
+
const re = { class: "zerov-widget" }, se = I({ name: "zv-commons-three-loader" }), Wo = /* @__PURE__ */ I({
|
|
196
|
+
...se,
|
|
197
|
+
props: {
|
|
198
|
+
basicOption: {},
|
|
199
|
+
basicEvents: {},
|
|
200
|
+
useEvents: {}
|
|
201
|
+
},
|
|
202
|
+
emits: [
|
|
203
|
+
"on-load-success",
|
|
204
|
+
"on-play-animation"
|
|
205
|
+
],
|
|
206
|
+
setup(c, { expose: d, emit: g }) {
|
|
207
|
+
const C = g, n = c, H = (t, s) => {
|
|
208
|
+
const h = P(), L = P(), E = P(!0);
|
|
209
|
+
class W {
|
|
210
|
+
// eslint-disable-next-line no-useless-constructor
|
|
211
|
+
constructor(e) {
|
|
212
|
+
// optional, but needed due to interface definitions
|
|
213
|
+
v(this, "loadingUIBackgroundColor");
|
|
214
|
+
this.loadingUIText = e;
|
|
215
|
+
}
|
|
216
|
+
displayLoadingUI() {
|
|
217
|
+
h.value && (E.value = !0);
|
|
218
|
+
}
|
|
219
|
+
hideLoadingUI() {
|
|
220
|
+
h.value && (E.value = !1);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class D {
|
|
224
|
+
constructor(e, o, i) {
|
|
225
|
+
v(this, "scene");
|
|
226
|
+
v(this, "engine");
|
|
227
|
+
v(this, "meshe");
|
|
228
|
+
v(this, "defaultPipeline");
|
|
229
|
+
this.canvas = e, this.option = o, this.events = i;
|
|
230
|
+
try {
|
|
231
|
+
this.engine = new j(this.canvas, !0, {}, !1), this.engine.loadingScreen = new W(""), window.addEventListener("resize", () => {
|
|
232
|
+
this.engine.resize();
|
|
233
|
+
}), this.scene = this.createScene();
|
|
234
|
+
} catch {
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
createScene() {
|
|
238
|
+
return this.scene = new Q(this.engine), this.option.scene.colorShow ? this.scene.clearColor = S.FromHexString(this.option.scene.color || "#000000") : this.scene.clearColor = new S(0, 0, 0, 0), this.scene.fogEnabled = this.option.scene.fogEnabled, this.scene.fogMode = this.option.scene.fogMode || 1, this.scene.fogColor = y.FromHexString(this.option.scene.fogColor || "#ffffff"), this.scene.fogEnd = this.option.scene.fogEnd || 60, this.scene.fogStart = this.option.scene.fogStart || 1, this.scene.fogDensity = this.option.scene.fogDensity || 0.1, this.createCamera(this.option.camera, this.scene), this.createLights(this.option.lights, this.scene), this.createMeshs(this.scene), this.scene;
|
|
239
|
+
}
|
|
240
|
+
updateScenePipeline(e) {
|
|
241
|
+
this.scene.activeCamera && e && (e.enabled ? (this.defaultPipeline || (this.defaultPipeline = new X(
|
|
242
|
+
"defaultPipeline",
|
|
243
|
+
!0,
|
|
244
|
+
this.scene,
|
|
245
|
+
[this.scene.activeCamera]
|
|
246
|
+
)), this.defaultPipeline.samples = e.samples ? 4 : 1, this.defaultPipeline.fxaaEnabled = e.fxaaEnabled, this.defaultPipeline.grainEnabled = e.grainEnabled, this.defaultPipeline.grain.intensity = e.grainIntensity, this.defaultPipeline.grain.animated = e.grainAnimated, this.defaultPipeline.bloomEnabled = e.bloomEnabled, this.defaultPipeline.bloomThreshold = e.bloomThreshold, this.defaultPipeline.bloomWeight = e.bloomWeight, this.defaultPipeline.bloomKernel = e.bloomKernel, this.defaultPipeline.bloomScale = e.bloomScale, this.defaultPipeline.depthOfFieldEnabled = e.depthOfFieldEnabled, e.depthOfFieldBlurLevel < 1 ? this.defaultPipeline.depthOfFieldBlurLevel = x.Low : e.depthOfFieldBlurLevel < 2 ? this.defaultPipeline.depthOfFieldBlurLevel = x.Medium : e.depthOfFieldBlurLevel < 3 && (this.defaultPipeline.depthOfFieldBlurLevel = x.High), this.defaultPipeline.depthOfField.focusDistance = e.depthOfFieldFocusDistance, this.defaultPipeline.depthOfField.fStop = e.depthOfFieldFStop, this.defaultPipeline.depthOfField.focalLength = e.depthOfFieldFocalLength, this.defaultPipeline.chromaticAberrationEnabled = e.chromaticAberrationEnabled, this.defaultPipeline.chromaticAberration.aberrationAmount = e.chromaticAberrationAberrationAmount, this.defaultPipeline.chromaticAberration.radialIntensity = e.chromaticAberrationRadialIntensity, e.chromaticAberrationDirection === 0 ? (this.defaultPipeline.chromaticAberration.direction.x = 0, this.defaultPipeline.chromaticAberration.direction.y = 0) : (this.defaultPipeline.chromaticAberration.direction.x = Math.sin(e.chromaticAberrationDirection), this.defaultPipeline.chromaticAberration.direction.y = Math.cos(e.chromaticAberrationDirection)), this.defaultPipeline.sharpenEnabled = e.sharpenEnabled, this.defaultPipeline.sharpen.edgeAmount = e.sharpenEdgeAmount, this.defaultPipeline.sharpen.colorAmount = e.sharpenColorAmount) : this.defaultPipeline && (this.defaultPipeline.dispose(), this.defaultPipeline = null));
|
|
247
|
+
}
|
|
248
|
+
updateScene(e) {
|
|
249
|
+
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;
|
|
250
|
+
}
|
|
251
|
+
createCamera(e, o) {
|
|
252
|
+
const i = new Y("", w.ToRadians(e.alpha || 90), w.ToRadians(e.beta || 75), e.radius || 1, new u(...e.target), o);
|
|
253
|
+
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;
|
|
254
|
+
}
|
|
255
|
+
updateCamera(e) {
|
|
256
|
+
const o = this.scene.activeCamera;
|
|
257
|
+
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));
|
|
258
|
+
}
|
|
259
|
+
createLights(e, o) {
|
|
260
|
+
this.scene && this.scene.lights && this.scene.lights.forEach((i, a) => {
|
|
261
|
+
setTimeout(() => {
|
|
262
|
+
i.dispose();
|
|
263
|
+
});
|
|
264
|
+
}), setTimeout(() => {
|
|
265
|
+
e.forEach((i) => {
|
|
266
|
+
if (i.type === "HemisphericLight") {
|
|
267
|
+
const a = new $("", new u(...i.direction), o);
|
|
268
|
+
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.groundColor = y.FromHexString(i.groundColor || "#ffffff"), a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
269
|
+
}
|
|
270
|
+
if (i.type === "DirectionalLight") {
|
|
271
|
+
const a = new O("", new u(...i.direction), o);
|
|
272
|
+
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
273
|
+
}
|
|
274
|
+
if (i.type === "PointLight") {
|
|
275
|
+
const a = new ee("", new u(...i.position), o);
|
|
276
|
+
a.intensity = i.intensity !== void 0 ? i.intensity : 0.5, a.diffuse = y.FromHexString(i.diffuse || "#ffffff");
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
createMeshs(e) {
|
|
282
|
+
e.meshes.forEach((o) => setTimeout(() => o.dispose())), ie.ImportMeshAsync("", this.option.meshs.url, "", e, (o) => {
|
|
283
|
+
L.value = (o.loaded / o.total * 100).toFixed(2);
|
|
284
|
+
}).then((o) => {
|
|
285
|
+
this.meshe = o.meshes, this.updateScenePipeline(this.option.pipelineOption), this.option.animationGroups = e.animationGroups.map((i) => ({
|
|
286
|
+
uniqueId: i.uniqueId,
|
|
287
|
+
name: i.name
|
|
288
|
+
})), this.events && (this.events.function[0].args[0].select = e.animationGroups.map((i) => ({
|
|
289
|
+
name: i.name,
|
|
290
|
+
value: i.name
|
|
291
|
+
}))), this.option.defaultAnimation && this.option.defaultAnimation.name ? this.playAnimation(this.option.defaultAnimation.name, {
|
|
292
|
+
loop: this.option.defaultAnimation.loop,
|
|
293
|
+
speedRatio: this.option.defaultAnimation.speedRatio
|
|
294
|
+
}) : e.animationGroups && e.animationGroups[0] && e.animationGroups[0].stop(), this.setMeshSize(this.option.meshs), setTimeout(() => {
|
|
295
|
+
this.engine.hideLoadingUI(), C("on-load-success"), this.engine.hideLoadingUI();
|
|
296
|
+
}, 100);
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
setMeshSize(e) {
|
|
300
|
+
if (e.autoSize) {
|
|
301
|
+
const i = this.meshe[0].getBoundingInfo().boundingBox, b = 0.7 / (Math.max(
|
|
302
|
+
i.maximumWorld.x - i.minimumWorld.x,
|
|
303
|
+
i.maximumWorld.y - i.minimumWorld.y,
|
|
304
|
+
i.maximumWorld.z - i.minimumWorld.z
|
|
305
|
+
) || 1);
|
|
306
|
+
this.meshe[0].scaling = new u(b, b, b);
|
|
307
|
+
const k = i.centerWorld;
|
|
308
|
+
this.meshe[0].position = this.meshe[0].position.subtract(k.multiplyByFloats(b, b, b)), this.meshe[0].rotation = new u(0, 0, 0);
|
|
309
|
+
} else {
|
|
310
|
+
const { position: o, scaling: i, rotation: a } = e;
|
|
311
|
+
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);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
run() {
|
|
315
|
+
return this.engine.runRenderLoop(() => this.scene.render()), this;
|
|
316
|
+
}
|
|
317
|
+
dispose() {
|
|
318
|
+
this.scene && this.engine && (this.scene.dispose(), this.engine.dispose());
|
|
319
|
+
}
|
|
320
|
+
playAnimation(e, o = {
|
|
321
|
+
loop: !1,
|
|
322
|
+
speedRatio: 1
|
|
323
|
+
}) {
|
|
324
|
+
if (this.scene) {
|
|
325
|
+
this.scene.stopAllAnimations();
|
|
326
|
+
const i = this.scene.getAnimationGroupByName(e);
|
|
327
|
+
i && (C("on-play-animation"), oe.parseEvents(n.useEvents, "on-play-animation"), i.start(o.loop, o.speedRatio, i.from, i.to, !1));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
const f = P();
|
|
332
|
+
return J(() => {
|
|
333
|
+
t.meshs && (f.value = new D(h.value, t, s).run(), te(h.value, (z) => {
|
|
334
|
+
f.value && f.value.engine.resize();
|
|
335
|
+
}));
|
|
336
|
+
}), Z(() => {
|
|
337
|
+
f.value && (f.value.dispose(), f.value.meshe = []);
|
|
338
|
+
}), {
|
|
339
|
+
canvasRef: h,
|
|
340
|
+
babylon: f,
|
|
341
|
+
Babylon: D,
|
|
342
|
+
babylonLoadingStatus: E,
|
|
343
|
+
babylonLoadingTitle: L
|
|
344
|
+
};
|
|
345
|
+
}, { canvasRef: A, babylon: r, Babylon: F, babylonLoadingStatus: B, babylonLoadingTitle: _ } = H(n.basicOption, n.basicEvents);
|
|
346
|
+
return d({
|
|
347
|
+
playAnimation: (t, s) => {
|
|
348
|
+
const h = s[0].value, L = {
|
|
349
|
+
loop: s[1].keys[0].defaultValue,
|
|
350
|
+
speedRatio: s[1].keys[1].defaultValue
|
|
351
|
+
};
|
|
352
|
+
r.value.playAnimation(h, L);
|
|
353
|
+
}
|
|
354
|
+
}), m(() => l(n.basicOption.camera), (t, s) => {
|
|
355
|
+
!p(t, s) && r.value && r.value.updateCamera(t);
|
|
356
|
+
}, {
|
|
357
|
+
deep: !0
|
|
358
|
+
}), m(() => l(n.basicOption.scene), (t, s) => {
|
|
359
|
+
!p(t, s) && r.value && r.value.updateScene(t);
|
|
360
|
+
}, {
|
|
361
|
+
deep: !0
|
|
362
|
+
}), m(() => l(n.basicOption.lights), (t, s) => {
|
|
363
|
+
!p(t, s) && r.value && r.value.createLights(t, r.value.scene);
|
|
364
|
+
}, {
|
|
365
|
+
deep: !0
|
|
366
|
+
}), m(() => l(n.basicOption.meshs.url), (t, s) => {
|
|
367
|
+
!p(t, s) && r.value && (r.value.dispose(), r.value = new F(A.value, n.basicOption, n.basicEvents).run());
|
|
368
|
+
}, {
|
|
369
|
+
deep: !0
|
|
370
|
+
}), m(() => l(n.basicOption.meshs.position), (t, s) => {
|
|
371
|
+
!p(t, s) && r.value && r.value.meshe[0] && r.value.meshe[0].position.set(t[0], t[1], t[2]);
|
|
372
|
+
}, {
|
|
373
|
+
deep: !0
|
|
374
|
+
}), m(() => l(n.basicOption.meshs.scaling), (t, s) => {
|
|
375
|
+
!p(t, s) && r.value && r.value.meshe[0] && r.value.meshe[0].scaling.set(t[0], t[1], t[2]);
|
|
376
|
+
}, {
|
|
377
|
+
deep: !0
|
|
378
|
+
}), m(() => l(n.basicOption.meshs.rotation), (t, s) => {
|
|
379
|
+
!p(t, s) && r.value && r.value.meshe[0] && (r.value.meshe[0].rotation = new u(t[0], t[1], t[2]));
|
|
380
|
+
}, {
|
|
381
|
+
deep: !0
|
|
382
|
+
}), m(() => l(n.basicOption.meshs.autoSize), (t, s) => {
|
|
383
|
+
!p(t, s) && r.value && r.value.meshe[0] && r.value.setMeshSize(n.basicOption.meshs);
|
|
384
|
+
}, {
|
|
385
|
+
deep: !0
|
|
386
|
+
}), m(() => l(n.basicOption.defaultAnimation), (t, s) => {
|
|
387
|
+
!p(t, s) && r.value && (r.value.dispose(), r.value = new F(A.value, n.basicOption, n.basicEvents).run());
|
|
388
|
+
}, {
|
|
389
|
+
deep: !0
|
|
390
|
+
}), m(() => l(n.basicOption.pipelineOption), (t, s) => {
|
|
391
|
+
!p(t, s) && r.value && r.value.updateScenePipeline(t);
|
|
392
|
+
}, {
|
|
393
|
+
deep: !0
|
|
394
|
+
}), (t, s) => (M(), T("div", re, [
|
|
395
|
+
V("canvas", {
|
|
396
|
+
ref_key: "canvasRef",
|
|
397
|
+
ref: A,
|
|
398
|
+
class: N(["widget", { show: !R(B) }])
|
|
399
|
+
}, null, 2),
|
|
400
|
+
R(B) ? (M(), T("div", {
|
|
401
|
+
key: 0,
|
|
402
|
+
ref: "babylonLoadingRef",
|
|
403
|
+
class: "babylon-loading"
|
|
404
|
+
}, " 正在加载模型...(" + K(R(_)) + "%) ", 513)) : q("", !0)
|
|
405
|
+
]));
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
export {
|
|
409
|
+
Wo as default
|
|
410
|
+
};
|