@shjjs/visual-ui 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/es/commons/core/earth/main.vue.d.ts +2 -2
  2. package/es/commons/core/useChart.mjs +257 -73
  3. package/es/components/chart/commons/components/common-chart/index.vue.mjs +213 -30
  4. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +210 -27
  5. package/es/components/chart/commons/hooks/useChart.mjs +261 -77
  6. package/es/components/chart/src/map/bmap-basic/index.vue.d.ts +8 -8
  7. package/es/components/chart/src/map/bmap-heatmap/index.vue.d.ts +6 -2
  8. package/es/components/chart-other-candlestick-basic/index.vue.mjs +212 -29
  9. package/es/components/chart-other-candlestick-demo/index.vue.mjs +213 -30
  10. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +214 -31
  11. package/es/components/chart-other-circular-graph/index.vue.mjs +214 -31
  12. package/es/components/chart-other-force/index.vue.mjs +212 -29
  13. package/es/components/chart-other-force2/index.vue.mjs +212 -29
  14. package/es/components/chart-other-funnel/index.vue.mjs +214 -31
  15. package/es/components/chart-other-funnel-contrast/index.vue.mjs +214 -31
  16. package/es/components/chart-other-funnel-split/index.vue.mjs +214 -31
  17. package/es/components/chart-other-funnel2/index.vue.mjs +214 -31
  18. package/es/components/chart-other-gauge/index.vue.mjs +214 -31
  19. package/es/components/chart-other-gauge-grade/index.vue.mjs +214 -31
  20. package/es/components/chart-other-gauge-stage/index.vue.mjs +214 -31
  21. package/es/components/chart-other-graph-basic/index.vue.mjs +214 -31
  22. package/es/components/chart-other-graph-basic2/index.vue.mjs +214 -31
  23. package/es/components/chart-other-graph-calendar/index.vue.mjs +214 -31
  24. package/es/components/chart-other-grid-percentage/index.vue.mjs +218 -35
  25. package/es/components/chart-other-heatmap/index.vue.mjs +212 -29
  26. package/es/components/chart-other-label-gauge/index.vue.mjs +216 -33
  27. package/es/components/chart-other-liquidfill/index.vue.mjs +214 -31
  28. package/es/components/chart-other-parallel-basic/index.vue.mjs +214 -31
  29. package/es/components/chart-other-parallel-mul/index.vue.mjs +211 -28
  30. package/es/components/chart-other-radar/index.vue.mjs +224 -41
  31. package/es/components/chart-other-radar-stack/index.vue.mjs +211 -28
  32. package/es/components/chart-other-sunburst-basic/index.vue.mjs +212 -29
  33. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +212 -29
  34. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +212 -29
  35. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +212 -29
  36. package/es/components/chart-other-sunburst-book/index.vue.mjs +212 -29
  37. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +214 -31
  38. package/es/components/chart-other-sunburst-radius/index.vue.mjs +212 -29
  39. package/es/components/chart-other-theme-river/index.vue.mjs +216 -33
  40. package/es/components/chart-other-tree/index.vue.mjs +214 -31
  41. package/es/components/chart-other-tree-line/index.vue.mjs +214 -31
  42. package/es/components/chart-other-treemap/index.vue.mjs +214 -31
  43. package/es/components/chart-other-treemap-basic/index.vue.mjs +214 -31
  44. package/es/components/chart-other-word-cloud/index.vue.mjs +216 -33
  45. package/es/components/commons-echarts/compileAndRunEcharts.mjs +219 -35
  46. package/es/components/commons-loop-iterator/index.vue.mjs +1 -1
  47. package/es/components/commons-loop-iterator/index.vue2.mjs +218 -35
  48. package/es/components/commons-product-model/index.vue.mjs +2 -2
  49. package/es/components/commons-product-model/index.vue2.mjs +246 -62
  50. package/es/components/commons-three-loader/index.vue.mjs +2 -2
  51. package/es/components/commons-three-loader/index.vue2.mjs +257 -73
  52. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  53. package/es/components/commons-three-loader3/index.vue2.mjs +301 -117
  54. package/es/components/commons-weather/index.vue.mjs +1 -1
  55. package/es/components/commons-weather/index.vue2.mjs +233 -48
  56. package/es/components/commons-weather-dynamic/index.vue.mjs +2 -2
  57. package/es/components/commons-weather-dynamic/index.vue2.mjs +236 -52
  58. package/es/components/interaction/button/index.vue.mjs +2 -2
  59. package/es/components/interaction/button/index.vue2.mjs +252 -68
  60. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +1 -1
  61. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +324 -140
  62. package/es/components/interaction/tabs/index.vue.mjs +223 -39
  63. package/es/components/interaction/tabs-icon/index.vue.mjs +225 -41
  64. package/es/components/interaction-input/index.vue.mjs +1 -1
  65. package/es/components/interaction-input/index.vue2.mjs +244 -61
  66. package/es/components/interaction-select/index.vue.mjs +1 -1
  67. package/es/components/interaction-select/index.vue2.mjs +269 -86
  68. package/es/components/interaction-slider/index.vue.mjs +2 -2
  69. package/es/components/interaction-slider/index.vue2.mjs +248 -65
  70. package/es/components/interaction-switch/index.vue.mjs +1 -1
  71. package/es/components/interaction-switch/index.vue2.mjs +217 -33
  72. package/es/components/interaction-tabs/index.vue.mjs +1 -1
  73. package/es/components/interaction-tabs/index.vue2.mjs +221 -37
  74. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  75. package/es/components/interaction-tabs2/index.vue2.mjs +219 -35
  76. package/es/components/map-earth-basic/index.d.ts +2 -2
  77. package/es/components/map-earth-basic/index.vue.d.ts +2 -2
  78. package/es/components/map-earth-basic/index.vue.mjs +286 -103
  79. package/es/components/map-earth-cool-tech/index.d.ts +2 -2
  80. package/es/components/map-earth-cool-tech/index.vue.d.ts +4 -6
  81. package/es/components/map-earth-cool-tech/index.vue.mjs +286 -103
  82. package/es/components/map-earth-fly-line/index.d.ts +2 -2
  83. package/es/components/map-earth-fly-line/index.vue.d.ts +2 -2
  84. package/es/components/map-earth-fly-line/index.vue.mjs +286 -103
  85. package/es/components/map-earth-hacker/index.d.ts +2 -2
  86. package/es/components/map-earth-hacker/index.vue.d.ts +2 -2
  87. package/es/components/map-earth-hacker/index.vue.mjs +286 -103
  88. package/es/components/map-earth-particle/index.d.ts +2 -2
  89. package/es/components/map-earth-particle/index.vue.d.ts +2 -2
  90. package/es/components/map-earth-particle/index.vue.mjs +286 -103
  91. package/es/components/media-audio/index.vue.mjs +2 -2
  92. package/es/components/media-audio/index.vue2.mjs +220 -36
  93. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  94. package/es/components/media-audio-dynamic/index.vue2.mjs +226 -43
  95. package/es/components/media-flv/index.vue.mjs +219 -35
  96. package/es/components/media-iframe/index.vue.mjs +2 -2
  97. package/es/components/media-iframe/index.vue2.mjs +199 -15
  98. package/es/components/media-iframe-dynamic/index.vue.mjs +2 -2
  99. package/es/components/media-iframe-dynamic/index.vue2.mjs +219 -36
  100. package/es/components/media-image-dynamic/index.vue.mjs +1 -1
  101. package/es/components/media-image-dynamic/index.vue2.mjs +207 -24
  102. package/es/components/media-m3u8/index.vue.mjs +221 -37
  103. package/es/components/media-m3u8-dynamic/index.vue.mjs +228 -45
  104. package/es/components/media-video/index.vue.mjs +1 -1
  105. package/es/components/media-video/index.vue2.mjs +216 -31
  106. package/es/components/media-video-dynamic/index.vue.mjs +1 -1
  107. package/es/components/media-video-dynamic/index.vue2.mjs +223 -40
  108. package/es/components/scene-amap2d/index.vue.mjs +2 -2
  109. package/es/components/scene-amap2d/index.vue2.mjs +376 -192
  110. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  111. package/es/components/scene-amap3d/index.vue2.mjs +414 -231
  112. package/es/components/scene-default/index.vue.mjs +2 -2
  113. package/es/components/scene-default/index.vue2.mjs +201 -16
  114. package/es/components/scene-map3d/index.vue.mjs +2 -2
  115. package/es/components/scene-map3d/index.vue2.mjs +289 -106
  116. package/es/components/scene-ue-iframe/index.vue.mjs +1 -1
  117. package/es/components/scene-ue-iframe/index.vue2.mjs +212 -27
  118. package/es/components/scene-ue-shj/index.vue.mjs +2 -2
  119. package/es/components/scene-ue-shj/index.vue2.mjs +200 -15
  120. package/es/components/scene-unity-iframe/index.vue.mjs +1 -1
  121. package/es/components/scene-unity-iframe/index.vue2.mjs +204 -19
  122. package/es/components/scene-unity-webgl/index.vue.mjs +2 -2
  123. package/es/components/scene-unity-webgl/index.vue2.mjs +204 -19
  124. package/es/components/scene-vr/index.vue.mjs +2 -2
  125. package/es/components/scene-vr/index.vue2.mjs +307 -123
  126. package/es/components/text/list/index.vue.mjs +240 -56
  127. package/es/components/text-count-down/index.vue.mjs +2 -2
  128. package/es/components/text-count-down/index.vue2.mjs +245 -60
  129. package/es/components/text-over-number/index.vue.mjs +2 -2
  130. package/es/components/text-over-number/index.vue2.mjs +243 -60
  131. package/es/components/text-real-time/index.vue.mjs +1 -1
  132. package/es/components/text-real-time/index.vue2.mjs +212 -28
  133. package/es/components/text-row-scroll/index.vue.mjs +2 -2
  134. package/es/components/text-row-scroll/index.vue2.mjs +289 -106
  135. package/es/components/text-table-basic/index.vue.mjs +2 -2
  136. package/es/components/text-table-basic/index.vue2.mjs +286 -103
  137. package/es/components/text-table-scroll/index.vue.mjs +1 -1
  138. package/es/components/text-table-scroll/index.vue2.mjs +291 -108
  139. package/es/components/text-text-dynamic/index.vue.mjs +2 -2
  140. package/es/components/text-text-dynamic/index.vue2.mjs +218 -35
  141. package/es/index.d.ts +1 -0
  142. package/es/index.mjs +375 -361
  143. package/es/plugins/datasource/index.mjs +217 -0
  144. package/es/plugins/datasource/sources/api.mjs +32 -0
  145. package/es/plugins/datasource/sources/static.mjs +17 -0
  146. package/es/plugins/datasource/sources/storage.mjs +28 -0
  147. package/es/plugins/datasource/sources/url.mjs +17 -0
  148. package/es/plugins/datasource/sources/variable.mjs +17 -0
  149. package/es/plugins/datasource/sources/ws.mjs +139 -0
  150. package/es/plugins/datasource/utils/axios.mjs +134 -0
  151. package/es/plugins/datasource/utils/request.mjs +5 -0
  152. package/es/plugins/datasource/utils/utils.mjs +229 -0
  153. package/es/plugins/datasource/utils/wsManager.mjs +78 -0
  154. package/es/plugins/event/actions/fullScreenAction.mjs +8 -0
  155. package/es/plugins/event/actions/invokeAction.mjs +11 -0
  156. package/es/plugins/event/actions/linkAction.mjs +8 -0
  157. package/es/plugins/event/actions/moveAction.mjs +15 -0
  158. package/es/plugins/event/actions/refreshVariableAction.mjs +18 -0
  159. package/es/plugins/event/actions/rotateAction.mjs +19 -0
  160. package/es/plugins/event/actions/scaleAction.mjs +24 -0
  161. package/es/plugins/event/actions/sendApiAction.mjs +16 -0
  162. package/es/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
  163. package/es/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
  164. package/es/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
  165. package/es/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
  166. package/es/plugins/event/actions/updatePageAction.mjs +6 -0
  167. package/es/plugins/event/actions/updateVariableAction.mjs +25 -0
  168. package/es/plugins/event/actions/updateWidgetAction.mjs +14 -0
  169. package/es/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
  170. package/es/plugins/event/index.mjs +161 -0
  171. package/es/plugins/event/utils/utils.mjs +50 -0
  172. package/es/plugins/utils/componentRefs.mjs +37 -0
  173. package/es/plugins/utils/getNextElement.mjs +12 -0
  174. package/es/widgets.css +1 -1
  175. package/package.json +1 -1
@@ -1,13 +1,197 @@
1
1
  var _ = Object.defineProperty;
2
- var U = (h, l, g) => l in h ? _(h, l, { enumerable: !0, configurable: !0, writable: !0, value: g }) : h[l] = g;
3
- var d = (h, l, g) => U(h, typeof l != "symbol" ? l + "" : l, g);
4
- import { defineComponent as T, watch as f, createElementBlock as B, openBlock as D, createElementVNode as V, createCommentVNode as K, normalizeClass as W, unref as P, toDisplayString as q, ref as S, onMounted as N, onBeforeUnmount as Y } from "vue";
2
+ var U = (p, m, c) => m in p ? _(p, m, { enumerable: !0, configurable: !0, writable: !0, value: c }) : p[m] = c;
3
+ var l = (p, m, c) => U(p, typeof m != "symbol" ? m + "" : m, c);
4
+ import { defineComponent as T, watch as h, createElementBlock as B, openBlock as D, createElementVNode as V, createCommentVNode as K, normalizeClass as W, unref as P, toDisplayString as q, ref as S, onMounted as N, onBeforeUnmount as Y } from "vue";
5
5
  import "@babylonjs/loaders/glTF";
6
- import { cloneDeep as c, isEqual as m } from "lodash";
6
+ import { cloneDeep as u, isEqual as f } from "lodash";
7
7
  import { useResizeObserver as J } from "@vueuse/core";
8
8
  import { Engine as j, Scene as Q, Color4 as w, Color3 as b, DefaultRenderingPipeline as X, DepthOfFieldEffectBlurLevel as A, Vector3 as v, DirectionalLight as Z, ShadowGenerator as $, Tools as G, SceneLoader as O } from "@babylonjs/core";
9
- import { SHJParseEvent as z } from "@shjjs/visual-core";
10
- const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model" }), de = /* @__PURE__ */ T({
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 "./index.mjs";
54
+ import "../commons-vr-photo/index.mjs";
55
+ import "../commons-vr-video/index.mjs";
56
+ import "../commons-three-loader/index.mjs";
57
+ import "../commons-three-loader3/index.mjs";
58
+ import "../commons-loop-iterator/index.mjs";
59
+ import "../commons-gaussian-splatting-view/index.mjs";
60
+ import "../commons-babylon/index.mjs";
61
+ import "../commons-svg/index.mjs";
62
+ import "../commons-weather/index.mjs";
63
+ import "../commons-weather-dynamic/index.mjs";
64
+ import "../media-wavesurfer/index.mjs";
65
+ import "../interaction-tabs/index.mjs";
66
+ import "../interaction-tabs2/index.mjs";
67
+ import "../interaction-button/index.mjs";
68
+ import "../interaction-button-image/index.mjs";
69
+ import "../interaction-select/index.mjs";
70
+ import "../interaction-input/index.mjs";
71
+ import "../interaction-radio/index.mjs";
72
+ import "../interaction-slider/index.mjs";
73
+ import "../interaction-switch/index.mjs";
74
+ import "../interaction-data-picker/index.mjs";
75
+ import "../interaction-button-refresh/index.mjs";
76
+ import "../media-image/index.mjs";
77
+ import "../text-title/index.mjs";
78
+ import "../commons-qrcode/index.mjs";
79
+ import "../media-video/index.mjs";
80
+ import "../media-audio/index.mjs";
81
+ import "../text-real-time/index.mjs";
82
+ import "../media-carousel/index.mjs";
83
+ import "../media-carousel-slides/index.mjs";
84
+ import "../media-iframe-carousel/index.mjs";
85
+ import "../media-iframe/index.mjs";
86
+ import "../media-m3u8/index.mjs";
87
+ import "../media-m3u8-dynamic/index.mjs";
88
+ import "../media-audio-dynamic/index.mjs";
89
+ import "../media-video-dynamic/index.mjs";
90
+ import "../media-image-dynamic/index.mjs";
91
+ import "../media-iframe-dynamic/index.mjs";
92
+ import "../media-flv/index.mjs";
93
+ import "../commons-echarts/index.mjs";
94
+ import "../text-over-number/index.mjs";
95
+ import "../text-table-scroll/index.mjs";
96
+ import "../text-carousel/index.mjs";
97
+ import "../text-row-scroll/index.mjs";
98
+ import "../text-text-dynamic/index.mjs";
99
+ import "../text-count-down/index.mjs";
100
+ import "../graphical-circle/index.mjs";
101
+ import "../graphical-diamond/index.mjs";
102
+ import "../graphical-hexagon/index.mjs";
103
+ import "../graphical-isosceles-triangle/index.mjs";
104
+ import "../graphical-pentagon/index.mjs";
105
+ import "../graphical-rect/index.mjs";
106
+ import "../graphical-right-triangle/index.mjs";
107
+ import "../scene-map3d/index.mjs";
108
+ import "../scene-amap2d/index.mjs";
109
+ import "../scene-amap3d/index.mjs";
110
+ import "../scene-vr/index.mjs";
111
+ import "../scene-unity-iframe/index.mjs";
112
+ import "../scene-unity-webgl/index.mjs";
113
+ import "../scene-ue-iframe/index.mjs";
114
+ import "../scene-ue-shj/index.mjs";
115
+ import "../scene-default/index.mjs";
116
+ import "../interaction/tabs/index.mjs";
117
+ import "../interaction/tabs-icon/index.mjs";
118
+ import "../interaction/button/index.mjs";
119
+ import "../interaction/date-picker/src/date-picker/index.mjs";
120
+ import "../interaction/date-picker/src/date-picker-range/index.mjs";
121
+ import "../text/list/index.mjs";
122
+ import "../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 z } from "../../plugins/event/index.mjs";
194
+ const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model" }), Do = /* @__PURE__ */ T({
11
195
  ...ie,
12
196
  props: {
13
197
  basicOption: {},
@@ -18,35 +202,35 @@ const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model"
18
202
  "on-load-success",
19
203
  "on-play-animation"
20
204
  ],
21
- setup(h, { expose: l, emit: g }) {
22
- const x = g, o = h, H = (i, a) => {
23
- const u = S(), y = S(), E = S(!0);
205
+ setup(p, { expose: m, emit: c }) {
206
+ const x = c, a = p, H = (i, o) => {
207
+ const d = S(), y = S(), E = S(!0);
24
208
  class I {
25
209
  // eslint-disable-next-line no-useless-constructor
26
210
  constructor(e) {
27
211
  // optional, but needed due to interface definitions
28
- d(this, "loadingUIBackgroundColor");
212
+ l(this, "loadingUIBackgroundColor");
29
213
  this.loadingUIText = e;
30
214
  }
31
215
  displayLoadingUI() {
32
- u.value && (E.value = !0);
216
+ d.value && (E.value = !0);
33
217
  }
34
218
  hideLoadingUI() {
35
- u.value && (E.value = !1);
219
+ d.value && (E.value = !1);
36
220
  }
37
221
  }
38
222
  class M {
39
- constructor(e, t, n) {
40
- d(this, "scene");
41
- d(this, "engine");
223
+ constructor(e, t, s) {
224
+ l(this, "scene");
225
+ l(this, "engine");
42
226
  // 默认环境
43
- d(this, "environmentHelper");
44
- d(this, "shadowsLight");
227
+ l(this, "environmentHelper");
228
+ l(this, "shadowsLight");
45
229
  // 全局阴影
46
- d(this, "shadowGenerator");
230
+ l(this, "shadowGenerator");
47
231
  // 默认后期
48
- d(this, "defaultPipeline");
49
- this.canvas = e, this.option = t, this.events = n;
232
+ l(this, "defaultPipeline");
233
+ this.canvas = e, this.option = t, this.events = s;
50
234
  try {
51
235
  this.engine = new j(this.canvas, !0, {}, !1), this.engine.loadingScreen = new I(""), window.addEventListener("resize", () => {
52
236
  this.engine.resize();
@@ -130,23 +314,23 @@ const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model"
130
314
  e.meshes.forEach((t) => setTimeout(() => t.dispose())), O.ImportMeshAsync("", this.option.meshs.url, "", e, (t) => {
131
315
  y.value = (t.loaded / t.total * 100).toFixed(2);
132
316
  }).then((t) => {
133
- const n = t.meshes;
134
- if (this.option.animationGroups = e.animationGroups.map((r) => ({
135
- uniqueId: r.uniqueId,
136
- name: r.name
137
- })), this.events && (this.events.function[0].args[0].select = e.animationGroups.map((r) => ({
138
- name: r.name,
139
- value: r.name
317
+ const s = t.meshes;
318
+ if (this.option.animationGroups = e.animationGroups.map((n) => ({
319
+ uniqueId: n.uniqueId,
320
+ name: n.name
321
+ })), this.events && (this.events.function[0].args[0].select = e.animationGroups.map((n) => ({
322
+ name: n.name,
323
+ value: n.name
140
324
  }))), this.option.defaultAnimation && this.option.defaultAnimation.name ? this.playAnimation(this.option.defaultAnimation.name, {
141
325
  loop: this.option.defaultAnimation.loop,
142
326
  speedRatio: this.option.defaultAnimation.speedRatio
143
327
  }) : e.animationGroups && e.animationGroups[0] && e.animationGroups[0].stop(), this.updateShadowsLight(this.option.shadow), e.createDefaultCamera(!0, !0, !0), this.updateCamera(this.option.camera), this.updateScenePipeline(this.option.pipelineOption), this.updateDefaultEnvironment(this.option.environment), this.option.meshs.isCasterShadow && this.shadowGenerator) {
144
328
  this.shadowGenerator.addShadowCaster(e.meshes[0], !0);
145
- for (let r = 0; r < n.length; r++)
146
- n[r].receiveShadows = !1;
329
+ for (let n = 0; n < s.length; n++)
330
+ s[n].receiveShadows = !1;
147
331
  }
148
- n[0].position = new v(...this.option.meshs.position), setTimeout(() => {
149
- this.engine.hideLoadingUI(), x("on-load-success"), z.parseEvents(o.useEvents, "on-load-success");
332
+ s[0].position = new v(...this.option.meshs.position), setTimeout(() => {
333
+ this.engine.hideLoadingUI(), x("on-load-success"), z.parseEvents(a.useEvents, "on-load-success");
150
334
  }, 100);
151
335
  });
152
336
  }
@@ -164,63 +348,63 @@ const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model"
164
348
  }) {
165
349
  if (this.scene) {
166
350
  this.scene.stopAllAnimations();
167
- const n = this.scene.getAnimationGroupByName(e);
168
- n && (x("on-play-animation"), z.parseEvents(o.useEvents, "on-play-animation"), n.start(t.loop, t.speedRatio, n.from, n.to, !1));
351
+ const s = this.scene.getAnimationGroupByName(e);
352
+ s && (x("on-play-animation"), z.parseEvents(a.useEvents, "on-play-animation"), s.start(t.loop, t.speedRatio, s.from, s.to, !1));
169
353
  }
170
354
  }
171
355
  }
172
- const p = S();
356
+ const g = S();
173
357
  return N(() => {
174
- i.meshs && (p.value = new M(u.value, i, a).run(), J(u.value, (R) => {
175
- p.value && p.value.engine.resize();
358
+ i.meshs && (g.value = new M(d.value, i, o).run(), J(d.value, (R) => {
359
+ g.value && g.value.engine.resize();
176
360
  }));
177
361
  }), Y(() => {
178
- p.value && p.value.dispose();
362
+ g.value && g.value.dispose();
179
363
  }), {
180
- canvasRef: u,
181
- babylon: p,
364
+ canvasRef: d,
365
+ babylon: g,
182
366
  Babylon: M,
183
367
  babylonLoadingStatus: E,
184
368
  babylonLoadingTitle: y
185
369
  };
186
- }, { canvasRef: L, babylon: s, Babylon: C, babylonLoadingStatus: F, babylonLoadingTitle: k } = H(o.basicOption, o.basicEvents);
187
- return l({
188
- playAnimation: (i, a) => {
189
- const u = a[0].value, y = {
190
- loop: a[1].keys[0].defaultValue,
191
- speedRatio: a[1].keys[1].defaultValue
370
+ }, { canvasRef: L, babylon: r, Babylon: C, babylonLoadingStatus: F, babylonLoadingTitle: k } = H(a.basicOption, a.basicEvents);
371
+ return m({
372
+ playAnimation: (i, o) => {
373
+ const d = o[0].value, y = {
374
+ loop: o[1].keys[0].defaultValue,
375
+ speedRatio: o[1].keys[1].defaultValue
192
376
  };
193
- s.value.playAnimation(u, y);
377
+ r.value.playAnimation(d, y);
194
378
  }
195
- }), f(() => c(o.basicOption.environment), (i, a) => {
196
- !m(i, a) && s.value && s.value.updateDefaultEnvironment(i);
379
+ }), h(() => u(a.basicOption.environment), (i, o) => {
380
+ !f(i, o) && r.value && r.value.updateDefaultEnvironment(i);
197
381
  }, {
198
382
  deep: !0
199
- }), f(() => c(o.basicOption.shadow), (i, a) => {
200
- !m(i, a) && s.value && s.value.updateShadowsLight(i);
383
+ }), h(() => u(a.basicOption.shadow), (i, o) => {
384
+ !f(i, o) && r.value && r.value.updateShadowsLight(i);
201
385
  }, {
202
386
  deep: !0
203
- }), f(() => c(o.basicOption.camera), (i, a) => {
204
- !m(i, a) && s.value && s.value.updateCamera(i);
387
+ }), h(() => u(a.basicOption.camera), (i, o) => {
388
+ !f(i, o) && r.value && r.value.updateCamera(i);
205
389
  }, {
206
390
  deep: !0
207
- }), f(() => c(o.basicOption.meshs), (i, a) => {
208
- !m(i, a) && s.value && (s.value.dispose(), s.value = new C(L.value, o.basicOption, o.basicEvents).run());
391
+ }), h(() => u(a.basicOption.meshs), (i, o) => {
392
+ !f(i, o) && r.value && (r.value.dispose(), r.value = new C(L.value, a.basicOption, a.basicEvents).run());
209
393
  }, {
210
394
  deep: !0
211
- }), f(() => c(o.basicOption.defaultAnimation), (i, a) => {
212
- !m(i, a) && s.value && (s.value.dispose(), s.value = new C(L.value, o.basicOption, o.basicEvents).run());
395
+ }), h(() => u(a.basicOption.defaultAnimation), (i, o) => {
396
+ !f(i, o) && r.value && (r.value.dispose(), r.value = new C(L.value, a.basicOption, a.basicEvents).run());
213
397
  }, {
214
398
  deep: !0
215
- }), f(() => c(o.basicOption.scene), (i, a) => {
216
- !m(i, a) && s.value && s.value.updateScene(i);
399
+ }), h(() => u(a.basicOption.scene), (i, o) => {
400
+ !f(i, o) && r.value && r.value.updateScene(i);
217
401
  }, {
218
402
  deep: !0
219
- }), f(() => c(o.basicOption.pipelineOption), (i, a) => {
220
- !m(i, a) && s.value && s.value.updateScenePipeline(i);
403
+ }), h(() => u(a.basicOption.pipelineOption), (i, o) => {
404
+ !f(i, o) && r.value && r.value.updateScenePipeline(i);
221
405
  }, {
222
406
  deep: !0
223
- }), (i, a) => (D(), B("div", ee, [
407
+ }), (i, o) => (D(), B("div", ee, [
224
408
  V("canvas", {
225
409
  ref_key: "canvasRef",
226
410
  ref: L,
@@ -235,5 +419,5 @@ const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model"
235
419
  }
236
420
  });
237
421
  export {
238
- de as default
422
+ Do as default
239
423
  };
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-12fce11c"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2a919ca2"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };