@shjjs/visual-ui 1.0.33 → 1.0.35

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 (202) hide show
  1. package/es/commons/core/useChart.mjs +1 -1
  2. package/es/commons/plugins/datasource/index.d.ts +73 -73
  3. package/es/commons/plugins/datasource/index.mjs +214 -214
  4. package/es/commons/plugins/datasource/sources/api.d.ts +1 -1
  5. package/es/commons/plugins/datasource/sources/api.mjs +32 -32
  6. package/es/commons/plugins/datasource/sources/static.d.ts +1 -1
  7. package/es/commons/plugins/datasource/sources/static.mjs +17 -17
  8. package/es/commons/plugins/datasource/sources/storage.d.ts +1 -1
  9. package/es/commons/plugins/datasource/sources/storage.mjs +28 -28
  10. package/es/commons/plugins/datasource/sources/url.d.ts +1 -1
  11. package/es/commons/plugins/datasource/sources/url.mjs +17 -17
  12. package/es/commons/plugins/datasource/sources/variable.d.ts +1 -1
  13. package/es/commons/plugins/datasource/sources/variable.mjs +17 -17
  14. package/es/commons/plugins/datasource/sources/ws.d.ts +32 -32
  15. package/es/commons/plugins/datasource/sources/ws.mjs +139 -139
  16. package/es/commons/plugins/datasource/utils/axios.d.ts +70 -70
  17. package/es/commons/plugins/datasource/utils/axios.mjs +134 -134
  18. package/es/commons/plugins/datasource/utils/request.d.ts +3 -3
  19. package/es/commons/plugins/datasource/utils/request.mjs +5 -5
  20. package/es/commons/plugins/datasource/utils/utils.d.ts +115 -115
  21. package/es/commons/plugins/datasource/utils/utils.mjs +229 -229
  22. package/es/commons/plugins/datasource/utils/wsManager.d.ts +16 -16
  23. package/es/commons/plugins/datasource/utils/wsManager.mjs +78 -78
  24. package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -8
  25. package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -8
  26. package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -8
  27. package/es/commons/plugins/event/actions/invokeAction.mjs +11 -11
  28. package/es/commons/plugins/event/actions/linkAction.d.ts +8 -8
  29. package/es/commons/plugins/event/actions/linkAction.mjs +8 -8
  30. package/es/commons/plugins/event/actions/moveAction.d.ts +8 -8
  31. package/es/commons/plugins/event/actions/moveAction.mjs +15 -15
  32. package/es/commons/plugins/event/actions/refreshVariableAction.d.ts +7 -7
  33. package/es/commons/plugins/event/actions/refreshVariableAction.mjs +18 -18
  34. package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -8
  35. package/es/commons/plugins/event/actions/rotateAction.mjs +19 -19
  36. package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -8
  37. package/es/commons/plugins/event/actions/scaleAction.mjs +24 -24
  38. package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -8
  39. package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -16
  40. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -7
  41. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -31
  42. package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -7
  43. package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -31
  44. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -7
  45. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -28
  46. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -7
  47. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -28
  48. package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -8
  49. package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -6
  50. package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -7
  51. package/es/commons/plugins/event/actions/updateVariableAction.mjs +25 -25
  52. package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -7
  53. package/es/commons/plugins/event/actions/updateWidgetAction.mjs +14 -14
  54. package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -7
  55. package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -12
  56. package/es/commons/plugins/event/index.d.ts +206 -206
  57. package/es/commons/plugins/event/index.mjs +161 -161
  58. package/es/commons/plugins/event/utils/utils.d.ts +22 -22
  59. package/es/commons/plugins/event/utils/utils.mjs +50 -50
  60. package/es/commons/utils/componentRefs.d.ts +28 -28
  61. package/es/commons/utils/componentRefs.mjs +37 -37
  62. package/es/commons/utils/getNextElement.d.ts +7 -7
  63. package/es/commons/utils/getNextElement.mjs +12 -12
  64. package/es/components/chart/commons/components/common-chart/index.vue.mjs +10 -11
  65. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +6 -7
  66. package/es/components/chart/commons/hooks/useChart.mjs +1 -1
  67. package/es/components/chart-other-candlestick-basic/index.vue.mjs +7 -8
  68. package/es/components/chart-other-candlestick-demo/index.vue.mjs +16 -17
  69. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +14 -15
  70. package/es/components/chart-other-circular-graph/index.vue.mjs +16 -17
  71. package/es/components/chart-other-force/index.vue.mjs +19 -20
  72. package/es/components/chart-other-force2/index.vue.mjs +19 -20
  73. package/es/components/chart-other-funnel/index.vue.mjs +16 -17
  74. package/es/components/chart-other-funnel-contrast/index.vue.mjs +16 -17
  75. package/es/components/chart-other-funnel-split/index.vue.mjs +16 -17
  76. package/es/components/chart-other-funnel2/index.vue.mjs +16 -17
  77. package/es/components/chart-other-gauge/index.vue.mjs +21 -22
  78. package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -21
  79. package/es/components/chart-other-gauge-stage/index.vue.mjs +21 -22
  80. package/es/components/chart-other-graph-basic/index.vue.mjs +8 -9
  81. package/es/components/chart-other-graph-basic2/index.vue.mjs +8 -9
  82. package/es/components/chart-other-graph-calendar/index.vue.mjs +7 -8
  83. package/es/components/chart-other-grid-percentage/index.vue.mjs +3 -4
  84. package/es/components/chart-other-heatmap/index.vue.mjs +19 -20
  85. package/es/components/chart-other-label-gauge/index.vue.mjs +9 -10
  86. package/es/components/chart-other-liquidfill/index.vue.mjs +11 -12
  87. package/es/components/chart-other-parallel-basic/index.vue.mjs +15 -16
  88. package/es/components/chart-other-parallel-mul/index.vue.mjs +6 -7
  89. package/es/components/chart-other-radar/index.vue.mjs +20 -21
  90. package/es/components/chart-other-radar-stack/index.vue.mjs +6 -7
  91. package/es/components/chart-other-sunburst-basic/index.vue.mjs +12 -13
  92. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +12 -13
  93. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +12 -13
  94. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +12 -13
  95. package/es/components/chart-other-sunburst-book/index.vue.mjs +7 -8
  96. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +16 -17
  97. package/es/components/chart-other-sunburst-radius/index.vue.mjs +18 -19
  98. package/es/components/chart-other-theme-river/index.vue.mjs +3 -4
  99. package/es/components/chart-other-tree/index.vue.mjs +8 -9
  100. package/es/components/chart-other-tree-line/index.vue.mjs +7 -8
  101. package/es/components/chart-other-treemap/index.vue.mjs +9 -10
  102. package/es/components/chart-other-treemap-basic/index.vue.mjs +14 -15
  103. package/es/components/chart-other-word-cloud/index.vue.mjs +11 -12
  104. package/es/components/commons-echarts/compileAndRunEcharts.mjs +8 -9
  105. package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
  106. package/es/components/commons-loop-iterator/index.vue2.mjs +3 -4
  107. package/es/components/commons-product-model/index.vue.mjs +2 -2
  108. package/es/components/commons-product-model/index.vue2.mjs +1 -1
  109. package/es/components/commons-three-loader/index.vue.mjs +1 -1
  110. package/es/components/commons-three-loader/index.vue2.mjs +1 -1
  111. package/es/components/commons-three-loader3/index.vue.mjs +1 -1
  112. package/es/components/commons-three-loader3/index.vue2.mjs +1 -1
  113. package/es/components/commons-weather/index.vue.mjs +2 -2
  114. package/es/components/commons-weather/index.vue2.mjs +1 -1
  115. package/es/components/commons-weather-dynamic/index.vue.mjs +1 -1
  116. package/es/components/commons-weather-dynamic/index.vue2.mjs +3 -4
  117. package/es/components/index.d.ts +111 -111
  118. package/es/components/index.mjs +360 -360
  119. package/es/components/interaction/button/index.vue.mjs +2 -2
  120. package/es/components/interaction/button/index.vue2.mjs +65 -65
  121. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +2 -2
  122. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +64 -65
  123. package/es/components/interaction/date-picker/src/date-picker/index.d.ts +211 -211
  124. package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +211 -211
  125. package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +211 -211
  126. package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +211 -211
  127. package/es/components/interaction/tabs/index.vue.mjs +11 -12
  128. package/es/components/interaction/tabs-icon/index.vue.mjs +6 -7
  129. package/es/components/interaction-input/index.vue.mjs +1 -1
  130. package/es/components/interaction-input/index.vue2.mjs +3 -4
  131. package/es/components/interaction-select/index.vue.mjs +1 -1
  132. package/es/components/interaction-select/index.vue2.mjs +6 -7
  133. package/es/components/interaction-slider/index.vue.mjs +2 -2
  134. package/es/components/interaction-slider/index.vue2.mjs +34 -35
  135. package/es/components/interaction-switch/index.vue.mjs +2 -2
  136. package/es/components/interaction-switch/index.vue2.mjs +20 -20
  137. package/es/components/interaction-tabs/index.vue.mjs +2 -2
  138. package/es/components/interaction-tabs/index.vue2.mjs +1 -1
  139. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  140. package/es/components/interaction-tabs2/index.vue2.mjs +1 -1
  141. package/es/components/map-earth-basic/index.vue.d.ts +0 -2
  142. package/es/components/map-earth-basic/index.vue.mjs +14 -15
  143. package/es/components/map-earth-cool-tech/index.vue.mjs +14 -15
  144. package/es/components/map-earth-fly-line/index.vue.d.ts +0 -4
  145. package/es/components/map-earth-fly-line/index.vue.mjs +8 -9
  146. package/es/components/map-earth-hacker/index.vue.d.ts +2 -4
  147. package/es/components/map-earth-hacker/index.vue.mjs +19 -20
  148. package/es/components/map-earth-particle/index.vue.d.ts +0 -4
  149. package/es/components/map-earth-particle/index.vue.mjs +14 -15
  150. package/es/components/media-audio/index.vue.mjs +2 -2
  151. package/es/components/media-audio/index.vue2.mjs +5 -5
  152. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  153. package/es/components/media-audio-dynamic/index.vue2.mjs +4 -5
  154. package/es/components/media-flv/index.vue.mjs +1 -1
  155. package/es/components/media-iframe/index.vue.mjs +2 -2
  156. package/es/components/media-iframe/index.vue2.mjs +1 -1
  157. package/es/components/media-image-dynamic/index.vue.mjs +2 -2
  158. package/es/components/media-image-dynamic/index.vue2.mjs +6 -7
  159. package/es/components/media-m3u8/index.vue.mjs +1 -1
  160. package/es/components/media-m3u8-dynamic/index.vue.mjs +3 -4
  161. package/es/components/media-video/index.vue.mjs +2 -2
  162. package/es/components/media-video/index.vue2.mjs +1 -1
  163. package/es/components/media-video-dynamic/index.vue.mjs +2 -2
  164. package/es/components/media-video-dynamic/index.vue2.mjs +3 -4
  165. package/es/components/scene-amap2d/index.vue.mjs +1 -1
  166. package/es/components/scene-amap2d/index.vue2.mjs +13 -14
  167. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  168. package/es/components/scene-amap3d/index.vue2.mjs +4 -5
  169. package/es/components/scene-default/index.vue.mjs +2 -2
  170. package/es/components/scene-default/index.vue2.mjs +1 -1
  171. package/es/components/scene-map3d/index.vue.mjs +2 -2
  172. package/es/components/scene-map3d/index.vue2.mjs +19 -20
  173. package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
  174. package/es/components/scene-ue-iframe/index.vue2.mjs +1 -1
  175. package/es/components/scene-ue-shj/index.vue.mjs +2 -2
  176. package/es/components/scene-ue-shj/index.vue2.mjs +1 -1
  177. package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
  178. package/es/components/scene-unity-iframe/index.vue2.mjs +1 -1
  179. package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
  180. package/es/components/scene-unity-webgl/index.vue2.mjs +1 -1
  181. package/es/components/scene-vr/index.vue.mjs +2 -2
  182. package/es/components/scene-vr/index.vue2.mjs +3 -3
  183. package/es/components/text/list/index.vue.mjs +10 -11
  184. package/es/components/text-count-down/index.vue.mjs +1 -1
  185. package/es/components/text-count-down/index.vue2.mjs +1 -1
  186. package/es/components/text-over-number/index.vue.mjs +1 -1
  187. package/es/components/text-over-number/index.vue2.mjs +15 -16
  188. package/es/components/text-real-time/index.vue.mjs +1 -1
  189. package/es/components/text-real-time/index.vue2.mjs +2 -2
  190. package/es/components/text-row-scroll/index.vue.mjs +2 -2
  191. package/es/components/text-row-scroll/index.vue2.mjs +30 -31
  192. package/es/components/text-table-basic/index.vue.mjs +1 -1
  193. package/es/components/text-table-basic/index.vue2.mjs +43 -44
  194. package/es/components/text-table-scroll/index.vue.mjs +2 -2
  195. package/es/components/text-table-scroll/index.vue2.mjs +58 -59
  196. package/es/components/text-text-dynamic/index.vue.mjs +1 -1
  197. package/es/components/text-text-dynamic/index.vue2.mjs +16 -17
  198. package/es/env.d.ts +0 -1
  199. package/es/index.d.ts +0 -7
  200. package/es/index.mjs +370 -384
  201. package/es/widgets.css +1 -1
  202. package/package.json +2 -2
@@ -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,8 +1,8 @@
1
- import { IEvent } from '..';
2
- /**
3
- * 执行更新页面行为
4
- * @param event 事件
5
- * @param params 参数
6
- * @returns
7
- */
8
- export declare const executeUpdatePageAction: (event: IEvent, params: any) => void;
1
+ import { IEvent } from '..';
2
+ /**
3
+ * 执行更新页面行为
4
+ * @param event 事件
5
+ * @param params 参数
6
+ * @returns
7
+ */
8
+ export declare const executeUpdatePageAction: (event: IEvent, params: any) => void;
@@ -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,7 +1,7 @@
1
- import { IEvent } from '..';
2
- /**
3
- * 执行更新变量行为
4
- * @param event 事件
5
- * @param params 参数
6
- */
7
- export declare const executeUpdateVariableAction: (event: IEvent, params: any) => void;
1
+ import { IEvent } from '..';
2
+ /**
3
+ * 执行更新变量行为
4
+ * @param event 事件
5
+ * @param params 参数
6
+ */
7
+ export declare const executeUpdateVariableAction: (event: IEvent, params: any) => void;
@@ -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,7 +1,7 @@
1
- import { IEvent } from '..';
2
- /**
3
- * 执行更新组件行为
4
- * @param event 事件
5
- * @param params 参数
6
- */
7
- export declare const executeUpdateWidgetAction: (event: IEvent, params: any) => void;
1
+ import { IEvent } from '..';
2
+ /**
3
+ * 执行更新组件行为
4
+ * @param event 事件
5
+ * @param params 参数
6
+ */
7
+ export declare const executeUpdateWidgetAction: (event: IEvent, params: any) => void;
@@ -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,7 +1,7 @@
1
- import { IEvent } from '..';
2
- /**
3
- * 执行VR场景方法行为
4
- * @param event 事件
5
- * @param params 参数
6
- */
7
- export declare const executeVrSceneMethodAction: (event: IEvent, params: any) => void;
1
+ import { IEvent } from '..';
2
+ /**
3
+ * 执行VR场景方法行为
4
+ * @param event 事件
5
+ * @param params 参数
6
+ */
7
+ export declare const executeVrSceneMethodAction: (event: IEvent, params: any) => void;
@@ -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
+ };
@@ -1,206 +1,206 @@
1
- export interface IEvent {
2
- id: string;
3
- type: 'layer' | 'widget';
4
- /** 事件类型 */
5
- eventType: string;
6
- /** 事件行为 */
7
- actions?: string;
8
- /** 点击某一项 */
9
- clickname?: string;
10
- /** 接收的方法 */
11
- receivingMethod?: string;
12
- /** 事件延迟 */
13
- delay: number;
14
- /** 页面行为 */
15
- pageAction: {
16
- target: string;
17
- pageId: string;
18
- parameter: string;
19
- };
20
- /** 跳转子页面行为 */
21
- switchViewAction: {
22
- viewId: string;
23
- };
24
- /** 链接行为 */
25
- linkAction: {
26
- target: string;
27
- url: string;
28
- };
29
- /** 发送API数据行为 */
30
- sendAPIAction: {
31
- useDataSource: any;
32
- };
33
- /** 切换状态行为 */
34
- stateAction: {
35
- speed: string;
36
- duration: number;
37
- delay: number;
38
- toggle: boolean;
39
- stateList: string[];
40
- };
41
- /** 移动行为 */
42
- moveAction: {
43
- layerIds: string[];
44
- x: number;
45
- y: number;
46
- speed: string;
47
- duration: number;
48
- delay: number;
49
- };
50
- /** 缩放行为 */
51
- scaleAction: {
52
- layerIds: string[];
53
- origin: string;
54
- x: number;
55
- y: number;
56
- speed: string;
57
- duration: number;
58
- delay: number;
59
- };
60
- /** 旋转行为 */
61
- rotateAction: {
62
- layerIds: string[];
63
- x: number;
64
- y: number;
65
- z: number;
66
- perspective: number;
67
- speed: string;
68
- duration: number;
69
- delay: number;
70
- };
71
- /** 组件显示隐藏行为 */
72
- visibledAction: {
73
- status: string;
74
- layerIds: string[];
75
- };
76
- /** 更新数据变量行为 */
77
- updateVariableAction: {
78
- name: string;
79
- dataType: 'params' | 'custom';
80
- useDataSource: any;
81
- };
82
- /** 刷新数据变量行为 */
83
- refreshVariableAction: {
84
- name: string;
85
- };
86
- /** 全屏切换行为 */
87
- fullscreenAction: {
88
- status: string;
89
- };
90
- /** 调用方法行为 */
91
- invokeAction: {
92
- targetLayerId: string;
93
- functionName: string;
94
- functionArgs: any;
95
- };
96
- /** 虚幻蓝图方法行为 */
97
- ueShjExecMethodAction: {
98
- functionName: string;
99
- dataType: 'params' | 'custom';
100
- useDataSource: any;
101
- escape: boolean;
102
- };
103
- /** 虚幻WebSocket行为 */
104
- ueCommonsWebscoketAction: {
105
- socketUrl: string;
106
- dataType: 'params' | 'custom';
107
- useDataSource: any;
108
- escape: boolean;
109
- };
110
- /** UnityWebGl场景方法行为 */
111
- unityWebglExecMethodAction: {
112
- dataType: 'params' | 'custom';
113
- objectName: string;
114
- functionName: string;
115
- useDataSource: any;
116
- };
117
- /** UnityIframe场景方法行为 */
118
- unityIframeExecMethodAction: {
119
- dataType: 'params' | 'custom';
120
- objectName: string;
121
- functionName: string;
122
- useDataSource: any;
123
- };
124
- /** 更新组件行为 */
125
- updateWidget: {
126
- targetLayerId: string;
127
- };
128
- /** 切换全景场景行为 */
129
- vrSceneMethodAction: {
130
- type: string;
131
- sceneId: string;
132
- angle: {
133
- pitch: number;
134
- yaw: number;
135
- hfov: number;
136
- };
137
- };
138
- /** 切换全景视角行为 */
139
- vrSceneToggleAngleAction: {};
140
- /** 动画 */
141
- animations: {
142
- enter: {
143
- name: string;
144
- duration: number;
145
- delay: number;
146
- count: number;
147
- };
148
- exit: {
149
- name: string;
150
- duration: number;
151
- delay: number;
152
- count: number;
153
- };
154
- };
155
- /** 条件 */
156
- condition: {
157
- type: 'and' | 'or';
158
- list: {
159
- id: string;
160
- type: 'field' | 'custom';
161
- conditionName?: string;
162
- conditionExpression?: string;
163
- conditionValue?: string | number;
164
- customValue?: string;
165
- }[];
166
- };
167
- /** 事件过滤器 */
168
- filterCode: string;
169
- }
170
- export declare class SHJParseEvent {
171
- /** 事件动作 */
172
- private static actions;
173
- /**
174
- * 添加事件解析器
175
- * @param type 事件类型
176
- * @param parser 事件解析器
177
- */
178
- static addAction(type: string, parser: Function): void;
179
- /**
180
- * 获取事件解析器
181
- * @param type 事件类型
182
- * @returns 事件解析器
183
- */
184
- static getAction(type: string): Function | undefined;
185
- /**
186
- * 解析事件
187
- * @param events 事件
188
- * @param type 事件类型
189
- * @param params 参数
190
- */
191
- static parseEvents(events: IEvent[], type: string, params?: any): void;
192
- /**
193
- * 过滤事件返回值
194
- * @param event 事件
195
- * @param params 参数
196
- * @returns 过滤后的参数
197
- */
198
- static filterEvent(event: IEvent, params: any): any;
199
- /**
200
- * 条件逻辑判断
201
- * @param event 事件
202
- * @param params 参数
203
- * @returns 是否通过
204
- */
205
- static conditionLogic(event: IEvent, params: any): boolean;
206
- }
1
+ export interface IEvent {
2
+ id: string;
3
+ type: 'layer' | 'widget';
4
+ /** 事件类型 */
5
+ eventType: string;
6
+ /** 事件行为 */
7
+ actions?: string;
8
+ /** 点击某一项 */
9
+ clickname?: string;
10
+ /** 接收的方法 */
11
+ receivingMethod?: string;
12
+ /** 事件延迟 */
13
+ delay: number;
14
+ /** 页面行为 */
15
+ pageAction: {
16
+ target: string;
17
+ pageId: string;
18
+ parameter: string;
19
+ };
20
+ /** 跳转子页面行为 */
21
+ switchViewAction: {
22
+ viewId: string;
23
+ };
24
+ /** 链接行为 */
25
+ linkAction: {
26
+ target: string;
27
+ url: string;
28
+ };
29
+ /** 发送API数据行为 */
30
+ sendAPIAction: {
31
+ useDataSource: any;
32
+ };
33
+ /** 切换状态行为 */
34
+ stateAction: {
35
+ speed: string;
36
+ duration: number;
37
+ delay: number;
38
+ toggle: boolean;
39
+ stateList: string[];
40
+ };
41
+ /** 移动行为 */
42
+ moveAction: {
43
+ layerIds: string[];
44
+ x: number;
45
+ y: number;
46
+ speed: string;
47
+ duration: number;
48
+ delay: number;
49
+ };
50
+ /** 缩放行为 */
51
+ scaleAction: {
52
+ layerIds: string[];
53
+ origin: string;
54
+ x: number;
55
+ y: number;
56
+ speed: string;
57
+ duration: number;
58
+ delay: number;
59
+ };
60
+ /** 旋转行为 */
61
+ rotateAction: {
62
+ layerIds: string[];
63
+ x: number;
64
+ y: number;
65
+ z: number;
66
+ perspective: number;
67
+ speed: string;
68
+ duration: number;
69
+ delay: number;
70
+ };
71
+ /** 组件显示隐藏行为 */
72
+ visibledAction: {
73
+ status: string;
74
+ layerIds: string[];
75
+ };
76
+ /** 更新数据变量行为 */
77
+ updateVariableAction: {
78
+ name: string;
79
+ dataType: 'params' | 'custom';
80
+ useDataSource: any;
81
+ };
82
+ /** 刷新数据变量行为 */
83
+ refreshVariableAction: {
84
+ name: string;
85
+ };
86
+ /** 全屏切换行为 */
87
+ fullscreenAction: {
88
+ status: string;
89
+ };
90
+ /** 调用方法行为 */
91
+ invokeAction: {
92
+ targetLayerId: string;
93
+ functionName: string;
94
+ functionArgs: any;
95
+ };
96
+ /** 虚幻蓝图方法行为 */
97
+ ueShjExecMethodAction: {
98
+ functionName: string;
99
+ dataType: 'params' | 'custom';
100
+ useDataSource: any;
101
+ escape: boolean;
102
+ };
103
+ /** 虚幻WebSocket行为 */
104
+ ueCommonsWebscoketAction: {
105
+ socketUrl: string;
106
+ dataType: 'params' | 'custom';
107
+ useDataSource: any;
108
+ escape: boolean;
109
+ };
110
+ /** UnityWebGl场景方法行为 */
111
+ unityWebglExecMethodAction: {
112
+ dataType: 'params' | 'custom';
113
+ objectName: string;
114
+ functionName: string;
115
+ useDataSource: any;
116
+ };
117
+ /** UnityIframe场景方法行为 */
118
+ unityIframeExecMethodAction: {
119
+ dataType: 'params' | 'custom';
120
+ objectName: string;
121
+ functionName: string;
122
+ useDataSource: any;
123
+ };
124
+ /** 更新组件行为 */
125
+ updateWidget: {
126
+ targetLayerId: string;
127
+ };
128
+ /** 切换全景场景行为 */
129
+ vrSceneMethodAction: {
130
+ type: string;
131
+ sceneId: string;
132
+ angle: {
133
+ pitch: number;
134
+ yaw: number;
135
+ hfov: number;
136
+ };
137
+ };
138
+ /** 切换全景视角行为 */
139
+ vrSceneToggleAngleAction: {};
140
+ /** 动画 */
141
+ animations: {
142
+ enter: {
143
+ name: string;
144
+ duration: number;
145
+ delay: number;
146
+ count: number;
147
+ };
148
+ exit: {
149
+ name: string;
150
+ duration: number;
151
+ delay: number;
152
+ count: number;
153
+ };
154
+ };
155
+ /** 条件 */
156
+ condition: {
157
+ type: 'and' | 'or';
158
+ list: {
159
+ id: string;
160
+ type: 'field' | 'custom';
161
+ conditionName?: string;
162
+ conditionExpression?: string;
163
+ conditionValue?: string | number;
164
+ customValue?: string;
165
+ }[];
166
+ };
167
+ /** 事件过滤器 */
168
+ filterCode: string;
169
+ }
170
+ export declare class SHJParseEvent {
171
+ /** 事件动作 */
172
+ private static actions;
173
+ /**
174
+ * 添加事件解析器
175
+ * @param type 事件类型
176
+ * @param parser 事件解析器
177
+ */
178
+ static addAction(type: string, parser: Function): void;
179
+ /**
180
+ * 获取事件解析器
181
+ * @param type 事件类型
182
+ * @returns 事件解析器
183
+ */
184
+ static getAction(type: string): Function | undefined;
185
+ /**
186
+ * 解析事件
187
+ * @param events 事件
188
+ * @param type 事件类型
189
+ * @param params 参数
190
+ */
191
+ static parseEvents(events: IEvent[], type: string, params?: any): void;
192
+ /**
193
+ * 过滤事件返回值
194
+ * @param event 事件
195
+ * @param params 参数
196
+ * @returns 过滤后的参数
197
+ */
198
+ static filterEvent(event: IEvent, params: any): any;
199
+ /**
200
+ * 条件逻辑判断
201
+ * @param event 事件
202
+ * @param params 参数
203
+ * @returns 是否通过
204
+ */
205
+ static conditionLogic(event: IEvent, params: any): boolean;
206
+ }