@shjjs/visual-ui 1.0.39 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/es/commons/core/earth/main.vue.mjs +7 -7
  2. package/es/commons/core/useChart.mjs +301 -301
  3. package/es/commons/utils/parseDataset.mjs +19 -19
  4. package/es/commons/utils/typescript.d.ts +5 -5
  5. package/es/components/chart/commons/components/common-chart/index.vue.mjs +269 -269
  6. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +247 -247
  7. package/es/components/chart/commons/hooks/useChart.mjs +316 -316
  8. package/es/components/chart-other-candlestick-basic/index.vue.mjs +261 -261
  9. package/es/components/chart-other-candlestick-demo/index.vue.mjs +260 -260
  10. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +260 -260
  11. package/es/components/chart-other-circular-graph/index.vue.mjs +260 -260
  12. package/es/components/chart-other-force/index.vue.mjs +260 -260
  13. package/es/components/chart-other-force2/index.vue.mjs +260 -260
  14. package/es/components/chart-other-funnel/index.vue.mjs +260 -260
  15. package/es/components/chart-other-funnel-contrast/index.vue.mjs +260 -260
  16. package/es/components/chart-other-funnel-split/index.vue.mjs +260 -260
  17. package/es/components/chart-other-funnel2/index.vue.mjs +260 -260
  18. package/es/components/chart-other-gauge/index.vue.mjs +260 -260
  19. package/es/components/chart-other-gauge-grade/index.vue.mjs +260 -260
  20. package/es/components/chart-other-gauge-stage/index.vue.mjs +260 -260
  21. package/es/components/chart-other-graph-basic/index.vue.mjs +260 -260
  22. package/es/components/chart-other-graph-basic2/index.vue.mjs +260 -260
  23. package/es/components/chart-other-graph-calendar/index.vue.mjs +260 -260
  24. package/es/components/chart-other-grid-percentage/index.vue.mjs +266 -266
  25. package/es/components/chart-other-heatmap/index.vue.mjs +260 -260
  26. package/es/components/chart-other-label-gauge/index.vue.mjs +262 -262
  27. package/es/components/chart-other-liquidfill/index.vue.mjs +259 -259
  28. package/es/components/chart-other-parallel-basic/index.vue.mjs +260 -260
  29. package/es/components/chart-other-parallel-mul/index.vue.mjs +260 -260
  30. package/es/components/chart-other-radar/index.vue.mjs +281 -281
  31. package/es/components/chart-other-radar-stack/index.vue.mjs +261 -261
  32. package/es/components/chart-other-sunburst-basic/index.vue.mjs +260 -260
  33. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +260 -260
  34. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +260 -260
  35. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +260 -260
  36. package/es/components/chart-other-sunburst-book/index.vue.mjs +260 -260
  37. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +260 -260
  38. package/es/components/chart-other-sunburst-radius/index.vue.mjs +260 -260
  39. package/es/components/chart-other-theme-river/index.vue.mjs +265 -265
  40. package/es/components/chart-other-tree/index.vue.mjs +259 -259
  41. package/es/components/chart-other-tree-line/index.vue.mjs +259 -259
  42. package/es/components/chart-other-treemap/index.vue.mjs +259 -259
  43. package/es/components/chart-other-treemap-basic/index.vue.mjs +259 -259
  44. package/es/components/chart-other-word-cloud/index.vue.mjs +259 -259
  45. package/es/components/commons/custom-component-render/index.d.ts +76 -76
  46. package/es/components/commons/custom-component-render/index.vue.d.ts +76 -76
  47. package/es/components/commons/custom-component-render/index.vue.mjs +7 -7
  48. package/es/components/commons/custom-component-render/index.vue2.mjs +280 -280
  49. package/es/components/commons-echarts/compileAndRunEcharts.mjs +279 -279
  50. package/es/components/commons-gaussian-splatting-view/index.vue.mjs +7 -7
  51. package/es/components/commons-loop-iterator/index.vue.mjs +7 -7
  52. package/es/components/commons-loop-iterator/index.vue2.mjs +315 -315
  53. package/es/components/commons-product-model/index.vue.mjs +7 -7
  54. package/es/components/commons-product-model/index.vue2.mjs +424 -424
  55. package/es/components/commons-qrcode/index.vue.d.ts +90 -90
  56. package/es/components/commons-qrcode/index.vue.mjs +7 -7
  57. package/es/components/commons-three-loader/index.vue.mjs +7 -7
  58. package/es/components/commons-three-loader/index.vue2.mjs +410 -410
  59. package/es/components/commons-three-loader3/index.vue.mjs +7 -7
  60. package/es/components/commons-three-loader3/index.vue2.mjs +387 -387
  61. package/es/components/commons-weather/index.vue.mjs +7 -7
  62. package/es/components/commons-weather/index.vue2.mjs +297 -297
  63. package/es/components/commons-weather-dynamic/index.vue.mjs +7 -7
  64. package/es/components/commons-weather-dynamic/index.vue2.mjs +305 -305
  65. package/es/components/graphical-circle/index.vue.mjs +7 -7
  66. package/es/components/graphical-diamond/index.vue.mjs +7 -7
  67. package/es/components/graphical-hexagon/index.vue.mjs +7 -7
  68. package/es/components/graphical-isosceles-triangle/index.vue.mjs +7 -7
  69. package/es/components/graphical-pentagon/index.vue.mjs +7 -7
  70. package/es/components/graphical-rect/index.vue.mjs +7 -7
  71. package/es/components/graphical-right-triangle/index.vue.mjs +7 -7
  72. package/es/components/index.d.ts +113 -113
  73. package/es/components/index.mjs +364 -364
  74. package/es/components/interaction/button/index.vue.mjs +7 -7
  75. package/es/components/interaction/button/index.vue2.mjs +280 -280
  76. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +7 -7
  77. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +409 -409
  78. package/es/components/interaction/date-picker/src/date-picker/index.d.ts +186 -186
  79. package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +186 -186
  80. package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +186 -186
  81. package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +186 -186
  82. package/es/components/interaction/tabs/index.vue.mjs +272 -272
  83. package/es/components/interaction/tabs-icon/index.vue.mjs +277 -277
  84. package/es/components/interaction-button/index.vue.mjs +7 -7
  85. package/es/components/interaction-button-image/index.vue.mjs +7 -7
  86. package/es/components/interaction-button-refresh/index.vue.mjs +7 -7
  87. package/es/components/interaction-data-picker/index.vue.mjs +7 -7
  88. package/es/components/interaction-input/index.vue.mjs +7 -7
  89. package/es/components/interaction-input/index.vue2.mjs +286 -286
  90. package/es/components/interaction-select/index.vue.mjs +7 -7
  91. package/es/components/interaction-select/index.vue2.mjs +422 -422
  92. package/es/components/interaction-slider/index.vue.mjs +7 -7
  93. package/es/components/interaction-slider/index.vue2.mjs +283 -283
  94. package/es/components/interaction-switch/index.vue.mjs +7 -7
  95. package/es/components/interaction-switch/index.vue2.mjs +244 -244
  96. package/es/components/interaction-tabs/index.vue.mjs +7 -7
  97. package/es/components/interaction-tabs/index.vue2.mjs +255 -255
  98. package/es/components/interaction-tabs2/index.vue.mjs +7 -7
  99. package/es/components/interaction-tabs2/index.vue2.mjs +255 -255
  100. package/es/components/map-earth-basic/index.vue.mjs +332 -332
  101. package/es/components/map-earth-cool-tech/index.vue.mjs +332 -332
  102. package/es/components/map-earth-fly-line/index.vue.mjs +332 -332
  103. package/es/components/map-earth-hacker/index.vue.mjs +332 -332
  104. package/es/components/map-earth-particle/index.vue.mjs +332 -332
  105. package/es/components/media-audio/index.vue.mjs +7 -7
  106. package/es/components/media-audio/index.vue2.mjs +277 -277
  107. package/es/components/media-audio-dynamic/index.vue.mjs +7 -7
  108. package/es/components/media-audio-dynamic/index.vue2.mjs +296 -296
  109. package/es/components/media-carousel/index.vue.mjs +7 -7
  110. package/es/components/media-carousel-slides/index.vue.mjs +7 -7
  111. package/es/components/media-flv/index.vue.mjs +284 -284
  112. package/es/components/media-iframe/index.vue.mjs +7 -7
  113. package/es/components/media-iframe/index.vue2.mjs +217 -217
  114. package/es/components/media-iframe-carousel/index.vue.mjs +7 -7
  115. package/es/components/media-iframe-dynamic/index.vue.mjs +7 -7
  116. package/es/components/media-iframe-dynamic/index.vue2.mjs +261 -261
  117. package/es/components/media-image/index.vue.mjs +7 -7
  118. package/es/components/media-image-dynamic/index.vue.mjs +7 -7
  119. package/es/components/media-image-dynamic/index.vue2.mjs +236 -236
  120. package/es/components/media-m3u8/index.vue.mjs +302 -302
  121. package/es/components/media-m3u8-dynamic/index.vue.mjs +319 -319
  122. package/es/components/media-video/index.vue.mjs +7 -7
  123. package/es/components/media-video/index.vue2.mjs +258 -258
  124. package/es/components/media-video-dynamic/index.vue.mjs +7 -7
  125. package/es/components/media-video-dynamic/index.vue2.mjs +280 -280
  126. package/es/components/media-wavesurfer/index.vue.mjs +7 -7
  127. package/es/components/scene-amap2d/index.vue.mjs +7 -7
  128. package/es/components/scene-amap2d/index.vue2.mjs +627 -627
  129. package/es/components/scene-amap3d/index.vue.mjs +7 -7
  130. package/es/components/scene-amap3d/index.vue2.mjs +752 -752
  131. package/es/components/scene-default/index.vue.mjs +7 -7
  132. package/es/components/scene-default/index.vue2.mjs +221 -221
  133. package/es/components/scene-map3d/index.vue.mjs +8 -8
  134. package/es/components/scene-map3d/index.vue2.mjs +480 -480
  135. package/es/components/scene-ue-iframe/index.vue.mjs +7 -7
  136. package/es/components/scene-ue-iframe/index.vue2.mjs +242 -242
  137. package/es/components/scene-ue-shj/index.vue.mjs +7 -7
  138. package/es/components/scene-ue-shj/index.vue2.mjs +219 -219
  139. package/es/components/scene-unity-iframe/index.vue.mjs +7 -7
  140. package/es/components/scene-unity-iframe/index.vue2.mjs +224 -224
  141. package/es/components/scene-unity-webgl/index.vue.mjs +7 -7
  142. package/es/components/scene-unity-webgl/index.vue2.mjs +226 -226
  143. package/es/components/scene-vr/index.d.ts +101 -101
  144. package/es/components/scene-vr/index.vue.d.ts +102 -102
  145. package/es/components/scene-vr/index.vue.mjs +7 -7
  146. package/es/components/scene-vr/index.vue2.mjs +543 -543
  147. package/es/components/text/list/index.vue.mjs +295 -295
  148. package/es/components/text-carousel/index.vue.mjs +7 -7
  149. package/es/components/text-count-down/index.vue.mjs +7 -7
  150. package/es/components/text-count-down/index.vue2.mjs +284 -284
  151. package/es/components/text-over-number/index.vue.mjs +7 -7
  152. package/es/components/text-over-number/index.vue2.mjs +286 -286
  153. package/es/components/text-real-time/index.vue.mjs +7 -7
  154. package/es/components/text-real-time/index.vue2.mjs +241 -241
  155. package/es/components/text-row-scroll/index.vue.mjs +7 -7
  156. package/es/components/text-row-scroll/index.vue2.mjs +352 -352
  157. package/es/components/text-table-basic/index.vue.mjs +7 -7
  158. package/es/components/text-table-basic/index.vue2.mjs +366 -366
  159. package/es/components/text-table-scroll/index.vue.mjs +7 -7
  160. package/es/components/text-table-scroll/index.vue2.mjs +356 -356
  161. package/es/components/text-text-basic/index.vue.mjs +7 -7
  162. package/es/components/text-text-dynamic/index.vue.mjs +7 -7
  163. package/es/components/text-text-dynamic/index.vue2.mjs +242 -242
  164. package/es/components/text-title/index.vue.mjs +7 -7
  165. package/es/index.mjs +388 -388
  166. package/es/plugins/datasource/index.mjs +216 -216
  167. package/es/widgets.css +1 -1
  168. package/package.json +2 -2
  169. package/umd/index.js +33660 -0
  170. package/umd/widgets.css +1 -0
@@ -1,543 +1,543 @@
1
- import { defineComponent as M, ref as c, computed as _, watch as ie, onMounted as re, resolveComponent as A, createElementBlock as n, openBlock as s, createCommentVNode as l, createElementVNode as a, Fragment as L, withDirectives as P, vShow as j, normalizeStyle as E, createVNode as z, withCtx as D, renderList as ne, toDisplayString as se, createStaticVNode as ae, nextTick as pe } from "vue";
2
- import le from "./resources/zv-vr-select.svg.mjs";
3
- import H from "./resources/zv-return.svg.mjs";
4
- import ce from "./resources/zv-add.svg.mjs";
5
- import me from "./resources/zv-reduce.svg.mjs";
6
- import ue from "./resources/zv-play.svg.mjs";
7
- import de from "./resources/zv-pause.svg.mjs";
8
- import ve from "./resources/zv-refresh.svg.mjs";
9
- import T from "hls.js";
10
- import { isArray as we, debounce as fe, cloneDeep as I } from "lodash";
11
- import { useRoute as Se } from "vue-router";
12
- import "../text-text-basic/index.mjs";
13
- import "../text-table-basic/index.mjs";
14
- import "../chart-other-gauge/index.mjs";
15
- import "../chart-other-gauge-stage/index.mjs";
16
- import "../chart-other-gauge-grade/index.mjs";
17
- import "../chart-other-word-cloud/index.mjs";
18
- import "../chart-other-liquidfill/index.mjs";
19
- import "../chart-other-funnel/index.mjs";
20
- import "../chart-other-force/index.mjs";
21
- import "../chart-other-radar/index.mjs";
22
- import "../chart-other-funnel-split/index.mjs";
23
- import "../chart-other-funnel-contrast/index.mjs";
24
- import "../chart-other-candlestick-basic/index.mjs";
25
- import "../chart-other-candlestick-shanghai/index.mjs";
26
- import "../chart-other-candlestick-demo/index.mjs";
27
- import "../chart-other-heatmap/index.mjs";
28
- import "../chart-other-force2/index.mjs";
29
- import "../chart-other-graph-basic/index.mjs";
30
- import "../chart-other-graph-basic2/index.mjs";
31
- import "../chart-other-graph-calendar/index.mjs";
32
- import "../chart-other-tree-line/index.mjs";
33
- import "../chart-other-treemap-basic/index.mjs";
34
- import "../chart-other-sunburst-basic/index.mjs";
35
- import "../chart-other-sunburst-basic2/index.mjs";
36
- import "../chart-other-sunburst-basic3/index.mjs";
37
- import "../chart-other-sunburst-basic4/index.mjs";
38
- import "../chart-other-sunburst-book/index.mjs";
39
- import "../chart-other-sunburst-radius/index.mjs";
40
- import "../chart-other-sunburst-flavors/index.mjs";
41
- import "../chart-other-parallel-basic/index.mjs";
42
- import "../chart-other-parallel-mul/index.mjs";
43
- import "../chart-other-circular-graph/index.mjs";
44
- import "../map-earth-basic/index.mjs";
45
- import "../map-earth-cool-tech/index.mjs";
46
- import "../map-earth-particle/index.mjs";
47
- import "../map-earth-hacker/index.mjs";
48
- import "../map-earth-fly-line/index.mjs";
49
- import "../chart-other-grid-percentage/index.mjs";
50
- import "../chart-other-radar-stack/index.mjs";
51
- import "../chart-other-funnel2/index.mjs";
52
- import "../chart-other-label-gauge/index.mjs";
53
- import "../chart-other-theme-river/index.mjs";
54
- import "../chart-other-tree/index.mjs";
55
- import "../chart-other-treemap/index.mjs";
56
- import "../commons-product-model/index.mjs";
57
- import "../commons-vr-photo/index.mjs";
58
- import "../commons-vr-video/index.mjs";
59
- import "../commons-three-loader/index.mjs";
60
- import "../commons-three-loader3/index.mjs";
61
- import "../commons-loop-iterator/index.mjs";
62
- import "../commons-gaussian-splatting-view/index.mjs";
63
- import "../commons-babylon/index.mjs";
64
- import "../commons-svg/index.mjs";
65
- import "../commons-weather/index.mjs";
66
- import "../commons-weather-dynamic/index.mjs";
67
- import "../media-wavesurfer/index.mjs";
68
- import "../interaction-tabs/index.mjs";
69
- import "../interaction-tabs2/index.mjs";
70
- import "../interaction-button/index.mjs";
71
- import "../interaction-button-image/index.mjs";
72
- import "../interaction-select/index.mjs";
73
- import "../interaction-input/index.mjs";
74
- import "../interaction-radio/index.mjs";
75
- import "../interaction-slider/index.mjs";
76
- import "../interaction-switch/index.mjs";
77
- import "../interaction-data-picker/index.mjs";
78
- import "../interaction-button-refresh/index.mjs";
79
- import "../media-image/index.mjs";
80
- import "../text-title/index.mjs";
81
- import "../commons-qrcode/index.mjs";
82
- import "../media-video/index.mjs";
83
- import "../media-audio/index.mjs";
84
- import "../text-real-time/index.mjs";
85
- import "../media-carousel/index.mjs";
86
- import "../media-carousel-slides/index.mjs";
87
- import "../media-iframe-carousel/index.mjs";
88
- import "../media-iframe/index.mjs";
89
- import "../media-m3u8/index.mjs";
90
- import "../media-m3u8-dynamic/index.mjs";
91
- import "../media-audio-dynamic/index.mjs";
92
- import "../media-video-dynamic/index.mjs";
93
- import "../media-image-dynamic/index.mjs";
94
- import "../media-iframe-dynamic/index.mjs";
95
- import "../media-flv/index.mjs";
96
- import "../commons-echarts/index.mjs";
97
- import "../text-over-number/index.mjs";
98
- import "../text-table-scroll/index.mjs";
99
- import "../text-carousel/index.mjs";
100
- import "../text-row-scroll/index.mjs";
101
- import "../text-text-dynamic/index.mjs";
102
- import "../text-count-down/index.mjs";
103
- import "../graphical-circle/index.mjs";
104
- import "../graphical-diamond/index.mjs";
105
- import "../graphical-hexagon/index.mjs";
106
- import "../graphical-isosceles-triangle/index.mjs";
107
- import "../graphical-pentagon/index.mjs";
108
- import "../graphical-rect/index.mjs";
109
- import "../graphical-right-triangle/index.mjs";
110
- import "../scene-map3d/index.mjs";
111
- import "../scene-amap2d/index.mjs";
112
- import "../scene-amap3d/index.mjs";
113
- import "./index.mjs";
114
- import "../scene-unity-iframe/index.mjs";
115
- import "../scene-unity-webgl/index.mjs";
116
- import "../scene-ue-iframe/index.mjs";
117
- import "../scene-ue-shj/index.mjs";
118
- import "../scene-default/index.mjs";
119
- import "../interaction/tabs/index.mjs";
120
- import "../interaction/tabs-icon/index.mjs";
121
- import "../interaction/button/index.mjs";
122
- import "../interaction/date-picker/src/date-picker/index.mjs";
123
- import "../interaction/date-picker/src/date-picker-range/index.mjs";
124
- import "../text/list/index.mjs";
125
- import "../chart/src/bar/basic/index.mjs";
126
- import "../chart/src/bar/animation/index.mjs";
127
- import "../chart/src/bar/contrast/index.mjs";
128
- import "../chart/src/bar/contrast2/index.mjs";
129
- import "../chart/src/bar/contrast3/index.mjs";
130
- import "../chart/src/bar/gradient-column-chart/index.mjs";
131
- import "../chart/src/bar/horizontal/index.mjs";
132
- import "../chart/src/bar/horizontal-stack/index.mjs";
133
- import "../chart/src/bar/line-bar/index.mjs";
134
- import "../chart/src/bar/line-bar2/index.mjs";
135
- import "../chart/src/bar/loop/index.mjs";
136
- import "../chart/src/bar/mini/index.mjs";
137
- import "../chart/src/bar/polar/index.mjs";
138
- import "../chart/src/bar/polar-stack/index.mjs";
139
- import "../chart/src/bar/polar2/index.mjs";
140
- import "../chart/src/bar/radius-circle/index.mjs";
141
- import "../chart/src/bar/rank/index.mjs";
142
- import "../chart/src/bar/segmented-progress/index.mjs";
143
- import "../chart/src/bar/spire/index.mjs";
144
- import "../chart/src/bar/stack/index.mjs";
145
- import "../chart/src/bar/stack-line/index.mjs";
146
- import "../chart/src/bar/stack2/index.mjs";
147
- import "../chart/src/bar/stack3/index.mjs";
148
- import "../chart/src/bar/staggered/index.mjs";
149
- import "../chart/src/bar/three/index.mjs";
150
- import "../chart/src/bar/waterfall/index.mjs";
151
- import "../chart/src/bar/zebra/index.mjs";
152
- import "../chart/src/line/area-gradient/index.mjs";
153
- import "../chart/src/line/area-highlight/index.mjs";
154
- import "../chart/src/line/area-highlight2/index.mjs";
155
- import "../chart/src/line/basic/index.mjs";
156
- import "../chart/src/line/bump/index.mjs";
157
- import "../chart/src/line/dashed/index.mjs";
158
- import "../chart/src/line/ladder/index.mjs";
159
- import "../chart/src/line/logarithm/index.mjs";
160
- import "../chart/src/line/multix/index.mjs";
161
- import "../chart/src/line/polar-double/index.mjs";
162
- import "../chart/src/line/rain-flow/index.mjs";
163
- import "../chart/src/line/scale/index.mjs";
164
- import "../chart/src/line/smooth/index.mjs";
165
- import "../chart/src/line/smooth-area/index.mjs";
166
- import "../chart/src/line/stack/index.mjs";
167
- import "../chart/src/line/stack-area/index.mjs";
168
- import "../chart/src/line/temp/index.mjs";
169
- import "../chart/src/line/vertical/index.mjs";
170
- import "../chart/src/map/basic/index.mjs";
171
- import "../chart/src/map/bmap-basic/index.mjs";
172
- import "../chart/src/map/bmap-heatmap/index.mjs";
173
- import "../chart/src/map/bmap-rich/index.mjs";
174
- import "../chart/src/map/customize/index.mjs";
175
- import "../chart/src/map/lines/index.mjs";
176
- import "../chart/src/map/scatter/index.mjs";
177
- import "../chart/src/pie/3d/index.mjs";
178
- import "../chart/src/pie/basic/index.mjs";
179
- import "../chart/src/pie/basic2/index.mjs";
180
- import "../chart/src/pie/customized/index.mjs";
181
- import "../chart/src/pie/index/index.mjs";
182
- import "../chart/src/pie/interval/index.mjs";
183
- import "../chart/src/pie/legend-scroll/index.mjs";
184
- import "../chart/src/pie/radius/index.mjs";
185
- import "../chart/src/pie/rose/index.mjs";
186
- import "../chart/src/pie/round/index.mjs";
187
- import "../chart/src/pie/sunburst/index.mjs";
188
- import "../chart/src/scatter/basic/index.mjs";
189
- import "../chart/src/scatter/basic2/index.mjs";
190
- import "../chart/src/scatter/bubble/index.mjs";
191
- import "../chart/src/scatter/ripples/index.mjs";
192
- import "../commons/custom-component-render/index.mjs";
193
- /* empty css */
194
- /* empty css */
195
- import "../../plugins/datasource/utils/request.mjs";
196
- import "../../plugins/datasource/utils/wsManager.mjs";
197
- import { SHJParseEvent as f } from "../../plugins/event/index.mjs";
198
- const Ve = { class: "vr-scene-wrap" }, be = {
199
- id: "panorama",
200
- class: "vr-scene"
201
- }, ye = {
202
- id: "panorama-video-wrap",
203
- class: "vr-scene-main"
204
- }, ge = {
205
- key: 1,
206
- class: "vr-scene-controls"
207
- }, Oe = { class: "scene-list" }, He = ["onClick"], ke = ["src"], Je = { class: "label" }, he = ["autoplay", "loop", "volume"], Ee = ["src"], Te = {
208
- key: 3,
209
- class: "mouse-tip"
210
- }, Ce = M({ name: "zv-scene-vr" }), dr = /* @__PURE__ */ M({
211
- ...Ce,
212
- props: {
213
- basicOption: {},
214
- sources: {},
215
- useEvents: {},
216
- uuid: {},
217
- disableDrag: { type: Boolean }
218
- },
219
- emits: [
220
- "on-scene-loaded",
221
- "on-scene-scenechange",
222
- "on-scene-zooming",
223
- "on-scene-hotClick"
224
- ],
225
- setup(B, { emit: N }) {
226
- const G = Se(), t = B, S = N;
227
- f.parseEvents(t.useEvents, "on-page-loaded", null);
228
- const m = c(), u = c({ src: "", autoplay: !0, loop: !0, volume: 50 }), v = c(null), W = c(t.basicOption.default.firstScene), w = c(W.value), i = _(() => {
229
- try {
230
- return t.basicOption.scenes[w.value];
231
- } catch {
232
- return null;
233
- }
234
- }), C = {
235
- bylineLabel: "来自 %s",
236
- noPanoramaError: "未指定全景图像。",
237
- fileAccessError: "The file %s could not be accessed.",
238
- malformedURLError: "全景URL无法访问。",
239
- iOS8WebGLError: "Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",
240
- genericWebGLError: "您的浏览器没有显示此全景图所需的WebGL支持。",
241
- 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.)",
242
- unknownError: "未知错误。检查开发人员控制台。"
243
- }, Y = () => {
244
- const o = t.basicOption;
245
- window.SHJSceneVrViewer = window.pannellum.viewer("panorama", {
246
- ...o,
247
- default: Object.assign(I(o.default), { firstScene: w.value }),
248
- strings: C
249
- });
250
- }, U = () => {
251
- const o = () => {
252
- const p = document.getElementById("panorama-video-wrap");
253
- p.innerHTML = `
254
- <video
255
- id="panorama-video"
256
- autoplay
257
- class="video-js vjs-default-skin vr-scene vjs-big-play-centered"
258
- preload="none"
259
- style="width:100%;height:100%;"
260
- crossorigin="anonymous"
261
- >
262
- </video>
263
- `;
264
- };
265
- v.value && (v.value.dispose(), v.value = null, o()), v.value || o();
266
- const e = document.getElementById("panorama-video"), r = t.basicOption;
267
- if (v.value = window.videojs(e, {
268
- loop: !0,
269
- autoplay: !0,
270
- plugins: {
271
- pannellum: {
272
- ...t.basicOption,
273
- default: Object.assign(I(r.default), { firstScene: w.value }),
274
- strings: C
275
- }
276
- }
277
- }), window.SHJSceneVrViewer = v.value.pnlmViewer, i.value.sceneType === "video" && (e.src = i.value.panorama), i.value.sceneType === "hls")
278
- if (T.isSupported()) {
279
- const p = new T();
280
- p.loadSource(i.value.panorama), p.attachMedia(e), p.on(T.Events.MANIFEST_PARSED, () => {
281
- e.play();
282
- });
283
- } else e.canPlayType("application/vnd.apple.mpegurl") && (e.src = i.value.panorama);
284
- }, V = G.path.includes("designer-vr"), k = () => {
285
- if (window.pannellum && t.basicOption) {
286
- window.SHJSceneVrViewer && (window.SHJSceneVrViewer.destroy(), window.SHJSceneVrViewer = null), i.value.sceneType === "image" ? Y() : U();
287
- try {
288
- t.basicOption.scenes[window.SHJSceneVrViewer.getScene()] && (u.value = t.basicOption.default.audio, m.value && u.value && (window.SHJSceneVrViewer.audio = m, m.value.src = u.value.src, setTimeout(() => {
289
- m.value && (y.value = m.value.paused);
290
- }, 500)));
291
- } catch {
292
- }
293
- window.SHJSceneVrViewer.on("load", () => {
294
- S("on-scene-loaded", i.value), f.parseEvents(t.useEvents, "on-scene-loaded", i.value);
295
- }), V || t.basicOption.default.autoRotate === 0 ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate();
296
- try {
297
- window.SHJSceneVrViewer && async function() {
298
- for (const o in t.basicOption.scenes)
299
- Object.prototype.hasOwnProperty.call(t.basicOption.scenes, o) && t.basicOption.scenes[o].hotSpots.forEach(async (r) => {
300
- await setTimeout(() => {
301
- r.draggable = V, window.SHJSceneVrViewer.removeHotSpot(r.id, o), window.SHJSceneVrViewer.addHotSpot(r, o);
302
- }, 100);
303
- });
304
- }();
305
- } catch {
306
- }
307
- window.SHJSceneVrViewer.on("scenechange", (o) => {
308
- const e = document.getElementsByTagName("video");
309
- if (we(e) && e.length > 0 && e.forEach((r) => {
310
- r && r.pause();
311
- }), i.value) {
312
- const r = i.value.sceneType;
313
- w.value = o;
314
- const p = i.value.sceneType;
315
- setTimeout(() => {
316
- (p !== "image" || r !== "image" && p === "image") && k(), g.value = w.value, S("on-scene-scenechange", i.value), f.parseEvents(t.useEvents, "on-scene-scenechange", i.value);
317
- }), V ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate();
318
- } else
319
- w.value = t.basicOption.default.firstScene, pe(() => {
320
- k(), S("on-scene-scenechange", i.value), f.parseEvents(t.useEvents, "on-scene-scenechange", i.value);
321
- });
322
- }), window.SHJSceneVrViewer.on("zoomchange", fe((o) => {
323
- S("on-scene-zooming", i.value), f.parseEvents(t.useEvents, "on-scene-zooming", i.value);
324
- }, 300)), window.SHJSceneVrViewer.on("hot-click", (o) => {
325
- S("on-scene-hotClick", o), f.parseEvents(t.useEvents, "on-scene-hotClick", o);
326
- });
327
- }
328
- }, g = c(t.basicOption.default.firstScene), $ = _(() => {
329
- const o = [];
330
- if (t.basicOption) {
331
- const e = t.basicOption.scenes;
332
- for (const r in e)
333
- if (Object.prototype.hasOwnProperty.call(e, r)) {
334
- const p = e[r];
335
- o.push({ label: p.label, value: r, thumbnail: p.cover });
336
- }
337
- }
338
- return o.sort((e, r) => {
339
- const p = parseInt(e.value.replace("scene", "")), d = parseInt(r.value.replace("scene", ""));
340
- return p - d;
341
- });
342
- });
343
- ie(() => t.basicOption.default, () => {
344
- V ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate();
345
- }, { deep: !0 });
346
- const F = (o) => {
347
- window.SHJSceneVrViewer && g.value !== o && (g.value = o, window.SHJSceneVrViewer.isLoaded() && (window.SHJSceneVrViewer.loadScene(o), V ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate()));
348
- }, J = c(), b = c(!0), Z = () => {
349
- b.value ? J.value.style.bottom = "-999px" : J.value.style.bottom = "80px", b.value = !b.value;
350
- };
351
- re(() => {
352
- t.basicOption && (t.basicOption.default.controls === void 0 && (t.basicOption.default.controls = i.value.controls), t.basicOption.default.audio === void 0 && (t.basicOption.default.audio = i.value.audio)), k(), te();
353
- });
354
- const K = () => {
355
- window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch() + 10);
356
- }, q = () => {
357
- window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch() - 10);
358
- }, Q = () => {
359
- window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw() - 10);
360
- }, X = () => {
361
- window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw() + 10);
362
- }, x = () => {
363
- window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov() - 10);
364
- }, ee = () => {
365
- window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov() + 10);
366
- }, y = c(!1), R = (o) => {
367
- m.value && (o === "play" ? (m.value.play(), y.value = !1) : (m.value.pause(), y.value = !0));
368
- }, oe = () => {
369
- window.SHJSceneVrViewer.startAutoRotate();
370
- };
371
- let h;
372
- const O = c(!1), te = () => {
373
- t.basicOption.default.controls ? O.value = t.basicOption.default.controls.mouseTipShow : O.value = !0, h && clearTimeout(h), h = setTimeout(() => {
374
- O.value = !1;
375
- }, 3500);
376
- };
377
- return (o, e) => {
378
- const r = A("el-tooltip"), p = A("el-scrollbar");
379
- return s(), n("div", Ve, [
380
- i.value ? (s(), n(L, { key: 0 }, [
381
- P(a("div", be, null, 512), [
382
- [j, i.value.sceneType === "image"]
383
- ]),
384
- P(a("div", ye, null, 512), [
385
- [j, i.value.sceneType !== "image"]
386
- ])
387
- ], 64)) : l("", !0),
388
- o.basicOption.default.controls ? (s(), n("div", ge, [
389
- o.basicOption.default.controls.scene ? (s(), n("div", {
390
- key: 0,
391
- class: "btn-icon left",
392
- style: E({ borderColor: b.value ? "#ff7d00" : "#ffffff3d" }),
393
- onClick: Z
394
- }, [
395
- z(r, { content: "场景选择" }, {
396
- default: D(() => e[2] || (e[2] = [
397
- a("img", {
398
- src: le,
399
- alt: ""
400
- }, null, -1)
401
- ])),
402
- _: 1
403
- })
404
- ], 4)) : l("", !0),
405
- o.basicOption.default.controls.left ? (s(), n("div", {
406
- key: 1,
407
- class: "btn-icon left",
408
- onClick: Q
409
- }, e[3] || (e[3] = [
410
- a("img", {
411
- src: H,
412
- alt: ""
413
- }, null, -1)
414
- ]))) : l("", !0),
415
- o.basicOption.default.controls.right ? (s(), n("div", {
416
- key: 2,
417
- class: "btn-icon right",
418
- onClick: X
419
- }, e[4] || (e[4] = [
420
- a("img", {
421
- src: H,
422
- alt: ""
423
- }, null, -1)
424
- ]))) : l("", !0),
425
- o.basicOption.default.controls.top ? (s(), n("div", {
426
- key: 3,
427
- class: "btn-icon up",
428
- onClick: K
429
- }, e[5] || (e[5] = [
430
- a("img", {
431
- src: H,
432
- alt: ""
433
- }, null, -1)
434
- ]))) : l("", !0),
435
- o.basicOption.default.controls.bottom ? (s(), n("div", {
436
- key: 4,
437
- class: "btn-icon down",
438
- onClick: q
439
- }, e[6] || (e[6] = [
440
- a("img", {
441
- src: H,
442
- alt: ""
443
- }, null, -1)
444
- ]))) : l("", !0),
445
- o.basicOption.default.controls.magnify ? (s(), n("div", {
446
- key: 5,
447
- class: "btn-icon",
448
- onClick: x
449
- }, e[7] || (e[7] = [
450
- a("img", {
451
- src: ce,
452
- alt: ""
453
- }, null, -1)
454
- ]))) : l("", !0),
455
- o.basicOption.default.controls.shrink ? (s(), n("div", {
456
- key: 6,
457
- class: "btn-icon",
458
- onClick: ee
459
- }, e[8] || (e[8] = [
460
- a("img", {
461
- src: me,
462
- alt: ""
463
- }, null, -1)
464
- ]))) : l("", !0),
465
- y.value && u.value.src && o.basicOption.default.audio ? (s(), n("div", {
466
- key: 7,
467
- class: "btn-icon",
468
- onClick: e[0] || (e[0] = (d) => R("play"))
469
- }, e[9] || (e[9] = [
470
- a("img", {
471
- src: ue,
472
- alt: ""
473
- }, null, -1)
474
- ]))) : l("", !0),
475
- !y.value && u.value.src && o.basicOption.default.audio ? (s(), n("div", {
476
- key: 8,
477
- class: "btn-icon",
478
- onClick: e[1] || (e[1] = (d) => R("pause"))
479
- }, e[10] || (e[10] = [
480
- a("img", {
481
- src: de,
482
- alt: ""
483
- }, null, -1)
484
- ]))) : l("", !0),
485
- o.basicOption.default.controls.rotate ? (s(), n("div", {
486
- key: 9,
487
- class: "btn-icon",
488
- onClick: oe
489
- }, e[11] || (e[11] = [
490
- a("img", {
491
- src: ve,
492
- alt: ""
493
- }, null, -1)
494
- ]))) : l("", !0)
495
- ])) : l("", !0),
496
- o.basicOption.default.controls ? (s(), n("div", {
497
- key: 2,
498
- ref_key: "sceneMenuRef",
499
- ref: J,
500
- class: "scene-menu",
501
- style: E({ bottom: b.value && o.basicOption.default.controls.scene ? "80px" : "-9999999999999px" })
502
- }, [
503
- z(p, null, {
504
- default: D(() => [
505
- a("div", Oe, [
506
- (s(!0), n(L, null, ne($.value, (d) => (s(), n("div", {
507
- key: d.value,
508
- class: "scene-item",
509
- style: E({ borderColor: g.value === d.value ? "#ff7d00" : "#fff" }),
510
- onClick: (Re) => F(d.value)
511
- }, [
512
- a("img", {
513
- class: "thumbnail",
514
- src: d.thumbnail
515
- }, null, 8, ke),
516
- a("p", Je, se(d.label), 1)
517
- ], 12, He))), 128))
518
- ])
519
- ]),
520
- _: 1
521
- })
522
- ], 4)) : l("", !0),
523
- a("audio", {
524
- ref_key: "audioRef",
525
- ref: m,
526
- autoplay: u.value.autoplay,
527
- loop: u.value.loop,
528
- volume: u.value.volume
529
- }, [
530
- a("source", {
531
- src: u.value.src
532
- }, null, 8, Ee)
533
- ], 8, he),
534
- O.value ? (s(), n("div", Te, e[12] || (e[12] = [
535
- ae('<div class="icon-wrap" data-v-40ea83da><div class="left" data-v-40ea83da><i class="iconfont zv-drop-down" data-v-40ea83da></i></div><i class="iconfont zv-mouse" data-v-40ea83da></i><div class="right" data-v-40ea83da><i class="iconfont zv-drop-down" data-v-40ea83da></i></div></div><p class="title" data-v-40ea83da>左右拖动   更多精彩</p>', 2)
536
- ]))) : l("", !0)
537
- ]);
538
- };
539
- }
540
- });
541
- export {
542
- dr as default
543
- };
1
+ import { defineComponent as M, ref as c, computed as _, watch as ie, onMounted as re, resolveComponent as A, createElementBlock as n, openBlock as s, createCommentVNode as l, createElementVNode as a, Fragment as L, withDirectives as P, vShow as j, normalizeStyle as E, createVNode as z, withCtx as D, renderList as ne, toDisplayString as se, createStaticVNode as ae, nextTick as pe } from "vue";
2
+ import le from "./resources/zv-vr-select.svg.mjs";
3
+ import H from "./resources/zv-return.svg.mjs";
4
+ import ce from "./resources/zv-add.svg.mjs";
5
+ import me from "./resources/zv-reduce.svg.mjs";
6
+ import ue from "./resources/zv-play.svg.mjs";
7
+ import de from "./resources/zv-pause.svg.mjs";
8
+ import ve from "./resources/zv-refresh.svg.mjs";
9
+ import T from "hls.js";
10
+ import { isArray as we, debounce as fe, cloneDeep as I } from "lodash";
11
+ import { useRoute as Se } from "vue-router";
12
+ import "../text-text-basic/index.mjs";
13
+ import "../text-table-basic/index.mjs";
14
+ import "../chart-other-gauge/index.mjs";
15
+ import "../chart-other-gauge-stage/index.mjs";
16
+ import "../chart-other-gauge-grade/index.mjs";
17
+ import "../chart-other-word-cloud/index.mjs";
18
+ import "../chart-other-liquidfill/index.mjs";
19
+ import "../chart-other-funnel/index.mjs";
20
+ import "../chart-other-force/index.mjs";
21
+ import "../chart-other-radar/index.mjs";
22
+ import "../chart-other-funnel-split/index.mjs";
23
+ import "../chart-other-funnel-contrast/index.mjs";
24
+ import "../chart-other-candlestick-basic/index.mjs";
25
+ import "../chart-other-candlestick-shanghai/index.mjs";
26
+ import "../chart-other-candlestick-demo/index.mjs";
27
+ import "../chart-other-heatmap/index.mjs";
28
+ import "../chart-other-force2/index.mjs";
29
+ import "../chart-other-graph-basic/index.mjs";
30
+ import "../chart-other-graph-basic2/index.mjs";
31
+ import "../chart-other-graph-calendar/index.mjs";
32
+ import "../chart-other-tree-line/index.mjs";
33
+ import "../chart-other-treemap-basic/index.mjs";
34
+ import "../chart-other-sunburst-basic/index.mjs";
35
+ import "../chart-other-sunburst-basic2/index.mjs";
36
+ import "../chart-other-sunburst-basic3/index.mjs";
37
+ import "../chart-other-sunburst-basic4/index.mjs";
38
+ import "../chart-other-sunburst-book/index.mjs";
39
+ import "../chart-other-sunburst-radius/index.mjs";
40
+ import "../chart-other-sunburst-flavors/index.mjs";
41
+ import "../chart-other-parallel-basic/index.mjs";
42
+ import "../chart-other-parallel-mul/index.mjs";
43
+ import "../chart-other-circular-graph/index.mjs";
44
+ import "../map-earth-basic/index.mjs";
45
+ import "../map-earth-cool-tech/index.mjs";
46
+ import "../map-earth-particle/index.mjs";
47
+ import "../map-earth-hacker/index.mjs";
48
+ import "../map-earth-fly-line/index.mjs";
49
+ import "../chart-other-grid-percentage/index.mjs";
50
+ import "../chart-other-radar-stack/index.mjs";
51
+ import "../chart-other-funnel2/index.mjs";
52
+ import "../chart-other-label-gauge/index.mjs";
53
+ import "../chart-other-theme-river/index.mjs";
54
+ import "../chart-other-tree/index.mjs";
55
+ import "../chart-other-treemap/index.mjs";
56
+ import "../commons-product-model/index.mjs";
57
+ import "../commons-vr-photo/index.mjs";
58
+ import "../commons-vr-video/index.mjs";
59
+ import "../commons-three-loader/index.mjs";
60
+ import "../commons-three-loader3/index.mjs";
61
+ import "../commons-loop-iterator/index.mjs";
62
+ import "../commons-gaussian-splatting-view/index.mjs";
63
+ import "../commons-babylon/index.mjs";
64
+ import "../commons-svg/index.mjs";
65
+ import "../commons-weather/index.mjs";
66
+ import "../commons-weather-dynamic/index.mjs";
67
+ import "../media-wavesurfer/index.mjs";
68
+ import "../interaction-tabs/index.mjs";
69
+ import "../interaction-tabs2/index.mjs";
70
+ import "../interaction-button/index.mjs";
71
+ import "../interaction-button-image/index.mjs";
72
+ import "../interaction-select/index.mjs";
73
+ import "../interaction-input/index.mjs";
74
+ import "../interaction-radio/index.mjs";
75
+ import "../interaction-slider/index.mjs";
76
+ import "../interaction-switch/index.mjs";
77
+ import "../interaction-data-picker/index.mjs";
78
+ import "../interaction-button-refresh/index.mjs";
79
+ import "../media-image/index.mjs";
80
+ import "../text-title/index.mjs";
81
+ import "../commons-qrcode/index.mjs";
82
+ import "../media-video/index.mjs";
83
+ import "../media-audio/index.mjs";
84
+ import "../text-real-time/index.mjs";
85
+ import "../media-carousel/index.mjs";
86
+ import "../media-carousel-slides/index.mjs";
87
+ import "../media-iframe-carousel/index.mjs";
88
+ import "../media-iframe/index.mjs";
89
+ import "../media-m3u8/index.mjs";
90
+ import "../media-m3u8-dynamic/index.mjs";
91
+ import "../media-audio-dynamic/index.mjs";
92
+ import "../media-video-dynamic/index.mjs";
93
+ import "../media-image-dynamic/index.mjs";
94
+ import "../media-iframe-dynamic/index.mjs";
95
+ import "../media-flv/index.mjs";
96
+ import "../commons-echarts/index.mjs";
97
+ import "../text-over-number/index.mjs";
98
+ import "../text-table-scroll/index.mjs";
99
+ import "../text-carousel/index.mjs";
100
+ import "../text-row-scroll/index.mjs";
101
+ import "../text-text-dynamic/index.mjs";
102
+ import "../text-count-down/index.mjs";
103
+ import "../graphical-circle/index.mjs";
104
+ import "../graphical-diamond/index.mjs";
105
+ import "../graphical-hexagon/index.mjs";
106
+ import "../graphical-isosceles-triangle/index.mjs";
107
+ import "../graphical-pentagon/index.mjs";
108
+ import "../graphical-rect/index.mjs";
109
+ import "../graphical-right-triangle/index.mjs";
110
+ import "../scene-map3d/index.mjs";
111
+ import "../scene-amap2d/index.mjs";
112
+ import "../scene-amap3d/index.mjs";
113
+ import "./index.mjs";
114
+ import "../scene-unity-iframe/index.mjs";
115
+ import "../scene-unity-webgl/index.mjs";
116
+ import "../scene-ue-iframe/index.mjs";
117
+ import "../scene-ue-shj/index.mjs";
118
+ import "../scene-default/index.mjs";
119
+ import "../interaction/tabs/index.mjs";
120
+ import "../interaction/tabs-icon/index.mjs";
121
+ import "../interaction/button/index.mjs";
122
+ import "../interaction/date-picker/src/date-picker/index.mjs";
123
+ import "../interaction/date-picker/src/date-picker-range/index.mjs";
124
+ import "../text/list/index.mjs";
125
+ import "../chart/src/bar/basic/index.mjs";
126
+ import "../chart/src/bar/animation/index.mjs";
127
+ import "../chart/src/bar/contrast/index.mjs";
128
+ import "../chart/src/bar/contrast2/index.mjs";
129
+ import "../chart/src/bar/contrast3/index.mjs";
130
+ import "../chart/src/bar/gradient-column-chart/index.mjs";
131
+ import "../chart/src/bar/horizontal/index.mjs";
132
+ import "../chart/src/bar/horizontal-stack/index.mjs";
133
+ import "../chart/src/bar/line-bar/index.mjs";
134
+ import "../chart/src/bar/line-bar2/index.mjs";
135
+ import "../chart/src/bar/loop/index.mjs";
136
+ import "../chart/src/bar/mini/index.mjs";
137
+ import "../chart/src/bar/polar/index.mjs";
138
+ import "../chart/src/bar/polar-stack/index.mjs";
139
+ import "../chart/src/bar/polar2/index.mjs";
140
+ import "../chart/src/bar/radius-circle/index.mjs";
141
+ import "../chart/src/bar/rank/index.mjs";
142
+ import "../chart/src/bar/segmented-progress/index.mjs";
143
+ import "../chart/src/bar/spire/index.mjs";
144
+ import "../chart/src/bar/stack/index.mjs";
145
+ import "../chart/src/bar/stack-line/index.mjs";
146
+ import "../chart/src/bar/stack2/index.mjs";
147
+ import "../chart/src/bar/stack3/index.mjs";
148
+ import "../chart/src/bar/staggered/index.mjs";
149
+ import "../chart/src/bar/three/index.mjs";
150
+ import "../chart/src/bar/waterfall/index.mjs";
151
+ import "../chart/src/bar/zebra/index.mjs";
152
+ import "../chart/src/line/area-gradient/index.mjs";
153
+ import "../chart/src/line/area-highlight/index.mjs";
154
+ import "../chart/src/line/area-highlight2/index.mjs";
155
+ import "../chart/src/line/basic/index.mjs";
156
+ import "../chart/src/line/bump/index.mjs";
157
+ import "../chart/src/line/dashed/index.mjs";
158
+ import "../chart/src/line/ladder/index.mjs";
159
+ import "../chart/src/line/logarithm/index.mjs";
160
+ import "../chart/src/line/multix/index.mjs";
161
+ import "../chart/src/line/polar-double/index.mjs";
162
+ import "../chart/src/line/rain-flow/index.mjs";
163
+ import "../chart/src/line/scale/index.mjs";
164
+ import "../chart/src/line/smooth/index.mjs";
165
+ import "../chart/src/line/smooth-area/index.mjs";
166
+ import "../chart/src/line/stack/index.mjs";
167
+ import "../chart/src/line/stack-area/index.mjs";
168
+ import "../chart/src/line/temp/index.mjs";
169
+ import "../chart/src/line/vertical/index.mjs";
170
+ import "../chart/src/map/basic/index.mjs";
171
+ import "../chart/src/map/bmap-basic/index.mjs";
172
+ import "../chart/src/map/bmap-heatmap/index.mjs";
173
+ import "../chart/src/map/bmap-rich/index.mjs";
174
+ import "../chart/src/map/customize/index.mjs";
175
+ import "../chart/src/map/lines/index.mjs";
176
+ import "../chart/src/map/scatter/index.mjs";
177
+ import "../chart/src/pie/3d/index.mjs";
178
+ import "../chart/src/pie/basic/index.mjs";
179
+ import "../chart/src/pie/basic2/index.mjs";
180
+ import "../chart/src/pie/customized/index.mjs";
181
+ import "../chart/src/pie/index/index.mjs";
182
+ import "../chart/src/pie/interval/index.mjs";
183
+ import "../chart/src/pie/legend-scroll/index.mjs";
184
+ import "../chart/src/pie/radius/index.mjs";
185
+ import "../chart/src/pie/rose/index.mjs";
186
+ import "../chart/src/pie/round/index.mjs";
187
+ import "../chart/src/pie/sunburst/index.mjs";
188
+ import "../chart/src/scatter/basic/index.mjs";
189
+ import "../chart/src/scatter/basic2/index.mjs";
190
+ import "../chart/src/scatter/bubble/index.mjs";
191
+ import "../chart/src/scatter/ripples/index.mjs";
192
+ import "../commons/custom-component-render/index.mjs";
193
+ /* empty css */
194
+ /* empty css */
195
+ import "../../plugins/datasource/utils/request.mjs";
196
+ import "../../plugins/datasource/utils/wsManager.mjs";
197
+ import { SHJParseEvent as f } from "../../plugins/event/index.mjs";
198
+ const Ve = { class: "vr-scene-wrap" }, be = {
199
+ id: "panorama",
200
+ class: "vr-scene"
201
+ }, ye = {
202
+ id: "panorama-video-wrap",
203
+ class: "vr-scene-main"
204
+ }, ge = {
205
+ key: 1,
206
+ class: "vr-scene-controls"
207
+ }, Oe = { class: "scene-list" }, He = ["onClick"], ke = ["src"], Je = { class: "label" }, he = ["autoplay", "loop", "volume"], Ee = ["src"], Te = {
208
+ key: 3,
209
+ class: "mouse-tip"
210
+ }, Ce = M({ name: "zv-scene-vr" }), dr = /* @__PURE__ */ M({
211
+ ...Ce,
212
+ props: {
213
+ basicOption: {},
214
+ sources: {},
215
+ useEvents: {},
216
+ uuid: {},
217
+ disableDrag: { type: Boolean }
218
+ },
219
+ emits: [
220
+ "on-scene-loaded",
221
+ "on-scene-scenechange",
222
+ "on-scene-zooming",
223
+ "on-scene-hotClick"
224
+ ],
225
+ setup(B, { emit: N }) {
226
+ const G = Se(), t = B, S = N;
227
+ f.parseEvents(t.useEvents, "on-page-loaded", null);
228
+ const m = c(), u = c({ src: "", autoplay: !0, loop: !0, volume: 50 }), v = c(null), W = c(t.basicOption.default.firstScene), w = c(W.value), i = _(() => {
229
+ try {
230
+ return t.basicOption.scenes[w.value];
231
+ } catch {
232
+ return null;
233
+ }
234
+ }), C = {
235
+ bylineLabel: "来自 %s",
236
+ noPanoramaError: "未指定全景图像。",
237
+ fileAccessError: "The file %s could not be accessed.",
238
+ malformedURLError: "全景URL无法访问。",
239
+ iOS8WebGLError: "Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",
240
+ genericWebGLError: "您的浏览器没有显示此全景图所需的WebGL支持。",
241
+ 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.)",
242
+ unknownError: "未知错误。检查开发人员控制台。"
243
+ }, Y = () => {
244
+ const o = t.basicOption;
245
+ window.SHJSceneVrViewer = window.pannellum.viewer("panorama", {
246
+ ...o,
247
+ default: Object.assign(I(o.default), { firstScene: w.value }),
248
+ strings: C
249
+ });
250
+ }, U = () => {
251
+ const o = () => {
252
+ const p = document.getElementById("panorama-video-wrap");
253
+ p.innerHTML = `
254
+ <video
255
+ id="panorama-video"
256
+ autoplay
257
+ class="video-js vjs-default-skin vr-scene vjs-big-play-centered"
258
+ preload="none"
259
+ style="width:100%;height:100%;"
260
+ crossorigin="anonymous"
261
+ >
262
+ </video>
263
+ `;
264
+ };
265
+ v.value && (v.value.dispose(), v.value = null, o()), v.value || o();
266
+ const e = document.getElementById("panorama-video"), r = t.basicOption;
267
+ if (v.value = window.videojs(e, {
268
+ loop: !0,
269
+ autoplay: !0,
270
+ plugins: {
271
+ pannellum: {
272
+ ...t.basicOption,
273
+ default: Object.assign(I(r.default), { firstScene: w.value }),
274
+ strings: C
275
+ }
276
+ }
277
+ }), window.SHJSceneVrViewer = v.value.pnlmViewer, i.value.sceneType === "video" && (e.src = i.value.panorama), i.value.sceneType === "hls")
278
+ if (T.isSupported()) {
279
+ const p = new T();
280
+ p.loadSource(i.value.panorama), p.attachMedia(e), p.on(T.Events.MANIFEST_PARSED, () => {
281
+ e.play();
282
+ });
283
+ } else e.canPlayType("application/vnd.apple.mpegurl") && (e.src = i.value.panorama);
284
+ }, V = G.path.includes("designer-vr"), k = () => {
285
+ if (window.pannellum && t.basicOption) {
286
+ window.SHJSceneVrViewer && (window.SHJSceneVrViewer.destroy(), window.SHJSceneVrViewer = null), i.value.sceneType === "image" ? Y() : U();
287
+ try {
288
+ t.basicOption.scenes[window.SHJSceneVrViewer.getScene()] && (u.value = t.basicOption.default.audio, m.value && u.value && (window.SHJSceneVrViewer.audio = m, m.value.src = u.value.src, setTimeout(() => {
289
+ m.value && (y.value = m.value.paused);
290
+ }, 500)));
291
+ } catch {
292
+ }
293
+ window.SHJSceneVrViewer.on("load", () => {
294
+ S("on-scene-loaded", i.value), f.parseEvents(t.useEvents, "on-scene-loaded", i.value);
295
+ }), V || t.basicOption.default.autoRotate === 0 ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate();
296
+ try {
297
+ window.SHJSceneVrViewer && async function() {
298
+ for (const o in t.basicOption.scenes)
299
+ Object.prototype.hasOwnProperty.call(t.basicOption.scenes, o) && t.basicOption.scenes[o].hotSpots.forEach(async (r) => {
300
+ await setTimeout(() => {
301
+ r.draggable = V, window.SHJSceneVrViewer.removeHotSpot(r.id, o), window.SHJSceneVrViewer.addHotSpot(r, o);
302
+ }, 100);
303
+ });
304
+ }();
305
+ } catch {
306
+ }
307
+ window.SHJSceneVrViewer.on("scenechange", (o) => {
308
+ const e = document.getElementsByTagName("video");
309
+ if (we(e) && e.length > 0 && e.forEach((r) => {
310
+ r && r.pause();
311
+ }), i.value) {
312
+ const r = i.value.sceneType;
313
+ w.value = o;
314
+ const p = i.value.sceneType;
315
+ setTimeout(() => {
316
+ (p !== "image" || r !== "image" && p === "image") && k(), g.value = w.value, S("on-scene-scenechange", i.value), f.parseEvents(t.useEvents, "on-scene-scenechange", i.value);
317
+ }), V ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate();
318
+ } else
319
+ w.value = t.basicOption.default.firstScene, pe(() => {
320
+ k(), S("on-scene-scenechange", i.value), f.parseEvents(t.useEvents, "on-scene-scenechange", i.value);
321
+ });
322
+ }), window.SHJSceneVrViewer.on("zoomchange", fe((o) => {
323
+ S("on-scene-zooming", i.value), f.parseEvents(t.useEvents, "on-scene-zooming", i.value);
324
+ }, 300)), window.SHJSceneVrViewer.on("hot-click", (o) => {
325
+ S("on-scene-hotClick", o), f.parseEvents(t.useEvents, "on-scene-hotClick", o);
326
+ });
327
+ }
328
+ }, g = c(t.basicOption.default.firstScene), $ = _(() => {
329
+ const o = [];
330
+ if (t.basicOption) {
331
+ const e = t.basicOption.scenes;
332
+ for (const r in e)
333
+ if (Object.prototype.hasOwnProperty.call(e, r)) {
334
+ const p = e[r];
335
+ o.push({ label: p.label, value: r, thumbnail: p.cover });
336
+ }
337
+ }
338
+ return o.sort((e, r) => {
339
+ const p = parseInt(e.value.replace("scene", "")), d = parseInt(r.value.replace("scene", ""));
340
+ return p - d;
341
+ });
342
+ });
343
+ ie(() => t.basicOption.default, () => {
344
+ V ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate();
345
+ }, { deep: !0 });
346
+ const F = (o) => {
347
+ window.SHJSceneVrViewer && g.value !== o && (g.value = o, window.SHJSceneVrViewer.isLoaded() && (window.SHJSceneVrViewer.loadScene(o), V ? window.SHJSceneVrViewer.stopAutoRotate() : window.SHJSceneVrViewer.startAutoRotate()));
348
+ }, J = c(), b = c(!0), Z = () => {
349
+ b.value ? J.value.style.bottom = "-999px" : J.value.style.bottom = "80px", b.value = !b.value;
350
+ };
351
+ re(() => {
352
+ t.basicOption && (t.basicOption.default.controls === void 0 && (t.basicOption.default.controls = i.value.controls), t.basicOption.default.audio === void 0 && (t.basicOption.default.audio = i.value.audio)), k(), te();
353
+ });
354
+ const K = () => {
355
+ window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch() + 10);
356
+ }, q = () => {
357
+ window.SHJSceneVrViewer.setPitch(window.SHJSceneVrViewer.getPitch() - 10);
358
+ }, Q = () => {
359
+ window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw() - 10);
360
+ }, X = () => {
361
+ window.SHJSceneVrViewer.setYaw(window.SHJSceneVrViewer.getYaw() + 10);
362
+ }, x = () => {
363
+ window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov() - 10);
364
+ }, ee = () => {
365
+ window.SHJSceneVrViewer.setHfov(window.SHJSceneVrViewer.getHfov() + 10);
366
+ }, y = c(!1), R = (o) => {
367
+ m.value && (o === "play" ? (m.value.play(), y.value = !1) : (m.value.pause(), y.value = !0));
368
+ }, oe = () => {
369
+ window.SHJSceneVrViewer.startAutoRotate();
370
+ };
371
+ let h;
372
+ const O = c(!1), te = () => {
373
+ t.basicOption.default.controls ? O.value = t.basicOption.default.controls.mouseTipShow : O.value = !0, h && clearTimeout(h), h = setTimeout(() => {
374
+ O.value = !1;
375
+ }, 3500);
376
+ };
377
+ return (o, e) => {
378
+ const r = A("el-tooltip"), p = A("el-scrollbar");
379
+ return s(), n("div", Ve, [
380
+ i.value ? (s(), n(L, { key: 0 }, [
381
+ P(a("div", be, null, 512), [
382
+ [j, i.value.sceneType === "image"]
383
+ ]),
384
+ P(a("div", ye, null, 512), [
385
+ [j, i.value.sceneType !== "image"]
386
+ ])
387
+ ], 64)) : l("", !0),
388
+ o.basicOption.default.controls ? (s(), n("div", ge, [
389
+ o.basicOption.default.controls.scene ? (s(), n("div", {
390
+ key: 0,
391
+ class: "btn-icon left",
392
+ style: E({ borderColor: b.value ? "#ff7d00" : "#ffffff3d" }),
393
+ onClick: Z
394
+ }, [
395
+ z(r, { content: "场景选择" }, {
396
+ default: D(() => e[2] || (e[2] = [
397
+ a("img", {
398
+ src: le,
399
+ alt: ""
400
+ }, null, -1)
401
+ ])),
402
+ _: 1
403
+ })
404
+ ], 4)) : l("", !0),
405
+ o.basicOption.default.controls.left ? (s(), n("div", {
406
+ key: 1,
407
+ class: "btn-icon left",
408
+ onClick: Q
409
+ }, e[3] || (e[3] = [
410
+ a("img", {
411
+ src: H,
412
+ alt: ""
413
+ }, null, -1)
414
+ ]))) : l("", !0),
415
+ o.basicOption.default.controls.right ? (s(), n("div", {
416
+ key: 2,
417
+ class: "btn-icon right",
418
+ onClick: X
419
+ }, e[4] || (e[4] = [
420
+ a("img", {
421
+ src: H,
422
+ alt: ""
423
+ }, null, -1)
424
+ ]))) : l("", !0),
425
+ o.basicOption.default.controls.top ? (s(), n("div", {
426
+ key: 3,
427
+ class: "btn-icon up",
428
+ onClick: K
429
+ }, e[5] || (e[5] = [
430
+ a("img", {
431
+ src: H,
432
+ alt: ""
433
+ }, null, -1)
434
+ ]))) : l("", !0),
435
+ o.basicOption.default.controls.bottom ? (s(), n("div", {
436
+ key: 4,
437
+ class: "btn-icon down",
438
+ onClick: q
439
+ }, e[6] || (e[6] = [
440
+ a("img", {
441
+ src: H,
442
+ alt: ""
443
+ }, null, -1)
444
+ ]))) : l("", !0),
445
+ o.basicOption.default.controls.magnify ? (s(), n("div", {
446
+ key: 5,
447
+ class: "btn-icon",
448
+ onClick: x
449
+ }, e[7] || (e[7] = [
450
+ a("img", {
451
+ src: ce,
452
+ alt: ""
453
+ }, null, -1)
454
+ ]))) : l("", !0),
455
+ o.basicOption.default.controls.shrink ? (s(), n("div", {
456
+ key: 6,
457
+ class: "btn-icon",
458
+ onClick: ee
459
+ }, e[8] || (e[8] = [
460
+ a("img", {
461
+ src: me,
462
+ alt: ""
463
+ }, null, -1)
464
+ ]))) : l("", !0),
465
+ y.value && u.value.src && o.basicOption.default.audio ? (s(), n("div", {
466
+ key: 7,
467
+ class: "btn-icon",
468
+ onClick: e[0] || (e[0] = (d) => R("play"))
469
+ }, e[9] || (e[9] = [
470
+ a("img", {
471
+ src: ue,
472
+ alt: ""
473
+ }, null, -1)
474
+ ]))) : l("", !0),
475
+ !y.value && u.value.src && o.basicOption.default.audio ? (s(), n("div", {
476
+ key: 8,
477
+ class: "btn-icon",
478
+ onClick: e[1] || (e[1] = (d) => R("pause"))
479
+ }, e[10] || (e[10] = [
480
+ a("img", {
481
+ src: de,
482
+ alt: ""
483
+ }, null, -1)
484
+ ]))) : l("", !0),
485
+ o.basicOption.default.controls.rotate ? (s(), n("div", {
486
+ key: 9,
487
+ class: "btn-icon",
488
+ onClick: oe
489
+ }, e[11] || (e[11] = [
490
+ a("img", {
491
+ src: ve,
492
+ alt: ""
493
+ }, null, -1)
494
+ ]))) : l("", !0)
495
+ ])) : l("", !0),
496
+ o.basicOption.default.controls ? (s(), n("div", {
497
+ key: 2,
498
+ ref_key: "sceneMenuRef",
499
+ ref: J,
500
+ class: "scene-menu",
501
+ style: E({ bottom: b.value && o.basicOption.default.controls.scene ? "80px" : "-9999999999999px" })
502
+ }, [
503
+ z(p, null, {
504
+ default: D(() => [
505
+ a("div", Oe, [
506
+ (s(!0), n(L, null, ne($.value, (d) => (s(), n("div", {
507
+ key: d.value,
508
+ class: "scene-item",
509
+ style: E({ borderColor: g.value === d.value ? "#ff7d00" : "#fff" }),
510
+ onClick: (Re) => F(d.value)
511
+ }, [
512
+ a("img", {
513
+ class: "thumbnail",
514
+ src: d.thumbnail
515
+ }, null, 8, ke),
516
+ a("p", Je, se(d.label), 1)
517
+ ], 12, He))), 128))
518
+ ])
519
+ ]),
520
+ _: 1
521
+ })
522
+ ], 4)) : l("", !0),
523
+ a("audio", {
524
+ ref_key: "audioRef",
525
+ ref: m,
526
+ autoplay: u.value.autoplay,
527
+ loop: u.value.loop,
528
+ volume: u.value.volume
529
+ }, [
530
+ a("source", {
531
+ src: u.value.src
532
+ }, null, 8, Ee)
533
+ ], 8, he),
534
+ O.value ? (s(), n("div", Te, e[12] || (e[12] = [
535
+ ae('<div class="icon-wrap" data-v-40ea83da><div class="left" data-v-40ea83da><i class="iconfont zv-drop-down" data-v-40ea83da></i></div><i class="iconfont zv-mouse" data-v-40ea83da></i><div class="right" data-v-40ea83da><i class="iconfont zv-drop-down" data-v-40ea83da></i></div></div><p class="title" data-v-40ea83da>左右拖动   更多精彩</p>', 2)
536
+ ]))) : l("", !0)
537
+ ]);
538
+ };
539
+ }
540
+ });
541
+ export {
542
+ dr as default
543
+ };