@shjjs/visual-ui 1.0.17 → 1.0.19

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 (482) hide show
  1. package/es/commons/core/useChart.mjs +59 -58
  2. package/es/commons/{core → plugins}/datasource/index.mjs +5 -5
  3. package/es/commons/plugins/datasource/utils/axios.d.ts +70 -0
  4. package/es/commons/plugins/datasource/utils/axios.mjs +134 -0
  5. package/es/commons/{core → plugins}/datasource/utils/request.d.ts +1 -1
  6. package/es/commons/plugins/datasource/utils/request.mjs +5 -0
  7. package/es/commons/plugins/datasource/utils/utils.d.ts +84 -0
  8. package/es/commons/plugins/datasource/utils/utils.mjs +156 -0
  9. package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -0
  10. package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -0
  11. package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -0
  12. package/es/commons/plugins/event/actions/invokeAction.mjs +10 -0
  13. package/es/commons/plugins/event/actions/linkAction.d.ts +8 -0
  14. package/es/commons/plugins/event/actions/linkAction.mjs +7 -0
  15. package/es/commons/plugins/event/actions/moveAction.d.ts +8 -0
  16. package/es/commons/plugins/event/actions/moveAction.mjs +15 -0
  17. package/es/commons/plugins/event/actions/pageAction.d.ts +8 -0
  18. package/es/commons/plugins/event/actions/pageAction.mjs +14 -0
  19. package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -0
  20. package/es/commons/plugins/event/actions/rotateAction.mjs +19 -0
  21. package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -0
  22. package/es/commons/plugins/event/actions/scaleAction.mjs +24 -0
  23. package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -0
  24. package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -0
  25. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -0
  26. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
  27. package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -0
  28. package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
  29. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -0
  30. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
  31. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -0
  32. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
  33. package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -0
  34. package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -0
  35. package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -0
  36. package/es/commons/plugins/event/actions/updateVariableAction.mjs +23 -0
  37. package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -0
  38. package/es/commons/plugins/event/actions/updateWidgetAction.mjs +13 -0
  39. package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -0
  40. package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
  41. package/es/commons/plugins/event/index.d.ts +202 -0
  42. package/es/commons/plugins/event/index.mjs +150 -0
  43. package/es/commons/plugins/event/utils/utils.d.ts +22 -0
  44. package/es/commons/plugins/event/utils/utils.mjs +52 -0
  45. package/es/commons/utils/getNextElement.d.ts +7 -0
  46. package/es/commons/utils/getNextElement.mjs +12 -0
  47. package/es/components/chart-bar-animation/index.vue.mjs +24 -23
  48. package/es/components/chart-bar-basic/index.vue.mjs +24 -23
  49. package/es/components/chart-bar-contrast/index.vue.mjs +32 -31
  50. package/es/components/chart-bar-contrast2/index.vue.mjs +23 -22
  51. package/es/components/chart-bar-contrast3/index.vue.mjs +25 -24
  52. package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +24 -23
  53. package/es/components/chart-bar-horizontal/index.vue.mjs +25 -24
  54. package/es/components/chart-bar-horizontal-stack/index.vue.mjs +25 -24
  55. package/es/components/chart-bar-line-bar/index.vue.mjs +23 -22
  56. package/es/components/chart-bar-line-bar2/index.vue.mjs +23 -22
  57. package/es/components/chart-bar-loop/index.vue.mjs +25 -24
  58. package/es/components/chart-bar-mini/index.vue.mjs +25 -24
  59. package/es/components/chart-bar-polar/index.vue.mjs +23 -22
  60. package/es/components/chart-bar-polar-stack/index.vue.mjs +23 -22
  61. package/es/components/chart-bar-polar2/index.vue.mjs +23 -22
  62. package/es/components/chart-bar-radius-circle/index.vue.mjs +23 -22
  63. package/es/components/chart-bar-rank/index.vue.mjs +25 -24
  64. package/es/components/chart-bar-segmented-progress/index.vue.mjs +27 -26
  65. package/es/components/chart-bar-spire/index.vue.mjs +30 -29
  66. package/es/components/chart-bar-stack/index.vue.mjs +24 -23
  67. package/es/components/chart-bar-stack-line/index.vue.mjs +23 -22
  68. package/es/components/chart-bar-stack2/index.vue.mjs +23 -22
  69. package/es/components/chart-bar-stack3/index.vue.mjs +23 -22
  70. package/es/components/chart-bar-staggered/index.vue.mjs +23 -22
  71. package/es/components/chart-bar-three/index.vue.mjs +21 -20
  72. package/es/components/chart-bar-waterfall/index.vue.mjs +30 -29
  73. package/es/components/chart-bar-zebra/index.vue.mjs +23 -22
  74. package/es/components/chart-line-area-gradient/index.vue.mjs +24 -23
  75. package/es/components/chart-line-area-highlight/index.vue.mjs +23 -22
  76. package/es/components/chart-line-area-highlight2/index.vue.mjs +23 -22
  77. package/es/components/chart-line-basic/index.vue.mjs +25 -24
  78. package/es/components/chart-line-bump/index.vue.mjs +30 -29
  79. package/es/components/chart-line-dashed/index.vue.mjs +24 -23
  80. package/es/components/chart-line-ladder/index.vue.mjs +24 -23
  81. package/es/components/chart-line-logarithm/index.vue.mjs +29 -28
  82. package/es/components/chart-line-multix/index.vue.mjs +29 -28
  83. package/es/components/chart-line-polar-double/index.vue.mjs +25 -24
  84. package/es/components/chart-line-rain-flow/index.vue.mjs +29 -28
  85. package/es/components/chart-line-scale/index.vue.mjs +24 -23
  86. package/es/components/chart-line-smooth/index.vue.mjs +24 -23
  87. package/es/components/chart-line-smooth-area/index.vue.mjs +29 -28
  88. package/es/components/chart-line-stack/index.vue.mjs +24 -23
  89. package/es/components/chart-line-stack-area/index.vue.mjs +24 -23
  90. package/es/components/chart-line-temp/index.vue.mjs +29 -28
  91. package/es/components/chart-line-vertical/index.vue.mjs +24 -23
  92. package/es/components/chart-map-basic/index.vue.mjs +29 -28
  93. package/es/components/chart-map-bmap-basic/index.vue.mjs +25 -24
  94. package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
  95. package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
  96. package/es/components/chart-map-customize/index.vue.mjs +23 -22
  97. package/es/components/chart-map-lines/index.vue.mjs +24 -23
  98. package/es/components/chart-map-scatter/index.vue.mjs +24 -23
  99. package/es/components/chart-other-candlestick-basic/index.vue.mjs +25 -24
  100. package/es/components/chart-other-candlestick-demo/index.vue.mjs +22 -21
  101. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +22 -21
  102. package/es/components/chart-other-circular-graph/index.vue.mjs +20 -19
  103. package/es/components/chart-other-force/index.vue.mjs +22 -21
  104. package/es/components/chart-other-force2/index.vue.mjs +22 -21
  105. package/es/components/chart-other-funnel/index.vue.mjs +20 -19
  106. package/es/components/chart-other-funnel-contrast/index.vue.mjs +20 -19
  107. package/es/components/chart-other-funnel-split/index.vue.mjs +20 -19
  108. package/es/components/chart-other-funnel2/index.vue.mjs +20 -19
  109. package/es/components/chart-other-gauge/index.vue.mjs +20 -19
  110. package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -19
  111. package/es/components/chart-other-gauge-stage/index.vue.mjs +20 -19
  112. package/es/components/chart-other-graph-basic/index.vue.mjs +21 -20
  113. package/es/components/chart-other-graph-basic2/index.vue.mjs +21 -20
  114. package/es/components/chart-other-graph-calendar/index.vue.mjs +21 -20
  115. package/es/components/chart-other-grid-percentage/index.vue.mjs +25 -24
  116. package/es/components/chart-other-heatmap/index.vue.mjs +23 -22
  117. package/es/components/chart-other-label-gauge/index.vue.mjs +30 -29
  118. package/es/components/chart-other-liquidfill/index.vue.mjs +22 -21
  119. package/es/components/chart-other-parallel-basic/index.vue.mjs +21 -20
  120. package/es/components/chart-other-parallel-mul/index.vue.mjs +30 -29
  121. package/es/components/chart-other-radar/index.vue.mjs +32 -31
  122. package/es/components/chart-other-radar-stack/index.vue.mjs +23 -22
  123. package/es/components/chart-other-sunburst-basic/index.vue.mjs +22 -21
  124. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +22 -21
  125. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +22 -21
  126. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +22 -21
  127. package/es/components/chart-other-sunburst-book/index.vue.mjs +22 -21
  128. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +20 -19
  129. package/es/components/chart-other-sunburst-radius/index.vue.mjs +22 -21
  130. package/es/components/chart-other-theme-river/index.vue.mjs +25 -24
  131. package/es/components/chart-other-tree/index.vue.mjs +20 -19
  132. package/es/components/chart-other-tree-line/index.vue.mjs +21 -20
  133. package/es/components/chart-other-treemap/index.vue.mjs +19 -18
  134. package/es/components/chart-other-treemap-basic/index.vue.mjs +20 -19
  135. package/es/components/chart-other-word-cloud/index.vue.mjs +18 -17
  136. package/es/components/chart-pie-3d/index.vue.mjs +25 -24
  137. package/es/components/chart-pie-basic/index.vue.mjs +23 -22
  138. package/es/components/chart-pie-basic2/index.vue.mjs +23 -22
  139. package/es/components/chart-pie-customized/index.vue.mjs +28 -27
  140. package/es/components/chart-pie-index/index.vue.mjs +22 -21
  141. package/es/components/chart-pie-interval/index.vue.mjs +22 -21
  142. package/es/components/chart-pie-legend-scroll/index.vue.mjs +28 -27
  143. package/es/components/chart-pie-radius/index.vue.mjs +22 -21
  144. package/es/components/chart-pie-rose/index.vue.mjs +27 -26
  145. package/es/components/chart-pie-round/index.vue.mjs +27 -26
  146. package/es/components/chart-pie-semicircle/index.vue.mjs +23 -22
  147. package/es/components/chart-pie-sunburst/index.vue.mjs +23 -22
  148. package/es/components/chart-scatter-basic/index.vue.mjs +24 -23
  149. package/es/components/chart-scatter-basic2/index.vue.mjs +24 -23
  150. package/es/components/chart-scatter-bubble/index.vue.mjs +25 -24
  151. package/es/components/chart-scatter-ripples/index.vue.mjs +21 -20
  152. package/es/components/commons-echarts/compileAndRunEcharts.mjs +22 -21
  153. package/es/components/commons-gaussian-splatting-view/index.vue.mjs +2 -2
  154. package/es/components/commons-gaussian-splatting-view/index.vue2.mjs +45 -46
  155. package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
  156. package/es/components/commons-loop-iterator/index.vue2.mjs +39 -38
  157. package/es/components/commons-product-model/index.vue.mjs +2 -2
  158. package/es/components/commons-product-model/index.vue2.mjs +49 -49
  159. package/es/components/commons-three-loader/index.vue.mjs +1 -1
  160. package/es/components/commons-three-loader/index.vue2.mjs +73 -73
  161. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  162. package/es/components/commons-three-loader3/index.vue2.mjs +67 -67
  163. package/es/components/commons-weather/index.vue.mjs +2 -2
  164. package/es/components/commons-weather/index.vue2.mjs +45 -44
  165. package/es/components/index.d.ts +1 -0
  166. package/es/components/index.mjs +16 -14
  167. package/es/components/interaction-input/index.vue.mjs +1 -1
  168. package/es/components/interaction-input/index.vue2.mjs +56 -55
  169. package/es/components/interaction-select/index.vue.mjs +1 -1
  170. package/es/components/interaction-select/index.vue2.mjs +83 -82
  171. package/es/components/interaction-slider/index.vue.mjs +2 -2
  172. package/es/components/interaction-slider/index.vue2.mjs +45 -44
  173. package/es/components/interaction-switch/index.vue.mjs +2 -2
  174. package/es/components/interaction-switch/index.vue2.mjs +31 -30
  175. package/es/components/interaction-tabs/index.vue.mjs +2 -2
  176. package/es/components/interaction-tabs/index.vue2.mjs +31 -30
  177. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  178. package/es/components/interaction-tabs2/index.vue2.mjs +31 -30
  179. package/es/components/map-earth-basic/index.vue.d.ts +4 -4
  180. package/es/components/map-earth-basic/index.vue.mjs +30 -29
  181. package/es/components/map-earth-cool-tech/index.vue.d.ts +0 -2
  182. package/es/components/map-earth-cool-tech/index.vue.mjs +30 -29
  183. package/es/components/map-earth-fly-line/index.vue.d.ts +4 -2
  184. package/es/components/map-earth-fly-line/index.vue.mjs +34 -33
  185. package/es/components/map-earth-hacker/index.vue.d.ts +4 -2
  186. package/es/components/map-earth-hacker/index.vue.mjs +29 -28
  187. package/es/components/map-earth-particle/index.vue.d.ts +4 -2
  188. package/es/components/map-earth-particle/index.vue.mjs +30 -29
  189. package/es/components/media-audio/index.vue.mjs +1 -1
  190. package/es/components/media-audio/index.vue2.mjs +49 -48
  191. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  192. package/es/components/media-audio-dynamic/index.vue2.mjs +58 -57
  193. package/es/components/media-flv/index.vue.mjs +40 -39
  194. package/es/components/media-iframe/index.vue.mjs +2 -2
  195. package/es/components/media-iframe/index.vue2.mjs +14 -13
  196. package/es/components/media-image-dynamic/index.vue.mjs +2 -2
  197. package/es/components/media-image-dynamic/index.vue2.mjs +23 -22
  198. package/es/components/media-m3u8/index.vue.mjs +39 -38
  199. package/es/components/media-m3u8-dynamic/index.vue.mjs +54 -53
  200. package/es/components/media-video/index.vue.mjs +1 -1
  201. package/es/components/media-video/index.vue2.mjs +38 -37
  202. package/es/components/media-video-dynamic/index.vue.mjs +1 -1
  203. package/es/components/media-video-dynamic/index.vue2.mjs +49 -48
  204. package/es/components/scene-amap2d/index.vue.mjs +1 -1
  205. package/es/components/scene-amap2d/index.vue2.mjs +107 -104
  206. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  207. package/es/components/scene-amap3d/index.vue2.mjs +95 -92
  208. package/es/components/scene-default/index.d.ts +39 -0
  209. package/es/components/scene-default/index.mjs +7 -0
  210. package/es/components/scene-default/index.vue.d.ts +40 -0
  211. package/es/components/scene-default/index.vue.mjs +7 -0
  212. package/es/components/scene-default/index.vue2.mjs +35 -0
  213. package/es/components/scene-map3d/index.d.ts +1 -1
  214. package/es/components/scene-map3d/index.vue.d.ts +1 -1
  215. package/es/components/scene-map3d/index.vue.mjs +2 -2
  216. package/es/components/scene-map3d/index.vue2.mjs +129 -126
  217. package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
  218. package/es/components/scene-ue-iframe/index.vue2.mjs +19 -18
  219. package/es/components/scene-ue-shj/index.vue.mjs +1 -1
  220. package/es/components/scene-ue-shj/index.vue2.mjs +14 -13
  221. package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
  222. package/es/components/scene-unity-iframe/index.vue2.mjs +19 -16
  223. package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
  224. package/es/components/scene-unity-webgl/index.vue2.mjs +16 -13
  225. package/es/components/scene-vr/index.vue.mjs +1 -1
  226. package/es/components/scene-vr/index.vue2.mjs +162 -159
  227. package/es/components/text-count-down/index.vue.mjs +1 -1
  228. package/es/components/text-count-down/index.vue2.mjs +34 -33
  229. package/es/components/text-over-number/index.vue.mjs +2 -2
  230. package/es/components/text-over-number/index.vue2.mjs +49 -48
  231. package/es/components/text-real-time/index.vue.mjs +2 -2
  232. package/es/components/text-real-time/index.vue2.mjs +26 -25
  233. package/es/components/text-row-scroll/index.vue.mjs +1 -1
  234. package/es/components/text-row-scroll/index.vue2.mjs +83 -82
  235. package/es/components/text-table-basic/index.vue.mjs +3 -3
  236. package/es/components/text-table-basic/index.vue2.mjs +97 -96
  237. package/es/components/text-table-scroll/index.vue.mjs +1 -1
  238. package/es/components/text-table-scroll/index.vue2.mjs +96 -95
  239. package/es/components/text-text-dynamic/index.vue.mjs +1 -1
  240. package/es/components/text-text-dynamic/index.vue2.mjs +29 -28
  241. package/es/env.d.ts +0 -2
  242. package/es/index.d.ts +3 -1
  243. package/es/index.mjs +351 -345
  244. package/es/widgets.css +1 -1
  245. package/lib/commons/core/useChart.js +1 -1
  246. package/lib/commons/{core → plugins}/datasource/index.js +1 -1
  247. package/lib/commons/plugins/datasource/utils/axios.js +1 -0
  248. package/lib/commons/plugins/datasource/utils/request.js +1 -0
  249. package/lib/commons/plugins/datasource/utils/utils.js +1 -0
  250. package/lib/commons/plugins/event/actions/fullScreenAction.js +1 -0
  251. package/lib/commons/plugins/event/actions/invokeAction.js +1 -0
  252. package/lib/commons/plugins/event/actions/linkAction.js +1 -0
  253. package/lib/commons/plugins/event/actions/moveAction.js +1 -0
  254. package/lib/commons/plugins/event/actions/pageAction.js +1 -0
  255. package/lib/commons/plugins/event/actions/rotateAction.js +1 -0
  256. package/lib/commons/plugins/event/actions/scaleAction.js +1 -0
  257. package/lib/commons/plugins/event/actions/sendApiAction.js +1 -0
  258. package/lib/commons/plugins/event/actions/ueCommonsWebscoketAction.js +1 -0
  259. package/lib/commons/plugins/event/actions/ueShjExecMethodAction.js +1 -0
  260. package/lib/commons/plugins/event/actions/unityIframeExecMethodAction.js +1 -0
  261. package/lib/commons/plugins/event/actions/unityWebglExecMethodAction.js +1 -0
  262. package/lib/commons/plugins/event/actions/updatePageAction.js +1 -0
  263. package/lib/commons/plugins/event/actions/updateVariableAction.js +1 -0
  264. package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -0
  265. package/lib/commons/plugins/event/actions/vrSceneMethodAction.js +1 -0
  266. package/lib/commons/plugins/event/index.js +9 -0
  267. package/lib/commons/plugins/event/utils/utils.js +1 -0
  268. package/lib/commons/utils/getNextElement.js +1 -0
  269. package/lib/components/chart-bar-animation/index.vue.js +1 -1
  270. package/lib/components/chart-bar-basic/index.vue.js +1 -1
  271. package/lib/components/chart-bar-contrast/index.vue.js +1 -1
  272. package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
  273. package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
  274. package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
  275. package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
  276. package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
  277. package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
  278. package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
  279. package/lib/components/chart-bar-loop/index.vue.js +1 -1
  280. package/lib/components/chart-bar-mini/index.vue.js +1 -1
  281. package/lib/components/chart-bar-polar/index.vue.js +1 -1
  282. package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
  283. package/lib/components/chart-bar-polar2/index.vue.js +1 -1
  284. package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
  285. package/lib/components/chart-bar-rank/index.vue.js +1 -1
  286. package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
  287. package/lib/components/chart-bar-spire/index.vue.js +1 -1
  288. package/lib/components/chart-bar-stack/index.vue.js +1 -1
  289. package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
  290. package/lib/components/chart-bar-stack2/index.vue.js +1 -1
  291. package/lib/components/chart-bar-stack3/index.vue.js +1 -1
  292. package/lib/components/chart-bar-staggered/index.vue.js +1 -1
  293. package/lib/components/chart-bar-three/index.vue.js +1 -1
  294. package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
  295. package/lib/components/chart-bar-zebra/index.vue.js +1 -1
  296. package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
  297. package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
  298. package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
  299. package/lib/components/chart-line-basic/index.vue.js +1 -1
  300. package/lib/components/chart-line-bump/index.vue.js +1 -1
  301. package/lib/components/chart-line-dashed/index.vue.js +1 -1
  302. package/lib/components/chart-line-ladder/index.vue.js +1 -1
  303. package/lib/components/chart-line-logarithm/index.vue.js +1 -1
  304. package/lib/components/chart-line-multix/index.vue.js +1 -1
  305. package/lib/components/chart-line-polar-double/index.vue.js +1 -1
  306. package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
  307. package/lib/components/chart-line-scale/index.vue.js +1 -1
  308. package/lib/components/chart-line-smooth/index.vue.js +1 -1
  309. package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
  310. package/lib/components/chart-line-stack/index.vue.js +1 -1
  311. package/lib/components/chart-line-stack-area/index.vue.js +1 -1
  312. package/lib/components/chart-line-temp/index.vue.js +1 -1
  313. package/lib/components/chart-line-vertical/index.vue.js +1 -1
  314. package/lib/components/chart-map-basic/index.vue.js +1 -1
  315. package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
  316. package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
  317. package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
  318. package/lib/components/chart-map-customize/index.vue.js +1 -1
  319. package/lib/components/chart-map-lines/index.vue.js +1 -1
  320. package/lib/components/chart-map-scatter/index.vue.js +1 -1
  321. package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
  322. package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
  323. package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
  324. package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
  325. package/lib/components/chart-other-force/index.vue.js +1 -1
  326. package/lib/components/chart-other-force2/index.vue.js +1 -1
  327. package/lib/components/chart-other-funnel/index.vue.js +1 -1
  328. package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
  329. package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
  330. package/lib/components/chart-other-funnel2/index.vue.js +1 -1
  331. package/lib/components/chart-other-gauge/index.vue.js +1 -1
  332. package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
  333. package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
  334. package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
  335. package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
  336. package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
  337. package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
  338. package/lib/components/chart-other-heatmap/index.vue.js +1 -1
  339. package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
  340. package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
  341. package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
  342. package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
  343. package/lib/components/chart-other-radar/index.vue.js +1 -1
  344. package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
  345. package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
  346. package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
  347. package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
  348. package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
  349. package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
  350. package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
  351. package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
  352. package/lib/components/chart-other-theme-river/index.vue.js +1 -1
  353. package/lib/components/chart-other-tree/index.vue.js +1 -1
  354. package/lib/components/chart-other-tree-line/index.vue.js +1 -1
  355. package/lib/components/chart-other-treemap/index.vue.js +1 -1
  356. package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
  357. package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
  358. package/lib/components/chart-pie-3d/index.vue.js +1 -1
  359. package/lib/components/chart-pie-basic/index.vue.js +1 -1
  360. package/lib/components/chart-pie-basic2/index.vue.js +1 -1
  361. package/lib/components/chart-pie-customized/index.vue.js +1 -1
  362. package/lib/components/chart-pie-index/index.vue.js +1 -1
  363. package/lib/components/chart-pie-interval/index.vue.js +1 -1
  364. package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
  365. package/lib/components/chart-pie-radius/index.vue.js +1 -1
  366. package/lib/components/chart-pie-rose/index.vue.js +1 -1
  367. package/lib/components/chart-pie-round/index.vue.js +1 -1
  368. package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
  369. package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
  370. package/lib/components/chart-scatter-basic/index.vue.js +1 -1
  371. package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
  372. package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
  373. package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
  374. package/lib/components/commons-echarts/compileAndRunEcharts.js +6 -6
  375. package/lib/components/commons-gaussian-splatting-view/index.vue.js +1 -1
  376. package/lib/components/commons-gaussian-splatting-view/index.vue2.js +1 -1
  377. package/lib/components/commons-loop-iterator/index.vue.js +1 -1
  378. package/lib/components/commons-loop-iterator/index.vue2.js +1 -1
  379. package/lib/components/commons-product-model/index.vue.js +1 -1
  380. package/lib/components/commons-product-model/index.vue2.js +1 -1
  381. package/lib/components/commons-three-loader/index.vue.js +1 -1
  382. package/lib/components/commons-three-loader/index.vue2.js +1 -1
  383. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  384. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  385. package/lib/components/commons-weather/index.vue.js +1 -1
  386. package/lib/components/commons-weather/index.vue2.js +1 -1
  387. package/lib/components/index.js +1 -1
  388. package/lib/components/interaction-input/index.vue.js +1 -1
  389. package/lib/components/interaction-input/index.vue2.js +1 -1
  390. package/lib/components/interaction-select/index.vue.js +1 -1
  391. package/lib/components/interaction-select/index.vue2.js +1 -1
  392. package/lib/components/interaction-slider/index.vue.js +1 -1
  393. package/lib/components/interaction-slider/index.vue2.js +1 -1
  394. package/lib/components/interaction-switch/index.vue.js +1 -1
  395. package/lib/components/interaction-switch/index.vue2.js +1 -1
  396. package/lib/components/interaction-tabs/index.vue.js +1 -1
  397. package/lib/components/interaction-tabs/index.vue2.js +1 -1
  398. package/lib/components/interaction-tabs2/index.vue.js +1 -1
  399. package/lib/components/interaction-tabs2/index.vue2.js +1 -1
  400. package/lib/components/map-earth-basic/index.vue.js +1 -1
  401. package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
  402. package/lib/components/map-earth-fly-line/index.vue.js +1 -1
  403. package/lib/components/map-earth-hacker/index.vue.js +1 -1
  404. package/lib/components/map-earth-particle/index.vue.js +1 -1
  405. package/lib/components/media-audio/index.vue.js +1 -1
  406. package/lib/components/media-audio/index.vue2.js +1 -1
  407. package/lib/components/media-audio-dynamic/index.vue.js +1 -1
  408. package/lib/components/media-audio-dynamic/index.vue2.js +1 -1
  409. package/lib/components/media-flv/index.vue.js +1 -1
  410. package/lib/components/media-iframe/index.vue.js +1 -1
  411. package/lib/components/media-iframe/index.vue2.js +1 -1
  412. package/lib/components/media-image-dynamic/index.vue.js +1 -1
  413. package/lib/components/media-image-dynamic/index.vue2.js +1 -1
  414. package/lib/components/media-m3u8/index.vue.js +1 -1
  415. package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
  416. package/lib/components/media-video/index.vue.js +1 -1
  417. package/lib/components/media-video/index.vue2.js +1 -1
  418. package/lib/components/media-video-dynamic/index.vue.js +1 -1
  419. package/lib/components/media-video-dynamic/index.vue2.js +1 -1
  420. package/lib/components/scene-amap2d/index.vue.js +1 -1
  421. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  422. package/lib/components/scene-amap3d/index.vue.js +1 -1
  423. package/lib/components/scene-amap3d/index.vue2.js +4 -4
  424. package/lib/components/scene-default/index.js +1 -0
  425. package/lib/components/scene-default/index.vue.js +1 -0
  426. package/lib/components/scene-default/index.vue2.js +1 -0
  427. package/lib/components/scene-map3d/index.vue.js +1 -1
  428. package/lib/components/scene-map3d/index.vue2.js +1 -1
  429. package/lib/components/scene-ue-iframe/index.vue.js +1 -1
  430. package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
  431. package/lib/components/scene-ue-shj/index.vue.js +1 -1
  432. package/lib/components/scene-ue-shj/index.vue2.js +1 -1
  433. package/lib/components/scene-unity-iframe/index.vue.js +1 -1
  434. package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
  435. package/lib/components/scene-unity-webgl/index.vue.js +1 -1
  436. package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
  437. package/lib/components/scene-vr/index.vue.js +1 -1
  438. package/lib/components/scene-vr/index.vue2.js +2 -2
  439. package/lib/components/text-count-down/index.vue.js +1 -1
  440. package/lib/components/text-count-down/index.vue2.js +1 -1
  441. package/lib/components/text-over-number/index.vue.js +1 -1
  442. package/lib/components/text-over-number/index.vue2.js +1 -1
  443. package/lib/components/text-real-time/index.vue.js +1 -1
  444. package/lib/components/text-real-time/index.vue2.js +1 -1
  445. package/lib/components/text-row-scroll/index.vue.js +1 -1
  446. package/lib/components/text-row-scroll/index.vue2.js +1 -1
  447. package/lib/components/text-table-basic/index.vue.js +1 -1
  448. package/lib/components/text-table-basic/index.vue2.js +1 -1
  449. package/lib/components/text-table-scroll/index.vue.js +1 -1
  450. package/lib/components/text-table-scroll/index.vue2.js +1 -1
  451. package/lib/components/text-text-dynamic/index.vue.js +1 -1
  452. package/lib/components/text-text-dynamic/index.vue2.js +1 -1
  453. package/lib/index.js +1 -1
  454. package/lib/widgets.css +1 -1
  455. package/package.json +1 -1
  456. package/es/commons/core/datasource/utils/request.mjs +0 -7
  457. package/es/commons/core/datasource/utils/utils.d.ts +0 -50
  458. package/es/commons/core/datasource/utils/utils.mjs +0 -123
  459. package/es/commons/utils/babylon/ColorConvert.d.ts +0 -3
  460. package/es/commons/utils/babylon/ColorConvert.mjs +0 -21
  461. package/lib/commons/core/datasource/utils/request.js +0 -1
  462. package/lib/commons/core/datasource/utils/utils.js +0 -1
  463. package/lib/commons/utils/babylon/ColorConvert.js +0 -1
  464. /package/es/commons/{core → plugins}/datasource/index.d.ts +0 -0
  465. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.d.ts +0 -0
  466. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.mjs +0 -0
  467. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.d.ts +0 -0
  468. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.mjs +0 -0
  469. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.d.ts +0 -0
  470. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.mjs +0 -0
  471. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.d.ts +0 -0
  472. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.mjs +0 -0
  473. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.d.ts +0 -0
  474. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.mjs +0 -0
  475. /package/es/commons/{core → plugins}/datasource/utils/wsManager.d.ts +0 -0
  476. /package/es/commons/{core → plugins}/datasource/utils/wsManager.mjs +0 -0
  477. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/api.js +0 -0
  478. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/static.js +0 -0
  479. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/url.js +0 -0
  480. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/variable.js +0 -0
  481. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/ws.js +0 -0
  482. /package/lib/commons/{core → plugins}/datasource/utils/wsManager.js +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-83f29823"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-67e74be1"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),R=require("@amap/amap-jsapi-loader"),Z=require("axios"),V=require("nanoid"),U=require("../../commons/core/datasource/index.js"),K=y=>(l.pushScopeId("data-v-83f29823"),y=y(),l.popScopeId(),y),Q=K(()=>l.createElementVNode("div",{id:"zerov-amap-2d",class:"zerov-amap-container"},null,-1)),X=[Q],Y=l.defineComponent({name:"zv-scene-amap2d"}),$=l.defineComponent({...Y,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["amap2d-scene-success","amap2d-scene-zoomstart","amap2d-scene-zoomend","amap2d-scene-mapclick","amap2d-scene-dragstart","amap2d-scene-dragging","amap2d-scene-dragend"],setup(y,{expose:k,emit:x}){const s=y,u=x,E=()=>{const o=l.shallowRef(),c=l.shallowRef(),w=l.ref(!1),p=l.ref(),g=l.ref(),m=l.ref(),f=l.ref(),C=a=>{O(),window._AMapSecurityConfig={securityJsCode:a.basic.securityJsCode},R.load({key:a.basic.key,version:"2.0",Loca:{version:"2.0.0"},plugins:["AMap.ControlBar","AMap.ToolBar","AMap.Scale","AMap.HeatMap","AMap.GeoJSON"]}).then(e=>{f.value=e,o.value=new e.Map("zerov-amap-2d",{rotateEnable:a.config.rotateEnable,pitchEnable:a.config.pitchEnable,resizeEnable:a.config.resizeEnable,zoomEnable:a.config.zoomEnable,dragEnable:a.config.dragEnable,zoom:a.config.zoom,viewMode:"2D",zooms:a.config.zooms,center:a.config.center,mapStyle:a.config.mapStyle,features:a.config.features}),c.value=new window.Loca.Container({map:o.value}),m.value=new f.value.Scale({visible:a.config.plugin.scale.visible,position:{left:a.config.plugin.scale.position.left+"px",bottom:a.config.plugin.scale.position.bottom+"px"}}),o.value.addControl(m.value),p.value=new e.ControlBar({visible:a.config.plugin.controlBar.visible,showControlButton:a.config.plugin.controlBar.showControlButton,position:{right:a.config.plugin.controlBar.position.right+"px",top:a.config.plugin.controlBar.position.top+"px"}}),o.value.addControl(p.value),g.value=new e.ToolBar({visible:a.config.plugin.toolBar.visible,position:{left:a.config.plugin.toolBar.position.left+"px",top:a.config.plugin.toolBar.position.top+"px"}}),o.value.addControl(g.value),S(e),o.value.on("complete",()=>{setTimeout(()=>{w.value=!0,u("amap2d-scene-success"),window.SHJParseEvent(s.useEvents,"amap2d-scene-success",null)},666)}),o.value.on("zoomstart",()=>{u("amap2d-scene-zoomstart"),window.SHJParseEvent(s.useEvents,"amap2d-scene-zoomstart",null)}),o.value.on("zoomend",()=>{u("amap2d-scene-zoomend"),window.SHJParseEvent(s.useEvents,"amap2d-scene-zoomend",null)}),o.value.on("click",t=>{u("amap2d-scene-mapclick",t.lnglat),window.SHJParseEvent(s.useEvents,"amap2d-scene-mapclick",t.lnglat)}),o.value.on("dragstart",t=>{u("amap2d-scene-dragstart",t.lnglat),window.SHJParseEvent(s.useEvents,"amap2d-scene-dragstart",t.lnglat)}),o.value.on("dragend",t=>{u("amap2d-scene-dragend",t.lnglat),window.SHJParseEvent(s.useEvents,"amap2d-scene-dragend",t.lnglat)})}).catch(e=>{})},S=a=>{s.sources&&s.sources.length>0?U.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{const t=s.basicOption.widgets.find(n=>n._sourceId===e.id);t&&t.type==="heatmap"&&P(a,t,e.data[0].data),t&&t.type==="dotlayers"&&I(window.Loca,t,h(e.data[0].data)),t&&t.type==="scatter"&&J(window.Loca,t,h(e.data[0].data)),t&&t.type==="labelsLayer"&&D(window.Loca,t,h(e.data[0].data))}catch{}s.basicOption.widgets.filter(t=>t.type==="boundary").forEach(t=>{z(a,t)})}}):s.basicOption.widgets.filter(e=>e.type==="boundary").forEach(e=>{z(a,e)})},L=a=>{const t=a.slice(a.indexOf("(")+1,a.lastIndexOf(")")).split(",").map(r=>r.trim()),n={};for(let r=1;r<t.length;r++){const d=t[r].split(" "),i=d[0],G=parseFloat(d[1])/100,j=Math.round(G*100)/100;n[j]=i}return n},P=(a,e,t)=>{try{const n=new a.HeatMap(o.value,{radius:e.radius,opacity:e.opacity,gradient:L(e.gradient)});setTimeout(()=>{n.setDataSet({data:t,max:e.max})},0)}catch{}},z=async(a,e)=>{try{const t=await Z.get(e.geojson);if(t.status===200){const n=new a.GeoJSON({geoJSON:t.data,getPolygon:function(r,d){const i=new a.Polygon({path:d,zIndex:e.zIndex,fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle});return i.on("mouseover",()=>{i.setOptions({fillOpacity:e.mouseover.fillOpacity,fillColor:e.mouseover.fillColor,strokeOpacity:e.mouseover.strokeOpacity,strokeColor:e.mouseover.strokeColor,strokeStyle:e.mouseover.strokeStyle,strokeWeight:e.mouseover.strokeWeight})}),i.on("mouseout",()=>{i.setOptions({fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle})}),i}});o.value.add(n)}}catch{}},I=(a,e,t)=>{try{const n=new a.GeoJSONSource({data:t}),r=new a.PointLayer({zIndex:e.zIndex,blend:e.blend,visible:e.visible,opacity:e.opacity}),d={radius:e.style.radius,unit:e.style.unit,color:e.style.color,borderWidth:e.style.borderWidth,blurWidth:e.style.blurWidth,borderColor:e.style.borderColor};r.setSource(n),r.setStyle(d),c.value.add(r),r.addAnimate({key:e.animate.key,value:e.animate.value,duration:e.animate.duration,easing:e.animate.easing,transform:e.animate.transform,random:e.animate.random,delay:e.animate.delay,yoyo:e.animate.yoyo,repeat:e.animate.repeat})}catch{}},J=(a,e,t)=>{try{const n=new a.GeoJSONSource({data:t}),r=new a.ScatterLayer({loca:c.value,zIndex:e.zIndex,opacity:e.opacity,visible:e.visible,zooms:e.zooms});r.setSource(n),r.setStyle({unit:e.style.unit,size:e.style.size,borderWidth:e.style.borderWidth,texture:e.style.texture,duration:e.style.duration,animate:e.style.animate}),c.value.animate.start()}catch{}},D=(a,e,t)=>{try{const n=new a.GeoJSONSource({data:t}),r=new a.LabelsLayer({eventSupport:!0,visible:e.visible,zooms:e.zooms,opacity:e.opacity,collision:e.collision,allowCollision:e.allowCollision,zIndex:e.zIndex});r.on("click",d=>{}),r.setSource(n),r.setStyle({icon:{image:e.icon.image,size:e.icon.size,clipOrigin:e.icon.clipOrigin,offset:e.icon.offset,anchor:e.icon.anchor},text:{content:(d,i)=>i.properties[e.text.content],zooms:e.text.zooms,offset:e.text.offset,direction:e.text.direction,style:{fontSize:e.text.style.fontSize,fillColor:e.text.style.fillColor,strokeColor:e.text.style.strokeColor,strokeWidth:e.text.style.strokeWidth,padding:e.text.style.padding,backgroundColor:e.text.style.backgroundColor,borderColor:e.text.style.borderColor,borderWidth:e.text.style.borderWidth,fold:e.text.style.fold,fontWeight:e.text.style.fontWeight}}}),c.value.add(r)}catch{}},h=a=>{const e={type:"FeatureCollection",features:[]};return a.forEach((t,n)=>{const r={type:"Feature",id:V.nanoid(),properties:{name:t.name||"",_draw_type:"point"},geometry:{type:"Point",coordinates:t.value}};e.features.push(r)}),e},H=a=>{o.value.setFeatures(a.config.features),o.value.setStatus({dragEnable:a.config.dragEnable,zoomEnable:a.config.zoomEnable,rotateEnable:a.config.rotateEnable}),a.config.plugin.scale.visible?m.value.show():m.value.hide(),a.config.plugin.toolBar.visible?g.value.show():g.value.hide(),a.config.plugin.controlBar.visible?p.value.show():p.value.hide()},N=()=>{o.value.clearMap(),c.value.clear(),S(f.value)},T=a=>{o.value.setMapStyle(a.config.mapStyle)},q=a=>{o.value.setZoom(a.config.zoom,!1,200)},F=a=>{o.value.setCenter(a.config.center,!1,200)},O=()=>{o.value&&(o.value.clearMap(),o.value.destroy(),o.value=null,c.value&&(c.value.clear(),c.value.destroy(),c.value=null))};return l.onMounted(()=>{setTimeout(()=>{C(s.basicOption)},0)}),l.onUnmounted(()=>O()),{initAMap2d:C,updateAMapStyle:T,updateAMapConfig:H,updateAMapComponents:N,updateAMapZoom:q,updateAMapCenter:F,amap2d:o,loading:w,AMapPrototype:f}},{initAMap2d:v,updateAMapStyle:M,updateAMapConfig:b,updateAMapComponents:A,updateAMapZoom:B,updateAMapCenter:_,loading:W}=E();return l.watch(()=>s.basicOption.config,()=>{b(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.config.zoom,()=>{B(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.config.center,()=>{_(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.widgets,()=>{A()},{deep:!0}),l.watch(()=>s.basicOption.config.mapStyle,()=>{M(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.basic,()=>{v(s.basicOption)},{deep:!0}),l.watch(()=>s.sources,()=>{v(s.basicOption)},{deep:!0}),k({refresh:()=>v(s.basicOption),refreshView:()=>b(s.basicOption),refreshData:()=>b(s.basicOption)}),(o,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["amap-2d-wrap",{show:l.unref(W)}])},X,2))}});exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),Z=require("@amap/amap-jsapi-loader"),V=require("axios"),U=require("nanoid"),$=require("../../commons/plugins/datasource/index.js"),u=require("../../commons/plugins/event/index.js"),K=y=>(l.pushScopeId("data-v-67e74be1"),y=y(),l.popScopeId(),y),Q=K(()=>l.createElementVNode("div",{id:"zerov-amap-2d",class:"zerov-amap-container"},null,-1)),X=[Q],Y=l.defineComponent({name:"zv-scene-amap2d"}),ee=l.defineComponent({...Y,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["amap2d-scene-success","amap2d-scene-zoomstart","amap2d-scene-zoomend","amap2d-scene-mapclick","amap2d-scene-dragstart","amap2d-scene-dragging","amap2d-scene-dragend"],setup(y,{expose:k,emit:x}){const s=y,p=x;u.SHJParseEvent.parseEvents(s.useEvents,"on-page-loaded",null);const M=()=>{const o=l.shallowRef(),c=l.shallowRef(),S=l.ref(!1),g=l.ref(),m=l.ref(),f=l.ref(),v=l.ref(),w=a=>{E(),window._AMapSecurityConfig={securityJsCode:a.basic.securityJsCode},Z.load({key:a.basic.key,version:"2.0",Loca:{version:"2.0.0"},plugins:["AMap.ControlBar","AMap.ToolBar","AMap.Scale","AMap.HeatMap","AMap.GeoJSON"]}).then(e=>{v.value=e,o.value=new e.Map("zerov-amap-2d",{rotateEnable:a.config.rotateEnable,pitchEnable:a.config.pitchEnable,resizeEnable:a.config.resizeEnable,zoomEnable:a.config.zoomEnable,dragEnable:a.config.dragEnable,zoom:a.config.zoom,viewMode:"2D",zooms:a.config.zooms,center:a.config.center,mapStyle:a.config.mapStyle,features:a.config.features}),c.value=new window.Loca.Container({map:o.value}),f.value=new v.value.Scale({visible:a.config.plugin.scale.visible,position:{left:a.config.plugin.scale.position.left+"px",bottom:a.config.plugin.scale.position.bottom+"px"}}),o.value.addControl(f.value),g.value=new e.ControlBar({visible:a.config.plugin.controlBar.visible,showControlButton:a.config.plugin.controlBar.showControlButton,position:{right:a.config.plugin.controlBar.position.right+"px",top:a.config.plugin.controlBar.position.top+"px"}}),o.value.addControl(g.value),m.value=new e.ToolBar({visible:a.config.plugin.toolBar.visible,position:{left:a.config.plugin.toolBar.position.left+"px",top:a.config.plugin.toolBar.position.top+"px"}}),o.value.addControl(m.value),z(e),o.value.on("complete",()=>{setTimeout(()=>{S.value=!0,p("amap2d-scene-success"),u.SHJParseEvent.parseEvents(s.useEvents,"amap2d-scene-success",null)},666)}),o.value.on("zoomstart",()=>{p("amap2d-scene-zoomstart"),u.SHJParseEvent.parseEvents(s.useEvents,"amap2d-scene-zoomstart",null)}),o.value.on("zoomend",()=>{p("amap2d-scene-zoomend"),u.SHJParseEvent.parseEvents(s.useEvents,"amap2d-scene-zoomend",null)}),o.value.on("click",t=>{p("amap2d-scene-mapclick",t.lnglat),u.SHJParseEvent.parseEvents(s.useEvents,"amap2d-scene-mapclick",t.lnglat)}),o.value.on("dragstart",t=>{p("amap2d-scene-dragstart",t.lnglat),u.SHJParseEvent.parseEvents(s.useEvents,"amap2d-scene-dragstart",t.lnglat)}),o.value.on("dragend",t=>{p("amap2d-scene-dragend",t.lnglat),u.SHJParseEvent.parseEvents(s.useEvents,"amap2d-scene-dragend",t.lnglat)})}).catch(e=>{})},z=a=>{s.sources&&s.sources.length>0?$.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{const t=s.basicOption.widgets.find(n=>n._sourceId===e.id);t&&t.type==="heatmap"&&J(a,t,e.data[0].data),t&&t.type==="dotlayers"&&I(window.Loca,t,C(e.data[0].data)),t&&t.type==="scatter"&&D(window.Loca,t,C(e.data[0].data)),t&&t.type==="labelsLayer"&&H(window.Loca,t,C(e.data[0].data))}catch{}s.basicOption.widgets.filter(t=>t.type==="boundary").forEach(t=>{O(a,t)})}}):s.basicOption.widgets.filter(e=>e.type==="boundary").forEach(e=>{O(a,e)})},P=a=>{const t=a.slice(a.indexOf("(")+1,a.lastIndexOf(")")).split(",").map(r=>r.trim()),n={};for(let r=1;r<t.length;r++){const d=t[r].split(" "),i=d[0],j=parseFloat(d[1])/100,R=Math.round(j*100)/100;n[R]=i}return n},J=(a,e,t)=>{try{const n=new a.HeatMap(o.value,{radius:e.radius,opacity:e.opacity,gradient:P(e.gradient)});setTimeout(()=>{n.setDataSet({data:t,max:e.max})},0)}catch{}},O=async(a,e)=>{try{const t=await V.get(e.geojson);if(t.status===200){const n=new a.GeoJSON({geoJSON:t.data,getPolygon:function(r,d){const i=new a.Polygon({path:d,zIndex:e.zIndex,fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle});return i.on("mouseover",()=>{i.setOptions({fillOpacity:e.mouseover.fillOpacity,fillColor:e.mouseover.fillColor,strokeOpacity:e.mouseover.strokeOpacity,strokeColor:e.mouseover.strokeColor,strokeStyle:e.mouseover.strokeStyle,strokeWeight:e.mouseover.strokeWeight})}),i.on("mouseout",()=>{i.setOptions({fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle})}),i}});o.value.add(n)}}catch{}},I=(a,e,t)=>{try{const n=new a.GeoJSONSource({data:t}),r=new a.PointLayer({zIndex:e.zIndex,blend:e.blend,visible:e.visible,opacity:e.opacity}),d={radius:e.style.radius,unit:e.style.unit,color:e.style.color,borderWidth:e.style.borderWidth,blurWidth:e.style.blurWidth,borderColor:e.style.borderColor};r.setSource(n),r.setStyle(d),c.value.add(r),r.addAnimate({key:e.animate.key,value:e.animate.value,duration:e.animate.duration,easing:e.animate.easing,transform:e.animate.transform,random:e.animate.random,delay:e.animate.delay,yoyo:e.animate.yoyo,repeat:e.animate.repeat})}catch{}},D=(a,e,t)=>{try{const n=new a.GeoJSONSource({data:t}),r=new a.ScatterLayer({loca:c.value,zIndex:e.zIndex,opacity:e.opacity,visible:e.visible,zooms:e.zooms});r.setSource(n),r.setStyle({unit:e.style.unit,size:e.style.size,borderWidth:e.style.borderWidth,texture:e.style.texture,duration:e.style.duration,animate:e.style.animate}),c.value.animate.start()}catch{}},H=(a,e,t)=>{try{const n=new a.GeoJSONSource({data:t}),r=new a.LabelsLayer({eventSupport:!0,visible:e.visible,zooms:e.zooms,opacity:e.opacity,collision:e.collision,allowCollision:e.allowCollision,zIndex:e.zIndex});r.on("click",d=>{}),r.setSource(n),r.setStyle({icon:{image:e.icon.image,size:e.icon.size,clipOrigin:e.icon.clipOrigin,offset:e.icon.offset,anchor:e.icon.anchor},text:{content:(d,i)=>i.properties[e.text.content],zooms:e.text.zooms,offset:e.text.offset,direction:e.text.direction,style:{fontSize:e.text.style.fontSize,fillColor:e.text.style.fillColor,strokeColor:e.text.style.strokeColor,strokeWidth:e.text.style.strokeWidth,padding:e.text.style.padding,backgroundColor:e.text.style.backgroundColor,borderColor:e.text.style.borderColor,borderWidth:e.text.style.borderWidth,fold:e.text.style.fold,fontWeight:e.text.style.fontWeight}}}),c.value.add(r)}catch{}},C=a=>{const e={type:"FeatureCollection",features:[]};return a.forEach((t,n)=>{const r={type:"Feature",id:U.nanoid(),properties:{name:t.name||"",_draw_type:"point"},geometry:{type:"Point",coordinates:t.value}};e.features.push(r)}),e},N=a=>{o.value.setFeatures(a.config.features),o.value.setStatus({dragEnable:a.config.dragEnable,zoomEnable:a.config.zoomEnable,rotateEnable:a.config.rotateEnable}),a.config.plugin.scale.visible?f.value.show():f.value.hide(),a.config.plugin.toolBar.visible?m.value.show():m.value.hide(),a.config.plugin.controlBar.visible?g.value.show():g.value.hide()},q=()=>{o.value.clearMap(),c.value.clear(),z(v.value)},T=a=>{o.value.setMapStyle(a.config.mapStyle)},F=a=>{o.value.setZoom(a.config.zoom,!1,200)},G=a=>{o.value.setCenter(a.config.center,!1,200)},E=()=>{o.value&&(o.value.clearMap(),o.value.destroy(),o.value=null,c.value&&(c.value.clear(),c.value.destroy(),c.value=null))};return l.onMounted(()=>{setTimeout(()=>{w(s.basicOption)},0)}),l.onUnmounted(()=>E()),{initAMap2d:w,updateAMapStyle:T,updateAMapConfig:N,updateAMapComponents:q,updateAMapZoom:F,updateAMapCenter:G,amap2d:o,loading:S,AMapPrototype:v}},{initAMap2d:b,updateAMapStyle:A,updateAMapConfig:h,updateAMapComponents:B,updateAMapZoom:_,updateAMapCenter:W,loading:L}=M();return l.watch(()=>s.basicOption.config,()=>{h(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.config.zoom,()=>{_(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.config.center,()=>{W(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.widgets,()=>{B()},{deep:!0}),l.watch(()=>s.basicOption.config.mapStyle,()=>{A(s.basicOption)},{deep:!0}),l.watch(()=>s.basicOption.basic,()=>{b(s.basicOption)},{deep:!0}),l.watch(()=>s.sources,()=>{b(s.basicOption)},{deep:!0}),k({refresh:()=>b(s.basicOption),refreshView:()=>h(s.basicOption),refreshData:()=>h(s.basicOption)}),(o,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["amap-2d-wrap",{show:l.unref(L)}])},X,2))}});exports.default=ee;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-9af4ba07"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-f5bf46c3"]]);exports.default=u;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),V=require("@amap/amap-jsapi-loader"),U=require("axios"),K=require("nanoid"),k=require("lodash"),Q=require("../../commons/core/datasource/index.js"),X=g=>(o.pushScopeId("data-v-9af4ba07"),g=g(),o.popScopeId(),g),Y=X(()=>o.createElementVNode("div",{id:"zerov-amap-3d",class:"zerov-amap-container"},null,-1)),ee=[Y],ae=o.defineComponent({name:"zv-scene-amap3d"}),te=o.defineComponent({...ae,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["amap3d-scene-success","amap3d-scene-zoomstart","amap3d-scene-zoomend","amap3d-scene-mapclick","amap3d-scene-dragstart","amap3d-scene-dragging","amap3d-scene-dragend","amap3d-scene-pulseLinkLayer"],setup(g,{expose:M,emit:E}){const s=g,u=E,L=()=>{const n=o.shallowRef(),d=o.shallowRef(),S=o.ref(!1),f=o.ref(),v=o.ref(),h=o.ref(),p=o.ref(),z=a=>{O(),window._AMapSecurityConfig={securityJsCode:a.basic.securityJsCode},V.load({key:a.basic.key,version:"2.0",Loca:{version:"2.0.0"},plugins:["AMap.ControlBar","AMap.ToolBar","AMap.Scale","AMap.HeatMap","AMap.GeoJSON"]}).then(e=>{p.value=e,n.value=new e.Map("zerov-amap-3d",{rotateEnable:a.config.rotateEnable,pitchEnable:a.config.pitchEnable,resizeEnable:a.config.resizeEnable,zoomEnable:a.config.zoomEnable,dragEnable:a.config.dragEnable,zoom:a.config.zoom,viewMode:"3D",zooms:a.config.zooms,center:a.config.center,mapStyle:a.config.mapStyle,features:a.config.features,pitch:a.config.pitch,rotation:a.config.rotation,wallColor:a.config.floors.wallColor,roofColor:a.config.floors.roofColor,skyColor:a.config.skyColor}),d.value=new window.Loca.Container({map:n.value}),h.value=new p.value.Scale({visible:a.config.plugin.scale.visible,position:{left:a.config.plugin.scale.position.left+"px",bottom:a.config.plugin.scale.position.bottom+"px"}}),n.value.addControl(h.value),f.value=new e.ControlBar({visible:a.config.plugin.controlBar.visible,showControlButton:a.config.plugin.controlBar.showControlButton,position:{right:a.config.plugin.controlBar.position.right+"px",top:a.config.plugin.controlBar.position.top+"px"}}),n.value.addControl(f.value),v.value=new e.ToolBar({visible:a.config.plugin.toolBar.visible,position:{left:a.config.plugin.toolBar.position.left+"px",top:a.config.plugin.toolBar.position.top+"px"}}),n.value.addControl(v.value),C(e),n.value.on("complete",()=>{setTimeout(()=>{S.value=!0,u("amap3d-scene-success"),window.SHJParseEvent(s.useEvents,"amap3d-scene-success",null)},666)}),n.value.on("zoomstart",()=>{u("amap3d-scene-zoomstart"),window.SHJParseEvent(s.useEvents,"amap3d-scene-zoomstart",null)}),n.value.on("zoomend",()=>{u("amap3d-scene-zoomend"),window.SHJParseEvent(s.useEvents,"amap3d-scene-zoomend",null)}),n.value.on("click",t=>{u("amap3d-scene-mapclick",t.lnglat),window.SHJParseEvent(s.useEvents,"amap3d-scene-mapclick",t.lnglat)}),n.value.on("dragstart",t=>{u("amap3d-scene-dragstart",t.lnglat),window.SHJParseEvent(s.useEvents,"amap3d-scene-dragstart",t.lnglat)}),n.value.on("dragend",t=>{u("amap3d-scene-dragend",t.lnglat),window.SHJParseEvent(s.useEvents,"amap3d-scene-dragend",t.lnglat)})}).catch(e=>{})},C=k.debounce(a=>{s.sources&&s.sources.length>0?Q.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{const t=s.basicOption.widgets.find(l=>l._sourceId===e.id);t&&t.type==="heatmap"&&_(window.Loca,t,y(e.data[0].data,"Point")),t&&t.type==="dotlayers"&&$(window.Loca,t,y(e.data[0].data,"Point")),t&&t.type==="scatter"&&H(window.Loca,t,y(e.data[0].data,"Point")),t&&t.type==="labelsLayer"&&D(window.Loca,t,y(e.data[0].data,"Point")),t&&t.type==="signagePoints"&&F(window.Loca,t,y(e.data[0].data,"Point")),t&&t.type==="pulseLinkLayer"&&N(window.Loca,t,y(e.data[0].data,"LineString"))}catch{}s.basicOption.widgets.filter(t=>t.type==="boundary").forEach(t=>{x(a,t)})}}):s.basicOption.widgets.filter(e=>e.type==="boundary").forEach(e=>{x(a,e)})},200),J=a=>{const t=a.slice(a.indexOf("(")+1,a.lastIndexOf(")")).split(",").map(r=>r.trim()),l={};for(let r=1;r<t.length;r++){const i=t[r].split(" "),c=i[0],b=parseFloat(i[1])/100,j=Math.round(b*100)/100;l[j]=c}return l},_=(a,e,t)=>{try{const l=new a.HeatMapLayer({zIndex:10,opacity:e.opacity,visible:!0,zooms:[2,22]}),r=new a.GeoJSONSource({data:t});l.setSource(r,{radius:e.style.radius,unit:e.style.unit,height:e.style.height,opacity:e.style.opacity,gradient:J(e.style.gradient),value:function(i,c){return c.coordinates[2]||0},min:e.style.min,max:e.style.max,heightBezier:[0,.53,.37,.98]}),d.value.add(l)}catch{}},x=async(a,e)=>{try{const t=await U.get(e.geojson);if(t.status===200){const l=new a.GeoJSON({geoJSON:t.data,getPolygon:function(r,i){const c=new a.Polygon({path:i,zIndex:e.zIndex,fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle});return c.on("mouseover",()=>{c.setOptions({fillOpacity:e.mouseover.fillOpacity,fillColor:e.mouseover.fillColor,strokeOpacity:e.mouseover.strokeOpacity,strokeColor:e.mouseover.strokeColor,strokeStyle:e.mouseover.strokeStyle,strokeWeight:e.mouseover.strokeWeight})}),c.on("mouseout",()=>{c.setOptions({fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle})}),c}});n.value.add(l)}}catch{}},$=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.PointLayer({zIndex:e.zIndex,blend:e.blend,visible:e.visible,opacity:e.opacity}),i={radius:e.style.radius,unit:e.style.unit,color:e.style.color,borderWidth:e.style.borderWidth,blurWidth:e.style.blurWidth,borderColor:e.style.borderColor};r.setSource(l),r.setStyle(i),d.value.add(r),r.addAnimate({key:e.animate.key,value:e.animate.value,duration:e.animate.duration,easing:e.animate.easing,transform:e.animate.transform,random:e.animate.random,delay:e.animate.delay,yoyo:e.animate.yoyo,repeat:e.animate.repeat})}catch{}},H=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.ScatterLayer({loca:d.value,zIndex:e.zIndex,opacity:e.opacity,visible:e.visible,zooms:e.zooms});r.setSource(l),r.setStyle({unit:e.style.unit,size:e.style.size,borderWidth:e.style.borderWidth,texture:e.style.texture,duration:e.style.duration,animate:e.style.animate}),d.value.animate.start()}catch{}},D=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.LabelsLayer({eventSupport:!0,visible:e.visible,zooms:e.zooms,opacity:e.opacity,collision:e.collision,allowCollision:e.allowCollision,zIndex:e.zIndex});r.on("click",i=>{}),r.setSource(l),r.setStyle({icon:{image:e.icon.image,size:e.icon.size,clipOrigin:e.icon.clipOrigin,offset:e.icon.offset,anchor:e.icon.anchor},text:{content:(i,c)=>c.properties[e.text.content],zooms:e.text.zooms,offset:e.text.offset,direction:e.text.direction,style:{fontSize:e.text.style.fontSize,fillColor:e.text.style.fillColor,strokeColor:e.text.style.strokeColor,strokeWidth:e.text.style.strokeWidth,padding:e.text.style.padding,backgroundColor:e.text.style.backgroundColor,borderColor:e.text.style.borderColor,borderWidth:e.text.style.borderWidth,fold:e.text.style.fold,fontWeight:e.text.style.fontWeight}}}),d.value.add(r)}catch{}},F=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.ZMarkerLayer({zIndex:e.signs.zIndex,visible:e.signs.visible,zooms:e.signs.zooms,opacity:e.signs.opacity,depth:!1});r.setSource(l),r.setStyle({content:(c,b)=>`<div style="
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),U=require("@amap/amap-jsapi-loader"),K=require("axios"),Q=require("nanoid"),S=require("lodash"),X=require("../../commons/plugins/datasource/index.js"),u=require("../../commons/plugins/event/index.js"),Y=m=>(o.pushScopeId("data-v-f5bf46c3"),m=m(),o.popScopeId(),m),ee=Y(()=>o.createElementVNode("div",{id:"zerov-amap-3d",class:"zerov-amap-container"},null,-1)),ae=[ee],te=o.defineComponent({name:"zv-scene-amap3d"}),se=o.defineComponent({...te,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["amap3d-scene-success","amap3d-scene-zoomstart","amap3d-scene-zoomend","amap3d-scene-mapclick","amap3d-scene-dragstart","amap3d-scene-dragging","amap3d-scene-dragend","amap3d-scene-pulseLinkLayer"],setup(m,{expose:M,emit:L}){const s=m,y=L;u.SHJParseEvent.parseEvents(s.useEvents,"on-page-loaded",null);const P=()=>{const n=o.shallowRef(),d=o.shallowRef(),z=o.ref(!1),v=o.ref(),h=o.ref(),p=o.ref(),b=o.ref(),C=a=>{E(),window._AMapSecurityConfig={securityJsCode:a.basic.securityJsCode},U.load({key:a.basic.key,version:"2.0",Loca:{version:"2.0.0"},plugins:["AMap.ControlBar","AMap.ToolBar","AMap.Scale","AMap.HeatMap","AMap.GeoJSON"]}).then(e=>{b.value=e,n.value=new e.Map("zerov-amap-3d",{rotateEnable:a.config.rotateEnable,pitchEnable:a.config.pitchEnable,resizeEnable:a.config.resizeEnable,zoomEnable:a.config.zoomEnable,dragEnable:a.config.dragEnable,zoom:a.config.zoom,viewMode:"3D",zooms:a.config.zooms,center:a.config.center,mapStyle:a.config.mapStyle,features:a.config.features,pitch:a.config.pitch,rotation:a.config.rotation,wallColor:a.config.floors.wallColor,roofColor:a.config.floors.roofColor,skyColor:a.config.skyColor}),d.value=new window.Loca.Container({map:n.value}),p.value=new b.value.Scale({visible:a.config.plugin.scale.visible,position:{left:a.config.plugin.scale.position.left+"px",bottom:a.config.plugin.scale.position.bottom+"px"}}),n.value.addControl(p.value),v.value=new e.ControlBar({visible:a.config.plugin.controlBar.visible,showControlButton:a.config.plugin.controlBar.showControlButton,position:{right:a.config.plugin.controlBar.position.right+"px",top:a.config.plugin.controlBar.position.top+"px"}}),n.value.addControl(v.value),h.value=new e.ToolBar({visible:a.config.plugin.toolBar.visible,position:{left:a.config.plugin.toolBar.position.left+"px",top:a.config.plugin.toolBar.position.top+"px"}}),n.value.addControl(h.value),x(e),n.value.on("complete",()=>{setTimeout(()=>{z.value=!0,y("amap3d-scene-success"),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-success",null)},666)}),n.value.on("zoomstart",()=>{y("amap3d-scene-zoomstart"),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-zoomstart",null)}),n.value.on("zoomend",()=>{y("amap3d-scene-zoomend"),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-zoomend",null)}),n.value.on("click",t=>{y("amap3d-scene-mapclick",t.lnglat),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-mapclick",t.lnglat)}),n.value.on("dragstart",t=>{y("amap3d-scene-dragstart",t.lnglat),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-dragstart",t.lnglat)}),n.value.on("dragend",t=>{y("amap3d-scene-dragend",t.lnglat),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-dragend",t.lnglat)})}).catch(e=>{})},x=S.debounce(a=>{s.sources&&s.sources.length>0?X.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{const t=s.basicOption.widgets.find(l=>l._sourceId===e.id);t&&t.type==="heatmap"&&$(window.Loca,t,g(e.data[0].data,"Point")),t&&t.type==="dotlayers"&&H(window.Loca,t,g(e.data[0].data,"Point")),t&&t.type==="scatter"&&D(window.Loca,t,g(e.data[0].data,"Point")),t&&t.type==="labelsLayer"&&F(window.Loca,t,g(e.data[0].data,"Point")),t&&t.type==="signagePoints"&&N(window.Loca,t,g(e.data[0].data,"Point")),t&&t.type==="pulseLinkLayer"&&q(window.Loca,t,g(e.data[0].data,"LineString"))}catch{}s.basicOption.widgets.filter(t=>t.type==="boundary").forEach(t=>{O(a,t)})}}):s.basicOption.widgets.filter(e=>e.type==="boundary").forEach(e=>{O(a,e)})},200),_=a=>{const t=a.slice(a.indexOf("(")+1,a.lastIndexOf(")")).split(",").map(r=>r.trim()),l={};for(let r=1;r<t.length;r++){const i=t[r].split(" "),c=i[0],k=parseFloat(i[1])/100,V=Math.round(k*100)/100;l[V]=c}return l},$=(a,e,t)=>{try{const l=new a.HeatMapLayer({zIndex:10,opacity:e.opacity,visible:!0,zooms:[2,22]}),r=new a.GeoJSONSource({data:t});l.setSource(r,{radius:e.style.radius,unit:e.style.unit,height:e.style.height,opacity:e.style.opacity,gradient:_(e.style.gradient),value:function(i,c){return c.coordinates[2]||0},min:e.style.min,max:e.style.max,heightBezier:[0,.53,.37,.98]}),d.value.add(l)}catch{}},O=async(a,e)=>{try{const t=await K.get(e.geojson);if(t.status===200){const l=new a.GeoJSON({geoJSON:t.data,getPolygon:function(r,i){const c=new a.Polygon({path:i,zIndex:e.zIndex,fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle});return c.on("mouseover",()=>{c.setOptions({fillOpacity:e.mouseover.fillOpacity,fillColor:e.mouseover.fillColor,strokeOpacity:e.mouseover.strokeOpacity,strokeColor:e.mouseover.strokeColor,strokeStyle:e.mouseover.strokeStyle,strokeWeight:e.mouseover.strokeWeight})}),c.on("mouseout",()=>{c.setOptions({fillColor:e.style.fillColor,strokeOpacity:e.style.strokeOpacity,fillOpacity:e.style.fillOpacity,strokeColor:e.style.strokeColor,strokeWeight:e.style.strokeWeight,strokeStyle:e.style.strokeStyle})}),c}});n.value.add(l)}}catch{}},H=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.PointLayer({zIndex:e.zIndex,blend:e.blend,visible:e.visible,opacity:e.opacity}),i={radius:e.style.radius,unit:e.style.unit,color:e.style.color,borderWidth:e.style.borderWidth,blurWidth:e.style.blurWidth,borderColor:e.style.borderColor};r.setSource(l),r.setStyle(i),d.value.add(r),r.addAnimate({key:e.animate.key,value:e.animate.value,duration:e.animate.duration,easing:e.animate.easing,transform:e.animate.transform,random:e.animate.random,delay:e.animate.delay,yoyo:e.animate.yoyo,repeat:e.animate.repeat})}catch{}},D=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.ScatterLayer({loca:d.value,zIndex:e.zIndex,opacity:e.opacity,visible:e.visible,zooms:e.zooms});r.setSource(l),r.setStyle({unit:e.style.unit,size:e.style.size,borderWidth:e.style.borderWidth,texture:e.style.texture,duration:e.style.duration,animate:e.style.animate}),d.value.animate.start()}catch{}},F=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.LabelsLayer({eventSupport:!0,visible:e.visible,zooms:e.zooms,opacity:e.opacity,collision:e.collision,allowCollision:e.allowCollision,zIndex:e.zIndex});r.on("click",i=>{}),r.setSource(l),r.setStyle({icon:{image:e.icon.image,size:e.icon.size,clipOrigin:e.icon.clipOrigin,offset:e.icon.offset,anchor:e.icon.anchor},text:{content:(i,c)=>c.properties[e.text.content],zooms:e.text.zooms,offset:e.text.offset,direction:e.text.direction,style:{fontSize:e.text.style.fontSize,fillColor:e.text.style.fillColor,strokeColor:e.text.style.strokeColor,strokeWidth:e.text.style.strokeWidth,padding:e.text.style.padding,backgroundColor:e.text.style.backgroundColor,borderColor:e.text.style.borderColor,borderWidth:e.text.style.borderWidth,fold:e.text.style.fold,fontWeight:e.text.style.fontWeight}}}),d.value.add(r)}catch{}},N=(a,e,t)=>{try{const l=new a.GeoJSONSource({data:t}),r=new a.ZMarkerLayer({zIndex:e.signs.zIndex,visible:e.signs.visible,zooms:e.signs.zooms,opacity:e.signs.opacity,depth:!1});r.setSource(l),r.setStyle({content:(c,k)=>`<div style="
2
2
  width: ${e.signs.style.width}px;
3
3
  height: ${e.signs.style.height+148}px;
4
4
  ">
@@ -14,12 +14,12 @@
14
14
  color:${e.signs.style.fillColor};
15
15
  margin:0;
16
16
  ">
17
- ${b.properties.name}
17
+ ${k.properties.name}
18
18
  </p>
19
- </div>`,unit:e.signs.style.unit,rotation:e.signs.style.rotation,alwaysFront:e.signs.style.alwaysFront,size:[e.signs.style.width,e.signs.style.height+148],altitude:e.signs.style.altitude}),d.value.add(r);const i=new a.ZMarkerLayer({zIndex:e.landmark.zIndex,visible:e.landmark.visible,zooms:e.landmark.zooms,opacity:e.landmark.opacity,depth:!1});i.setSource(l),i.setStyle({content:(c,b)=>`<div style="
19
+ </div>`,unit:e.signs.style.unit,rotation:e.signs.style.rotation,alwaysFront:e.signs.style.alwaysFront,size:[e.signs.style.width,e.signs.style.height+148],altitude:e.signs.style.altitude}),d.value.add(r);const i=new a.ZMarkerLayer({zIndex:e.landmark.zIndex,visible:e.landmark.visible,zooms:e.landmark.zooms,opacity:e.landmark.opacity,depth:!1});i.setSource(l),i.setStyle({content:(c,k)=>`<div style="
20
20
  width: ${e.landmark.style.size[0]}px;
21
21
  height: ${e.landmark.style.size[1]}px;
22
22
  background: url(${e.landmark.style.image});
23
23
  background-size:contain;
24
24
  ">
25
- </div>`,unit:e.landmark.style.unit,rotation:e.landmark.style.rotation,alwaysFront:e.landmark.style.alwaysFront,size:e.landmark.style.size,altitude:e.landmark.style.altitude}),i.addAnimate({key:"altitude",value:[0,1],random:e.landmark.animate.random,duration:e.landmark.animate.duration,transform:e.landmark.animate.transform,delay:e.landmark.animate.delay,yoyo:e.landmark.animate.yoyo,repeat:e.landmark.animate.repeat}),d.value.add(i),d.value.animate.start()}catch{}},N=(a,e,t)=>{const l=new a.PulseLinkLayer({zIndex:e.zIndex,opacity:e.opacity,visible:e.visible,zooms:e.zooms,depth:e.depth}),r=new a.GeoJSONSource({data:t});l.setSource(r),l.setStyle({unit:e.style.unit,dash:[4e4,0,4e4,0],lineWidth:e.style.lineWidth,height:function(i,c){return c.distance/3+e.style.height},smoothSteps:30,speed:function(i,c){return 1e5+Math.random()*e.style.speed},flowLength:e.style.flowLength,lineColors:e.style.lineColors,maxHeightScale:e.style.maxHeightScale,headColor:e.style.headColor,trailColor:e.style.trailColor}),n.value.on("click",i=>{const c=l.queryFeature(i.pixel.toArray());c&&(u("amap3d-scene-pulseLinkLayer",c),window.SHJParseEvent(s.useEvents,"amap3d-scene-pulseLinkLayer",c))}),d.value.add(l),d.value.animate.start()},y=(a,e)=>{const t={type:"FeatureCollection",features:[]};return a.forEach((l,r)=>{const i={type:"Feature",id:K.nanoid(),properties:{type:e==="Point"?e:0,...l},geometry:{type:e,coordinates:l.value}};t.features.push(i)}),t},G=a=>{n.value.setFeatures(a.config.features),n.value.setPitch(a.config.pitch),n.value.setRotation(a.config.rotation),n.value.setStatus({dragEnable:a.config.dragEnable,zoomEnable:a.config.zoomEnable,rotateEnable:a.config.rotateEnable,pitchEnable:a.config.pitchEnable}),a.config.plugin.scale.visible?h.value.show():h.value.hide(),a.config.plugin.toolBar.visible?v.value.show():v.value.hide(),a.config.plugin.controlBar.visible?f.value.show():f.value.hide()},q=()=>{n.value.clearMap(),d.value.clear(),C(p.value)},Z=a=>{n.value.setMapStyle(a.config.mapStyle)},R=a=>{n.value.setZoom(a.config.zoom,!1,200)},T=a=>{n.value.setCenter(a.config.center,!1,200)},O=()=>{n.value&&(n.value.clearMap(),n.value.destroy(),n.value=null,d.value&&(d.value.clear(),d.value.destroy(),d.value=null))};return o.onMounted(()=>{setTimeout(()=>{z(s.basicOption)},0)}),o.onUnmounted(()=>O()),{initAMap3d:z,updateAMapStyle:Z,updateAMapConfig:G,updateAMapComponents:q,updateAMapZoom:R,updateAMapCenter:T,amap3d:n,loading:S,AMapPrototype:p}},{initAMap3d:m,updateAMapStyle:P,updateAMapConfig:w,updateAMapComponents:A,updateAMapZoom:I,updateAMapCenter:B,loading:W}=L();return o.watch(()=>s.basicOption.config,()=>{w(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.config.zoom,()=>{I(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.config.center,()=>{B(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.config.floors,k.debounce(()=>{m(s.basicOption)},300),{deep:!0}),o.watch(()=>s.basicOption.config.skyColor,k.debounce(()=>{m(s.basicOption)},300),{deep:!0}),o.watch(()=>s.basicOption.widgets,()=>{A()},{deep:!0}),o.watch(()=>s.basicOption.config.mapStyle,()=>{P(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.basic,()=>{m(s.basicOption)},{deep:!0}),o.watch(()=>s.sources,()=>{m(s.basicOption)},{deep:!0}),M({refresh:()=>m(s.basicOption),refreshView:()=>w(s.basicOption),refreshData:()=>w(s.basicOption)}),(n,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["amap-3d-wrap",{show:o.unref(W)}])},ee,2))}});exports.default=te;
25
+ </div>`,unit:e.landmark.style.unit,rotation:e.landmark.style.rotation,alwaysFront:e.landmark.style.alwaysFront,size:e.landmark.style.size,altitude:e.landmark.style.altitude}),i.addAnimate({key:"altitude",value:[0,1],random:e.landmark.animate.random,duration:e.landmark.animate.duration,transform:e.landmark.animate.transform,delay:e.landmark.animate.delay,yoyo:e.landmark.animate.yoyo,repeat:e.landmark.animate.repeat}),d.value.add(i),d.value.animate.start()}catch{}},q=(a,e,t)=>{const l=new a.PulseLinkLayer({zIndex:e.zIndex,opacity:e.opacity,visible:e.visible,zooms:e.zooms,depth:e.depth}),r=new a.GeoJSONSource({data:t});l.setSource(r),l.setStyle({unit:e.style.unit,dash:[4e4,0,4e4,0],lineWidth:e.style.lineWidth,height:function(i,c){return c.distance/3+e.style.height},smoothSteps:30,speed:function(i,c){return 1e5+Math.random()*e.style.speed},flowLength:e.style.flowLength,lineColors:e.style.lineColors,maxHeightScale:e.style.maxHeightScale,headColor:e.style.headColor,trailColor:e.style.trailColor}),n.value.on("click",i=>{const c=l.queryFeature(i.pixel.toArray());c&&(y("amap3d-scene-pulseLinkLayer",c),u.SHJParseEvent.parseEvents(s.useEvents,"amap3d-scene-pulseLinkLayer",c))}),d.value.add(l),d.value.animate.start()},g=(a,e)=>{const t={type:"FeatureCollection",features:[]};return a.forEach((l,r)=>{const i={type:"Feature",id:Q.nanoid(),properties:{type:e==="Point"?e:0,...l},geometry:{type:e,coordinates:l.value}};t.features.push(i)}),t},G=a=>{n.value.setFeatures(a.config.features),n.value.setPitch(a.config.pitch),n.value.setRotation(a.config.rotation),n.value.setStatus({dragEnable:a.config.dragEnable,zoomEnable:a.config.zoomEnable,rotateEnable:a.config.rotateEnable,pitchEnable:a.config.pitchEnable}),a.config.plugin.scale.visible?p.value.show():p.value.hide(),a.config.plugin.toolBar.visible?h.value.show():h.value.hide(),a.config.plugin.controlBar.visible?v.value.show():v.value.hide()},Z=()=>{n.value.clearMap(),d.value.clear(),x(b.value)},R=a=>{n.value.setMapStyle(a.config.mapStyle)},T=a=>{n.value.setZoom(a.config.zoom,!1,200)},j=a=>{n.value.setCenter(a.config.center,!1,200)},E=()=>{n.value&&(n.value.clearMap(),n.value.destroy(),n.value=null,d.value&&(d.value.clear(),d.value.destroy(),d.value=null))};return o.onMounted(()=>{setTimeout(()=>{C(s.basicOption)},0)}),o.onUnmounted(()=>E()),{initAMap3d:C,updateAMapStyle:R,updateAMapConfig:G,updateAMapComponents:Z,updateAMapZoom:T,updateAMapCenter:j,amap3d:n,loading:z,AMapPrototype:b}},{initAMap3d:f,updateAMapStyle:A,updateAMapConfig:w,updateAMapComponents:I,updateAMapZoom:B,updateAMapCenter:W,loading:J}=P();return o.watch(()=>s.basicOption.config,()=>{w(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.config.zoom,()=>{B(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.config.center,()=>{W(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.config.floors,S.debounce(()=>{f(s.basicOption)},300),{deep:!0}),o.watch(()=>s.basicOption.config.skyColor,S.debounce(()=>{f(s.basicOption)},300),{deep:!0}),o.watch(()=>s.basicOption.widgets,()=>{I()},{deep:!0}),o.watch(()=>s.basicOption.config.mapStyle,()=>{A(s.basicOption)},{deep:!0}),o.watch(()=>s.basicOption.basic,()=>{f(s.basicOption)},{deep:!0}),o.watch(()=>s.sources,()=>{f(s.basicOption)},{deep:!0}),M({refresh:()=>f(s.basicOption),refreshView:()=>w(s.basicOption),refreshData:()=>w(s.basicOption)}),(n,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["amap-3d-wrap",{show:o.unref(J)}])},ae,2))}});exports.default=se;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneDefault=e;exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-a7b7a26c"]]);exports.default=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),s=require("../../commons/plugins/event/index.js"),l=n.defineComponent({name:"zv-scene-default"}),d=n.defineComponent({...l,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},setup(c){const r=c;s.SHJParseEvent.parseEvents(r.useEvents,"on-page-loaded",null);const a=()=>{try{const e=r.basicOption,o=e.background.image,u=e.background.color,t=e.background.size;return{background:o?`url('${o}')`:u,backgroundSize:t,backgroundPosition:t==="auto"?"0px 0px":"center",backgroundRepeat:t==="auto"?"repeat":"no-repeat"}}catch{return{}}};return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:"shj-default",style:n.normalizeStyle(a())},null,4))}});exports.default=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-55d911a2"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-acc89c32"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash"),C=require("gsap"),D=require("@vueuse/core"),J=require("./map3d/map.js"),M=require("./watch.js");require("three");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");const W=require("./map3d/mini3d/utils/CreateHistory.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");const T=require("../../commons/core/datasource/index.js"),v=require("../../commons/utils/json2css.js"),R={class:"value"},V=["onClick"],N={key:3,class:"fps"},j=o.defineComponent({name:"zv-scene-map3d"}),$=o.defineComponent({...j,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["on-loaded","on-animated","on-drill-down","on-area-mouseover","on-area-mouseout","on-area-click","on-bar-click","on-scatter-click","on-flyline-click","on-return","on-data-change"],setup(B,{expose:O,emit:H}){const s=H,a=B,n=o.ref(),m=o.ref(!1),h=o.ref(!1),f="zerov-map3d-scene",b="zerov-map3d-scene-wrap",r=new W.createHistory,p=o.ref(!1),g=(e=!0)=>{n.value.cleanAllBar(),n.value.cleanAllScatter(),n.value.cleanAllFlyLine(),n.value.createAllRegionalLevel(),a.sources&&a.sources.length>0&&T.SHJDatasourceV2.parse({tId:a.uuid,sources:a.sources,callback:l=>{try{const t=a.basicOption.widgets&&a.basicOption.widgets.find(d=>d._sourceId===l.id);t&&t.type==="bar"&&n.value.createBar(t,l.data[0].data,!0,e),t&&t.type==="scatter"&&n.value.createScatter(t,l.data[0].data,!0,e),t&&t.type==="flyline"&&n.value.createFlyLine(t,l.data[0].data,!0,e),t&&t.type==="regionalLevel"&&n.value.createRegionalLevel(t,l.data[0].data,!0,e),e&&(n.value.createBarTimeLine(),n.value.createScatterTimeLine(),n.value.createFlyLineTimeLine(),n.value.createRegionalLevelTimeLine()),s("on-data-change",l),window.SHJParseEvent(a.useEvents,"on-data-change",l)}catch{s("on-data-change",null),window.SHJParseEvent(a.useEvents,"on-data-change",null)}}})},q=()=>{document.getElementById(f)&&document.getElementById(b).removeChild(document.getElementById(f));const e=document.createElement("canvas");e.id=f,e.className="zerov-map-3d",e.style.width="100%",e.style.height="100%",document.getElementById(b).appendChild(e)},y=e=>(m.value=!1,h.value=!1,n.value&&(n.value.destroy(),n.value=null),q(),new J.World(document.getElementById(f),{geoProjectionCenter:[108.55,36.32]},e,{onAreaMouseover:t=>{s("on-area-mouseover",t),window.SHJParseEvent(a.useEvents,"on-area-mouseover",t)},onAreaMouseout:t=>{s("on-area-mouseout",t),window.SHJParseEvent(a.useEvents,"on-area-mouseout",t)},onLoadChild:t=>{if(s("on-area-click",t),window.SHJParseEvent(a.useEvents,"on-area-click",t),t.adcode!==r.present&&a.basicOption.scene.isDrilling&&a.basicOption.scene.defaultMapAdcode!==1){s("on-drill-down",t),window.SHJParseEvent(a.useEvents,"on-drill-down",t);const d=i.cloneDeep(a.basicOption);d.scene.defaultMapAdcode=t.adcode,n.value=y(d),r.push(t.adcode),r.past.length<=0?p.value=!1:p.value=!0}},onMapSuccess:()=>{m.value=!0,s("on-loaded"),window.SHJParseEvent(a.useEvents,"on-loaded",null)},onMapAnimationSuccess:()=>{g(),h.value=!0,s("on-animated"),window.SHJParseEvent(a.useEvents,"on-animated",null)},onClickBar:t=>{s("on-bar-click",t),window.SHJParseEvent(a.useEvents,"on-bar-click",t)},onClickScatter:t=>{s("on-scatter-click",t),window.SHJParseEvent(a.useEvents,"on-scatter-click",t)},onClickFlyline:t=>{s("on-flyline-click",t),window.SHJParseEvent(a.useEvents,"on-flyline-click",t)}}));o.onMounted(()=>{setTimeout(()=>{n.value=y(a.basicOption),r.push(a.basicOption.scene.defaultMapAdcode),M.initWatch(a,n,y,g,L)},0)}),o.onBeforeUnmount(()=>{n.value&&n.value.destroy()});const S=()=>{s("on-return",{parentAdcode:r.past[r.past.length-1],adcode:r.present}),window.SHJParseEvent(a.useEvents,"on-return",{parentAdcode:r.past[r.past.length-1],adcode:r.present}),r.undo();const e=i.cloneDeep(a.basicOption);e.scene.defaultMapAdcode=r.present,n.value=y(e),r.past.length<=0?p.value=!1:p.value=!0},L=()=>{r.empty(),r.push(a.basicOption.scene.defaultMapAdcode),n.value=y(a.basicOption),r.past.length<=0?p.value=!1:p.value=!0},I=(e,l,t)=>{C.timeline().add(C.to(n.value.camera.instance.position,{duration:2,delay:0,x:e,y:l,z:t,ease:"circ.out"}))};O({refresh:()=>g(),refreshView:()=>g(),refreshData:()=>g(),goBack:()=>S(),setCameraPosition:(e,l,t)=>I(e,l,t)});const z=D.useFps(),w=o.ref(),F=e=>{if(w.value&&e){v.autoInstallFont(a.basicOption.backButtonCss.fontFamily);const l=`url(${e.backgroundImage})`;return{...v.jsonToCssStyle(e),left:a.basicOption.backButtonLeft+"%",bottom:a.basicOption.backButtonBottom+"%","background-image":l}}return{}},u=o.ref(i.cloneDeep(a.basicOption.widgets)),c=o.computed(()=>{try{const e=u.value.filter(l=>l.type==="regionalLevel");return e.length>0?(v.autoInstallFont(e[0].labelStyle.fontFamily),e[0].isHide?null:e[0]):null}catch{return null}});o.watch(()=>i.cloneDeep(a.basicOption.widgets),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&(u.value=i.cloneDeep(a.basicOption.widgets))}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="bar")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createBar(t,void 0,!1)})}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="scatter")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createScatter(t,void 0,!1)})}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="flyline")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createFlyLine(t,void 0,!1)})}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="regionalLevel")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createRegionalLevel(t,void 0,!1)})}catch{}},{deep:!0});const P=e=>{try{e.isHide===void 0?e.isHide=!0:e.isHide=!e.isHide}catch{}},A=()=>{try{const e=u.value.every(l=>!l.isHide);u.value.forEach(l=>l.isHide=e)}catch{}},k=e=>{v.autoInstallFont(a.basicOption.widgetControlStyle.fontFamily);const l=`url(${e.backgroundImage})`,t=`url(${E(e.hover.backgroundImage)})`,d=`url(${E(e.active.backgroundImage)})`;return{...v.jsonToCssStyle(e),...v.jsonToCssStyle(e.hover,"hover"),...v.jsonToCssStyle(e.active,"active"),"background-image":l,"--hover-background-image":t,"--active-background-image":d}},E=e=>!e.startsWith("http")&&!e.startsWith("//")?"../"+e:e;return(e,l)=>(o.openBlock(),o.createElementBlock("div",{id:"zerov-map3d-scene-wrap",class:o.normalizeClass(["map-3d-wrap",{show:m.value}])},[h.value&&p.value&&e.basicOption.backButton?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"buttonRef",ref:w,class:"return-btn",style:o.normalizeStyle(F(e.basicOption.backButtonCss)),onClick:S}," 返回上一级 ",4)):o.createCommentVNode("",!0),c.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"regional-level",style:o.normalizeStyle({left:c.value.labelStyle.left+"%",top:c.value.labelStyle.top+"%",flexDirection:c.value.labelStyle.direction,gap:c.value.labelStyle.gap+"px",fontSize:c.value.labelStyle.fontSize+"px",fontFamily:c.value.labelStyle.fontFamily,fontStyle:c.value.labelStyle.fontStyle,color:c.value.labelStyle.color,"--color-width":c.value.labelStyle.colorStyle.width+"px","--color-height":c.value.labelStyle.colorStyle.height+"px","--color-borderRadius":c.value.labelStyle.colorStyle.borderRadius+"px"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value.rules,(t,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"item"},[o.createElementVNode("div",{class:"color",style:o.normalizeStyle({backgroundColor:t.color})},null,4),o.createElementVNode("span",R,o.toDisplayString(t.label),1)]))),128))],4)):o.createCommentVNode("",!0),e.basicOption.widgets.length>0&&e.basicOption.widgetControlStyle&&e.basicOption.widgetControlStyle.show?(o.openBlock(),o.createElementBlock("div",{key:2,class:"widget-control",style:o.normalizeStyle({left:e.basicOption.widgetControlStyle.left+"%",top:e.basicOption.widgetControlStyle.top+"%",flexDirection:e.basicOption.widgetControlStyle.direction,gap:e.basicOption.widgetControlStyle.gap+"px","--widget-width":e.basicOption.widgetControlStyle.width+"px","--widget-height":e.basicOption.widgetControlStyle.height+"px"})},[o.createElementVNode("div",{class:o.normalizeClass(["control-button",{active:u.value.every(t=>!t.isHide)}]),style:o.normalizeStyle(k(e.basicOption.widgetControlStyle)),onClick:A},o.toDisplayString(u.value.every(t=>!t.isHide)?"隐藏":"显示")+"/全部 ",7),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,t=>(o.openBlock(),o.createElementBlock("div",{key:t.id,class:o.normalizeClass(["control-button",{active:!t.isHide}]),style:o.normalizeStyle(k(e.basicOption.widgetControlStyle)),onClick:d=>P(t)},o.toDisplayString(t.name||"-"),15,V))),128))],4)):o.createCommentVNode("",!0),e.basicOption.debugger?(o.openBlock(),o.createElementBlock("div",N," fps:"+o.toDisplayString(o.unref(z)),1)):o.createCommentVNode("",!0)],2))}});exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),i=require("lodash"),B=require("gsap"),D=require("@vueuse/core"),M=require("./map3d/map.js"),W=require("./watch.js");require("three");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");const T=require("./map3d/mini3d/utils/CreateHistory.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");const R=require("../../commons/plugins/datasource/index.js"),g=require("../../commons/utils/json2css.js"),c=require("../../commons/plugins/event/index.js"),V={class:"value"},N=["onClick"],j={key:3,class:"fps"},$=a.defineComponent({name:"zv-scene-map3d"}),_=a.defineComponent({...$,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["on-loaded","on-animated","on-drill-down","on-area-mouseover","on-area-mouseout","on-area-click","on-bar-click","on-scatter-click","on-flyline-click","on-return","on-data-change"],setup(O,{expose:H,emit:q}){const l=O,u=q;c.SHJParseEvent.parseEvents(l.useEvents,"on-page-loaded",null);const n=a.ref(),h=a.ref(!1),b=a.ref(!1),m="zerov-map3d-scene",S="zerov-map3d-scene-wrap",r=new T.createHistory,v=a.ref(!1),y=(e=!0)=>{n.value.cleanAllBar(),n.value.cleanAllScatter(),n.value.cleanAllFlyLine(),n.value.createAllRegionalLevel(),l.sources&&l.sources.length>0&&R.SHJDatasourceV2.parse({tId:l.uuid,sources:l.sources,callback:o=>{try{const t=l.basicOption.widgets&&l.basicOption.widgets.find(p=>p._sourceId===o.id);t&&t.type==="bar"&&n.value.createBar(t,o.data[0].data,!0,e),t&&t.type==="scatter"&&n.value.createScatter(t,o.data[0].data,!0,e),t&&t.type==="flyline"&&n.value.createFlyLine(t,o.data[0].data,!0,e),t&&t.type==="regionalLevel"&&n.value.createRegionalLevel(t,o.data[0].data,!0,e),e&&(n.value.createBarTimeLine(),n.value.createScatterTimeLine(),n.value.createFlyLineTimeLine(),n.value.createRegionalLevelTimeLine()),u("on-data-change",o),c.SHJParseEvent.parseEvents(l.useEvents,"on-data-change",o)}catch{u("on-data-change",null),c.SHJParseEvent.parseEvents(l.useEvents,"on-data-change",null)}}})},L=()=>{document.getElementById(m)&&document.getElementById(S).removeChild(document.getElementById(m));const e=document.createElement("canvas");e.id=m,e.className="zerov-map-3d",e.style.width="100%",e.style.height="100%",document.getElementById(S).appendChild(e)},f=e=>(h.value=!1,b.value=!1,n.value&&(n.value.destroy(),n.value=null),L(),new M.World(document.getElementById(m),{geoProjectionCenter:[108.55,36.32]},e,{onAreaMouseover:t=>{u("on-area-mouseover",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-area-mouseover",t)},onAreaMouseout:t=>{u("on-area-mouseout",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-area-mouseout",t)},onLoadChild:t=>{if(u("on-area-click",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-area-click",t),t.adcode!==r.present&&l.basicOption.scene.isDrilling&&l.basicOption.scene.defaultMapAdcode!==1){u("on-drill-down",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-drill-down",t);const p=i.cloneDeep(l.basicOption);p.scene.defaultMapAdcode=t.adcode,n.value=f(p),r.push(t.adcode),r.past.length<=0?v.value=!1:v.value=!0}},onMapSuccess:()=>{h.value=!0,u("on-loaded"),c.SHJParseEvent.parseEvents(l.useEvents,"on-loaded",null)},onMapAnimationSuccess:()=>{y(),b.value=!0,u("on-animated"),c.SHJParseEvent.parseEvents(l.useEvents,"on-animated",null)},onClickBar:t=>{u("on-bar-click",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-bar-click",t)},onClickScatter:t=>{u("on-scatter-click",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-scatter-click",t)},onClickFlyline:t=>{u("on-flyline-click",t),c.SHJParseEvent.parseEvents(l.useEvents,"on-flyline-click",t)}}));a.onMounted(()=>{setTimeout(()=>{n.value=f(l.basicOption),r.push(l.basicOption.scene.defaultMapAdcode),W.initWatch(l,n,f,y,I)},0)}),a.onBeforeUnmount(()=>{n.value&&n.value.destroy()});const E=()=>{u("on-return",{parentAdcode:r.past[r.past.length-1],adcode:r.present}),c.SHJParseEvent.parseEvents(l.useEvents,"on-return",{parentAdcode:r.past[r.past.length-1],adcode:r.present}),r.undo();const e=i.cloneDeep(l.basicOption);e.scene.defaultMapAdcode=r.present,n.value=f(e),r.past.length<=0?v.value=!1:v.value=!0},I=()=>{r.empty(),r.push(l.basicOption.scene.defaultMapAdcode),n.value=f(l.basicOption),r.past.length<=0?v.value=!1:v.value=!0},P=(e,o,t)=>{B.timeline().add(B.to(n.value.camera.instance.position,{duration:2,delay:0,x:e,y:o,z:t,ease:"circ.out"}))};H({refresh:()=>y(),refreshView:()=>y(),refreshData:()=>y(),goBack:()=>E(),setCameraPosition:(e,o,t)=>P(e,o,t)});const z=D.useFps(),k=a.ref(),F=e=>{if(k.value&&e){g.autoInstallFont(l.basicOption.backButtonCss.fontFamily);const o=`url(${e.backgroundImage})`;return{...g.jsonToCssStyle(e),left:l.basicOption.backButtonLeft+"%",bottom:l.basicOption.backButtonBottom+"%","background-image":o}}return{}},d=a.ref(i.cloneDeep(l.basicOption.widgets)),s=a.computed(()=>{try{const e=d.value.filter(o=>o.type==="regionalLevel");return e.length>0?(g.autoInstallFont(e[0].labelStyle.fontFamily),e[0].isHide?null:e[0]):null}catch{return null}});a.watch(()=>i.cloneDeep(l.basicOption.widgets),(e,o)=>{try{!i.isEqual(e,o)&&n.value&&(d.value=i.cloneDeep(l.basicOption.widgets))}catch{}},{deep:!0}),a.watch(()=>i.cloneDeep(d.value.filter(e=>e.type==="bar")),(e,o)=>{try{!i.isEqual(e,o)&&n.value&&e.length===o.length&&e.forEach(t=>{n.value.createBar(t,void 0,!1)})}catch{}},{deep:!0}),a.watch(()=>i.cloneDeep(d.value.filter(e=>e.type==="scatter")),(e,o)=>{try{!i.isEqual(e,o)&&n.value&&e.length===o.length&&e.forEach(t=>{n.value.createScatter(t,void 0,!1)})}catch{}},{deep:!0}),a.watch(()=>i.cloneDeep(d.value.filter(e=>e.type==="flyline")),(e,o)=>{try{!i.isEqual(e,o)&&n.value&&e.length===o.length&&e.forEach(t=>{n.value.createFlyLine(t,void 0,!1)})}catch{}},{deep:!0}),a.watch(()=>i.cloneDeep(d.value.filter(e=>e.type==="regionalLevel")),(e,o)=>{try{!i.isEqual(e,o)&&n.value&&e.length===o.length&&e.forEach(t=>{n.value.createRegionalLevel(t,void 0,!1)})}catch{}},{deep:!0});const J=e=>{try{e.isHide===void 0?e.isHide=!0:e.isHide=!e.isHide}catch{}},A=()=>{try{const e=d.value.every(o=>!o.isHide);d.value.forEach(o=>o.isHide=e)}catch{}},w=e=>{g.autoInstallFont(l.basicOption.widgetControlStyle.fontFamily);const o=`url(${e.backgroundImage})`,t=`url(${C(e.hover.backgroundImage)})`,p=`url(${C(e.active.backgroundImage)})`;return{...g.jsonToCssStyle(e),...g.jsonToCssStyle(e.hover,"hover"),...g.jsonToCssStyle(e.active,"active"),"background-image":o,"--hover-background-image":t,"--active-background-image":p}},C=e=>!e.startsWith("http")&&!e.startsWith("//")?"../"+e:e;return(e,o)=>(a.openBlock(),a.createElementBlock("div",{id:"zerov-map3d-scene-wrap",class:a.normalizeClass(["map-3d-wrap",{show:h.value}])},[b.value&&v.value&&e.basicOption.backButton?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"buttonRef",ref:k,class:"return-btn",style:a.normalizeStyle(F(e.basicOption.backButtonCss)),onClick:E}," 返回上一级 ",4)):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createElementBlock("div",{key:1,class:"regional-level",style:a.normalizeStyle({left:s.value.labelStyle.left+"%",top:s.value.labelStyle.top+"%",flexDirection:s.value.labelStyle.direction,gap:s.value.labelStyle.gap+"px",fontSize:s.value.labelStyle.fontSize+"px",fontFamily:s.value.labelStyle.fontFamily,fontStyle:s.value.labelStyle.fontStyle,color:s.value.labelStyle.color,"--color-width":s.value.labelStyle.colorStyle.width+"px","--color-height":s.value.labelStyle.colorStyle.height+"px","--color-borderRadius":s.value.labelStyle.colorStyle.borderRadius+"px"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value.rules,(t,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"item"},[a.createElementVNode("div",{class:"color",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("span",V,a.toDisplayString(t.label),1)]))),128))],4)):a.createCommentVNode("",!0),e.basicOption.widgets.length>0&&e.basicOption.widgetControlStyle&&e.basicOption.widgetControlStyle.show?(a.openBlock(),a.createElementBlock("div",{key:2,class:"widget-control",style:a.normalizeStyle({left:e.basicOption.widgetControlStyle.left+"%",top:e.basicOption.widgetControlStyle.top+"%",flexDirection:e.basicOption.widgetControlStyle.direction,gap:e.basicOption.widgetControlStyle.gap+"px","--widget-width":e.basicOption.widgetControlStyle.width+"px","--widget-height":e.basicOption.widgetControlStyle.height+"px"})},[a.createElementVNode("div",{class:a.normalizeClass(["control-button",{active:d.value.every(t=>!t.isHide)}]),style:a.normalizeStyle(w(e.basicOption.widgetControlStyle)),onClick:A},a.toDisplayString(d.value.every(t=>!t.isHide)?"隐藏":"显示")+"/全部 ",7),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,t=>(a.openBlock(),a.createElementBlock("div",{key:t.id,class:a.normalizeClass(["control-button",{active:!t.isHide}]),style:a.normalizeStyle(w(e.basicOption.widgetControlStyle)),onClick:p=>J(t)},a.toDisplayString(t.name||"-"),15,N))),128))],4)):a.createCommentVNode("",!0),e.basicOption.debugger?(a.openBlock(),a.createElementBlock("div",j," fps:"+a.toDisplayString(a.unref(z)),1)):a.createCommentVNode("",!0)],2))}});exports.default=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-a0eceb2b"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-a11ee760"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),l={class:"iframe-webscoket"},w=["src"],u=o.defineComponent({name:"zv-scene-ue-iframe"}),E=o.defineComponent({...u,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean}},emits:["ue-scoket-on-message"],setup(i,{emit:m}){const c=i,S=m;return(t=>{let n=0,r;const a=()=>{window.SHJSceneUEIframeWebscoket&&(window.SHJSceneUEIframeWebscoket.onclose=null,window.SHJSceneUEIframeWebscoket.close()),window.SHJSceneUEIframeWebscoket=new WebSocket(t.webSocketUrl),window.SHJSceneUEIframeWebscoket.onmessage=s=>{try{const e=JSON.parse(s.data);if(e.type==="ping")return;if(!e.data)throw new Error("数据格式异常");S("ue-scoket-on-message",e.data),window.SHJParseEvent(c.useEvents,"ue-scoket-on-message",e.data)}catch{}},window.SHJSceneUEIframeWebscoket.onopen=()=>{n=0,clearTimeout(r)},window.SHJSceneUEIframeWebscoket.onerror=()=>{},window.SHJSceneUEIframeWebscoket.onclose=s=>{const e=3e3*Math.pow(2,n);r=setTimeout(()=>{n<1/0&&(n++,a())},e)}};o.onMounted(()=>{if(t.webSocketUrl)try{a()}catch{}}),o.onBeforeUnmount(()=>{window.SHJSceneUEIframeWebscoket&&window.SHJSceneUEIframeWebscoket.close()})})(c.basicOption),(t,d)=>(o.openBlock(),o.createElementBlock("div",l,[o.createElementVNode("iframe",{src:t.basicOption.iframeUrl,sandbox:"allow-scripts allow-same-origin",style:{width:"100%",height:"100%",border:"0"}},null,8,w)]))}});exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("../../commons/plugins/event/index.js"),u={class:"iframe-webscoket"},E=["src"],w=o.defineComponent({name:"zv-scene-ue-iframe"}),f=o.defineComponent({...w,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean}},emits:["ue-scoket-on-message"],setup(l,{emit:d}){const s=l,S=d;return i.SHJParseEvent.parseEvents(s.useEvents,"on-page-loaded",null),(t=>{let n=0,r;const a=()=>{window.SHJSceneUEIframeWebscoket&&(window.SHJSceneUEIframeWebscoket.onclose=null,window.SHJSceneUEIframeWebscoket.close()),window.SHJSceneUEIframeWebscoket=new WebSocket(t.webSocketUrl),window.SHJSceneUEIframeWebscoket.onmessage=c=>{try{const e=JSON.parse(c.data);if(e.type==="ping")return;if(!e.data)throw new Error("数据格式异常");S("ue-scoket-on-message",e.data),i.SHJParseEvent.parseEvents(s.useEvents,"ue-scoket-on-message",e.data)}catch{}},window.SHJSceneUEIframeWebscoket.onopen=()=>{n=0,clearTimeout(r)},window.SHJSceneUEIframeWebscoket.onerror=()=>{},window.SHJSceneUEIframeWebscoket.onclose=c=>{const e=3e3*Math.pow(2,n);r=setTimeout(()=>{n<1/0&&(n++,a())},e)}};o.onMounted(()=>{if(t.webSocketUrl)try{a()}catch{}}),o.onBeforeUnmount(()=>{window.SHJSceneUEIframeWebscoket&&window.SHJSceneUEIframeWebscoket.close()})})(s.basicOption),(t,m)=>(o.openBlock(),o.createElementBlock("div",u,[o.createElementVNode("iframe",{src:t.basicOption.iframeUrl,sandbox:"allow-scripts allow-same-origin",style:{width:"100%",height:"100%",border:"0"}},null,8,E)]))}});exports.default=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-43a0b7b9"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-d1d43031"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),a={class:"shj-for-ue"},d=n.defineComponent({name:"zv-scene-ue-shj"}),v=n.defineComponent({...d,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["ue-scene-on-message"],setup(r,{emit:c}){const t=r,u=c;return(()=>{n.onMounted(()=>{t.useEvents.length>0&&t.useEvents.forEach(e=>{e&&e.receivingMethod&&(window.ue.interface[e.receivingMethod]=s=>{try{if(!JSON.parse(s).data)throw new Error("");const o=t.useEvents.filter(i=>i.receivingMethod===e.receivingMethod);u("ue-scene-on-message",JSON.parse(s).data),window.SHJParseEvent(o,"ue-scene-on-message",JSON.parse(s).data)}catch{}})})})})(),(e,s)=>(n.openBlock(),n.createElementBlock("div",a))}});exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),r=require("../../commons/plugins/event/index.js"),d={class:"shj-for-ue"},v=s.defineComponent({name:"zv-scene-ue-shj"}),l=s.defineComponent({...v,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["ue-scene-on-message"],setup(c,{emit:u}){const n=c,i=u;return r.SHJParseEvent.parseEvents(n.useEvents,"on-page-loaded",null),(()=>{s.onMounted(()=>{n.useEvents.length>0&&n.useEvents.forEach(e=>{e&&e.receivingMethod&&(window.ue.interface[e.receivingMethod]=t=>{try{if(!JSON.parse(t).data)throw new Error("");const o=n.useEvents.filter(a=>a.receivingMethod===e.receivingMethod);i("ue-scene-on-message",JSON.parse(t).data),r.SHJParseEvent.parseEvents(o,"ue-scene-on-message",JSON.parse(t).data)}catch{}})})})})(),(e,t)=>(s.openBlock(),s.createElementBlock("div",d))}});exports.default=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-f93f10bb"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-c4ee033f"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=["src"],f=e.defineComponent({name:"zv-scene-unity-iframe"}),m=e.defineComponent({...f,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["unity-scene-on-message"],setup(i,{emit:o}){const s=i,a=o,r=()=>{const n=e.ref();return e.onMounted(()=>{window.SHJSceneUnityIframeInstance||(window.SHJSceneUnityIframeInstance={}),window.SHJSceneUnityIframeInstance.url=s.basicOption.iframeUrl,window.SHJSceneUnityIframeInstance.ref=n.value}),e.onBeforeUnmount(()=>{window.SHJSceneUnityIframeInstance=null}),window.addEventListener("message",t=>{a("unity-scene-on-message",t.data),window.SHJParseEvent(s.useEvents,"unity-scene-on-message",t.data)},!1),{unityIframeRef:n}},{unityIframeRef:c}=r();return(n,t)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"unityIframeRef",ref:c,src:n.basicOption.iframeUrl,sandbox:"allow-scripts allow-same-origin",style:{width:"100%",height:"100%",border:"0"}},null,8,u))}});exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../commons/plugins/event/index.js"),f=["src"],l=e.defineComponent({name:"zv-scene-unity-iframe"}),m=e.defineComponent({...l,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["unity-scene-on-message"],setup(i,{emit:o}){const t=i,r=o;a.SHJParseEvent.parseEvents(t.useEvents,"on-page-loaded",null);const c=()=>{const n=e.ref();return e.onMounted(()=>{window.SHJSceneUnityIframeInstance||(window.SHJSceneUnityIframeInstance={}),window.SHJSceneUnityIframeInstance.url=t.basicOption.iframeUrl,window.SHJSceneUnityIframeInstance.ref=n.value}),e.onBeforeUnmount(()=>{window.SHJSceneUnityIframeInstance=null}),window.addEventListener("message",s=>{r("unity-scene-on-message",s.data),a.SHJParseEvent.parseEvents(t.useEvents,"unity-scene-on-message",s.data)},!1),{unityIframeRef:n}},{unityIframeRef:u}=c();return(n,s)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"unityIframeRef",ref:u,src:n.basicOption.iframeUrl,sandbox:"allow-scripts allow-same-origin",style:{width:"100%",height:"100%",border:"0"}},null,8,f))}});exports.default=m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-50d20c64"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-761ae9f1"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=["src"],f=e.defineComponent({name:"zv-scene-unity-webgl"}),m=e.defineComponent({...f,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["unity-scene-on-message"],setup(i,{emit:o}){const s=i,a=o,r=()=>{const n=e.ref();return e.onMounted(()=>{window.SHJSceneUnityIframeInstance||(window.SHJSceneUnityIframeInstance={}),window.SHJSceneUnityIframeInstance.url=s.basicOption.url+"/index.html",window.SHJSceneUnityIframeInstance.ref=n.value}),e.onBeforeUnmount(()=>{window.SHJSceneUnityIframeInstance=null}),window.addEventListener("message",t=>{a("unity-scene-on-message",t.data),window.SHJParseEvent(s.useEvents,"unity-scene-on-message",t.data)},!1),{unityIframeRef:n}},{unityIframeRef:c}=r();return(n,t)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"unityIframeRef",ref:c,class:"unity-wrap",src:`${n.basicOption.url}/index.html`,frameborder:"0"},null,8,u))}});exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../commons/plugins/event/index.js"),l=["src"],f=e.defineComponent({name:"zv-scene-unity-webgl"}),d=e.defineComponent({...f,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["unity-scene-on-message"],setup(i,{emit:o}){const t=i,r=o;a.SHJParseEvent.parseEvents(t.useEvents,"on-page-loaded",null);const c=()=>{const n=e.ref();return e.onMounted(()=>{window.SHJSceneUnityIframeInstance||(window.SHJSceneUnityIframeInstance={}),window.SHJSceneUnityIframeInstance.url=t.basicOption.url+"/index.html",window.SHJSceneUnityIframeInstance.ref=n.value}),e.onBeforeUnmount(()=>{window.SHJSceneUnityIframeInstance=null}),window.addEventListener("message",s=>{r("unity-scene-on-message",s.data),a.SHJParseEvent.parseEvents(t.useEvents,"unity-scene-on-message",s.data)},!1),{unityIframeRef:n}},{unityIframeRef:u}=c();return(n,s)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"unityIframeRef",ref:u,class:"unity-wrap",src:`${n.basicOption.url}/index.html`,frameborder:"0"},null,8,l))}});exports.default=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-96f96666"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-d1dd2ed8"]]);exports.default=u;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("./resources/zv-vr-select.svg.js"),b=require("./resources/zv-return.svg.js"),G=require("./resources/zv-add.svg.js"),W=require("./resources/zv-reduce.svg.js"),Y=require("./resources/zv-play.svg.js"),F=require("./resources/zv-pause.svg.js"),U=require("./resources/zv-refresh.svg.js"),_=require("hls.js"),h=require("lodash"),a=p=>(e.pushScopeId("data-v-96f96666"),p=p(),e.popScopeId(),p),$={class:"vr-scene-wrap"},Z={id:"panorama",class:"vr-scene"},K={id:"panorama-video-wrap",class:"vr-scene-main"},Q={key:1,class:"vr-scene-controls"},X=a(()=>e.createElementVNode("img",{src:q.default,alt:""},null,-1)),x=a(()=>e.createElementVNode("img",{src:b.default,alt:""},null,-1)),ee=[x],oe=a(()=>e.createElementVNode("img",{src:b.default,alt:""},null,-1)),te=[oe],ne=a(()=>e.createElementVNode("img",{src:b.default,alt:""},null,-1)),ce=[ne],se=a(()=>e.createElementVNode("img",{src:b.default,alt:""},null,-1)),ie=[se],ae=a(()=>e.createElementVNode("img",{src:G.default,alt:""},null,-1)),le=[ae],re=a(()=>e.createElementVNode("img",{src:W.default,alt:""},null,-1)),ue=[re],de=a(()=>e.createElementVNode("img",{src:Y.default,alt:""},null,-1)),ve=[de],pe=a(()=>e.createElementVNode("img",{src:F.default,alt:""},null,-1)),we=[pe],me=a(()=>e.createElementVNode("img",{src:U.default,alt:""},null,-1)),fe=[me],Se={class:"scene-list"},Ve=["onClick"],he=["src"],be={class:"label"},ye=["autoplay","loop","volume"],ke=["src"],ge={key:3,class:"mouse-tip"},_e=e.createStaticVNode('<div class="icon-wrap" data-v-96f96666><div class="left" data-v-96f96666><i class="iconfont zv-drop-down" data-v-96f96666></i></div><i class="iconfont zv-mouse" data-v-96f96666></i><div class="right" data-v-96f96666><i class="iconfont zv-drop-down" data-v-96f96666></i></div></div><p class="title" data-v-96f96666>左右拖动   更多精彩</p>',2),Ee=[_e],He=e.defineComponent({name:"zv-scene-vr"}),Oe=e.defineComponent({...He,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["on-scene-loaded","on-scene-scenechange","on-scene-zooming","on-scene-hotClick"],setup(p,{emit:O}){const t=p,w=O,l=e.ref(),r=e.ref({src:"",autoplay:!0,loop:!0,volume:50}),d=e.ref(null),J=e.ref(t.basicOption.default.firstScene),v=e.ref(J.value),n=e.computed(()=>{try{return t.basicOption.scenes[v.value]}catch{return null}}),E={bylineLabel:"来自 %s",noPanoramaError:"未指定全景图像。",fileAccessError:"The file %s could not be accessed.",malformedURLError:"全景URL无法访问。",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"您的浏览器没有显示此全景图所需的WebGL支持。",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"未知错误。检查开发人员控制台。"},B=()=>{const o=t.basicOption;window.SHJSceneVrViewer=window.pannellum.viewer("panorama",{...o,default:Object.assign(h.cloneDeep(o.default),{firstScene:v.value}),strings:E})},C=()=>{const o=()=>{const i=document.getElementById("panorama-video-wrap");i.innerHTML=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),G=require("./resources/zv-vr-select.svg.js"),y=require("./resources/zv-return.svg.js"),W=require("./resources/zv-add.svg.js"),Y=require("./resources/zv-reduce.svg.js"),F=require("./resources/zv-play.svg.js"),U=require("./resources/zv-pause.svg.js"),$=require("./resources/zv-refresh.svg.js"),_=require("hls.js"),b=require("lodash"),p=require("../../commons/plugins/event/index.js"),i=m=>(e.pushScopeId("data-v-d1dd2ed8"),m=m(),e.popScopeId(),m),Z={class:"vr-scene-wrap"},K={id:"panorama",class:"vr-scene"},Q={id:"panorama-video-wrap",class:"vr-scene-main"},X={key:1,class:"vr-scene-controls"},x=i(()=>e.createElementVNode("img",{src:G.default,alt:""},null,-1)),ee=i(()=>e.createElementVNode("img",{src:y.default,alt:""},null,-1)),oe=[ee],te=i(()=>e.createElementVNode("img",{src:y.default,alt:""},null,-1)),ne=[te],se=i(()=>e.createElementVNode("img",{src:y.default,alt:""},null,-1)),ce=[se],ae=i(()=>e.createElementVNode("img",{src:y.default,alt:""},null,-1)),ie=[ae],le=i(()=>e.createElementVNode("img",{src:W.default,alt:""},null,-1)),re=[le],de=i(()=>e.createElementVNode("img",{src:Y.default,alt:""},null,-1)),ue=[de],ve=i(()=>e.createElementVNode("img",{src:F.default,alt:""},null,-1)),pe=[ve],me=i(()=>e.createElementVNode("img",{src:U.default,alt:""},null,-1)),we=[me],fe=i(()=>e.createElementVNode("img",{src:$.default,alt:""},null,-1)),Se=[fe],Ve={class:"scene-list"},he=["onClick"],be=["src"],ye={class:"label"},ke=["autoplay","loop","volume"],ge=["src"],Ee={key:3,class:"mouse-tip"},_e=e.createStaticVNode('<div class="icon-wrap" data-v-d1dd2ed8><div class="left" data-v-d1dd2ed8><i class="iconfont zv-drop-down" data-v-d1dd2ed8></i></div><i class="iconfont zv-mouse" data-v-d1dd2ed8></i><div class="right" data-v-d1dd2ed8><i class="iconfont zv-drop-down" data-v-d1dd2ed8></i></div></div><p class="title" data-v-d1dd2ed8>左右拖动   更多精彩</p>',2),He=[_e],Oe=e.defineComponent({name:"zv-scene-vr"}),Je=e.defineComponent({...Oe,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["on-scene-loaded","on-scene-scenechange","on-scene-zooming","on-scene-hotClick"],setup(m,{emit:J}){const t=m,w=J;p.SHJParseEvent.parseEvents(t.useEvents,"on-page-loaded",null);const l=e.ref(),r=e.ref({src:"",autoplay:!0,loop:!0,volume:50}),u=e.ref(null),B=e.ref(t.basicOption.default.firstScene),v=e.ref(B.value),n=e.computed(()=>{try{return t.basicOption.scenes[v.value]}catch{return null}}),H={bylineLabel:"来自 %s",noPanoramaError:"未指定全景图像。",fileAccessError:"The file %s could not be accessed.",malformedURLError:"全景URL无法访问。",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"您的浏览器没有显示此全景图所需的WebGL支持。",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"未知错误。检查开发人员控制台。"},C=()=>{const o=t.basicOption;window.SHJSceneVrViewer=window.pannellum.viewer("panorama",{...o,default:Object.assign(b.cloneDeep(o.default),{firstScene:v.value}),strings:H})},N=()=>{const o=()=>{const a=document.getElementById("panorama-video-wrap");a.innerHTML=`
2
2
  <video
3
3
  id="panorama-video"
4
4
  autoplay
@@ -8,4 +8,4 @@
8
8
  crossorigin="anonymous"
9
9
  >
10
10
  </video>
11
- `};d.value&&(d.value.dispose(),d.value=null,o()),d.value||o();const c=document.getElementById("panorama-video"),s=t.basicOption;if(d.value=window.videojs(c,{loop:!0,autoplay:!0,plugins:{pannellum:{...t.basicOption,default:Object.assign(h.cloneDeep(s.default),{firstScene:v.value}),strings:E}}}),window.SHJSceneVrViewer=d.value.pnlmViewer,n.value.sceneType==="video"&&(c.src=n.value.panorama),n.value.sceneType==="hls")if(_.isSupported()){const i=new _;i.loadSource(n.value.panorama),i.attachMedia(c),i.on(_.Events.MANIFEST_PARSED,()=>{c.play()})}else c.canPlayType("application/vnd.apple.mpegurl")&&(c.src=n.value.panorama)},y=()=>{if(window.pannellum&&t.basicOption){window.SHJSceneVrViewer&&(window.SHJSceneVrViewer.destroy(),window.SHJSceneVrViewer=null),n.value.sceneType==="image"?B():C();try{t.basicOption.scenes[window.SHJSceneVrViewer.getScene()]&&(r.value=t.basicOption.default.audio,l.value&&r.value&&(window.SHJSceneVrViewer.audio=l,l.value.src=r.value.src,setTimeout(()=>{l.value&&(f.value=l.value.paused)},500)))}catch{}window.SHJSceneVrViewer.on("load",()=>{w("on-scene-loaded",n.value),window.SHJParseEvent(t.useEvents,"on-scene-loaded",n.value)}),!t.isPreview||t.basicOption.default.autoRotate===0?window.SHJSceneVrViewer.stopAutoRotate():window.SHJSceneVrViewer.startAutoRotate();try{window.SHJSceneVrViewer&&async function(){for(const o in t.basicOption.scenes)Object.prototype.hasOwnProperty.call(t.basicOption.scenes,o)&&t.basicOption.scenes[o].hotSpots.forEach(async s=>{await setTimeout(()=>{s.draggable=!t.isPreview&&!t.disableDrag,window.SHJSceneVrViewer.removeHotSpot(s.id,o),window.SHJSceneVrViewer.addHotSpot(s,o)},100)})}()}catch{}window.SHJSceneVrViewer.on("scenechange",o=>{const c=document.getElementsByTagName("video");if(h.isArray(c)&&c.length>0&&c.forEach(s=>{s&&s.pause()}),n.value){const s=n.value.sceneType;v.value=o;const i=n.value.sceneType;setTimeout(()=>{(i!=="image"||s!=="image"&&i==="image")&&y(),S.value=v.value,w("on-scene-scenechange",n.value),window.SHJParseEvent(t.useEvents,"on-scene-scenechange",n.value)}),t.isPreview?window.SHJSceneVrViewer.startAutoRotate():window.SHJSceneVrViewer.stopAutoRotate()}else v.value=t.basicOption.default.firstScene,e.nextTick(()=>{y(),w("on-scene-scenechange",n.value),window.SHJParseEvent(t.useEvents,"on-scene-scenechange",n.value)})}),window.SHJSceneVrViewer.on("zoomchange",h.debounce(o=>{w("on-scene-zooming",n.value),window.SHJParseEvent(t.useEvents,"on-scene-zooming",n.value)},300)),window.SHJSceneVrViewer.on("hot-click",o=>{w("on-scene-hotClick",o),window.SHJParseEvent(t.useEvents,"on-scene-hotClick",o)})}},S=e.ref(t.basicOption.default.firstScene),N=e.computed(()=>{const o=[];if(t.basicOption){const c=t.basicOption.scenes;for(const s in c)if(Object.prototype.hasOwnProperty.call(c,s)){const i=c[s];o.push({label:i.label,value:s,thumbnail:i.cover})}}return o.sort((c,s)=>{const i=parseInt(c.value.replace("scene","")),u=parseInt(s.value.replace("scene",""));return i-u})});e.watch(()=>t.basicOption.default,()=>{t.isPreview?window.SHJSceneVrViewer.startAutoRotate():window.SHJSceneVrViewer.stopAutoRotate()},{deep:!0});const T=o=>{window.SHJSceneVrViewer&&S.value!==o&&(S.value=o,window.SHJSceneVrViewer.isLoaded()&&(window.SHJSceneVrViewer.loadScene(o),t.isPreview?window.SHJSceneVrViewer.startAutoRotate():window.SHJSceneVrViewer.stopAutoRotate()))},k=e.ref(),m=e.ref(!0),P=()=>{m.value?k.value.style.bottom="-999px":k.value.style.bottom="80px",m.value=!m.value};e.onMounted(()=>{t.basicOption&&(t.basicOption.default.controls===void 0&&(t.basicOption.default.controls=n.value.controls),t.basicOption.default.audio===void 0&&(t.basicOption.default.audio=n.value.audio)),y(),M()});const R=()=>{window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch()+10)},z=()=>{window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch()-10)},A=()=>{window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw()-10)},D=()=>{window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw()+10)},L=()=>{window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov()-10)},I=()=>{window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov()+10)},f=e.ref(!1),H=o=>{l.value&&(o==="play"?(l.value.play(),f.value=!1):(l.value.pause(),f.value=!0))},j=()=>{window.SHJSceneVrViewer.startAutoRotate()};let g;const V=e.ref(!1),M=()=>{t.basicOption.default.controls?V.value=t.basicOption.default.controls.mouseTipShow:V.value=!0,g&&clearTimeout(g),g=setTimeout(()=>{V.value=!1},3500)};return(o,c)=>{const s=e.resolveComponent("el-tooltip"),i=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",$,[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives(e.createElementVNode("div",Z,null,512),[[e.vShow,n.value.sceneType==="image"]]),e.withDirectives(e.createElementVNode("div",K,null,512),[[e.vShow,n.value.sceneType!=="image"]])],64)):e.createCommentVNode("",!0),o.basicOption.default.controls?(e.openBlock(),e.createElementBlock("div",Q,[o.basicOption.default.controls.scene?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btn-icon left",style:e.normalizeStyle({borderColor:m.value?"#ff7d00":"#ffffff3d"}),onClick:P},[e.createVNode(s,{content:"场景选择"},{default:e.withCtx(()=>[X]),_:1})],4)):e.createCommentVNode("",!0),o.basicOption.default.controls.left?(e.openBlock(),e.createElementBlock("div",{key:1,class:"btn-icon left",onClick:A},ee)):e.createCommentVNode("",!0),o.basicOption.default.controls.right?(e.openBlock(),e.createElementBlock("div",{key:2,class:"btn-icon right",onClick:D},te)):e.createCommentVNode("",!0),o.basicOption.default.controls.top?(e.openBlock(),e.createElementBlock("div",{key:3,class:"btn-icon up",onClick:R},ce)):e.createCommentVNode("",!0),o.basicOption.default.controls.bottom?(e.openBlock(),e.createElementBlock("div",{key:4,class:"btn-icon down",onClick:z},ie)):e.createCommentVNode("",!0),o.basicOption.default.controls.magnify?(e.openBlock(),e.createElementBlock("div",{key:5,class:"btn-icon",onClick:L},le)):e.createCommentVNode("",!0),o.basicOption.default.controls.shrink?(e.openBlock(),e.createElementBlock("div",{key:6,class:"btn-icon",onClick:I},ue)):e.createCommentVNode("",!0),f.value&&r.value.src&&o.basicOption.default.audio?(e.openBlock(),e.createElementBlock("div",{key:7,class:"btn-icon",onClick:c[0]||(c[0]=u=>H("play"))},ve)):e.createCommentVNode("",!0),!f.value&&r.value.src&&o.basicOption.default.audio?(e.openBlock(),e.createElementBlock("div",{key:8,class:"btn-icon",onClick:c[1]||(c[1]=u=>H("pause"))},we)):e.createCommentVNode("",!0),o.basicOption.default.controls.rotate?(e.openBlock(),e.createElementBlock("div",{key:9,class:"btn-icon",onClick:j},fe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.basicOption.default.controls?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"sceneMenuRef",ref:k,class:"scene-menu",style:e.normalizeStyle({bottom:m.value&&o.basicOption.default.controls.scene?"80px":"-9999999999999px"})},[e.createVNode(i,null,{default:e.withCtx(()=>[e.createElementVNode("div",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.value,class:"scene-item",style:e.normalizeStyle({borderColor:S.value===u.value?"#ff7d00":"#fff"}),onClick:Je=>T(u.value)},[e.createElementVNode("img",{class:"thumbnail",src:u.thumbnail},null,8,he),e.createElementVNode("p",be,e.toDisplayString(u.label),1)],12,Ve))),128))])]),_:1})],4)):e.createCommentVNode("",!0),e.createElementVNode("audio",{ref_key:"audioRef",ref:l,autoplay:r.value.autoplay,loop:r.value.loop,volume:r.value.volume},[e.createElementVNode("source",{src:r.value.src},null,8,ke)],8,ye),V.value?(e.openBlock(),e.createElementBlock("div",ge,Ee)):e.createCommentVNode("",!0)])}}});exports.default=Oe;
11
+ `};u.value&&(u.value.dispose(),u.value=null,o()),u.value||o();const s=document.getElementById("panorama-video"),c=t.basicOption;if(u.value=window.videojs(s,{loop:!0,autoplay:!0,plugins:{pannellum:{...t.basicOption,default:Object.assign(b.cloneDeep(c.default),{firstScene:v.value}),strings:H}}}),window.SHJSceneVrViewer=u.value.pnlmViewer,n.value.sceneType==="video"&&(s.src=n.value.panorama),n.value.sceneType==="hls")if(_.isSupported()){const a=new _;a.loadSource(n.value.panorama),a.attachMedia(s),a.on(_.Events.MANIFEST_PARSED,()=>{s.play()})}else s.canPlayType("application/vnd.apple.mpegurl")&&(s.src=n.value.panorama)},k=()=>{if(window.pannellum&&t.basicOption){window.SHJSceneVrViewer&&(window.SHJSceneVrViewer.destroy(),window.SHJSceneVrViewer=null),n.value.sceneType==="image"?C():N();try{t.basicOption.scenes[window.SHJSceneVrViewer.getScene()]&&(r.value=t.basicOption.default.audio,l.value&&r.value&&(window.SHJSceneVrViewer.audio=l,l.value.src=r.value.src,setTimeout(()=>{l.value&&(S.value=l.value.paused)},500)))}catch{}window.SHJSceneVrViewer.on("load",()=>{w("on-scene-loaded",n.value),p.SHJParseEvent.parseEvents(t.useEvents,"on-scene-loaded",n.value)}),!t.isPreview||t.basicOption.default.autoRotate===0?window.SHJSceneVrViewer.stopAutoRotate():window.SHJSceneVrViewer.startAutoRotate();try{window.SHJSceneVrViewer&&async function(){for(const o in t.basicOption.scenes)Object.prototype.hasOwnProperty.call(t.basicOption.scenes,o)&&t.basicOption.scenes[o].hotSpots.forEach(async c=>{await setTimeout(()=>{c.draggable=!t.isPreview&&!t.disableDrag,window.SHJSceneVrViewer.removeHotSpot(c.id,o),window.SHJSceneVrViewer.addHotSpot(c,o)},100)})}()}catch{}window.SHJSceneVrViewer.on("scenechange",o=>{const s=document.getElementsByTagName("video");if(b.isArray(s)&&s.length>0&&s.forEach(c=>{c&&c.pause()}),n.value){const c=n.value.sceneType;v.value=o;const a=n.value.sceneType;setTimeout(()=>{(a!=="image"||c!=="image"&&a==="image")&&k(),V.value=v.value,w("on-scene-scenechange",n.value),p.SHJParseEvent.parseEvents(t.useEvents,"on-scene-scenechange",n.value)}),t.isPreview?window.SHJSceneVrViewer.startAutoRotate():window.SHJSceneVrViewer.stopAutoRotate()}else v.value=t.basicOption.default.firstScene,e.nextTick(()=>{k(),w("on-scene-scenechange",n.value),p.SHJParseEvent.parseEvents(t.useEvents,"on-scene-scenechange",n.value)})}),window.SHJSceneVrViewer.on("zoomchange",b.debounce(o=>{w("on-scene-zooming",n.value),p.SHJParseEvent.parseEvents(t.useEvents,"on-scene-zooming",n.value)},300)),window.SHJSceneVrViewer.on("hot-click",o=>{w("on-scene-hotClick",o),p.SHJParseEvent.parseEvents(t.useEvents,"on-scene-hotClick",o)})}},V=e.ref(t.basicOption.default.firstScene),T=e.computed(()=>{const o=[];if(t.basicOption){const s=t.basicOption.scenes;for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const a=s[c];o.push({label:a.label,value:c,thumbnail:a.cover})}}return o.sort((s,c)=>{const a=parseInt(s.value.replace("scene","")),d=parseInt(c.value.replace("scene",""));return a-d})});e.watch(()=>t.basicOption.default,()=>{t.isPreview?window.SHJSceneVrViewer.startAutoRotate():window.SHJSceneVrViewer.stopAutoRotate()},{deep:!0});const P=o=>{window.SHJSceneVrViewer&&V.value!==o&&(V.value=o,window.SHJSceneVrViewer.isLoaded()&&(window.SHJSceneVrViewer.loadScene(o),t.isPreview?window.SHJSceneVrViewer.startAutoRotate():window.SHJSceneVrViewer.stopAutoRotate()))},g=e.ref(),f=e.ref(!0),R=()=>{f.value?g.value.style.bottom="-999px":g.value.style.bottom="80px",f.value=!f.value};e.onMounted(()=>{t.basicOption&&(t.basicOption.default.controls===void 0&&(t.basicOption.default.controls=n.value.controls),t.basicOption.default.audio===void 0&&(t.basicOption.default.audio=n.value.audio)),k(),M()});const z=()=>{window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch()+10)},A=()=>{window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch()-10)},D=()=>{window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw()-10)},L=()=>{window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw()+10)},I=()=>{window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov()-10)},j=()=>{window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov()+10)},S=e.ref(!1),O=o=>{l.value&&(o==="play"?(l.value.play(),S.value=!1):(l.value.pause(),S.value=!0))},q=()=>{window.SHJSceneVrViewer.startAutoRotate()};let E;const h=e.ref(!1),M=()=>{t.basicOption.default.controls?h.value=t.basicOption.default.controls.mouseTipShow:h.value=!0,E&&clearTimeout(E),E=setTimeout(()=>{h.value=!1},3500)};return(o,s)=>{const c=e.resolveComponent("el-tooltip"),a=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Z,[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives(e.createElementVNode("div",K,null,512),[[e.vShow,n.value.sceneType==="image"]]),e.withDirectives(e.createElementVNode("div",Q,null,512),[[e.vShow,n.value.sceneType!=="image"]])],64)):e.createCommentVNode("",!0),o.basicOption.default.controls?(e.openBlock(),e.createElementBlock("div",X,[o.basicOption.default.controls.scene?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btn-icon left",style:e.normalizeStyle({borderColor:f.value?"#ff7d00":"#ffffff3d"}),onClick:R},[e.createVNode(c,{content:"场景选择"},{default:e.withCtx(()=>[x]),_:1})],4)):e.createCommentVNode("",!0),o.basicOption.default.controls.left?(e.openBlock(),e.createElementBlock("div",{key:1,class:"btn-icon left",onClick:D},oe)):e.createCommentVNode("",!0),o.basicOption.default.controls.right?(e.openBlock(),e.createElementBlock("div",{key:2,class:"btn-icon right",onClick:L},ne)):e.createCommentVNode("",!0),o.basicOption.default.controls.top?(e.openBlock(),e.createElementBlock("div",{key:3,class:"btn-icon up",onClick:z},ce)):e.createCommentVNode("",!0),o.basicOption.default.controls.bottom?(e.openBlock(),e.createElementBlock("div",{key:4,class:"btn-icon down",onClick:A},ie)):e.createCommentVNode("",!0),o.basicOption.default.controls.magnify?(e.openBlock(),e.createElementBlock("div",{key:5,class:"btn-icon",onClick:I},re)):e.createCommentVNode("",!0),o.basicOption.default.controls.shrink?(e.openBlock(),e.createElementBlock("div",{key:6,class:"btn-icon",onClick:j},ue)):e.createCommentVNode("",!0),S.value&&r.value.src&&o.basicOption.default.audio?(e.openBlock(),e.createElementBlock("div",{key:7,class:"btn-icon",onClick:s[0]||(s[0]=d=>O("play"))},pe)):e.createCommentVNode("",!0),!S.value&&r.value.src&&o.basicOption.default.audio?(e.openBlock(),e.createElementBlock("div",{key:8,class:"btn-icon",onClick:s[1]||(s[1]=d=>O("pause"))},we)):e.createCommentVNode("",!0),o.basicOption.default.controls.rotate?(e.openBlock(),e.createElementBlock("div",{key:9,class:"btn-icon",onClick:q},Se)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.basicOption.default.controls?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"sceneMenuRef",ref:g,class:"scene-menu",style:e.normalizeStyle({bottom:f.value&&o.basicOption.default.controls.scene?"80px":"-9999999999999px"})},[e.createVNode(a,null,{default:e.withCtx(()=>[e.createElementVNode("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,d=>(e.openBlock(),e.createElementBlock("div",{key:d.value,class:"scene-item",style:e.normalizeStyle({borderColor:V.value===d.value?"#ff7d00":"#fff"}),onClick:Be=>P(d.value)},[e.createElementVNode("img",{class:"thumbnail",src:d.thumbnail},null,8,be),e.createElementVNode("p",ye,e.toDisplayString(d.label),1)],12,he))),128))])]),_:1})],4)):e.createCommentVNode("",!0),e.createElementVNode("audio",{ref_key:"audioRef",ref:l,autoplay:r.value.autoplay,loop:r.value.loop,volume:r.value.volume},[e.createElementVNode("source",{src:r.value.src},null,8,ge)],8,ke),h.value?(e.openBlock(),e.createElementBlock("div",Ee,He)):e.createCommentVNode("",!0)])}}});exports.default=Je;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-e5c184aa"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-8b8c9005"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),g=require("../../commons/utils/json2css.js"),x=["ztitle"],k=["ztitle"],T=["ztitle"],C=n.defineComponent({name:"zv-text-count-down"}),H=n.defineComponent({...C,props:{basicOption:{},useEvents:{}},emits:["on-end","on-start"],setup(y,{expose:M,emit:D}){const m=D,S=window.requestAnimationFrame,o=y,h=n.ref(0),l=n.ref(0),a=n.computed(()=>({showMillisecond:o.basicOption.conf.format.includes("SSS"),showYear:o.basicOption.conf.format.includes("Y"),showMonth:o.basicOption.conf.format.includes("M"),showDay:o.basicOption.conf.format.includes("D"),showHour:o.basicOption.conf.format.includes("H"),showMinute:o.basicOption.conf.format.includes("m"),showSecond:o.basicOption.conf.format.includes("s")}));function i(e){return e<10?"0"+e:String(e)}function b(e){if(e===null)return"--";let t=o.basicOption.conf.format,r=0;a.value.showMillisecond&&(r=e%1e3,t=t.replace("SSS","0".repeat(3-String(r).length)+r)),e=Math.floor(e/1e3);let c=0;a.value.showYear?(c=Math.floor(e/(60*60*24*30*12)),t=t.includes("YY")?t.replace("YY",i(c)):t.replace("Y",String(c))):c=0;let u=0;a.value.showMonth?(e=e-c*60*60*24*30*12,u=Math.floor(e/(60*60*24*30)),t=t.includes("MM")?t.replace("MM",i(u)):t.replace("M",String(u))):u=0;let f=0;a.value.showDay?(e=e-u*60*60*24*30,f=Math.floor(e/(60*60*24)),t=t.includes("DD")?t.replace("DD",i(f)):t.replace("D",String(f))):f=0;let p=0;a.value.showHour?(e=e-f*60*60*24,p=Math.floor(e/(60*60)),t=t.includes("HH")?t.replace("HH",i(p)):t.replace("H",String(p))):p=0;let d=0;a.value.showMinute?(e=e-p*60*60,d=Math.floor(e/60),t=t.includes("mm")?t.replace("mm",i(d)):t.replace("m",String(d))):d=0;let v=0;return a.value.showSecond&&(v=e-d*60,t=t.includes("ss")?t.replace("ss",i(v)):t.replace("s",String(v))),t}function O(){l.value!==null&&(h.value>Date.now()?(l.value=h.value-Date.now(),S(O)):(l.value=0,m("on-end"),window.SHJParseEvent(o.useEvents,"end-count-down",null)))}const s=()=>{m("on-start"),window.SHJParseEvent(o.useEvents,"on-start",null),l.value=0,Number.isFinite(o.basicOption.conf.value)?(o.basicOption.conf.future?o.basicOption.conf.value>=Date.now()&&(h.value=o.basicOption.conf.value):o.basicOption.conf.value>=0&&(h.value=o.basicOption.conf.value+Date.now()),S(O)):l.value=null};n.watchEffect(()=>{o.basicOption.conf.autoStart?s():l.value=null});const w=e=>{g.autoInstallFont(e.fontFamily);const t={};e.color&&e.color.includes("linear-gradient")&&(t.backgroundImage=e.color,t["-webkit-background-clip"]="text",t.color="transparent");const r={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...g.jsonToCssStyle(e),...t,...r,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}};return M({start:()=>s(),startAgain:()=>s(),refresh:()=>s(),refreshView:()=>s(),refreshData:()=>s()}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.basicOption.conf.finishedText&&l.value===0&&l.value!==null?(n.openBlock(),n.createElementBlock("span",{key:0,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.finishedText},n.toDisplayString(e.basicOption.conf.finishedText),13,x)):n.createCommentVNode("",!0),e.basicOption.conf.defaultText&&l.value===null?(n.openBlock(),n.createElementBlock("span",{key:1,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.defaultText},n.toDisplayString(e.basicOption.conf.defaultText),13,k)):n.createCommentVNode("",!0),Number.isFinite(l.value)&&l.value>0?(n.openBlock(),n.createElementBlock("span",{key:2,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:b(l.value)},n.toDisplayString(b(l.value)),13,T)):n.createCommentVNode("",!0)],64))}});exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),g=require("../../commons/plugins/event/index.js"),y=require("../../commons/utils/json2css.js"),k=["ztitle"],T=["ztitle"],C=["ztitle"],E=n.defineComponent({name:"zv-text-count-down"}),H=n.defineComponent({...E,props:{basicOption:{},useEvents:{}},emits:["on-end","on-start"],setup(M,{expose:D,emit:x}){const m=x,S=window.requestAnimationFrame,o=M,h=n.ref(0),l=n.ref(0),a=n.computed(()=>({showMillisecond:o.basicOption.conf.format.includes("SSS"),showYear:o.basicOption.conf.format.includes("Y"),showMonth:o.basicOption.conf.format.includes("M"),showDay:o.basicOption.conf.format.includes("D"),showHour:o.basicOption.conf.format.includes("H"),showMinute:o.basicOption.conf.format.includes("m"),showSecond:o.basicOption.conf.format.includes("s")}));function i(e){return e<10?"0"+e:String(e)}function b(e){if(e===null)return"--";let t=o.basicOption.conf.format,r=0;a.value.showMillisecond&&(r=e%1e3,t=t.replace("SSS","0".repeat(3-String(r).length)+r)),e=Math.floor(e/1e3);let c=0;a.value.showYear?(c=Math.floor(e/(60*60*24*30*12)),t=t.includes("YY")?t.replace("YY",i(c)):t.replace("Y",String(c))):c=0;let u=0;a.value.showMonth?(e=e-c*60*60*24*30*12,u=Math.floor(e/(60*60*24*30)),t=t.includes("MM")?t.replace("MM",i(u)):t.replace("M",String(u))):u=0;let f=0;a.value.showDay?(e=e-u*60*60*24*30,f=Math.floor(e/(60*60*24)),t=t.includes("DD")?t.replace("DD",i(f)):t.replace("D",String(f))):f=0;let p=0;a.value.showHour?(e=e-f*60*60*24,p=Math.floor(e/(60*60)),t=t.includes("HH")?t.replace("HH",i(p)):t.replace("H",String(p))):p=0;let d=0;a.value.showMinute?(e=e-p*60*60,d=Math.floor(e/60),t=t.includes("mm")?t.replace("mm",i(d)):t.replace("m",String(d))):d=0;let v=0;return a.value.showSecond&&(v=e-d*60,t=t.includes("ss")?t.replace("ss",i(v)):t.replace("s",String(v))),t}function O(){l.value!==null&&(h.value>Date.now()?(l.value=h.value-Date.now(),S(O)):(l.value=0,m("on-end"),g.SHJParseEvent.parseEvents(o.useEvents,"end-count-down",null)))}const s=()=>{m("on-start"),g.SHJParseEvent.parseEvents(o.useEvents,"on-start",null),l.value=0,Number.isFinite(o.basicOption.conf.value)?(o.basicOption.conf.future?o.basicOption.conf.value>=Date.now()&&(h.value=o.basicOption.conf.value):o.basicOption.conf.value>=0&&(h.value=o.basicOption.conf.value+Date.now()),S(O)):l.value=null};n.watchEffect(()=>{o.basicOption.conf.autoStart?s():l.value=null});const w=e=>{y.autoInstallFont(e.fontFamily);const t={};e.color&&e.color.includes("linear-gradient")&&(t.backgroundImage=e.color,t["-webkit-background-clip"]="text",t.color="transparent");const r={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...y.jsonToCssStyle(e),...t,...r,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}};return D({start:()=>s(),startAgain:()=>s(),refresh:()=>s(),refreshView:()=>s(),refreshData:()=>s()}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.basicOption.conf.finishedText&&l.value===0&&l.value!==null?(n.openBlock(),n.createElementBlock("span",{key:0,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.finishedText},n.toDisplayString(e.basicOption.conf.finishedText),13,k)):n.createCommentVNode("",!0),e.basicOption.conf.defaultText&&l.value===null?(n.openBlock(),n.createElementBlock("span",{key:1,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.defaultText},n.toDisplayString(e.basicOption.conf.defaultText),13,T)):n.createCommentVNode("",!0),Number.isFinite(l.value)&&l.value>0?(n.openBlock(),n.createElementBlock("span",{key:2,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:b(l.value)},n.toDisplayString(b(l.value)),13,C)):n.createCommentVNode("",!0)],64))}});exports.default=H;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-f0914c1d"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-b77ebdeb"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("lodash"),V=require("vue-countup-v3"),C=require("odometer_countup"),p=require("nanoid"),F=require("../../commons/core/datasource/index.js"),v=require("../../commons/utils/json2css.js"),I=t.defineComponent({name:"zv-text-over-number"}),M=t.defineComponent({...I,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},setup(m,{expose:h}){const r=m,s=t.ref(r.basicOption.countUp.startVal),x=n=>{const a=t.ref(p.nanoid()),l=t.ref(0),d=t.ref(),u=t.ref(),f=()=>{F.SHJDatasourceV2.parse({tId:r.uuid,sources:r.sources,callback:({data:e})=>{try{window.SHJParseEvent(r.useEvents,"dataListener",e),a.value=p.nanoid(),l.value=Number(e[0].data[0].value),d.value={startVal:s.value,separator:n.countUp.separator,decimal:n.countUp.decimal,decimalPlaces:n.countUp.decimalPlaces,duration:n.countUp.duration,prefix:n.countUp.prefix,suffix:n.countUp.suffix},n.countUp.isOdometer&&(d.value.plugin=new C.Odometer({duration:n.countUp.duration,lastDigitDelay:0})),s.value=l.value,n.isImitate?b():u.value&&clearInterval(u.value)}catch{window.SHJParseEvent(r.useEvents,"dataListener",null)}}})},k=e=>{v.autoInstallFont(e.fontFamily);const o={};e.color&&e.color.includes("linear-gradient")&&(o.backgroundImage=e.color,o["-webkit-background-clip"]="text",o.color="transparent");const q={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...v.jsonToCssStyle(e),...o,...q,...e.textShadow.show?{textShadow:`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},D=()=>{},b=()=>{u.value&&clearInterval(u.value);const e=n.countUp.isOdometer?Math.floor(Math.random()*6)+5:Math.floor(Math.random()*4)+3;u.value=setInterval(()=>{s.value=l.value,d.value.startVal=s.value;const o=Number((Math.random()*10).toFixed(n.countUp.decimalPlaces));o>3?l.value+=o:l.value-=o},e*1e3)};return t.onMounted(()=>t.nextTick(()=>f())),t.onBeforeUnmount(()=>{u.value&&clearInterval(u.value)}),{key:a,init:f,options:d,endValue:l,onFinished:D,rendererDomStyle:k}},{key:y,init:i,options:w,endValue:S,onFinished:U,rendererDomStyle:g}=x(r.basicOption);return t.watch(()=>c.cloneDeep(r.basicOption),(n,a)=>{c.isEqual(n,a)||i()},{deep:!0}),t.watch(()=>c.cloneDeep(r.sources),(n,a)=>{c.isEqual(n,a)||i()},{deep:!0}),h({refresh:()=>i(),refreshView:()=>i(),refreshData:()=>i()}),(n,a)=>(t.openBlock(),t.createBlock(t.unref(V),{key:t.unref(y),class:"zerov-widget-over-number","end-val":t.unref(S),options:t.unref(w),loop:n.basicOption.countUp.loop,delay:n.basicOption.countUp.delay,style:t.normalizeStyle(t.unref(g)(n.basicOption.css)),onFinished:t.unref(U)},null,8,["end-val","options","loop","delay","style","onFinished"]))}});exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("lodash"),V=require("vue-countup-v3"),C=require("odometer_countup"),p=require("nanoid"),F=require("../../commons/plugins/datasource/index.js"),v=require("../../commons/utils/json2css.js"),m=require("../../commons/plugins/event/index.js"),I=t.defineComponent({name:"zv-text-over-number"}),M=t.defineComponent({...I,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},setup(h,{expose:x}){const r=h,s=t.ref(r.basicOption.countUp.startVal),y=n=>{const a=t.ref(p.nanoid()),l=t.ref(0),c=t.ref(),u=t.ref(),f=()=>{F.SHJDatasourceV2.parse({tId:r.uuid,sources:r.sources,callback:({data:e})=>{try{m.SHJParseEvent.parseEvents(r.useEvents,"dataListener",e),a.value=p.nanoid(),l.value=Number(e[0].data[0].value),c.value={startVal:s.value,separator:n.countUp.separator,decimal:n.countUp.decimal,decimalPlaces:n.countUp.decimalPlaces,duration:n.countUp.duration,prefix:n.countUp.prefix,suffix:n.countUp.suffix},n.countUp.isOdometer&&(c.value.plugin=new C.Odometer({duration:n.countUp.duration,lastDigitDelay:0})),s.value=l.value,n.isImitate?b():u.value&&clearInterval(u.value)}catch{m.SHJParseEvent.parseEvents(r.useEvents,"dataListener",null)}}})},q=e=>{v.autoInstallFont(e.fontFamily);const o={};e.color&&e.color.includes("linear-gradient")&&(o.backgroundImage=e.color,o["-webkit-background-clip"]="text",o.color="transparent");const E={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...v.jsonToCssStyle(e),...o,...E,...e.textShadow.show?{textShadow:`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},D=()=>{},b=()=>{u.value&&clearInterval(u.value);const e=n.countUp.isOdometer?Math.floor(Math.random()*6)+5:Math.floor(Math.random()*4)+3;u.value=setInterval(()=>{s.value=l.value,c.value.startVal=s.value;const o=Number((Math.random()*10).toFixed(n.countUp.decimalPlaces));o>3?l.value+=o:l.value-=o},e*1e3)};return t.onMounted(()=>t.nextTick(()=>f())),t.onBeforeUnmount(()=>{u.value&&clearInterval(u.value)}),{key:a,init:f,options:c,endValue:l,onFinished:D,rendererDomStyle:q}},{key:S,init:i,options:U,endValue:g,onFinished:w,rendererDomStyle:k}=y(r.basicOption);return t.watch(()=>d.cloneDeep(r.basicOption),(n,a)=>{d.isEqual(n,a)||i()},{deep:!0}),t.watch(()=>d.cloneDeep(r.sources),(n,a)=>{d.isEqual(n,a)||i()},{deep:!0}),x({refresh:()=>i(),refreshView:()=>i(),refreshData:()=>i()}),(n,a)=>(t.openBlock(),t.createBlock(t.unref(V),{key:t.unref(S),class:"zerov-widget-over-number","end-val":t.unref(g),options:t.unref(U),loop:n.basicOption.countUp.loop,delay:n.basicOption.countUp.delay,style:t.normalizeStyle(t.unref(k)(n.basicOption.css)),onFinished:t.unref(w)},null,8,["end-val","options","loop","delay","style","onFinished"]))}});exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-54bb5d61"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-68f8955f"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("lodash"),i=require("dayjs");require("dayjs/locale/zh-cn");const d=require("../../commons/utils/json2css.js"),S=["ztitle"],w=t.defineComponent({name:"zv-text-real-time"}),T=t.defineComponent({...w,props:{basicOption:{},datasource:{},useEvents:{}},emits:["on-change"],setup(f,{emit:m}){const u=m,r=f,v=o=>{const n=t.ref(),a=t.ref(i().locale("zh-cn").format(o.format)),x=e=>{d.autoInstallFont(e.fontFamily);const l={};e.color&&e.color.includes("linear-gradient")&&(l.backgroundImage=e.color,l["-webkit-background-clip"]="text",l.color="transparent");const y={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...d.jsonToCssStyle(e),...l,...y,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},g=e=>{n.value&&clearInterval(n.value),n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(e),u("on-change",a.value),window.SHJParseEvent(r.useEvents,"on-change",a.value)},1e3)};return t.onMounted(()=>{n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(o.format),u("on-change",a.value),window.SHJParseEvent(r.useEvents,"on-change",a.value)},1e3)}),t.onBeforeUnmount(()=>{n.value&&clearInterval(n.value)}),{updateRealTime:g,realTime:a,rendererDomStyle:x}},{updateRealTime:p,realTime:c,rendererDomStyle:h}=v(r.basicOption);return t.watch(()=>s.cloneDeep(r.basicOption.format),(o,n)=>{s.isEqual(o,n)||p(o)},{deep:!0}),(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"real-time",style:t.normalizeStyle(t.unref(h)(o.basicOption.css)),ztitle:t.unref(c)},t.toDisplayString(t.unref(c)),13,S))}});exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("lodash"),i=require("dayjs");require("dayjs/locale/zh-cn");const d=require("../../commons/utils/json2css.js"),f=require("../../commons/plugins/event/index.js"),T=["ztitle"],_=t.defineComponent({name:"zv-text-real-time"}),b=t.defineComponent({..._,props:{basicOption:{},datasource:{},useEvents:{}},emits:["on-change"],setup(m,{emit:v}){const u=v,r=m,p=o=>{const n=t.ref(),a=t.ref(i().locale("zh-cn").format(o.format)),g=e=>{d.autoInstallFont(e.fontFamily);const l={};e.color&&e.color.includes("linear-gradient")&&(l.backgroundImage=e.color,l["-webkit-background-clip"]="text",l.color="transparent");const S={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...d.jsonToCssStyle(e),...l,...S,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},y=e=>{n.value&&clearInterval(n.value),n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(e),u("on-change",a.value),f.SHJParseEvent.parseEvents(r.useEvents,"on-change",a.value)},1e3)};return t.onMounted(()=>{n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(o.format),u("on-change",a.value),f.SHJParseEvent.parseEvents(r.useEvents,"on-change",a.value)},1e3)}),t.onBeforeUnmount(()=>{n.value&&clearInterval(n.value)}),{updateRealTime:y,realTime:a,rendererDomStyle:g}},{updateRealTime:h,realTime:c,rendererDomStyle:x}=p(r.basicOption);return t.watch(()=>s.cloneDeep(r.basicOption.format),(o,n)=>{s.isEqual(o,n)||h(o)},{deep:!0}),(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"real-time",style:t.normalizeStyle(t.unref(x)(o.basicOption.css)),ztitle:t.unref(c)},t.toDisplayString(t.unref(c)),13,T))}});exports.default=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-9b2fa9eb"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-ed5eeea7"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash"),z=require("vue3-seamless-scroll"),h=require("nanoid"),V=require("../../commons/core/datasource/index.js"),M=["onClick","onMouseenter","onMouseout"],D=["onClick"],W={key:1},q=o.defineComponent({name:"zv-text-row-scroll"}),H=o.defineComponent({...q,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(v,{expose:O,emit:w}){o.useCssVars(e=>({"0666b15e":e.basicOption.css.table.borderWidth+"px","5631c5a7":e.basicOption.css.table.borderStyle,"554dd759":e.basicOption.css.table.borderColor,"1f395ad3":e.basicOption.css.table.paddingLeft+"px","35998ab9":e.basicOption.css.table.alignItems,c3358072:e.basicOption.css.table.justifyContent,"06bfebde":e.basicOption.css.header.background,"345149c3":e.basicOption.css.header.height+"px","33c4b8a0":e.basicOption.css.header.color,f3c30acc:e.basicOption.css.header.fontSize+"px","2041388a":e.basicOption.css.header.fontWeight,"091b1d5f":e.basicOption.css.header.fontStyle,"246ef798":e.basicOption.css.body.height+"px","2b879748":e.basicOption.css.body.background,"4a3ad39f":e.basicOption.css.oddBackground,"2b37e916":e.basicOption.css.body.color,"34eff1a2":e.basicOption.css.body.fontSize+"px","0ddd62d5":e.basicOption.css.body.fontWeight,"310a0498":e.basicOption.css.body.fontStyle}));const d=w,b=o.ref(h.nanoid()),l=o.ref([]),s=v,p=o.ref(s.basicOption.scroll.start),a=()=>{V.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{window.SHJParseEvent(s.useEvents,"dataListener",l),l.value=u.cloneDeep(e.data[0].data)||[],b.value=h.nanoid(),p.value=s.basicOption.scroll.start}catch{window.SHJParseEvent(s.useEvents,"dataListener",null),l.value=[],b.value=h.nanoid(),p.value=s.basicOption.scroll.start}}})},y=e=>{const t=[];for(const n in e)t.push(e[n]);return t};o.onMounted(()=>a()),o.watch(()=>u.cloneDeep(s.basicOption),(e,t)=>{u.isEqual(e,t)||a()},{deep:!0}),o.watch(()=>u.cloneDeep(s.sources),(e,t)=>{u.isEqual(e,t)||a()},{deep:!0}),O({refresh:()=>a(),refreshView:()=>a(),refreshData:()=>a()});const g=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.font.auto:!0},m=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.font.auto===!1?t.font:null},f=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.width.auto:!0},k=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.width.auto===!1?t.width.width:null},S=(e,t)=>{const n={row:e,rowIndex:t};d("on-click-row",n),window.SHJParseEvent(s.useEvents,"on-click-row",n)},E=(e,t)=>{const n={row:e,rowIndex:t};d("on-mouseenter-row",n),window.SHJParseEvent(s.useEvents,"on-mouseenter-row",n)},C=(e,t)=>{const n={row:e,rowIndex:t};d("on-mouseout-row",n),window.SHJParseEvent(s.useEvents,"on-mouseout-row",n)},B=(e,t,n,r)=>{const i={row:e,item:t,rowIndex:n,columnIndex:r};d("on-click-item",i),window.SHJParseEvent(s.useEvents,"on-click-item",i)};return(e,t)=>l.value.length>0?(o.openBlock(),o.createElementBlock("div",{key:b.value,class:"table-scroll"},[e.basicOption.css.header.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"table-header",style:o.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.backgroundImage})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(l.value[0]),(n,r)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:o.normalizeClass(["th",{customWidth:!f(r+1)}]),style:o.normalizeStyle({"--width":k(r+1)+"px"})},[o.createElementVNode("p",null,o.toDisplayString(n),1)],6))),128))],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(z.Vue3SeamlessScroll),{modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=n=>p.value=n),direction:e.basicOption.scroll.direction,list:l.value,"is-watch":"",hover:e.basicOption.scroll.hover,"limit-scroll-num":e.basicOption.scroll.limitScrollNum,"single-height":e.basicOption.scroll.isSingle?e.basicOption.css.body.height:0,"single-wait-time":e.basicOption.scroll.singleWaitTime,class:"table-body"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(n,r)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:"tr",style:o.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor}),onClick:i=>S(n,r),onMouseenter:i=>E(n,r),onMouseout:i=>C(n,r)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y(n),(i,c)=>(o.openBlock(),o.createElementBlock("div",{key:i,class:o.normalizeClass(["td",{customWidth:!f(c+1)}]),style:o.normalizeStyle({"--width":k(c+1)+"px"}),onClick:J=>B(n,i,r,c)},[g(c+1)?(o.openBlock(),o.createElementBlock("p",W,o.toDisplayString(i),1)):(o.openBlock(),o.createElementBlock("p",{key:0,class:"customFont",style:o.normalizeStyle({"--text-color":m(c+1).color,"--text-font-size":m(c+1).fontSize+"px","--text-font-style":m(c+1).fontStyle})},o.toDisplayString(i),5))],14,D))),128))],44,M))),128))]),_:1},8,["modelValue","direction","list","hover","limit-scroll-num","single-height","single-wait-time"])])):o.createCommentVNode("",!0)}});exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),d=require("lodash"),V=require("vue3-seamless-scroll"),f=require("nanoid"),M=require("../../commons/plugins/datasource/index.js"),u=require("../../commons/plugins/event/index.js"),q=["onClick","onMouseenter","onMouseout"],D=["onClick"],W={key:1},H=o.defineComponent({name:"zv-text-row-scroll"}),J=o.defineComponent({...H,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(O,{expose:y,emit:g}){o.useCssVars(e=>({"1ecf4d84":e.basicOption.css.table.borderWidth+"px",d92d3a58:e.basicOption.css.table.borderStyle,daf516f4:e.basicOption.css.table.borderColor,"413c0106":e.basicOption.css.table.paddingLeft+"px","379313ec":e.basicOption.css.table.alignItems,ed7e110c:e.basicOption.css.table.justifyContent,"39d7a73e":e.basicOption.css.header.background,"1f2d0176":e.basicOption.css.header.height+"px","08fe595a":e.basicOption.css.header.color,"28eb118d":e.basicOption.css.header.fontSize+"px","5d78d5b7":e.basicOption.css.header.fontWeight,"0b14a692":e.basicOption.css.header.fontStyle,e3a9ffea:e.basicOption.css.body.height+"px","452338c9":e.basicOption.css.body.background,"7a020f4c":e.basicOption.css.oddBackground,b8859230:e.basicOption.css.body.color,"5f38823c":e.basicOption.css.body.fontSize+"px","68c46742":e.basicOption.css.body.fontWeight,"9ec990b2":e.basicOption.css.body.fontStyle}));const p=g,m=o.ref(f.nanoid()),l=o.ref([]),s=O,b=o.ref(s.basicOption.scroll.start),a=()=>{M.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{u.SHJParseEvent.parseEvents(s.useEvents,"dataListener",l),l.value=d.cloneDeep(e.data[0].data)||[],m.value=f.nanoid(),b.value=s.basicOption.scroll.start}catch{u.SHJParseEvent.parseEvents(s.useEvents,"dataListener",null),l.value=[],m.value=f.nanoid(),b.value=s.basicOption.scroll.start}}})},E=e=>{const t=[];for(const n in e)t.push(e[n]);return t};o.onMounted(()=>a()),o.watch(()=>d.cloneDeep(s.basicOption),(e,t)=>{d.isEqual(e,t)||a()},{deep:!0}),o.watch(()=>d.cloneDeep(s.sources),(e,t)=>{d.isEqual(e,t)||a()},{deep:!0}),y({refresh:()=>a(),refreshView:()=>a(),refreshData:()=>a()});const w=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.font.auto:!0},h=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.font.auto===!1?t.font:null},v=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.width.auto:!0},k=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.width.auto===!1?t.width.width:null},S=(e,t)=>{const n={row:e,rowIndex:t};p("on-click-row",n),u.SHJParseEvent.parseEvents(s.useEvents,"on-click-row",n)},C=(e,t)=>{const n={row:e,rowIndex:t};p("on-mouseenter-row",n),u.SHJParseEvent.parseEvents(s.useEvents,"on-mouseenter-row",n)},B=(e,t)=>{const n={row:e,rowIndex:t};p("on-mouseout-row",n),u.SHJParseEvent.parseEvents(s.useEvents,"on-mouseout-row",n)},z=(e,t,n,i)=>{const r={row:e,item:t,rowIndex:n,columnIndex:i};p("on-click-item",r),u.SHJParseEvent.parseEvents(s.useEvents,"on-click-item",r)};return(e,t)=>l.value.length>0?(o.openBlock(),o.createElementBlock("div",{key:m.value,class:"table-scroll"},[e.basicOption.css.header.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"table-header",style:o.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.backgroundImage})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(l.value[0]),(n,i)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:o.normalizeClass(["th",{customWidth:!v(i+1)}]),style:o.normalizeStyle({"--width":k(i+1)+"px"})},[o.createElementVNode("p",null,o.toDisplayString(n),1)],6))),128))],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(V.Vue3SeamlessScroll),{modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=n=>b.value=n),direction:e.basicOption.scroll.direction,list:l.value,"is-watch":"",hover:e.basicOption.scroll.hover,"limit-scroll-num":e.basicOption.scroll.limitScrollNum,"single-height":e.basicOption.scroll.isSingle?e.basicOption.css.body.height:0,"single-wait-time":e.basicOption.scroll.singleWaitTime,class:"table-body"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(n,i)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:"tr",style:o.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor}),onClick:r=>S(n,i),onMouseenter:r=>C(n,i),onMouseout:r=>B(n,i)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(E(n),(r,c)=>(o.openBlock(),o.createElementBlock("div",{key:r,class:o.normalizeClass(["td",{customWidth:!v(c+1)}]),style:o.normalizeStyle({"--width":k(c+1)+"px"}),onClick:P=>z(n,r,i,c)},[w(c+1)?(o.openBlock(),o.createElementBlock("p",W,o.toDisplayString(r),1)):(o.openBlock(),o.createElementBlock("p",{key:0,class:"customFont",style:o.normalizeStyle({"--text-color":h(c+1).color,"--text-font-size":h(c+1).fontSize+"px","--text-font-style":h(c+1).fontStyle})},o.toDisplayString(r),5))],14,D))),128))],44,q))),128))]),_:1},8,["modelValue","direction","list","hover","limit-scroll-num","single-height","single-wait-time"])])):o.createCommentVNode("",!0)}});exports.default=J;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-c9a58eea"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-5d78d597"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),l=require("lodash"),f=require("nanoid"),B=require("vue-virtual-scroller");require("vue-virtual-scroller/dist/vue-virtual-scroller.css");const V=require("../../commons/core/datasource/index.js"),M=["onClick","onMouseenter","onMouseout"],q=["onClick"],D=o.defineComponent({name:"zv-text-table-basic"}),H=o.defineComponent({...D,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(w,{expose:y,emit:k}){o.useCssVars(e=>({"832a4e1c":e.basicOption.css.table.borderWidth+"px","52e7b726":e.basicOption.css.table.borderStyle,"5203c8d8":e.basicOption.css.table.borderColor,"3e50e718":e.basicOption.css.table.paddingLeft+"px","08a0254c":e.basicOption.css.table.alignItems,"51512c30":e.basicOption.css.table.justifyContent,"0d5408e0":e.basicOption.css.header.background,"6d4373e4":e.basicOption.css.header.height+"px",e220d87e:e.basicOption.css.header.color,"4b2ea07b":e.basicOption.css.header.fontSize+"px","1cf72a09":e.basicOption.css.header.fontWeight,"619d0000":e.basicOption.css.header.fontStyle,"8311940e":e.basicOption.css.body.height+"px","2a6e799b":e.basicOption.css.body.background,e1c58a54:e.basicOption.css.body.color,"1e7a3150":e.basicOption.css.body.fontSize+"px","4e0fa814":e.basicOption.css.body.fontWeight,"235b9495":e.basicOption.css.body.fontStyle}));const d=k,p=o.ref(f.nanoid()),c=o.ref([]),a=w,O=()=>{if(!c.value.length)return;const e=Object.keys(c.value[0]),t=a.basicOption.columns||[],s=e.map((n,r)=>{const i=t.find(h=>h.name===n)||{};return{name:i.name||n,label:i.label||n,visible:i.visible!==void 0?i.visible:!0,index:i.index!==void 0?i.index:r,width:i.width||{auto:!0,width:100},font:i.font||{auto:!0,color:"#ffffff",fontSize:12,fontStyle:"normal"}}});a.basicOption.columns=s.sort((n,r)=>n.index-r.index)},b=o.computed(()=>a.basicOption.columns||[]),m=o.computed(()=>b.value.filter(e=>e.visible).map(e=>e.name)),u=()=>{V.SHJDatasourceV2.parse({tId:a.uuid,sources:a.sources,callback:e=>{try{window.SHJParseEvent(a.useEvents,"dataListener",c),p.value=f.nanoid(),c.value=l.cloneDeep(e.data[0].data).map((t,s)=>({id:t.id||s,...t})),O()}catch{window.SHJParseEvent(a.useEvents,"dataListener",null),p.value=f.nanoid(),c.value=[]}}})},v=e=>{const t=b.value.find(s=>s.name===e);return t!=null&&t.width.auto?null:`${t==null?void 0:t.width.width}px`},S=e=>{const t=b.value.find(n=>n.name===e);if(!t)return{};const s={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"};return{color:t.font.color,fontSize:`${t.font.fontSize}px`,fontStyle:t.font.fontStyle,...s,...t.textStyle}},g=l.debounce((e,t)=>{const s={row:e,rowIndex:t};d("on-click-row",s),window.SHJParseEvent(a.useEvents,"on-click-row",s)},100),E=l.debounce((e,t)=>{const s={row:e,rowIndex:t};d("on-mouseenter-row",s),window.SHJParseEvent(a.useEvents,"on-mouseenter-row",s)},100),C=l.debounce((e,t)=>{const s={row:e,rowIndex:t};d("on-mouseout-row",s),window.SHJParseEvent(a.useEvents,"on-mouseout-row",s)},100),z=l.debounce((e,t,s,n)=>{const r={row:e,item:t,rowIndex:s,columnIndex:n};d("on-click-item",r),window.SHJParseEvent(a.useEvents,"on-click-item",r)},100);return o.watch(()=>l.cloneDeep(a.sources),(e,t)=>{l.isEqual(e,t)||u()},{deep:!0}),o.watch(()=>l.cloneDeep(a.basicOption),(e,t)=>{l.isEqual(e,t)||u()},{deep:!0}),o.onMounted(()=>u()),y({refresh:()=>u(),refreshView:()=>u(),refreshData:()=>u()}),(e,t)=>{const s=o.resolveComponent("el-tooltip");return c.value.length>0?(o.openBlock(),o.createElementBlock("div",{key:p.value,class:"table-scroll"},[e.basicOption.css.header.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"table-header",style:o.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.background})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,n=>(o.openBlock(),o.createElementBlock("div",{key:n,class:"th",style:o.normalizeStyle({width:v(n)})},[o.createElementVNode("p",null,o.toDisplayString(n),1)],4))),128))],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(B.RecycleScroller),{id:"",class:"table-body",items:c.value,"item-size":e.basicOption.css.body.height,"key-field":"id"},{default:o.withCtx(({item:n,index:r})=>[o.createElementVNode("div",{class:"tr",style:o.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor,"--odd-background":e.basicOption.css.oddBackground}),onClick:i=>o.unref(g)(n,r),onMouseenter:i=>o.unref(E)(n,r),onMouseout:i=>o.unref(C)(n,r)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,i=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"td",style:o.normalizeStyle({width:v(i)}),onClick:h=>o.unref(z)(n,n[i],r,m.value.indexOf(i))},[o.createVNode(s,{content:n[i]},{default:o.withCtx(()=>[o.createElementVNode("p",{style:o.normalizeStyle(S(i))},o.toDisplayString(n[i]),5)]),_:2},1032,["content"])],12,q))),128))],44,M)]),_:1},8,["items","item-size"])])):o.createCommentVNode("",!0)}}});exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("lodash"),f=require("nanoid"),V=require("vue-virtual-scroller");require("vue-virtual-scroller/dist/vue-virtual-scroller.css");const q=require("../../commons/plugins/datasource/index.js"),d=require("../../commons/plugins/event/index.js"),M=["onClick","onMouseenter","onMouseout"],$=["onClick"],D=t.defineComponent({name:"zv-text-table-basic"}),H=t.defineComponent({...D,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(k,{expose:w,emit:O}){t.useCssVars(e=>({b3073844:e.basicOption.css.table.borderWidth+"px","8b05448c":e.basicOption.css.table.borderStyle,"8ccd2128":e.basicOption.css.table.borderColor,"6e2dd140":e.basicOption.css.table.paddingLeft+"px","337db774":e.basicOption.css.table.alignItems,"175b4ad4":e.basicOption.css.table.justifyContent,"60eba224":e.basicOption.css.header.background,a5715660:e.basicOption.css.header.height+"px","07adbea6":e.basicOption.css.header.color,cc841332:e.basicOption.css.header.fontSize+"px",f6e65ec6:e.basicOption.css.header.fontWeight,"8c7a9228":e.basicOption.css.header.fontStyle,"499661e5":e.basicOption.css.body.height+"px","72b695a2":e.basicOption.css.body.background,"30ed12c2":e.basicOption.css.body.color,"5e7e123c":e.basicOption.css.body.fontSize+"px","2b7438b0":e.basicOption.css.body.fontWeight,28659681:e.basicOption.css.body.fontStyle}));const p=O,b=t.ref(f.nanoid()),l=t.ref([]),i=k,S=()=>{if(!l.value.length)return;const e=Object.keys(l.value[0]),o=i.basicOption.columns||[],s=e.map((n,r)=>{const a=o.find(y=>y.name===n)||{};return{name:a.name||n,label:a.label||n,visible:a.visible!==void 0?a.visible:!0,index:a.index!==void 0?a.index:r,width:a.width||{auto:!0,width:100},font:a.font||{auto:!0,color:"#ffffff",fontSize:12,fontStyle:"normal"}}});i.basicOption.columns=s.sort((n,r)=>n.index-r.index)},v=t.computed(()=>i.basicOption.columns||[]),m=t.computed(()=>v.value.filter(e=>e.visible).map(e=>e.name)),u=()=>{q.SHJDatasourceV2.parse({tId:i.uuid,sources:i.sources,callback:e=>{try{d.SHJParseEvent.parseEvents(i.useEvents,"dataListener",l),b.value=f.nanoid(),l.value=c.cloneDeep(e.data[0].data).map((o,s)=>({id:o.id||s,...o})),S()}catch{d.SHJParseEvent.parseEvents(i.useEvents,"dataListener",null),b.value=f.nanoid(),l.value=[]}}})},h=e=>{const o=v.value.find(s=>s.name===e);return o!=null&&o.width.auto?null:`${o==null?void 0:o.width.width}px`},E=e=>{const o=v.value.find(n=>n.name===e);if(!o)return{};const s={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"};return{color:o.font.color,fontSize:`${o.font.fontSize}px`,fontStyle:o.font.fontStyle,...s,...o.textStyle}},g=c.debounce((e,o)=>{const s={row:e,rowIndex:o};p("on-click-row",s),d.SHJParseEvent.parseEvents(i.useEvents,"on-click-row",s)},100),C=c.debounce((e,o)=>{const s={row:e,rowIndex:o};p("on-mouseenter-row",s),d.SHJParseEvent.parseEvents(i.useEvents,"on-mouseenter-row",s)},100),z=c.debounce((e,o)=>{const s={row:e,rowIndex:o};p("on-mouseout-row",s),d.SHJParseEvent.parseEvents(i.useEvents,"on-mouseout-row",s)},100),B=c.debounce((e,o,s,n)=>{const r={row:e,item:o,rowIndex:s,columnIndex:n};p("on-click-item",r),d.SHJParseEvent.parseEvents(i.useEvents,"on-click-item",r)},100);return t.watch(()=>c.cloneDeep(i.sources),(e,o)=>{c.isEqual(e,o)||u()},{deep:!0}),t.watch(()=>c.cloneDeep(i.basicOption),(e,o)=>{c.isEqual(e,o)||u()},{deep:!0}),t.onMounted(()=>u()),w({refresh:()=>u(),refreshView:()=>u(),refreshData:()=>u()}),(e,o)=>{const s=t.resolveComponent("el-tooltip");return l.value.length>0?(t.openBlock(),t.createElementBlock("div",{key:b.value,class:"table-scroll"},[e.basicOption.css.header.show?(t.openBlock(),t.createElementBlock("div",{key:0,class:"table-header",style:t.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.background})`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n,class:"th",style:t.normalizeStyle({width:h(n)})},[t.createElementVNode("p",null,t.toDisplayString(n),1)],4))),128))],4)):t.createCommentVNode("",!0),t.createVNode(t.unref(V.RecycleScroller),{id:"",class:"table-body",items:l.value,"item-size":e.basicOption.css.body.height,"key-field":"id"},{default:t.withCtx(({item:n,index:r})=>[t.createElementVNode("div",{class:"tr",style:t.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor,"--odd-background":e.basicOption.css.oddBackground}),onClick:a=>t.unref(g)(n,r),onMouseenter:a=>t.unref(C)(n,r),onMouseout:a=>t.unref(z)(n,r)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"td",style:t.normalizeStyle({width:h(a)}),onClick:y=>t.unref(B)(n,n[a],r,m.value.indexOf(a))},[t.createVNode(s,{content:n[a]},{default:t.withCtx(()=>[t.createElementVNode("p",{style:t.normalizeStyle(E(a))},t.toDisplayString(n[a]),5)]),_:2},1032,["content"])],12,$))),128))],44,M)]),_:1},8,["items","item-size"])])):t.createCommentVNode("",!0)}}});exports.default=H;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-7a9a366c"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-1ca17191"]]);exports.default=u;