@shjjs/visual-ui 1.0.38 → 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.
Files changed (518) hide show
  1. package/es/commons/components/text.vue.d.ts +4 -4
  2. package/es/commons/core/earth/border.vue.d.ts +4 -4
  3. package/es/commons/core/earth/main.vue.d.ts +6 -6
  4. package/es/commons/core/earth/main.vue.mjs +7 -7
  5. package/es/commons/core/useChart.d.ts +2 -2
  6. package/es/commons/core/useChart.mjs +301 -300
  7. package/es/commons/utils/parseDataset.mjs +19 -19
  8. package/es/commons/utils/typescript.d.ts +5 -5
  9. package/es/components/chart/commons/components/common-chart/index.vue.d.ts +7 -7
  10. package/es/components/chart/commons/components/common-chart/index.vue.mjs +269 -268
  11. package/es/components/chart/commons/components/common-chart-map/index.vue.d.ts +6 -6
  12. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +247 -246
  13. package/es/components/chart/commons/hooks/useChart.d.ts +2 -2
  14. package/es/components/chart/commons/hooks/useChart.mjs +316 -315
  15. package/es/components/chart/src/bar/animation/index.d.ts +12 -12
  16. package/es/components/chart/src/bar/animation/index.vue.d.ts +12 -12
  17. package/es/components/chart/src/bar/basic/index.d.ts +12 -12
  18. package/es/components/chart/src/bar/basic/index.vue.d.ts +12 -12
  19. package/es/components/chart/src/bar/contrast/index.d.ts +12 -12
  20. package/es/components/chart/src/bar/contrast/index.vue.d.ts +12 -12
  21. package/es/components/chart/src/bar/contrast2/index.d.ts +12 -12
  22. package/es/components/chart/src/bar/contrast2/index.vue.d.ts +12 -12
  23. package/es/components/chart/src/bar/contrast3/index.d.ts +12 -12
  24. package/es/components/chart/src/bar/contrast3/index.vue.d.ts +12 -12
  25. package/es/components/chart/src/bar/gradient-column-chart/index.d.ts +12 -12
  26. package/es/components/chart/src/bar/gradient-column-chart/index.vue.d.ts +12 -12
  27. package/es/components/chart/src/bar/horizontal/index.d.ts +12 -12
  28. package/es/components/chart/src/bar/horizontal/index.vue.d.ts +12 -12
  29. package/es/components/chart/src/bar/horizontal-stack/index.d.ts +12 -12
  30. package/es/components/chart/src/bar/horizontal-stack/index.vue.d.ts +12 -12
  31. package/es/components/chart/src/bar/line-bar/index.d.ts +12 -12
  32. package/es/components/chart/src/bar/line-bar/index.vue.d.ts +12 -12
  33. package/es/components/chart/src/bar/line-bar2/index.d.ts +12 -12
  34. package/es/components/chart/src/bar/line-bar2/index.vue.d.ts +12 -12
  35. package/es/components/chart/src/bar/loop/index.d.ts +12 -12
  36. package/es/components/chart/src/bar/loop/index.vue.d.ts +12 -12
  37. package/es/components/chart/src/bar/mini/index.d.ts +12 -12
  38. package/es/components/chart/src/bar/mini/index.vue.d.ts +12 -12
  39. package/es/components/chart/src/bar/polar/index.d.ts +12 -12
  40. package/es/components/chart/src/bar/polar/index.vue.d.ts +12 -12
  41. package/es/components/chart/src/bar/polar-stack/index.d.ts +12 -12
  42. package/es/components/chart/src/bar/polar-stack/index.vue.d.ts +12 -12
  43. package/es/components/chart/src/bar/polar2/index.d.ts +12 -12
  44. package/es/components/chart/src/bar/polar2/index.vue.d.ts +12 -12
  45. package/es/components/chart/src/bar/radius-circle/index.d.ts +12 -12
  46. package/es/components/chart/src/bar/radius-circle/index.vue.d.ts +12 -12
  47. package/es/components/chart/src/bar/rank/index.d.ts +12 -12
  48. package/es/components/chart/src/bar/rank/index.vue.d.ts +12 -12
  49. package/es/components/chart/src/bar/segmented-progress/index.d.ts +12 -12
  50. package/es/components/chart/src/bar/segmented-progress/index.vue.d.ts +12 -12
  51. package/es/components/chart/src/bar/spire/index.d.ts +12 -12
  52. package/es/components/chart/src/bar/spire/index.vue.d.ts +12 -12
  53. package/es/components/chart/src/bar/stack/index.d.ts +12 -12
  54. package/es/components/chart/src/bar/stack/index.vue.d.ts +12 -12
  55. package/es/components/chart/src/bar/stack-line/index.d.ts +12 -12
  56. package/es/components/chart/src/bar/stack-line/index.vue.d.ts +12 -12
  57. package/es/components/chart/src/bar/stack2/index.d.ts +12 -12
  58. package/es/components/chart/src/bar/stack2/index.vue.d.ts +12 -12
  59. package/es/components/chart/src/bar/stack3/index.d.ts +12 -12
  60. package/es/components/chart/src/bar/stack3/index.vue.d.ts +12 -12
  61. package/es/components/chart/src/bar/staggered/index.d.ts +12 -12
  62. package/es/components/chart/src/bar/staggered/index.vue.d.ts +12 -12
  63. package/es/components/chart/src/bar/three/index.d.ts +12 -12
  64. package/es/components/chart/src/bar/three/index.vue.d.ts +12 -12
  65. package/es/components/chart/src/bar/waterfall/index.d.ts +12 -12
  66. package/es/components/chart/src/bar/waterfall/index.vue.d.ts +12 -12
  67. package/es/components/chart/src/bar/zebra/index.d.ts +12 -12
  68. package/es/components/chart/src/bar/zebra/index.vue.d.ts +12 -12
  69. package/es/components/chart/src/line/area-gradient/index.d.ts +12 -12
  70. package/es/components/chart/src/line/area-gradient/index.vue.d.ts +12 -12
  71. package/es/components/chart/src/line/area-highlight/index.d.ts +12 -12
  72. package/es/components/chart/src/line/area-highlight/index.vue.d.ts +12 -12
  73. package/es/components/chart/src/line/area-highlight2/index.d.ts +12 -12
  74. package/es/components/chart/src/line/area-highlight2/index.vue.d.ts +12 -12
  75. package/es/components/chart/src/line/basic/index.d.ts +12 -12
  76. package/es/components/chart/src/line/basic/index.vue.d.ts +12 -12
  77. package/es/components/chart/src/line/bump/index.d.ts +12 -12
  78. package/es/components/chart/src/line/bump/index.vue.d.ts +12 -12
  79. package/es/components/chart/src/line/dashed/index.d.ts +12 -12
  80. package/es/components/chart/src/line/dashed/index.vue.d.ts +12 -12
  81. package/es/components/chart/src/line/ladder/index.d.ts +12 -12
  82. package/es/components/chart/src/line/ladder/index.vue.d.ts +12 -12
  83. package/es/components/chart/src/line/logarithm/index.d.ts +12 -12
  84. package/es/components/chart/src/line/logarithm/index.vue.d.ts +12 -12
  85. package/es/components/chart/src/line/multix/index.d.ts +12 -12
  86. package/es/components/chart/src/line/multix/index.vue.d.ts +12 -12
  87. package/es/components/chart/src/line/polar-double/index.d.ts +12 -12
  88. package/es/components/chart/src/line/polar-double/index.vue.d.ts +12 -12
  89. package/es/components/chart/src/line/rain-flow/index.d.ts +12 -12
  90. package/es/components/chart/src/line/rain-flow/index.vue.d.ts +12 -12
  91. package/es/components/chart/src/line/scale/index.d.ts +12 -12
  92. package/es/components/chart/src/line/scale/index.vue.d.ts +12 -12
  93. package/es/components/chart/src/line/smooth/index.d.ts +12 -12
  94. package/es/components/chart/src/line/smooth/index.vue.d.ts +12 -12
  95. package/es/components/chart/src/line/smooth-area/index.d.ts +12 -12
  96. package/es/components/chart/src/line/smooth-area/index.vue.d.ts +12 -12
  97. package/es/components/chart/src/line/stack/index.d.ts +12 -12
  98. package/es/components/chart/src/line/stack/index.vue.d.ts +12 -12
  99. package/es/components/chart/src/line/stack-area/index.d.ts +12 -12
  100. package/es/components/chart/src/line/stack-area/index.vue.d.ts +12 -12
  101. package/es/components/chart/src/line/temp/index.d.ts +12 -12
  102. package/es/components/chart/src/line/temp/index.vue.d.ts +12 -12
  103. package/es/components/chart/src/line/vertical/index.d.ts +12 -12
  104. package/es/components/chart/src/line/vertical/index.vue.d.ts +12 -12
  105. package/es/components/chart/src/map/basic/index.d.ts +11 -11
  106. package/es/components/chart/src/map/basic/index.vue.d.ts +11 -11
  107. package/es/components/chart/src/map/bmap-basic/index.d.ts +11 -11
  108. package/es/components/chart/src/map/bmap-basic/index.vue.d.ts +11 -11
  109. package/es/components/chart/src/map/bmap-heatmap/index.d.ts +11 -11
  110. package/es/components/chart/src/map/bmap-heatmap/index.vue.d.ts +11 -11
  111. package/es/components/chart/src/map/bmap-rich/index.d.ts +11 -11
  112. package/es/components/chart/src/map/bmap-rich/index.vue.d.ts +11 -11
  113. package/es/components/chart/src/map/customize/index.d.ts +11 -11
  114. package/es/components/chart/src/map/customize/index.vue.d.ts +11 -11
  115. package/es/components/chart/src/map/lines/index.d.ts +11 -11
  116. package/es/components/chart/src/map/lines/index.vue.d.ts +11 -11
  117. package/es/components/chart/src/map/scatter/index.d.ts +11 -11
  118. package/es/components/chart/src/map/scatter/index.vue.d.ts +11 -11
  119. package/es/components/chart/src/pie/3d/index.d.ts +12 -12
  120. package/es/components/chart/src/pie/3d/index.vue.d.ts +12 -12
  121. package/es/components/chart/src/pie/basic/index.d.ts +12 -12
  122. package/es/components/chart/src/pie/basic/index.vue.d.ts +12 -12
  123. package/es/components/chart/src/pie/basic2/index.d.ts +12 -12
  124. package/es/components/chart/src/pie/basic2/index.vue.d.ts +12 -12
  125. package/es/components/chart/src/pie/customized/index.d.ts +12 -12
  126. package/es/components/chart/src/pie/customized/index.vue.d.ts +12 -12
  127. package/es/components/chart/src/pie/index/index.d.ts +12 -12
  128. package/es/components/chart/src/pie/index/index.vue.d.ts +12 -12
  129. package/es/components/chart/src/pie/interval/index.d.ts +12 -12
  130. package/es/components/chart/src/pie/interval/index.vue.d.ts +12 -12
  131. package/es/components/chart/src/pie/legend-scroll/index.d.ts +12 -12
  132. package/es/components/chart/src/pie/legend-scroll/index.vue.d.ts +12 -12
  133. package/es/components/chart/src/pie/radius/index.d.ts +12 -12
  134. package/es/components/chart/src/pie/radius/index.vue.d.ts +12 -12
  135. package/es/components/chart/src/pie/rose/index.d.ts +12 -12
  136. package/es/components/chart/src/pie/rose/index.vue.d.ts +12 -12
  137. package/es/components/chart/src/pie/round/index.d.ts +12 -12
  138. package/es/components/chart/src/pie/round/index.vue.d.ts +12 -12
  139. package/es/components/chart/src/pie/sunburst/index.d.ts +12 -12
  140. package/es/components/chart/src/pie/sunburst/index.vue.d.ts +12 -12
  141. package/es/components/chart/src/scatter/basic/index.d.ts +12 -12
  142. package/es/components/chart/src/scatter/basic/index.vue.d.ts +12 -12
  143. package/es/components/chart/src/scatter/basic2/index.d.ts +12 -12
  144. package/es/components/chart/src/scatter/basic2/index.vue.d.ts +12 -12
  145. package/es/components/chart/src/scatter/bubble/index.d.ts +12 -12
  146. package/es/components/chart/src/scatter/bubble/index.vue.d.ts +12 -12
  147. package/es/components/chart/src/scatter/ripples/index.d.ts +12 -12
  148. package/es/components/chart/src/scatter/ripples/index.vue.d.ts +12 -12
  149. package/es/components/chart-other-candlestick-basic/index.d.ts +6 -6
  150. package/es/components/chart-other-candlestick-basic/index.vue.d.ts +6 -6
  151. package/es/components/chart-other-candlestick-basic/index.vue.mjs +261 -260
  152. package/es/components/chart-other-candlestick-demo/index.d.ts +6 -6
  153. package/es/components/chart-other-candlestick-demo/index.vue.d.ts +6 -6
  154. package/es/components/chart-other-candlestick-demo/index.vue.mjs +260 -259
  155. package/es/components/chart-other-candlestick-shanghai/index.d.ts +6 -6
  156. package/es/components/chart-other-candlestick-shanghai/index.vue.d.ts +6 -6
  157. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +260 -259
  158. package/es/components/chart-other-circular-graph/index.d.ts +6 -6
  159. package/es/components/chart-other-circular-graph/index.vue.d.ts +6 -6
  160. package/es/components/chart-other-circular-graph/index.vue.mjs +260 -259
  161. package/es/components/chart-other-force/index.d.ts +6 -6
  162. package/es/components/chart-other-force/index.vue.d.ts +6 -6
  163. package/es/components/chart-other-force/index.vue.mjs +260 -259
  164. package/es/components/chart-other-force2/index.d.ts +6 -6
  165. package/es/components/chart-other-force2/index.vue.d.ts +6 -6
  166. package/es/components/chart-other-force2/index.vue.mjs +260 -259
  167. package/es/components/chart-other-funnel/index.d.ts +6 -6
  168. package/es/components/chart-other-funnel/index.vue.d.ts +6 -6
  169. package/es/components/chart-other-funnel/index.vue.mjs +260 -259
  170. package/es/components/chart-other-funnel-contrast/index.d.ts +6 -6
  171. package/es/components/chart-other-funnel-contrast/index.vue.d.ts +6 -6
  172. package/es/components/chart-other-funnel-contrast/index.vue.mjs +260 -259
  173. package/es/components/chart-other-funnel-split/index.d.ts +6 -6
  174. package/es/components/chart-other-funnel-split/index.vue.d.ts +6 -6
  175. package/es/components/chart-other-funnel-split/index.vue.mjs +260 -259
  176. package/es/components/chart-other-funnel2/index.d.ts +6 -6
  177. package/es/components/chart-other-funnel2/index.vue.d.ts +6 -6
  178. package/es/components/chart-other-funnel2/index.vue.mjs +260 -259
  179. package/es/components/chart-other-gauge/index.d.ts +6 -6
  180. package/es/components/chart-other-gauge/index.vue.d.ts +6 -6
  181. package/es/components/chart-other-gauge/index.vue.mjs +260 -259
  182. package/es/components/chart-other-gauge-grade/index.d.ts +6 -6
  183. package/es/components/chart-other-gauge-grade/index.vue.d.ts +6 -6
  184. package/es/components/chart-other-gauge-grade/index.vue.mjs +260 -259
  185. package/es/components/chart-other-gauge-stage/index.d.ts +6 -6
  186. package/es/components/chart-other-gauge-stage/index.vue.d.ts +6 -6
  187. package/es/components/chart-other-gauge-stage/index.vue.mjs +260 -259
  188. package/es/components/chart-other-graph-basic/index.d.ts +6 -6
  189. package/es/components/chart-other-graph-basic/index.vue.d.ts +6 -6
  190. package/es/components/chart-other-graph-basic/index.vue.mjs +260 -259
  191. package/es/components/chart-other-graph-basic2/index.d.ts +6 -6
  192. package/es/components/chart-other-graph-basic2/index.vue.d.ts +6 -6
  193. package/es/components/chart-other-graph-basic2/index.vue.mjs +260 -259
  194. package/es/components/chart-other-graph-calendar/index.d.ts +6 -6
  195. package/es/components/chart-other-graph-calendar/index.vue.d.ts +6 -6
  196. package/es/components/chart-other-graph-calendar/index.vue.mjs +260 -259
  197. package/es/components/chart-other-grid-percentage/index.d.ts +6 -6
  198. package/es/components/chart-other-grid-percentage/index.vue.d.ts +6 -6
  199. package/es/components/chart-other-grid-percentage/index.vue.mjs +266 -265
  200. package/es/components/chart-other-heatmap/index.d.ts +6 -6
  201. package/es/components/chart-other-heatmap/index.vue.d.ts +6 -6
  202. package/es/components/chart-other-heatmap/index.vue.mjs +260 -259
  203. package/es/components/chart-other-label-gauge/index.d.ts +6 -6
  204. package/es/components/chart-other-label-gauge/index.vue.d.ts +6 -6
  205. package/es/components/chart-other-label-gauge/index.vue.mjs +262 -261
  206. package/es/components/chart-other-liquidfill/index.d.ts +6 -6
  207. package/es/components/chart-other-liquidfill/index.vue.d.ts +6 -6
  208. package/es/components/chart-other-liquidfill/index.vue.mjs +259 -258
  209. package/es/components/chart-other-parallel-basic/index.d.ts +6 -6
  210. package/es/components/chart-other-parallel-basic/index.vue.d.ts +6 -6
  211. package/es/components/chart-other-parallel-basic/index.vue.mjs +260 -259
  212. package/es/components/chart-other-parallel-mul/index.d.ts +6 -6
  213. package/es/components/chart-other-parallel-mul/index.vue.d.ts +6 -6
  214. package/es/components/chart-other-parallel-mul/index.vue.mjs +260 -259
  215. package/es/components/chart-other-radar/index.d.ts +6 -6
  216. package/es/components/chart-other-radar/index.vue.d.ts +6 -6
  217. package/es/components/chart-other-radar/index.vue.mjs +281 -280
  218. package/es/components/chart-other-radar-stack/index.d.ts +6 -6
  219. package/es/components/chart-other-radar-stack/index.vue.d.ts +6 -6
  220. package/es/components/chart-other-radar-stack/index.vue.mjs +261 -260
  221. package/es/components/chart-other-sunburst-basic/index.d.ts +6 -6
  222. package/es/components/chart-other-sunburst-basic/index.vue.d.ts +6 -6
  223. package/es/components/chart-other-sunburst-basic/index.vue.mjs +260 -259
  224. package/es/components/chart-other-sunburst-basic2/index.d.ts +6 -6
  225. package/es/components/chart-other-sunburst-basic2/index.vue.d.ts +6 -6
  226. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +260 -259
  227. package/es/components/chart-other-sunburst-basic3/index.d.ts +6 -6
  228. package/es/components/chart-other-sunburst-basic3/index.vue.d.ts +6 -6
  229. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +260 -259
  230. package/es/components/chart-other-sunburst-basic4/index.d.ts +6 -6
  231. package/es/components/chart-other-sunburst-basic4/index.vue.d.ts +6 -6
  232. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +260 -259
  233. package/es/components/chart-other-sunburst-book/index.d.ts +6 -6
  234. package/es/components/chart-other-sunburst-book/index.vue.d.ts +6 -6
  235. package/es/components/chart-other-sunburst-book/index.vue.mjs +260 -259
  236. package/es/components/chart-other-sunburst-flavors/index.d.ts +6 -6
  237. package/es/components/chart-other-sunburst-flavors/index.vue.d.ts +6 -6
  238. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +260 -259
  239. package/es/components/chart-other-sunburst-radius/index.d.ts +6 -6
  240. package/es/components/chart-other-sunburst-radius/index.vue.d.ts +6 -6
  241. package/es/components/chart-other-sunburst-radius/index.vue.mjs +260 -259
  242. package/es/components/chart-other-theme-river/index.d.ts +6 -6
  243. package/es/components/chart-other-theme-river/index.vue.d.ts +6 -6
  244. package/es/components/chart-other-theme-river/index.vue.mjs +265 -264
  245. package/es/components/chart-other-tree/index.d.ts +6 -6
  246. package/es/components/chart-other-tree/index.vue.d.ts +6 -6
  247. package/es/components/chart-other-tree/index.vue.mjs +259 -258
  248. package/es/components/chart-other-tree-line/index.d.ts +6 -6
  249. package/es/components/chart-other-tree-line/index.vue.d.ts +6 -6
  250. package/es/components/chart-other-tree-line/index.vue.mjs +259 -258
  251. package/es/components/chart-other-treemap/index.d.ts +6 -6
  252. package/es/components/chart-other-treemap/index.vue.d.ts +6 -6
  253. package/es/components/chart-other-treemap/index.vue.mjs +259 -258
  254. package/es/components/chart-other-treemap-basic/index.d.ts +6 -6
  255. package/es/components/chart-other-treemap-basic/index.vue.d.ts +6 -6
  256. package/es/components/chart-other-treemap-basic/index.vue.mjs +259 -258
  257. package/es/components/chart-other-word-cloud/index.d.ts +6 -6
  258. package/es/components/chart-other-word-cloud/index.vue.d.ts +6 -6
  259. package/es/components/chart-other-word-cloud/index.vue.mjs +259 -258
  260. package/es/components/commons/custom-component-render/hooks/useCustomComponentRenderWatch.d.ts +5 -0
  261. package/es/components/commons/custom-component-render/hooks/useCustomComponentRenderWatch.mjs +15 -0
  262. package/es/components/commons/custom-component-render/index.d.ts +76 -0
  263. package/es/components/commons/custom-component-render/index.mjs +7 -0
  264. package/es/components/commons/custom-component-render/index.vue.d.ts +76 -0
  265. package/es/components/commons/custom-component-render/index.vue.mjs +7 -0
  266. package/es/components/commons/custom-component-render/index.vue2.mjs +280 -0
  267. package/es/components/commons/custom-component-render/types.d.ts +6 -0
  268. package/es/components/commons/index.d.ts +1 -0
  269. package/es/components/commons-echarts/compileAndRunEcharts.mjs +279 -278
  270. package/es/components/commons-gaussian-splatting-view/index.vue.mjs +7 -7
  271. package/es/components/commons-loop-iterator/index.d.ts +9 -9
  272. package/es/components/commons-loop-iterator/index.vue.d.ts +9 -9
  273. package/es/components/commons-loop-iterator/index.vue.mjs +7 -7
  274. package/es/components/commons-loop-iterator/index.vue2.mjs +315 -314
  275. package/es/components/commons-product-model/index.vue.mjs +7 -7
  276. package/es/components/commons-product-model/index.vue2.mjs +424 -423
  277. package/es/components/commons-qrcode/index.vue.d.ts +90 -90
  278. package/es/components/commons-qrcode/index.vue.mjs +7 -7
  279. package/es/components/commons-svg/index.d.ts +4 -4
  280. package/es/components/commons-svg/index.vue.d.ts +4 -4
  281. package/es/components/commons-three-loader/index.vue.mjs +7 -7
  282. package/es/components/commons-three-loader/index.vue2.mjs +410 -409
  283. package/es/components/commons-three-loader3/index.d.ts +6 -6
  284. package/es/components/commons-three-loader3/index.vue.d.ts +6 -6
  285. package/es/components/commons-three-loader3/index.vue.mjs +7 -7
  286. package/es/components/commons-three-loader3/index.vue2.mjs +387 -386
  287. package/es/components/commons-weather/index.vue.d.ts +63 -7
  288. package/es/components/commons-weather/index.vue.mjs +7 -7
  289. package/es/components/commons-weather/index.vue2.mjs +297 -296
  290. package/es/components/commons-weather-dynamic/index.vue.d.ts +63 -7
  291. package/es/components/commons-weather-dynamic/index.vue.mjs +7 -7
  292. package/es/components/commons-weather-dynamic/index.vue2.mjs +305 -304
  293. package/es/components/graphical-circle/index.d.ts +3 -3
  294. package/es/components/graphical-circle/index.vue.d.ts +3 -3
  295. package/es/components/graphical-circle/index.vue.mjs +7 -7
  296. package/es/components/graphical-diamond/index.d.ts +3 -3
  297. package/es/components/graphical-diamond/index.vue.d.ts +3 -3
  298. package/es/components/graphical-diamond/index.vue.mjs +7 -7
  299. package/es/components/graphical-hexagon/index.d.ts +3 -3
  300. package/es/components/graphical-hexagon/index.vue.d.ts +3 -3
  301. package/es/components/graphical-hexagon/index.vue.mjs +7 -7
  302. package/es/components/graphical-isosceles-triangle/index.d.ts +3 -3
  303. package/es/components/graphical-isosceles-triangle/index.vue.d.ts +3 -3
  304. package/es/components/graphical-isosceles-triangle/index.vue.mjs +7 -7
  305. package/es/components/graphical-pentagon/index.d.ts +3 -3
  306. package/es/components/graphical-pentagon/index.vue.d.ts +3 -3
  307. package/es/components/graphical-pentagon/index.vue.mjs +7 -7
  308. package/es/components/graphical-rect/index.d.ts +3 -3
  309. package/es/components/graphical-rect/index.vue.d.ts +3 -3
  310. package/es/components/graphical-rect/index.vue.mjs +7 -7
  311. package/es/components/graphical-right-triangle/index.d.ts +3 -3
  312. package/es/components/graphical-right-triangle/index.vue.d.ts +3 -3
  313. package/es/components/graphical-right-triangle/index.vue.mjs +7 -7
  314. package/es/components/index.d.ts +113 -112
  315. package/es/components/index.mjs +364 -362
  316. package/es/components/interaction/button/index.d.ts +6 -6
  317. package/es/components/interaction/button/index.vue.d.ts +6 -6
  318. package/es/components/interaction/button/index.vue.mjs +7 -7
  319. package/es/components/interaction/button/index.vue2.mjs +280 -279
  320. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.d.ts +15 -40
  321. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +7 -7
  322. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +409 -398
  323. package/es/components/interaction/date-picker/components/common-date-picker/types.d.ts +4 -0
  324. package/es/components/interaction/date-picker/src/date-picker/index.d.ts +186 -211
  325. package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +186 -211
  326. package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +186 -211
  327. package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +186 -211
  328. package/es/components/interaction/tabs/index.d.ts +74 -0
  329. package/es/components/interaction/tabs/index.vue.d.ts +75 -0
  330. package/es/components/interaction/tabs/index.vue.mjs +272 -271
  331. package/es/components/interaction/tabs-icon/index.d.ts +74 -0
  332. package/es/components/interaction/tabs-icon/index.vue.d.ts +75 -0
  333. package/es/components/interaction/tabs-icon/index.vue.mjs +277 -276
  334. package/es/components/interaction-button/index.d.ts +6 -6
  335. package/es/components/interaction-button/index.vue.d.ts +6 -6
  336. package/es/components/interaction-button/index.vue.mjs +7 -7
  337. package/es/components/interaction-button-image/index.d.ts +8 -8
  338. package/es/components/interaction-button-image/index.vue.d.ts +8 -8
  339. package/es/components/interaction-button-image/index.vue.mjs +7 -7
  340. package/es/components/interaction-button-refresh/index.d.ts +8 -8
  341. package/es/components/interaction-button-refresh/index.vue.d.ts +8 -8
  342. package/es/components/interaction-button-refresh/index.vue.mjs +7 -7
  343. package/es/components/interaction-data-picker/index.d.ts +6 -6
  344. package/es/components/interaction-data-picker/index.vue.d.ts +6 -6
  345. package/es/components/interaction-data-picker/index.vue.mjs +7 -7
  346. package/es/components/interaction-data-picker/index.vue2.mjs +100 -100
  347. package/es/components/interaction-input/index.d.ts +11 -11
  348. package/es/components/interaction-input/index.vue.d.ts +11 -11
  349. package/es/components/interaction-input/index.vue.mjs +7 -7
  350. package/es/components/interaction-input/index.vue2.mjs +286 -285
  351. package/es/components/interaction-radio/index.d.ts +4 -4
  352. package/es/components/interaction-radio/index.vue.d.ts +4 -4
  353. package/es/components/interaction-select/index.d.ts +20 -12
  354. package/es/components/interaction-select/index.vue.d.ts +20 -12
  355. package/es/components/interaction-select/index.vue.mjs +7 -7
  356. package/es/components/interaction-select/index.vue2.mjs +422 -421
  357. package/es/components/interaction-slider/index.d.ts +6 -6
  358. package/es/components/interaction-slider/index.vue.d.ts +6 -6
  359. package/es/components/interaction-slider/index.vue.mjs +7 -7
  360. package/es/components/interaction-slider/index.vue2.mjs +283 -282
  361. package/es/components/interaction-switch/index.d.ts +6 -6
  362. package/es/components/interaction-switch/index.vue.d.ts +6 -6
  363. package/es/components/interaction-switch/index.vue.mjs +7 -7
  364. package/es/components/interaction-switch/index.vue2.mjs +244 -243
  365. package/es/components/interaction-tabs/index.d.ts +8 -8
  366. package/es/components/interaction-tabs/index.vue.d.ts +8 -8
  367. package/es/components/interaction-tabs/index.vue.mjs +7 -7
  368. package/es/components/interaction-tabs/index.vue2.mjs +255 -254
  369. package/es/components/interaction-tabs2/index.d.ts +8 -8
  370. package/es/components/interaction-tabs2/index.vue.d.ts +8 -8
  371. package/es/components/interaction-tabs2/index.vue.mjs +7 -7
  372. package/es/components/interaction-tabs2/index.vue2.mjs +255 -254
  373. package/es/components/map-earth-basic/index.d.ts +18 -18
  374. package/es/components/map-earth-basic/index.vue.d.ts +18 -18
  375. package/es/components/map-earth-basic/index.vue.mjs +332 -331
  376. package/es/components/map-earth-cool-tech/index.d.ts +18 -18
  377. package/es/components/map-earth-cool-tech/index.vue.d.ts +18 -18
  378. package/es/components/map-earth-cool-tech/index.vue.mjs +332 -331
  379. package/es/components/map-earth-fly-line/index.d.ts +18 -18
  380. package/es/components/map-earth-fly-line/index.vue.d.ts +18 -18
  381. package/es/components/map-earth-fly-line/index.vue.mjs +332 -331
  382. package/es/components/map-earth-hacker/index.d.ts +18 -18
  383. package/es/components/map-earth-hacker/index.vue.d.ts +18 -18
  384. package/es/components/map-earth-hacker/index.vue.mjs +332 -331
  385. package/es/components/map-earth-particle/index.d.ts +18 -18
  386. package/es/components/map-earth-particle/index.vue.d.ts +18 -18
  387. package/es/components/map-earth-particle/index.vue.mjs +332 -331
  388. package/es/components/media-audio/index.d.ts +8 -8
  389. package/es/components/media-audio/index.vue.d.ts +8 -8
  390. package/es/components/media-audio/index.vue.mjs +7 -7
  391. package/es/components/media-audio/index.vue2.mjs +277 -276
  392. package/es/components/media-audio-dynamic/index.d.ts +12 -12
  393. package/es/components/media-audio-dynamic/index.vue.d.ts +12 -12
  394. package/es/components/media-audio-dynamic/index.vue.mjs +7 -7
  395. package/es/components/media-audio-dynamic/index.vue2.mjs +296 -295
  396. package/es/components/media-carousel/index.d.ts +5 -5
  397. package/es/components/media-carousel/index.vue.d.ts +5 -5
  398. package/es/components/media-carousel/index.vue.mjs +7 -7
  399. package/es/components/media-carousel-slides/index.d.ts +5 -5
  400. package/es/components/media-carousel-slides/index.vue.d.ts +5 -5
  401. package/es/components/media-carousel-slides/index.vue.mjs +7 -7
  402. package/es/components/media-flv/index.d.ts +8 -7
  403. package/es/components/media-flv/index.vue.d.ts +8 -7
  404. package/es/components/media-flv/index.vue.mjs +284 -272
  405. package/es/components/media-iframe/index.d.ts +6 -6
  406. package/es/components/media-iframe/index.vue.d.ts +6 -6
  407. package/es/components/media-iframe/index.vue.mjs +7 -7
  408. package/es/components/media-iframe/index.vue2.mjs +217 -216
  409. package/es/components/media-iframe-carousel/index.d.ts +4 -4
  410. package/es/components/media-iframe-carousel/index.vue.d.ts +4 -4
  411. package/es/components/media-iframe-carousel/index.vue.mjs +7 -7
  412. package/es/components/media-iframe-dynamic/index.d.ts +9 -9
  413. package/es/components/media-iframe-dynamic/index.vue.d.ts +9 -9
  414. package/es/components/media-iframe-dynamic/index.vue.mjs +7 -7
  415. package/es/components/media-iframe-dynamic/index.vue2.mjs +261 -260
  416. package/es/components/media-image/index.d.ts +4 -4
  417. package/es/components/media-image/index.vue.d.ts +4 -4
  418. package/es/components/media-image/index.vue.mjs +7 -7
  419. package/es/components/media-image-dynamic/index.d.ts +6 -6
  420. package/es/components/media-image-dynamic/index.vue.d.ts +6 -6
  421. package/es/components/media-image-dynamic/index.vue.mjs +7 -7
  422. package/es/components/media-image-dynamic/index.vue2.mjs +236 -235
  423. package/es/components/media-m3u8/index.d.ts +7 -7
  424. package/es/components/media-m3u8/index.vue.d.ts +7 -7
  425. package/es/components/media-m3u8/index.vue.mjs +302 -270
  426. package/es/components/media-m3u8-dynamic/index.d.ts +9 -9
  427. package/es/components/media-m3u8-dynamic/index.vue.d.ts +9 -9
  428. package/es/components/media-m3u8-dynamic/index.vue.mjs +319 -287
  429. package/es/components/media-video/index.d.ts +7 -7
  430. package/es/components/media-video/index.vue.d.ts +7 -7
  431. package/es/components/media-video/index.vue.mjs +7 -7
  432. package/es/components/media-video/index.vue2.mjs +258 -257
  433. package/es/components/media-video-dynamic/index.d.ts +10 -10
  434. package/es/components/media-video-dynamic/index.vue.d.ts +10 -10
  435. package/es/components/media-video-dynamic/index.vue.mjs +7 -7
  436. package/es/components/media-video-dynamic/index.vue2.mjs +280 -279
  437. package/es/components/media-wavesurfer/index.d.ts +11 -11
  438. package/es/components/media-wavesurfer/index.vue.d.ts +11 -11
  439. package/es/components/media-wavesurfer/index.vue.mjs +7 -7
  440. package/es/components/scene-amap2d/index.d.ts +10 -10
  441. package/es/components/scene-amap2d/index.vue.d.ts +10 -10
  442. package/es/components/scene-amap2d/index.vue.mjs +7 -7
  443. package/es/components/scene-amap2d/index.vue2.mjs +627 -626
  444. package/es/components/scene-amap3d/index.d.ts +10 -10
  445. package/es/components/scene-amap3d/index.vue.d.ts +10 -10
  446. package/es/components/scene-amap3d/index.vue.mjs +7 -7
  447. package/es/components/scene-amap3d/index.vue2.mjs +752 -751
  448. package/es/components/scene-default/index.d.ts +4 -4
  449. package/es/components/scene-default/index.vue.d.ts +4 -4
  450. package/es/components/scene-default/index.vue.mjs +7 -7
  451. package/es/components/scene-default/index.vue2.mjs +221 -220
  452. package/es/components/scene-map3d/index.d.ts +12 -12
  453. package/es/components/scene-map3d/index.vue.d.ts +12 -12
  454. package/es/components/scene-map3d/index.vue.mjs +8 -8
  455. package/es/components/scene-map3d/index.vue2.mjs +480 -476
  456. package/es/components/scene-ue-iframe/index.d.ts +5 -5
  457. package/es/components/scene-ue-iframe/index.vue.d.ts +5 -5
  458. package/es/components/scene-ue-iframe/index.vue.mjs +7 -7
  459. package/es/components/scene-ue-iframe/index.vue2.mjs +242 -241
  460. package/es/components/scene-ue-shj/index.d.ts +5 -5
  461. package/es/components/scene-ue-shj/index.vue.d.ts +5 -5
  462. package/es/components/scene-ue-shj/index.vue.mjs +7 -7
  463. package/es/components/scene-ue-shj/index.vue2.mjs +219 -218
  464. package/es/components/scene-unity-iframe/index.d.ts +7 -7
  465. package/es/components/scene-unity-iframe/index.vue.d.ts +7 -7
  466. package/es/components/scene-unity-iframe/index.vue.mjs +7 -7
  467. package/es/components/scene-unity-iframe/index.vue2.mjs +224 -223
  468. package/es/components/scene-unity-webgl/index.d.ts +7 -7
  469. package/es/components/scene-unity-webgl/index.vue.d.ts +7 -7
  470. package/es/components/scene-unity-webgl/index.vue.mjs +7 -7
  471. package/es/components/scene-unity-webgl/index.vue2.mjs +226 -225
  472. package/es/components/scene-vr/index.d.ts +101 -96
  473. package/es/components/scene-vr/index.vue.d.ts +102 -96
  474. package/es/components/scene-vr/index.vue.mjs +7 -7
  475. package/es/components/scene-vr/index.vue2.mjs +543 -542
  476. package/es/components/text/list/index.d.ts +12 -12
  477. package/es/components/text/list/index.vue.d.ts +12 -12
  478. package/es/components/text/list/index.vue.mjs +295 -294
  479. package/es/components/text-carousel/index.d.ts +4 -4
  480. package/es/components/text-carousel/index.vue.d.ts +4 -4
  481. package/es/components/text-carousel/index.vue.mjs +7 -7
  482. package/es/components/text-count-down/index.vue.d.ts +7 -7
  483. package/es/components/text-count-down/index.vue.mjs +7 -7
  484. package/es/components/text-count-down/index.vue2.mjs +284 -283
  485. package/es/components/text-over-number/index.vue.d.ts +15 -51
  486. package/es/components/text-over-number/index.vue.mjs +7 -7
  487. package/es/components/text-over-number/index.vue2.mjs +286 -285
  488. package/es/components/text-real-time/index.vue.d.ts +7 -7
  489. package/es/components/text-real-time/index.vue.mjs +7 -7
  490. package/es/components/text-real-time/index.vue2.mjs +241 -240
  491. package/es/components/text-row-scroll/index.d.ts +9 -9
  492. package/es/components/text-row-scroll/index.vue.d.ts +9 -9
  493. package/es/components/text-row-scroll/index.vue.mjs +7 -7
  494. package/es/components/text-row-scroll/index.vue2.mjs +352 -351
  495. package/es/components/text-table-basic/index.d.ts +7 -7
  496. package/es/components/text-table-basic/index.vue.d.ts +7 -7
  497. package/es/components/text-table-basic/index.vue.mjs +7 -7
  498. package/es/components/text-table-basic/index.vue2.mjs +366 -365
  499. package/es/components/text-table-scroll/index.d.ts +9 -9
  500. package/es/components/text-table-scroll/index.vue.d.ts +9 -9
  501. package/es/components/text-table-scroll/index.vue.mjs +7 -7
  502. package/es/components/text-table-scroll/index.vue2.mjs +356 -355
  503. package/es/components/text-text-basic/index.d.ts +4 -4
  504. package/es/components/text-text-basic/index.vue.d.ts +4 -4
  505. package/es/components/text-text-basic/index.vue.mjs +7 -7
  506. package/es/components/text-text-dynamic/index.d.ts +6 -6
  507. package/es/components/text-text-dynamic/index.vue.d.ts +6 -6
  508. package/es/components/text-text-dynamic/index.vue.mjs +7 -7
  509. package/es/components/text-text-dynamic/index.vue2.mjs +242 -241
  510. package/es/components/text-title/index.d.ts +4 -4
  511. package/es/components/text-title/index.vue.d.ts +4 -4
  512. package/es/components/text-title/index.vue.mjs +7 -7
  513. package/es/index.mjs +388 -386
  514. package/es/plugins/datasource/index.mjs +216 -217
  515. package/es/widgets.css +1 -1
  516. package/package.json +2 -2
  517. package/umd/index.js +33660 -0
  518. package/umd/widgets.css +1 -0
@@ -1,423 +1,424 @@
1
- var _ = Object.defineProperty;
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
- import "@babylonjs/loaders/glTF";
6
- import { cloneDeep as u, isEqual as f } from "lodash";
7
- import { useResizeObserver as J } from "@vueuse/core";
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 "../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({
195
- ...ie,
196
- props: {
197
- basicOption: {},
198
- basicEvents: {},
199
- useEvents: {}
200
- },
201
- emits: [
202
- "on-load-success",
203
- "on-play-animation"
204
- ],
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);
208
- class I {
209
- // eslint-disable-next-line no-useless-constructor
210
- constructor(e) {
211
- // optional, but needed due to interface definitions
212
- l(this, "loadingUIBackgroundColor");
213
- this.loadingUIText = e;
214
- }
215
- displayLoadingUI() {
216
- d.value && (E.value = !0);
217
- }
218
- hideLoadingUI() {
219
- d.value && (E.value = !1);
220
- }
221
- }
222
- class M {
223
- constructor(e, t, s) {
224
- l(this, "scene");
225
- l(this, "engine");
226
- // 默认环境
227
- l(this, "environmentHelper");
228
- l(this, "shadowsLight");
229
- // 全局阴影
230
- l(this, "shadowGenerator");
231
- // 默认后期
232
- l(this, "defaultPipeline");
233
- this.canvas = e, this.option = t, this.events = s;
234
- try {
235
- this.engine = new j(this.canvas, !0, {}, !1), this.engine.loadingScreen = new I(""), window.addEventListener("resize", () => {
236
- this.engine.resize();
237
- }), this.scene = this.createScene();
238
- } catch {
239
- }
240
- }
241
- createScene() {
242
- return this.engine.displayLoadingUI(), this.scene = new Q(this.engine), this.option.scene.colorShow ? this.scene.clearColor = w.FromHexString(this.option.scene.color || "#000000") : this.scene.clearColor = new w(0, 0, 0, 0), this.scene.fogEnabled = this.option.scene.fogEnabled, this.scene.fogMode = this.option.scene.fogMode || 1, this.scene.fogColor = b.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.scene.createDefaultCamera(!0, !1, !0), this.updateMeshs(this.scene), this.scene;
243
- }
244
- updateScenePipeline(e) {
245
- this.scene.activeCamera && e && (e.enabled ? (this.defaultPipeline || (this.defaultPipeline = new X(
246
- "defaultPipeline",
247
- !0,
248
- this.scene,
249
- [this.scene.activeCamera]
250
- )), 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 = A.Low : e.depthOfFieldBlurLevel < 2 ? this.defaultPipeline.depthOfFieldBlurLevel = A.Medium : e.depthOfFieldBlurLevel < 3 && (this.defaultPipeline.depthOfFieldBlurLevel = A.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));
251
- }
252
- updateScene(e) {
253
- e.colorShow ? this.scene.clearColor = w.FromHexString(e.color || "#000000") : this.scene.clearColor = new w(0, 0, 0, 0), this.scene.fogEnabled = e.fogEnabled, this.scene.fogMode = e.fogMode || 1, this.scene.fogColor = b.FromHexString(e.fogColor || "#ffffff"), this.scene.fogEnd = e.fogEnd || 60, this.scene.fogStart = e.fogStart || 1, this.scene.fogDensity = e.fogDensity || 0.1;
254
- }
255
- updateShadowsLight(e) {
256
- if (e.show) {
257
- if (this.shadowsLight) {
258
- this.shadowsLight.direction = new v(...e.direction), this.shadowsLight.position = new v(...e.position), this.shadowsLight.intensity = e.intensity, this.shadowsLight.diffuse = b.FromHexString(e.diffuse || "#ffffff"), this.shadowGenerator.mapSize = e.mapSize;
259
- return;
260
- }
261
- this.shadowsLight = new Z("shadowsLight", new v(...e.direction), this.scene), this.shadowsLight.intensity = e.intensity || 0.6, this.shadowsLight.diffuse = b.FromHexString(e.diffuse || "#ffffff"), this.shadowsLight.position = new v(...e.position), this.shadowGenerator = new $(e.mapSize, this.shadowsLight);
262
- } else
263
- this.shadowsLight && (this.shadowsLight.dispose(), this.shadowsLight = null);
264
- }
265
- updateCamera(e) {
266
- const t = this.scene.activeCamera;
267
- t && (e.radius && (t.radius = e.radius), t.beta = G.ToRadians(e.beta), t.alpha = G.ToRadians(e.alpha), t.useAutoRotationBehavior = e.autoRotation, t.wheelDeltaPercentage = e.wheelDeltaPercentage || 0.01, t.panningSensibility = 1 / (e.panningSensibility || 0.01), t.lowerRadiusLimit = e.lowerRadiusLimit, t.upperRadiusLimit = e.upperRadiusLimit, t.lowerBetaLimit = 0, t.upperBetaLimit = Math.PI / 2.1);
268
- }
269
- updateDefaultEnvironment(e) {
270
- this.environmentHelper && this.environmentHelper.dispose(), this.environmentHelper = this.scene.createDefaultEnvironment({
271
- // 是否创建地面
272
- createGround: e.createGround,
273
- // 地面颜色
274
- groundColor: b.FromHexString(e.groundColor || "#ffffff"),
275
- // 地面大小
276
- groundSize: e.groundSize || 15,
277
- // 地面透明度
278
- groundOpacity: e.groundOpacity || 1,
279
- // 使地面能够接收阴影。
280
- enableGroundShadow: e.enableGroundShadow,
281
- // 接收阴影等级
282
- groundShadowLevel: e.groundShadowLevel || 0.5,
283
- // 地面反射
284
- enableGroundMirror: e.enableGroundMirror === void 0 ? !0 : e.enableGroundMirror,
285
- // 地面反射大小比率
286
- groundMirrorSizeRatio: e.groundMirrorSizeRatio || 0.3,
287
- // 地面反射模糊大小
288
- groundMirrorBlurKernel: e.groundMirrorBlurKernel || 64,
289
- // 指定地面反射镜的可见性。
290
- groundMirrorAmount: e.groundMirrorAmount || 1,
291
- // 指定地面镜反射率权重。这使用背景材质的标准重量来设置菲涅耳效果的镜子。
292
- groundMirrorFresnelWeight: e.groundMirrorFresnelWeight || 1,
293
- // 指定应用于地面垂直位置的偏移
294
- groundYBias: e.groundYBias || 0,
295
- // 创建天空盒
296
- createSkybox: e.createSkybox,
297
- // 天空盒大小
298
- skyboxSize: e.skyboxSize || 20,
299
- ...e.skyboxTexture ? { skyboxTexture: e.skyboxTexture } : {},
300
- // 天空盒颜色
301
- // 自动计算元素的大小以最适合场景。
302
- sizeAuto: !0,
303
- // 如果autoSize不为true,rootMesh的默认位置。
304
- // rootPosition: Vector3,
305
- // 环境贴图
306
- ...e.environmentTexture ? { environmentTexture: e.environmentTexture } : {},
307
- // 相机曝光
308
- cameraExposure: e.cameraExposure || 0.6,
309
- // 相机对比度
310
- cameraContrast: e.cameraContrast || 1.6
311
- }), this.environmentHelper.ground && (this.environmentHelper.ground.position.y += 0.01);
312
- }
313
- updateMeshs(e) {
314
- e.meshes.forEach((t) => setTimeout(() => t.dispose())), O.ImportMeshAsync("", this.option.meshs.url, "", e, (t) => {
315
- y.value = (t.loaded / t.total * 100).toFixed(2);
316
- }).then((t) => {
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
324
- }))), this.option.defaultAnimation && this.option.defaultAnimation.name ? this.playAnimation(this.option.defaultAnimation.name, {
325
- loop: this.option.defaultAnimation.loop,
326
- speedRatio: this.option.defaultAnimation.speedRatio
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) {
328
- this.shadowGenerator.addShadowCaster(e.meshes[0], !0);
329
- for (let n = 0; n < s.length; n++)
330
- s[n].receiveShadows = !1;
331
- }
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");
334
- }, 100);
335
- });
336
- }
337
- run() {
338
- return this.engine.runRenderLoop(() => {
339
- this.scene.render();
340
- }), this;
341
- }
342
- dispose() {
343
- this.scene && this.engine && (this.scene.dispose(), this.engine.dispose());
344
- }
345
- playAnimation(e, t = {
346
- loop: !1,
347
- speedRatio: 1
348
- }) {
349
- if (this.scene) {
350
- this.scene.stopAllAnimations();
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));
353
- }
354
- }
355
- }
356
- const g = S();
357
- return N(() => {
358
- i.meshs && (g.value = new M(d.value, i, o).run(), J(d.value, (R) => {
359
- g.value && g.value.engine.resize();
360
- }));
361
- }), Y(() => {
362
- g.value && g.value.dispose();
363
- }), {
364
- canvasRef: d,
365
- babylon: g,
366
- Babylon: M,
367
- babylonLoadingStatus: E,
368
- babylonLoadingTitle: y
369
- };
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
376
- };
377
- r.value.playAnimation(d, y);
378
- }
379
- }), h(() => u(a.basicOption.environment), (i, o) => {
380
- !f(i, o) && r.value && r.value.updateDefaultEnvironment(i);
381
- }, {
382
- deep: !0
383
- }), h(() => u(a.basicOption.shadow), (i, o) => {
384
- !f(i, o) && r.value && r.value.updateShadowsLight(i);
385
- }, {
386
- deep: !0
387
- }), h(() => u(a.basicOption.camera), (i, o) => {
388
- !f(i, o) && r.value && r.value.updateCamera(i);
389
- }, {
390
- deep: !0
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());
393
- }, {
394
- deep: !0
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());
397
- }, {
398
- deep: !0
399
- }), h(() => u(a.basicOption.scene), (i, o) => {
400
- !f(i, o) && r.value && r.value.updateScene(i);
401
- }, {
402
- deep: !0
403
- }), h(() => u(a.basicOption.pipelineOption), (i, o) => {
404
- !f(i, o) && r.value && r.value.updateScenePipeline(i);
405
- }, {
406
- deep: !0
407
- }), (i, o) => (D(), B("div", ee, [
408
- V("canvas", {
409
- ref_key: "canvasRef",
410
- ref: L,
411
- class: W(["widget", { show: !P(F) }])
412
- }, null, 2),
413
- P(F) ? (D(), B("div", {
414
- key: 0,
415
- ref: "babylonLoadingRef",
416
- class: "babylon-loading"
417
- }, " 正在加载模型...(" + q(P(k)) + "%) ", 513)) : K("", !0)
418
- ]));
419
- }
420
- });
421
- export {
422
- Do as default
423
- };
1
+ var _ = Object.defineProperty;
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
+ import "@babylonjs/loaders/glTF";
6
+ import { cloneDeep as u, isEqual as f } from "lodash";
7
+ import { useResizeObserver as J } from "@vueuse/core";
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 "../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
+ 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 z } from "../../plugins/event/index.mjs";
195
+ const ee = { class: "zerov-widget" }, ie = T({ name: "zv-commons-product-model" }), Go = /* @__PURE__ */ T({
196
+ ...ie,
197
+ props: {
198
+ basicOption: {},
199
+ basicEvents: {},
200
+ useEvents: {}
201
+ },
202
+ emits: [
203
+ "on-load-success",
204
+ "on-play-animation"
205
+ ],
206
+ setup(p, { expose: m, emit: c }) {
207
+ const x = c, a = p, H = (i, o) => {
208
+ const d = S(), y = S(), E = S(!0);
209
+ class I {
210
+ // eslint-disable-next-line no-useless-constructor
211
+ constructor(e) {
212
+ // optional, but needed due to interface definitions
213
+ l(this, "loadingUIBackgroundColor");
214
+ this.loadingUIText = e;
215
+ }
216
+ displayLoadingUI() {
217
+ d.value && (E.value = !0);
218
+ }
219
+ hideLoadingUI() {
220
+ d.value && (E.value = !1);
221
+ }
222
+ }
223
+ class M {
224
+ constructor(e, t, s) {
225
+ l(this, "scene");
226
+ l(this, "engine");
227
+ // 默认环境
228
+ l(this, "environmentHelper");
229
+ l(this, "shadowsLight");
230
+ // 全局阴影
231
+ l(this, "shadowGenerator");
232
+ // 默认后期
233
+ l(this, "defaultPipeline");
234
+ this.canvas = e, this.option = t, this.events = s;
235
+ try {
236
+ this.engine = new j(this.canvas, !0, {}, !1), this.engine.loadingScreen = new I(""), window.addEventListener("resize", () => {
237
+ this.engine.resize();
238
+ }), this.scene = this.createScene();
239
+ } catch {
240
+ }
241
+ }
242
+ createScene() {
243
+ return this.engine.displayLoadingUI(), this.scene = new Q(this.engine), this.option.scene.colorShow ? this.scene.clearColor = w.FromHexString(this.option.scene.color || "#000000") : this.scene.clearColor = new w(0, 0, 0, 0), this.scene.fogEnabled = this.option.scene.fogEnabled, this.scene.fogMode = this.option.scene.fogMode || 1, this.scene.fogColor = b.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.scene.createDefaultCamera(!0, !1, !0), this.updateMeshs(this.scene), this.scene;
244
+ }
245
+ updateScenePipeline(e) {
246
+ this.scene.activeCamera && e && (e.enabled ? (this.defaultPipeline || (this.defaultPipeline = new X(
247
+ "defaultPipeline",
248
+ !0,
249
+ this.scene,
250
+ [this.scene.activeCamera]
251
+ )), 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 = A.Low : e.depthOfFieldBlurLevel < 2 ? this.defaultPipeline.depthOfFieldBlurLevel = A.Medium : e.depthOfFieldBlurLevel < 3 && (this.defaultPipeline.depthOfFieldBlurLevel = A.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));
252
+ }
253
+ updateScene(e) {
254
+ e.colorShow ? this.scene.clearColor = w.FromHexString(e.color || "#000000") : this.scene.clearColor = new w(0, 0, 0, 0), this.scene.fogEnabled = e.fogEnabled, this.scene.fogMode = e.fogMode || 1, this.scene.fogColor = b.FromHexString(e.fogColor || "#ffffff"), this.scene.fogEnd = e.fogEnd || 60, this.scene.fogStart = e.fogStart || 1, this.scene.fogDensity = e.fogDensity || 0.1;
255
+ }
256
+ updateShadowsLight(e) {
257
+ if (e.show) {
258
+ if (this.shadowsLight) {
259
+ this.shadowsLight.direction = new v(...e.direction), this.shadowsLight.position = new v(...e.position), this.shadowsLight.intensity = e.intensity, this.shadowsLight.diffuse = b.FromHexString(e.diffuse || "#ffffff"), this.shadowGenerator.mapSize = e.mapSize;
260
+ return;
261
+ }
262
+ this.shadowsLight = new Z("shadowsLight", new v(...e.direction), this.scene), this.shadowsLight.intensity = e.intensity || 0.6, this.shadowsLight.diffuse = b.FromHexString(e.diffuse || "#ffffff"), this.shadowsLight.position = new v(...e.position), this.shadowGenerator = new $(e.mapSize, this.shadowsLight);
263
+ } else
264
+ this.shadowsLight && (this.shadowsLight.dispose(), this.shadowsLight = null);
265
+ }
266
+ updateCamera(e) {
267
+ const t = this.scene.activeCamera;
268
+ t && (e.radius && (t.radius = e.radius), t.beta = G.ToRadians(e.beta), t.alpha = G.ToRadians(e.alpha), t.useAutoRotationBehavior = e.autoRotation, t.wheelDeltaPercentage = e.wheelDeltaPercentage || 0.01, t.panningSensibility = 1 / (e.panningSensibility || 0.01), t.lowerRadiusLimit = e.lowerRadiusLimit, t.upperRadiusLimit = e.upperRadiusLimit, t.lowerBetaLimit = 0, t.upperBetaLimit = Math.PI / 2.1);
269
+ }
270
+ updateDefaultEnvironment(e) {
271
+ this.environmentHelper && this.environmentHelper.dispose(), this.environmentHelper = this.scene.createDefaultEnvironment({
272
+ // 是否创建地面
273
+ createGround: e.createGround,
274
+ // 地面颜色
275
+ groundColor: b.FromHexString(e.groundColor || "#ffffff"),
276
+ // 地面大小
277
+ groundSize: e.groundSize || 15,
278
+ // 地面透明度
279
+ groundOpacity: e.groundOpacity || 1,
280
+ // 使地面能够接收阴影。
281
+ enableGroundShadow: e.enableGroundShadow,
282
+ // 接收阴影等级
283
+ groundShadowLevel: e.groundShadowLevel || 0.5,
284
+ // 地面反射
285
+ enableGroundMirror: e.enableGroundMirror === void 0 ? !0 : e.enableGroundMirror,
286
+ // 地面反射大小比率
287
+ groundMirrorSizeRatio: e.groundMirrorSizeRatio || 0.3,
288
+ // 地面反射模糊大小
289
+ groundMirrorBlurKernel: e.groundMirrorBlurKernel || 64,
290
+ // 指定地面反射镜的可见性。
291
+ groundMirrorAmount: e.groundMirrorAmount || 1,
292
+ // 指定地面镜反射率权重。这使用背景材质的标准重量来设置菲涅耳效果的镜子。
293
+ groundMirrorFresnelWeight: e.groundMirrorFresnelWeight || 1,
294
+ // 指定应用于地面垂直位置的偏移
295
+ groundYBias: e.groundYBias || 0,
296
+ // 创建天空盒
297
+ createSkybox: e.createSkybox,
298
+ // 天空盒大小
299
+ skyboxSize: e.skyboxSize || 20,
300
+ ...e.skyboxTexture ? { skyboxTexture: e.skyboxTexture } : {},
301
+ // 天空盒颜色
302
+ // 自动计算元素的大小以最适合场景。
303
+ sizeAuto: !0,
304
+ // 如果autoSize不为true,rootMesh的默认位置。
305
+ // rootPosition: Vector3,
306
+ // 环境贴图
307
+ ...e.environmentTexture ? { environmentTexture: e.environmentTexture } : {},
308
+ // 相机曝光
309
+ cameraExposure: e.cameraExposure || 0.6,
310
+ // 相机对比度
311
+ cameraContrast: e.cameraContrast || 1.6
312
+ }), this.environmentHelper.ground && (this.environmentHelper.ground.position.y += 0.01);
313
+ }
314
+ updateMeshs(e) {
315
+ e.meshes.forEach((t) => setTimeout(() => t.dispose())), O.ImportMeshAsync("", this.option.meshs.url, "", e, (t) => {
316
+ y.value = (t.loaded / t.total * 100).toFixed(2);
317
+ }).then((t) => {
318
+ const s = t.meshes;
319
+ if (this.option.animationGroups = e.animationGroups.map((n) => ({
320
+ uniqueId: n.uniqueId,
321
+ name: n.name
322
+ })), this.events && (this.events.function[0].args[0].select = e.animationGroups.map((n) => ({
323
+ name: n.name,
324
+ value: n.name
325
+ }))), this.option.defaultAnimation && this.option.defaultAnimation.name ? this.playAnimation(this.option.defaultAnimation.name, {
326
+ loop: this.option.defaultAnimation.loop,
327
+ speedRatio: this.option.defaultAnimation.speedRatio
328
+ }) : 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) {
329
+ this.shadowGenerator.addShadowCaster(e.meshes[0], !0);
330
+ for (let n = 0; n < s.length; n++)
331
+ s[n].receiveShadows = !1;
332
+ }
333
+ s[0].position = new v(...this.option.meshs.position), setTimeout(() => {
334
+ this.engine.hideLoadingUI(), x("on-load-success"), z.parseEvents(a.useEvents, "on-load-success");
335
+ }, 100);
336
+ });
337
+ }
338
+ run() {
339
+ return this.engine.runRenderLoop(() => {
340
+ this.scene.render();
341
+ }), this;
342
+ }
343
+ dispose() {
344
+ this.scene && this.engine && (this.scene.dispose(), this.engine.dispose());
345
+ }
346
+ playAnimation(e, t = {
347
+ loop: !1,
348
+ speedRatio: 1
349
+ }) {
350
+ if (this.scene) {
351
+ this.scene.stopAllAnimations();
352
+ const s = this.scene.getAnimationGroupByName(e);
353
+ s && (x("on-play-animation"), z.parseEvents(a.useEvents, "on-play-animation"), s.start(t.loop, t.speedRatio, s.from, s.to, !1));
354
+ }
355
+ }
356
+ }
357
+ const g = S();
358
+ return N(() => {
359
+ i.meshs && (g.value = new M(d.value, i, o).run(), J(d.value, (R) => {
360
+ g.value && g.value.engine.resize();
361
+ }));
362
+ }), Y(() => {
363
+ g.value && g.value.dispose();
364
+ }), {
365
+ canvasRef: d,
366
+ babylon: g,
367
+ Babylon: M,
368
+ babylonLoadingStatus: E,
369
+ babylonLoadingTitle: y
370
+ };
371
+ }, { canvasRef: L, babylon: r, Babylon: C, babylonLoadingStatus: F, babylonLoadingTitle: k } = H(a.basicOption, a.basicEvents);
372
+ return m({
373
+ playAnimation: (i, o) => {
374
+ const d = o[0].value, y = {
375
+ loop: o[1].keys[0].defaultValue,
376
+ speedRatio: o[1].keys[1].defaultValue
377
+ };
378
+ r.value.playAnimation(d, y);
379
+ }
380
+ }), h(() => u(a.basicOption.environment), (i, o) => {
381
+ !f(i, o) && r.value && r.value.updateDefaultEnvironment(i);
382
+ }, {
383
+ deep: !0
384
+ }), h(() => u(a.basicOption.shadow), (i, o) => {
385
+ !f(i, o) && r.value && r.value.updateShadowsLight(i);
386
+ }, {
387
+ deep: !0
388
+ }), h(() => u(a.basicOption.camera), (i, o) => {
389
+ !f(i, o) && r.value && r.value.updateCamera(i);
390
+ }, {
391
+ deep: !0
392
+ }), h(() => u(a.basicOption.meshs), (i, o) => {
393
+ !f(i, o) && r.value && (r.value.dispose(), r.value = new C(L.value, a.basicOption, a.basicEvents).run());
394
+ }, {
395
+ deep: !0
396
+ }), h(() => u(a.basicOption.defaultAnimation), (i, o) => {
397
+ !f(i, o) && r.value && (r.value.dispose(), r.value = new C(L.value, a.basicOption, a.basicEvents).run());
398
+ }, {
399
+ deep: !0
400
+ }), h(() => u(a.basicOption.scene), (i, o) => {
401
+ !f(i, o) && r.value && r.value.updateScene(i);
402
+ }, {
403
+ deep: !0
404
+ }), h(() => u(a.basicOption.pipelineOption), (i, o) => {
405
+ !f(i, o) && r.value && r.value.updateScenePipeline(i);
406
+ }, {
407
+ deep: !0
408
+ }), (i, o) => (D(), B("div", ee, [
409
+ V("canvas", {
410
+ ref_key: "canvasRef",
411
+ ref: L,
412
+ class: W(["widget", { show: !P(F) }])
413
+ }, null, 2),
414
+ P(F) ? (D(), B("div", {
415
+ key: 0,
416
+ ref: "babylonLoadingRef",
417
+ class: "babylon-loading"
418
+ }, " 正在加载模型...(" + q(P(k)) + "%) ", 513)) : K("", !0)
419
+ ]));
420
+ }
421
+ });
422
+ export {
423
+ Go as default
424
+ };