@shjjs/visual-ui 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/es/commons/core/earth/main.vue.d.ts +2 -2
  2. package/es/commons/core/useChart.mjs +257 -73
  3. package/es/components/chart/commons/components/common-chart/index.vue.mjs +213 -30
  4. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +210 -27
  5. package/es/components/chart/commons/hooks/useChart.mjs +261 -77
  6. package/es/components/chart/src/map/bmap-basic/index.vue.d.ts +6 -2
  7. package/es/components/chart/src/map/bmap-heatmap/index.vue.d.ts +6 -2
  8. package/es/components/chart-other-candlestick-basic/index.vue.mjs +212 -29
  9. package/es/components/chart-other-candlestick-demo/index.vue.mjs +213 -30
  10. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +214 -31
  11. package/es/components/chart-other-circular-graph/index.vue.mjs +214 -31
  12. package/es/components/chart-other-force/index.vue.mjs +212 -29
  13. package/es/components/chart-other-force2/index.vue.mjs +212 -29
  14. package/es/components/chart-other-funnel/index.vue.mjs +214 -31
  15. package/es/components/chart-other-funnel-contrast/index.vue.mjs +214 -31
  16. package/es/components/chart-other-funnel-split/index.vue.mjs +214 -31
  17. package/es/components/chart-other-funnel2/index.vue.mjs +214 -31
  18. package/es/components/chart-other-gauge/index.vue.mjs +214 -31
  19. package/es/components/chart-other-gauge-grade/index.vue.mjs +214 -31
  20. package/es/components/chart-other-gauge-stage/index.vue.mjs +214 -31
  21. package/es/components/chart-other-graph-basic/index.vue.mjs +214 -31
  22. package/es/components/chart-other-graph-basic2/index.vue.mjs +214 -31
  23. package/es/components/chart-other-graph-calendar/index.vue.mjs +214 -31
  24. package/es/components/chart-other-grid-percentage/index.vue.mjs +218 -35
  25. package/es/components/chart-other-heatmap/index.vue.mjs +212 -29
  26. package/es/components/chart-other-label-gauge/index.vue.mjs +216 -33
  27. package/es/components/chart-other-liquidfill/index.vue.mjs +214 -31
  28. package/es/components/chart-other-parallel-basic/index.vue.mjs +214 -31
  29. package/es/components/chart-other-parallel-mul/index.vue.mjs +211 -28
  30. package/es/components/chart-other-radar/index.vue.mjs +224 -41
  31. package/es/components/chart-other-radar-stack/index.vue.mjs +211 -28
  32. package/es/components/chart-other-sunburst-basic/index.vue.mjs +212 -29
  33. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +212 -29
  34. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +212 -29
  35. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +212 -29
  36. package/es/components/chart-other-sunburst-book/index.vue.mjs +212 -29
  37. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +214 -31
  38. package/es/components/chart-other-sunburst-radius/index.vue.mjs +212 -29
  39. package/es/components/chart-other-theme-river/index.vue.mjs +216 -33
  40. package/es/components/chart-other-tree/index.vue.mjs +214 -31
  41. package/es/components/chart-other-tree-line/index.vue.mjs +214 -31
  42. package/es/components/chart-other-treemap/index.vue.mjs +214 -31
  43. package/es/components/chart-other-treemap-basic/index.vue.mjs +214 -31
  44. package/es/components/chart-other-word-cloud/index.vue.mjs +216 -33
  45. package/es/components/commons-echarts/compileAndRunEcharts.mjs +219 -35
  46. package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
  47. package/es/components/commons-loop-iterator/index.vue2.mjs +218 -35
  48. package/es/components/commons-product-model/index.vue.mjs +1 -1
  49. package/es/components/commons-product-model/index.vue2.mjs +246 -62
  50. package/es/components/commons-three-loader/index.vue.mjs +1 -1
  51. package/es/components/commons-three-loader/index.vue2.mjs +257 -73
  52. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  53. package/es/components/commons-three-loader3/index.vue2.mjs +301 -117
  54. package/es/components/commons-weather/index.vue.mjs +1 -1
  55. package/es/components/commons-weather/index.vue2.mjs +233 -48
  56. package/es/components/commons-weather-dynamic/index.vue.mjs +2 -2
  57. package/es/components/commons-weather-dynamic/index.vue2.mjs +236 -52
  58. package/es/components/index.d.ts +112 -111
  59. package/es/components/index.mjs +362 -360
  60. package/es/components/interaction/button/index.vue.mjs +2 -2
  61. package/es/components/interaction/button/index.vue2.mjs +252 -68
  62. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +2 -2
  63. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +324 -140
  64. package/es/components/interaction/date-picker/src/date-picker/index.d.ts +211 -211
  65. package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +211 -211
  66. package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +211 -211
  67. package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +211 -211
  68. package/es/components/interaction/tabs/index.vue.mjs +223 -39
  69. package/es/components/interaction/tabs-icon/index.vue.mjs +225 -41
  70. package/es/components/interaction-input/index.vue.mjs +2 -2
  71. package/es/components/interaction-input/index.vue2.mjs +244 -61
  72. package/es/components/interaction-select/index.vue.mjs +1 -1
  73. package/es/components/interaction-select/index.vue2.mjs +269 -86
  74. package/es/components/interaction-slider/index.vue.mjs +2 -2
  75. package/es/components/interaction-slider/index.vue2.mjs +248 -65
  76. package/es/components/interaction-switch/index.vue.mjs +1 -1
  77. package/es/components/interaction-switch/index.vue2.mjs +217 -33
  78. package/es/components/interaction-tabs/index.vue.mjs +2 -2
  79. package/es/components/interaction-tabs/index.vue2.mjs +221 -37
  80. package/es/components/interaction-tabs2/index.vue.mjs +1 -1
  81. package/es/components/interaction-tabs2/index.vue2.mjs +219 -35
  82. package/es/components/map-earth-basic/index.d.ts +2 -2
  83. package/es/components/map-earth-basic/index.vue.d.ts +2 -2
  84. package/es/components/map-earth-basic/index.vue.mjs +286 -103
  85. package/es/components/map-earth-cool-tech/index.d.ts +2 -2
  86. package/es/components/map-earth-cool-tech/index.vue.d.ts +2 -2
  87. package/es/components/map-earth-cool-tech/index.vue.mjs +286 -103
  88. package/es/components/map-earth-fly-line/index.d.ts +2 -2
  89. package/es/components/map-earth-fly-line/index.vue.d.ts +2 -2
  90. package/es/components/map-earth-fly-line/index.vue.mjs +286 -103
  91. package/es/components/map-earth-hacker/index.d.ts +2 -2
  92. package/es/components/map-earth-hacker/index.vue.d.ts +2 -2
  93. package/es/components/map-earth-hacker/index.vue.mjs +286 -103
  94. package/es/components/map-earth-particle/index.d.ts +2 -2
  95. package/es/components/map-earth-particle/index.vue.d.ts +2 -2
  96. package/es/components/map-earth-particle/index.vue.mjs +286 -103
  97. package/es/components/media-audio/index.vue.mjs +2 -2
  98. package/es/components/media-audio/index.vue2.mjs +219 -35
  99. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  100. package/es/components/media-audio-dynamic/index.vue2.mjs +233 -50
  101. package/es/components/media-flv/index.vue.mjs +219 -35
  102. package/es/components/media-iframe/index.vue.mjs +2 -2
  103. package/es/components/media-iframe/index.vue2.mjs +199 -15
  104. package/es/components/media-iframe-dynamic/index.d.ts +51 -0
  105. package/es/components/media-iframe-dynamic/index.mjs +7 -0
  106. package/es/components/media-iframe-dynamic/index.vue.d.ts +51 -0
  107. package/es/components/media-iframe-dynamic/index.vue.mjs +7 -0
  108. package/es/components/media-iframe-dynamic/index.vue2.mjs +259 -0
  109. package/es/components/media-image-dynamic/index.vue.mjs +2 -2
  110. package/es/components/media-image-dynamic/index.vue2.mjs +207 -24
  111. package/es/components/media-m3u8/index.vue.mjs +221 -37
  112. package/es/components/media-m3u8-dynamic/index.vue.mjs +228 -45
  113. package/es/components/media-video/index.vue.mjs +2 -2
  114. package/es/components/media-video/index.vue2.mjs +216 -31
  115. package/es/components/media-video-dynamic/index.vue.mjs +2 -2
  116. package/es/components/media-video-dynamic/index.vue2.mjs +223 -40
  117. package/es/components/scene-amap2d/index.vue.mjs +1 -1
  118. package/es/components/scene-amap2d/index.vue2.mjs +376 -192
  119. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  120. package/es/components/scene-amap3d/index.vue2.mjs +414 -231
  121. package/es/components/scene-default/index.vue.mjs +2 -2
  122. package/es/components/scene-default/index.vue2.mjs +201 -16
  123. package/es/components/scene-map3d/index.vue.mjs +2 -2
  124. package/es/components/scene-map3d/index.vue2.mjs +289 -106
  125. package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
  126. package/es/components/scene-ue-iframe/index.vue2.mjs +212 -27
  127. package/es/components/scene-ue-shj/index.vue.mjs +2 -2
  128. package/es/components/scene-ue-shj/index.vue2.mjs +200 -15
  129. package/es/components/scene-unity-iframe/index.vue.mjs +1 -1
  130. package/es/components/scene-unity-iframe/index.vue2.mjs +204 -19
  131. package/es/components/scene-unity-webgl/index.vue.mjs +2 -2
  132. package/es/components/scene-unity-webgl/index.vue2.mjs +204 -19
  133. package/es/components/scene-vr/index.vue.mjs +2 -2
  134. package/es/components/scene-vr/index.vue2.mjs +302 -118
  135. package/es/components/text/list/index.vue.mjs +240 -56
  136. package/es/components/text-count-down/index.vue.mjs +2 -2
  137. package/es/components/text-count-down/index.vue2.mjs +245 -60
  138. package/es/components/text-over-number/index.vue.mjs +2 -2
  139. package/es/components/text-over-number/index.vue2.mjs +243 -60
  140. package/es/components/text-real-time/index.vue.mjs +2 -2
  141. package/es/components/text-real-time/index.vue2.mjs +212 -28
  142. package/es/components/text-row-scroll/index.vue.mjs +1 -1
  143. package/es/components/text-row-scroll/index.vue2.mjs +288 -105
  144. package/es/components/text-table-basic/index.vue.mjs +2 -2
  145. package/es/components/text-table-basic/index.vue2.mjs +286 -103
  146. package/es/components/text-table-scroll/index.vue.mjs +2 -2
  147. package/es/components/text-table-scroll/index.vue2.mjs +291 -108
  148. package/es/components/text-text-dynamic/index.vue.mjs +2 -2
  149. package/es/components/text-text-dynamic/index.vue2.mjs +218 -35
  150. package/es/index.d.ts +1 -0
  151. package/es/index.mjs +386 -370
  152. package/es/{commons/plugins → plugins}/datasource/index.mjs +217 -214
  153. package/es/{commons/plugins → plugins}/datasource/sources/api.mjs +32 -32
  154. package/es/{commons/plugins → plugins}/datasource/sources/static.mjs +17 -17
  155. package/es/{commons/plugins → plugins}/datasource/sources/storage.mjs +28 -28
  156. package/es/{commons/plugins → plugins}/datasource/sources/url.mjs +17 -17
  157. package/es/{commons/plugins → plugins}/datasource/sources/variable.mjs +17 -17
  158. package/es/{commons/plugins → plugins}/datasource/sources/ws.mjs +139 -139
  159. package/es/{commons/plugins → plugins}/datasource/utils/axios.mjs +134 -134
  160. package/es/{commons/plugins → plugins}/datasource/utils/request.mjs +5 -5
  161. package/es/{commons/plugins → plugins}/datasource/utils/utils.mjs +229 -229
  162. package/es/{commons/plugins → plugins}/datasource/utils/wsManager.mjs +78 -78
  163. package/es/{commons/plugins → plugins}/event/actions/fullScreenAction.mjs +8 -8
  164. package/es/{commons/plugins → plugins}/event/actions/invokeAction.mjs +11 -11
  165. package/es/{commons/plugins → plugins}/event/actions/linkAction.mjs +8 -8
  166. package/es/{commons/plugins → plugins}/event/actions/moveAction.mjs +15 -15
  167. package/es/{commons/plugins → plugins}/event/actions/refreshVariableAction.mjs +18 -18
  168. package/es/{commons/plugins → plugins}/event/actions/rotateAction.mjs +19 -19
  169. package/es/{commons/plugins → plugins}/event/actions/scaleAction.mjs +24 -24
  170. package/es/{commons/plugins → plugins}/event/actions/sendApiAction.mjs +16 -16
  171. package/es/{commons/plugins → plugins}/event/actions/ueCommonsWebscoketAction.mjs +31 -31
  172. package/es/{commons/plugins → plugins}/event/actions/ueShjExecMethodAction.mjs +31 -31
  173. package/es/{commons/plugins → plugins}/event/actions/unityIframeExecMethodAction.mjs +28 -28
  174. package/es/{commons/plugins → plugins}/event/actions/unityWebglExecMethodAction.mjs +28 -28
  175. package/es/{commons/plugins → plugins}/event/actions/updatePageAction.mjs +6 -6
  176. package/es/{commons/plugins → plugins}/event/actions/updateVariableAction.mjs +25 -25
  177. package/es/{commons/plugins → plugins}/event/actions/updateWidgetAction.mjs +14 -14
  178. package/es/{commons/plugins → plugins}/event/actions/vrSceneMethodAction.mjs +12 -12
  179. package/es/{commons/plugins → plugins}/event/index.mjs +161 -161
  180. package/es/{commons/plugins → plugins}/event/utils/utils.mjs +50 -50
  181. package/es/{commons → plugins}/utils/componentRefs.mjs +37 -37
  182. package/es/{commons → plugins}/utils/getNextElement.mjs +12 -12
  183. package/es/widgets.css +1 -1
  184. package/package.json +1 -1
  185. package/es/commons/plugins/datasource/index.d.ts +0 -73
  186. package/es/commons/plugins/datasource/sources/api.d.ts +0 -1
  187. package/es/commons/plugins/datasource/sources/static.d.ts +0 -1
  188. package/es/commons/plugins/datasource/sources/storage.d.ts +0 -1
  189. package/es/commons/plugins/datasource/sources/url.d.ts +0 -1
  190. package/es/commons/plugins/datasource/sources/variable.d.ts +0 -1
  191. package/es/commons/plugins/datasource/sources/ws.d.ts +0 -32
  192. package/es/commons/plugins/datasource/utils/axios.d.ts +0 -70
  193. package/es/commons/plugins/datasource/utils/request.d.ts +0 -3
  194. package/es/commons/plugins/datasource/utils/utils.d.ts +0 -115
  195. package/es/commons/plugins/datasource/utils/wsManager.d.ts +0 -16
  196. package/es/commons/plugins/event/actions/fullScreenAction.d.ts +0 -8
  197. package/es/commons/plugins/event/actions/invokeAction.d.ts +0 -8
  198. package/es/commons/plugins/event/actions/linkAction.d.ts +0 -8
  199. package/es/commons/plugins/event/actions/moveAction.d.ts +0 -8
  200. package/es/commons/plugins/event/actions/refreshVariableAction.d.ts +0 -7
  201. package/es/commons/plugins/event/actions/rotateAction.d.ts +0 -8
  202. package/es/commons/plugins/event/actions/scaleAction.d.ts +0 -8
  203. package/es/commons/plugins/event/actions/sendApiAction.d.ts +0 -8
  204. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +0 -7
  205. package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +0 -7
  206. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +0 -7
  207. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +0 -7
  208. package/es/commons/plugins/event/actions/updatePageAction.d.ts +0 -8
  209. package/es/commons/plugins/event/actions/updateVariableAction.d.ts +0 -7
  210. package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +0 -7
  211. package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +0 -7
  212. package/es/commons/plugins/event/index.d.ts +0 -206
  213. package/es/commons/plugins/event/utils/utils.d.ts +0 -22
  214. package/es/commons/utils/componentRefs.d.ts +0 -28
  215. package/es/commons/utils/getNextElement.d.ts +0 -7
@@ -1,15 +1,15 @@
1
- const a = (i, s) => {
2
- var n;
3
- const { moveAction: t } = i;
4
- (n = t.layerIds) != null && n.length && t.layerIds.forEach((r) => {
5
- const e = document.getElementById(r);
6
- e._transitionTimer && clearTimeout(e._transitionTimer), e.style.transform = `matrix(1, 0, 0, 1, ${t.x}, ${t.y}) `, e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
7
- const o = t.duration + t.delay;
8
- e._transitionTimer = setTimeout(() => {
9
- e.style.transition = "";
10
- }, o);
11
- });
12
- };
13
- export {
14
- a as executeMoveAction
15
- };
1
+ const a = (i, s) => {
2
+ var n;
3
+ const { moveAction: t } = i;
4
+ (n = t.layerIds) != null && n.length && t.layerIds.forEach((r) => {
5
+ const e = document.getElementById(r);
6
+ e._transitionTimer && clearTimeout(e._transitionTimer), e.style.transform = `matrix(1, 0, 0, 1, ${t.x}, ${t.y}) `, e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
7
+ const o = t.duration + t.delay;
8
+ e._transitionTimer = setTimeout(() => {
9
+ e.style.transition = "";
10
+ }, o);
11
+ });
12
+ };
13
+ export {
14
+ a as executeMoveAction
15
+ };
@@ -1,18 +1,18 @@
1
- import { SHJDatasourceV2 as s } from "../../datasource/index.mjs";
2
- import { DataSourceUtils as i } from "../../datasource/utils/utils.mjs";
3
- import { EventUtils as n } from "../utils/utils.mjs";
4
- const m = (o) => {
5
- const { refreshVariableAction: t } = o, r = i.getVariableData(), a = r.find((e) => e.id === t.name || e.name === t.name);
6
- a && s.parse({
7
- sources: [a.sources],
8
- isStore: !1,
9
- noUseMapping: !0,
10
- tId: a.id,
11
- callback: (e) => {
12
- a._value = e, i.setVariableData(r), n.updateWidgetVariableData(a);
13
- }
14
- });
15
- };
16
- export {
17
- m as executeRefreshVariableAction
18
- };
1
+ import { SHJDatasourceV2 as s } from "../../datasource/index.mjs";
2
+ import { DataSourceUtils as i } from "../../datasource/utils/utils.mjs";
3
+ import { EventUtils as n } from "../utils/utils.mjs";
4
+ const m = (o) => {
5
+ const { refreshVariableAction: t } = o, r = i.getVariableData(), a = r.find((e) => e.id === t.name || e.name === t.name);
6
+ a && s.parse({
7
+ sources: [a.sources],
8
+ isStore: !1,
9
+ noUseMapping: !0,
10
+ tId: a.id,
11
+ callback: (e) => {
12
+ a._value = e, i.setVariableData(r), n.updateWidgetVariableData(a);
13
+ }
14
+ });
15
+ };
16
+ export {
17
+ m as executeRefreshVariableAction
18
+ };
@@ -1,19 +1,19 @@
1
- const d = (o, m) => {
2
- var r;
3
- const { rotateAction: t } = o;
4
- (r = t.layerIds) != null && r.length && t.layerIds.forEach((i) => {
5
- const s = document.getElementById(i), e = s.children[0];
6
- e._transitionTimer && clearTimeout(e._transitionTimer);
7
- const n = e.style.transform.split(" "), a = n[0] || "", c = n[1] || "";
8
- if (e.style.transform = `${a} ${c} rotateX(${t.x}deg) rotateY(${t.y}deg) rotateZ(${t.z}deg)`, (t.x > 0 || t.y > 0 || t.z > 0) && (s.style.perspective = t.perspective + "px"), t.speed !== "") {
9
- e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
10
- const l = t.duration + t.delay;
11
- e._transitionTimer = setTimeout(() => {
12
- e.style.transition = "";
13
- }, l);
14
- }
15
- });
16
- };
17
- export {
18
- d as executeRotateAction
19
- };
1
+ const d = (o, m) => {
2
+ var r;
3
+ const { rotateAction: t } = o;
4
+ (r = t.layerIds) != null && r.length && t.layerIds.forEach((i) => {
5
+ const s = document.getElementById(i), e = s.children[0];
6
+ e._transitionTimer && clearTimeout(e._transitionTimer);
7
+ const n = e.style.transform.split(" "), a = n[0] || "", c = n[1] || "";
8
+ if (e.style.transform = `${a} ${c} rotateX(${t.x}deg) rotateY(${t.y}deg) rotateZ(${t.z}deg)`, (t.x > 0 || t.y > 0 || t.z > 0) && (s.style.perspective = t.perspective + "px"), t.speed !== "") {
9
+ e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
10
+ const l = t.duration + t.delay;
11
+ e._transitionTimer = setTimeout(() => {
12
+ e.style.transition = "";
13
+ }, l);
14
+ }
15
+ });
16
+ };
17
+ export {
18
+ d as executeRotateAction
19
+ };
@@ -1,24 +1,24 @@
1
- const y = (i, c) => {
2
- var a;
3
- const { scaleAction: t } = i;
4
- (a = t.layerIds) != null && a.length && t.layerIds.forEach((l) => {
5
- const e = document.getElementById(l).children[0], s = e.style.transform.split(" ");
6
- if (e._transitionTimer && clearTimeout(e._transitionTimer), s.length >= 5) {
7
- const r = s[2] || "", n = s[3] || "", o = s[4] || "";
8
- e.style.transform = `scaleX(${t.x / 100}) scaleY(${t.y / 100}) ${r} ${n} ${o}`;
9
- } else {
10
- const r = s[0] || "", n = s[1] || "", o = s[2] || "";
11
- e.style.transform = `scaleX(${t.x / 100}) scaleY(${t.y / 100}) ${r} ${n} ${o}`;
12
- }
13
- if (e.style.transformOrigin = t.origin, t.speed !== "") {
14
- e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
15
- const r = t.duration + t.delay;
16
- e._transitionTimer = setTimeout(() => {
17
- e.style.transition = "";
18
- }, r);
19
- }
20
- });
21
- };
22
- export {
23
- y as executeScaleAction
24
- };
1
+ const y = (i, c) => {
2
+ var a;
3
+ const { scaleAction: t } = i;
4
+ (a = t.layerIds) != null && a.length && t.layerIds.forEach((l) => {
5
+ const e = document.getElementById(l).children[0], s = e.style.transform.split(" ");
6
+ if (e._transitionTimer && clearTimeout(e._transitionTimer), s.length >= 5) {
7
+ const r = s[2] || "", n = s[3] || "", o = s[4] || "";
8
+ e.style.transform = `scaleX(${t.x / 100}) scaleY(${t.y / 100}) ${r} ${n} ${o}`;
9
+ } else {
10
+ const r = s[0] || "", n = s[1] || "", o = s[2] || "";
11
+ e.style.transform = `scaleX(${t.x / 100}) scaleY(${t.y / 100}) ${r} ${n} ${o}`;
12
+ }
13
+ if (e.style.transformOrigin = t.origin, t.speed !== "") {
14
+ e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
15
+ const r = t.duration + t.delay;
16
+ e._transitionTimer = setTimeout(() => {
17
+ e.style.transition = "";
18
+ }, r);
19
+ }
20
+ });
21
+ };
22
+ export {
23
+ y as executeScaleAction
24
+ };
@@ -1,16 +1,16 @@
1
- import { SHJDatasourceV2 as s } from "../../datasource/index.mjs";
2
- const o = (a, t) => {
3
- const { sendAPIAction: e } = a;
4
- e.useDataSource && s.parse({
5
- sources: [e.useDataSource],
6
- callback: () => {
7
- },
8
- isStore: !1,
9
- noUseMapping: !0,
10
- tId: "",
11
- isInterval: !1
12
- });
13
- };
14
- export {
15
- o as executeSendApiAction
16
- };
1
+ import { SHJDatasourceV2 as s } from "../../datasource/index.mjs";
2
+ const o = (a, t) => {
3
+ const { sendAPIAction: e } = a;
4
+ e.useDataSource && s.parse({
5
+ sources: [e.useDataSource],
6
+ callback: () => {
7
+ },
8
+ isStore: !1,
9
+ noUseMapping: !0,
10
+ tId: "",
11
+ isInterval: !1
12
+ });
13
+ };
14
+ export {
15
+ o as executeSendApiAction
16
+ };
@@ -1,31 +1,31 @@
1
- import { SHJDatasourceV2 as a } from "../../datasource/index.mjs";
2
- import { EventUtils as o } from "../utils/utils.mjs";
3
- const f = (r, n) => {
4
- try {
5
- const { ueCommonsWebscoketAction: e } = r;
6
- if (e.dataType === "params") {
7
- const t = o.toStringify(n);
8
- e.escape ? window.SHJSceneUEIframeWebscoket.send(JSON.stringify(t)) : window.SHJSceneUEIframeWebscoket.send(t);
9
- return;
10
- }
11
- if (!e.useDataSource)
12
- return;
13
- a.parse({
14
- sources: [e.useDataSource],
15
- isStore: !1,
16
- noUseMapping: !0,
17
- tId: "",
18
- isInterval: !1,
19
- callback: (t) => {
20
- if (t && window.SHJSceneUEIframeWebscoket) {
21
- const s = o.toStringify(t);
22
- e.escape ? window.SHJSceneUEIframeWebscoket.send(JSON.stringify(s)) : window.SHJSceneUEIframeWebscoket.send(s);
23
- }
24
- }
25
- });
26
- } catch {
27
- }
28
- };
29
- export {
30
- f as executeUeCommonsWebscoketAction
31
- };
1
+ import { SHJDatasourceV2 as a } from "../../datasource/index.mjs";
2
+ import { EventUtils as o } from "../utils/utils.mjs";
3
+ const f = (r, n) => {
4
+ try {
5
+ const { ueCommonsWebscoketAction: e } = r;
6
+ if (e.dataType === "params") {
7
+ const t = o.toStringify(n);
8
+ e.escape ? window.SHJSceneUEIframeWebscoket.send(JSON.stringify(t)) : window.SHJSceneUEIframeWebscoket.send(t);
9
+ return;
10
+ }
11
+ if (!e.useDataSource)
12
+ return;
13
+ a.parse({
14
+ sources: [e.useDataSource],
15
+ isStore: !1,
16
+ noUseMapping: !0,
17
+ tId: "",
18
+ isInterval: !1,
19
+ callback: (t) => {
20
+ if (t && window.SHJSceneUEIframeWebscoket) {
21
+ const s = o.toStringify(t);
22
+ e.escape ? window.SHJSceneUEIframeWebscoket.send(JSON.stringify(s)) : window.SHJSceneUEIframeWebscoket.send(s);
23
+ }
24
+ }
25
+ });
26
+ } catch {
27
+ }
28
+ };
29
+ export {
30
+ f as executeUeCommonsWebscoketAction
31
+ };
@@ -1,31 +1,31 @@
1
- import { SHJDatasourceV2 as n } from "../../datasource/index.mjs";
2
- import { EventUtils as i } from "../utils/utils.mjs";
3
- const u = (r, a) => {
4
- try {
5
- const { ueShjExecMethodAction: e } = r;
6
- if (e.dataType === "params") {
7
- const t = i.toStringify(a);
8
- e.escape ? window.ue5(e.functionName, JSON.stringify(t)) : window.ue5(e.functionName, t);
9
- return;
10
- }
11
- if (!e.useDataSource)
12
- return;
13
- n.parse({
14
- sources: [e.useDataSource],
15
- isStore: !1,
16
- noUseMapping: !0,
17
- tId: "",
18
- isInterval: !1,
19
- callback: (t) => {
20
- if (t) {
21
- const o = i.toStringify(t);
22
- e.escape ? window.ue5(e.functionName, JSON.stringify(o)) : window.ue5(e.functionName, o);
23
- }
24
- }
25
- });
26
- } catch {
27
- }
28
- };
29
- export {
30
- u as executeUeShjExecMethodAction
31
- };
1
+ import { SHJDatasourceV2 as n } from "../../datasource/index.mjs";
2
+ import { EventUtils as i } from "../utils/utils.mjs";
3
+ const u = (r, a) => {
4
+ try {
5
+ const { ueShjExecMethodAction: e } = r;
6
+ if (e.dataType === "params") {
7
+ const t = i.toStringify(a);
8
+ e.escape ? window.ue5(e.functionName, JSON.stringify(t)) : window.ue5(e.functionName, t);
9
+ return;
10
+ }
11
+ if (!e.useDataSource)
12
+ return;
13
+ n.parse({
14
+ sources: [e.useDataSource],
15
+ isStore: !1,
16
+ noUseMapping: !0,
17
+ tId: "",
18
+ isInterval: !1,
19
+ callback: (t) => {
20
+ if (t) {
21
+ const o = i.toStringify(t);
22
+ e.escape ? window.ue5(e.functionName, JSON.stringify(o)) : window.ue5(e.functionName, o);
23
+ }
24
+ }
25
+ });
26
+ } catch {
27
+ }
28
+ };
29
+ export {
30
+ u as executeUeShjExecMethodAction
31
+ };
@@ -1,28 +1,28 @@
1
- import { SHJDatasourceV2 as o } from "../../datasource/index.mjs";
2
- import { EventUtils as r } from "../utils/utils.mjs";
3
- const s = (t, a) => {
4
- try {
5
- const { unityIframeExecMethodAction: e } = t;
6
- if (e.dataType === "params") {
7
- const n = r.toStringify(a);
8
- window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
9
- return;
10
- }
11
- if (!e.useDataSource)
12
- return;
13
- o.parse({
14
- sources: [e.useDataSource],
15
- isStore: !1,
16
- noUseMapping: !0,
17
- tId: "",
18
- isInterval: !1,
19
- callback: (n) => {
20
- window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
21
- }
22
- });
23
- } catch {
24
- }
25
- };
26
- export {
27
- s as executeUnityIframeExecMethodAction
28
- };
1
+ import { SHJDatasourceV2 as o } from "../../datasource/index.mjs";
2
+ import { EventUtils as r } from "../utils/utils.mjs";
3
+ const s = (t, a) => {
4
+ try {
5
+ const { unityIframeExecMethodAction: e } = t;
6
+ if (e.dataType === "params") {
7
+ const n = r.toStringify(a);
8
+ window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
9
+ return;
10
+ }
11
+ if (!e.useDataSource)
12
+ return;
13
+ o.parse({
14
+ sources: [e.useDataSource],
15
+ isStore: !1,
16
+ noUseMapping: !0,
17
+ tId: "",
18
+ isInterval: !1,
19
+ callback: (n) => {
20
+ window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
21
+ }
22
+ });
23
+ } catch {
24
+ }
25
+ };
26
+ export {
27
+ s as executeUnityIframeExecMethodAction
28
+ };
@@ -1,28 +1,28 @@
1
- import { SHJDatasourceV2 as o } from "../../datasource/index.mjs";
2
- import { EventUtils as c } from "../utils/utils.mjs";
3
- const s = (t, a) => {
4
- try {
5
- const { unityWebglExecMethodAction: e } = t;
6
- if (e.dataType === "params") {
7
- const n = c.toStringify(a);
8
- window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
9
- return;
10
- }
11
- if (!e.useDataSource)
12
- return;
13
- o.parse({
14
- sources: [e.useDataSource],
15
- isStore: !1,
16
- noUseMapping: !0,
17
- tId: "",
18
- isInterval: !1,
19
- callback: (n) => {
20
- window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
21
- }
22
- });
23
- } catch {
24
- }
25
- };
26
- export {
27
- s as executeUnityWebglExecMethodAction
28
- };
1
+ import { SHJDatasourceV2 as o } from "../../datasource/index.mjs";
2
+ import { EventUtils as c } from "../utils/utils.mjs";
3
+ const s = (t, a) => {
4
+ try {
5
+ const { unityWebglExecMethodAction: e } = t;
6
+ if (e.dataType === "params") {
7
+ const n = c.toStringify(a);
8
+ window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
9
+ return;
10
+ }
11
+ if (!e.useDataSource)
12
+ return;
13
+ o.parse({
14
+ sources: [e.useDataSource],
15
+ isStore: !1,
16
+ noUseMapping: !0,
17
+ tId: "",
18
+ isInterval: !1,
19
+ callback: (n) => {
20
+ window.SHJSceneUnityIframeInstance.ref && window.SHJSceneUnityIframeInstance.ref.contentWindow.postMessage({ object: e.objectName, function: e.functionName, data: n }, window.SHJSceneUnityIframeInstance.url);
21
+ }
22
+ });
23
+ } catch {
24
+ }
25
+ };
26
+ export {
27
+ s as executeUnityWebglExecMethodAction
28
+ };
@@ -1,6 +1,6 @@
1
- const t = (e, o) => {
2
- window.location.reload();
3
- };
4
- export {
5
- t as executeUpdatePageAction
6
- };
1
+ const t = (e, o) => {
2
+ window.location.reload();
3
+ };
4
+ export {
5
+ t as executeUpdatePageAction
6
+ };
@@ -1,25 +1,25 @@
1
- import { SHJDatasourceV2 as n } from "../../datasource/index.mjs";
2
- import { DataSourceUtils as i } from "../../datasource/utils/utils.mjs";
3
- import { EventUtils as l } from "../utils/utils.mjs";
4
- const b = (o, s) => {
5
- const { updateVariableAction: t } = o, r = i.getVariableData(), a = r.find((e) => e.id === t.name || e.name === t.name);
6
- if (a) {
7
- if (o.updateVariableAction.dataType === "params") {
8
- a._value = s, i.setVariableData(r), l.updateWidgetVariableData(a);
9
- return;
10
- }
11
- n.parse({
12
- sources: [t.useDataSource],
13
- isStore: !1,
14
- noUseMapping: !0,
15
- tId: "",
16
- isInterval: !1,
17
- callback: (e) => {
18
- a._value = e, i.setVariableData(r), l.updateWidgetVariableData(a);
19
- }
20
- });
21
- }
22
- };
23
- export {
24
- b as executeUpdateVariableAction
25
- };
1
+ import { SHJDatasourceV2 as n } from "../../datasource/index.mjs";
2
+ import { DataSourceUtils as i } from "../../datasource/utils/utils.mjs";
3
+ import { EventUtils as l } from "../utils/utils.mjs";
4
+ const b = (o, s) => {
5
+ const { updateVariableAction: t } = o, r = i.getVariableData(), a = r.find((e) => e.id === t.name || e.name === t.name);
6
+ if (a) {
7
+ if (o.updateVariableAction.dataType === "params") {
8
+ a._value = s, i.setVariableData(r), l.updateWidgetVariableData(a);
9
+ return;
10
+ }
11
+ n.parse({
12
+ sources: [t.useDataSource],
13
+ isStore: !1,
14
+ noUseMapping: !0,
15
+ tId: "",
16
+ isInterval: !1,
17
+ callback: (e) => {
18
+ a._value = e, i.setVariableData(r), l.updateWidgetVariableData(a);
19
+ }
20
+ });
21
+ }
22
+ };
23
+ export {
24
+ b as executeUpdateVariableAction
25
+ };
@@ -1,14 +1,14 @@
1
- import { ComponentRefs as o } from "../../../utils/componentRefs.mjs";
2
- const a = (r, n) => {
3
- try {
4
- const { updateWidget: t } = r;
5
- if (t.targetLayerId) {
6
- const e = o.getComponentRef(t.targetLayerId);
7
- e && e.ref && e.ref.refresh && e.ref.refresh();
8
- }
9
- } catch {
10
- }
11
- };
12
- export {
13
- a as executeUpdateWidgetAction
14
- };
1
+ import { ComponentRefs as o } from "../../utils/componentRefs.mjs";
2
+ const a = (r, n) => {
3
+ try {
4
+ const { updateWidget: t } = r;
5
+ if (t.targetLayerId) {
6
+ const e = o.getComponentRef(t.targetLayerId);
7
+ e && e.ref && e.ref.refresh && e.ref.refresh();
8
+ }
9
+ } catch {
10
+ }
11
+ };
12
+ export {
13
+ a as executeUpdateWidgetAction
14
+ };
@@ -1,12 +1,12 @@
1
- const t = (n, r) => {
2
- try {
3
- const { vrSceneMethodAction: e } = n;
4
- if (!window.SHJSceneVrViewer || (e.type === "vrSceneToggle" && (window.SHJSceneVrViewer.loadScene(e.sceneId), window.SHJSceneVrViewer.stopAutoRotate()), e.type === "vrSceneToggleAngle" && (window.SHJSceneVrViewer.setHfov(e.angle.hfov), window.SHJSceneVrViewer.setYaw(e.angle.yaw), window.SHJSceneVrViewer.setPitch(e.angle.pitch)), e.type === "vrSceneStartRotate" && window.SHJSceneVrViewer.startAutoRotate(), e.type === "vrScenePausedRotate" && window.SHJSceneVrViewer.stopAutoRotate(), !window.SHJSceneVrViewer.audio))
5
- return;
6
- e.type === "vrScenePlayMusic" && window.SHJSceneVrViewer.audio.value.play(), e.type === "vrScenePausedMusic" && window.SHJSceneVrViewer.audio.value.pause();
7
- } catch {
8
- }
9
- };
10
- export {
11
- t as executeVrSceneMethodAction
12
- };
1
+ const t = (n, r) => {
2
+ try {
3
+ const { vrSceneMethodAction: e } = n;
4
+ if (!window.SHJSceneVrViewer || (e.type === "vrSceneToggle" && (window.SHJSceneVrViewer.loadScene(e.sceneId), window.SHJSceneVrViewer.stopAutoRotate()), e.type === "vrSceneToggleAngle" && (window.SHJSceneVrViewer.setHfov(e.angle.hfov), window.SHJSceneVrViewer.setYaw(e.angle.yaw), window.SHJSceneVrViewer.setPitch(e.angle.pitch)), e.type === "vrSceneStartRotate" && window.SHJSceneVrViewer.startAutoRotate(), e.type === "vrScenePausedRotate" && window.SHJSceneVrViewer.stopAutoRotate(), !window.SHJSceneVrViewer.audio))
5
+ return;
6
+ e.type === "vrScenePlayMusic" && window.SHJSceneVrViewer.audio.value.play(), e.type === "vrScenePausedMusic" && window.SHJSceneVrViewer.audio.value.pause();
7
+ } catch {
8
+ }
9
+ };
10
+ export {
11
+ t as executeVrSceneMethodAction
12
+ };