@shjjs/visual-ui 1.0.1 → 1.0.3

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 (123) hide show
  1. package/es/components/commons-product-model/index.vue.mjs +2 -2
  2. package/es/components/commons-product-model/index.vue2.mjs +33 -33
  3. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  4. package/es/components/commons-three-loader3/index.vue2.mjs +40 -40
  5. package/es/components/index.d.ts +5 -0
  6. package/es/components/index.mjs +82 -72
  7. package/es/components/interaction-data-picker/index.d.ts +14 -12
  8. package/es/components/interaction-data-picker/index.mjs +2 -2
  9. package/es/components/interaction-data-picker/index.vue.d.ts +14 -12
  10. package/es/components/interaction-data-picker/index.vue.mjs +5 -11
  11. package/es/components/interaction-data-picker/index.vue2.mjs +130 -2
  12. package/es/components/interaction-input/index.d.ts +25 -5
  13. package/es/components/interaction-input/index.vue.d.ts +25 -5
  14. package/es/components/interaction-input/index.vue.mjs +2 -2
  15. package/es/components/interaction-input/index.vue2.mjs +67 -36
  16. package/es/components/interaction-select/index.d.ts +188 -8
  17. package/es/components/interaction-select/index.vue.d.ts +193 -8
  18. package/es/components/interaction-select/index.vue.mjs +5 -11
  19. package/es/components/interaction-select/index.vue2.mjs +220 -2
  20. package/es/components/interaction-slider/index.d.ts +22 -5
  21. package/es/components/interaction-slider/index.vue.d.ts +22 -5
  22. package/es/components/interaction-slider/index.vue.mjs +2 -2
  23. package/es/components/interaction-slider/index.vue2.mjs +84 -50
  24. package/es/components/scene-amap2d/index.d.ts +2 -2
  25. package/es/components/scene-amap2d/index.vue.d.ts +2 -2
  26. package/es/components/scene-amap2d/index.vue.mjs +2 -2
  27. package/es/components/scene-amap2d/index.vue2.mjs +16 -16
  28. package/es/components/scene-amap3d/index.d.ts +2 -2
  29. package/es/components/scene-amap3d/index.vue.d.ts +2 -2
  30. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  31. package/es/components/scene-amap3d/index.vue2.mjs +95 -88
  32. package/es/components/scene-map3d/index.d.ts +2 -2
  33. package/es/components/scene-map3d/index.vue.d.ts +2 -2
  34. package/es/components/scene-map3d/index.vue.mjs +2 -2
  35. package/es/components/scene-map3d/index.vue2.mjs +13 -13
  36. package/es/components/scene-map3d/map3d/module/MapMirror.mjs +1 -1
  37. package/es/components/scene-ue-iframe/index.d.ts +50 -0
  38. package/es/components/scene-ue-iframe/index.mjs +7 -0
  39. package/es/components/scene-ue-iframe/index.vue.d.ts +50 -0
  40. package/es/components/scene-ue-iframe/index.vue.mjs +7 -0
  41. package/es/components/scene-ue-iframe/index.vue2.mjs +48 -0
  42. package/es/components/scene-ue-shj/index.d.ts +50 -0
  43. package/es/components/scene-ue-shj/index.mjs +7 -0
  44. package/es/components/scene-ue-shj/index.vue.d.ts +50 -0
  45. package/es/components/scene-ue-shj/index.vue.mjs +7 -0
  46. package/es/components/scene-ue-shj/index.vue2.mjs +37 -0
  47. package/es/components/scene-unity-iframe/index.d.ts +61 -0
  48. package/es/components/scene-unity-iframe/index.mjs +7 -0
  49. package/es/components/scene-unity-iframe/index.vue.d.ts +61 -0
  50. package/es/components/scene-unity-iframe/index.vue.mjs +7 -0
  51. package/es/components/scene-unity-iframe/index.vue2.mjs +37 -0
  52. package/es/components/scene-unity-webgl/index.d.ts +61 -0
  53. package/es/components/scene-unity-webgl/index.mjs +7 -0
  54. package/es/components/scene-unity-webgl/index.vue.d.ts +61 -0
  55. package/es/components/scene-unity-webgl/index.vue.mjs +7 -0
  56. package/es/components/scene-unity-webgl/index.vue2.mjs +37 -0
  57. package/es/components/scene-vr/entity/audio.d.ts +6 -0
  58. package/es/components/scene-vr/index.d.ts +103 -0
  59. package/es/components/scene-vr/index.mjs +7 -0
  60. package/es/components/scene-vr/index.vue.d.ts +103 -0
  61. package/es/components/scene-vr/index.vue.mjs +7 -0
  62. package/es/components/scene-vr/index.vue2.mjs +355 -0
  63. package/es/components/scene-vr/resources/zv-add.svg.mjs +4 -0
  64. package/es/components/scene-vr/resources/zv-pause.svg.mjs +4 -0
  65. package/es/components/scene-vr/resources/zv-play.svg.mjs +4 -0
  66. package/es/components/scene-vr/resources/zv-reduce.svg.mjs +4 -0
  67. package/es/components/scene-vr/resources/zv-refresh.svg.mjs +4 -0
  68. package/es/components/scene-vr/resources/zv-return.svg.mjs +4 -0
  69. package/es/components/scene-vr/resources/zv-vr-select.svg.mjs +4 -0
  70. package/es/components/text-over-number/index.vue.d.ts +32 -32
  71. package/es/index.mjs +94 -84
  72. package/es/style.css +1 -1
  73. package/es/utils/clickOutSide.d.ts +5 -0
  74. package/es/utils/clickOutSide.mjs +13 -0
  75. package/es/utils/json2css.mjs +8 -8
  76. package/lib/components/commons-product-model/index.vue.js +1 -1
  77. package/lib/components/commons-product-model/index.vue2.js +1 -1
  78. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  79. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  80. package/lib/components/index.js +1 -1
  81. package/lib/components/interaction-data-picker/index.js +1 -1
  82. package/lib/components/interaction-data-picker/index.vue.js +1 -1
  83. package/lib/components/interaction-data-picker/index.vue2.js +1 -1
  84. package/lib/components/interaction-input/index.vue.js +1 -1
  85. package/lib/components/interaction-input/index.vue2.js +1 -1
  86. package/lib/components/interaction-select/index.vue.js +1 -1
  87. package/lib/components/interaction-select/index.vue2.js +1 -1
  88. package/lib/components/interaction-slider/index.vue.js +1 -1
  89. package/lib/components/interaction-slider/index.vue2.js +1 -1
  90. package/lib/components/scene-amap2d/index.vue.js +1 -1
  91. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  92. package/lib/components/scene-amap3d/index.vue.js +1 -1
  93. package/lib/components/scene-amap3d/index.vue2.js +2 -2
  94. package/lib/components/scene-map3d/index.vue.js +1 -1
  95. package/lib/components/scene-map3d/index.vue2.js +1 -1
  96. package/lib/components/scene-map3d/map3d/module/MapMirror.js +1 -1
  97. package/lib/components/scene-ue-iframe/index.js +1 -0
  98. package/lib/components/scene-ue-iframe/index.vue.js +1 -0
  99. package/lib/components/scene-ue-iframe/index.vue2.js +1 -0
  100. package/lib/components/scene-ue-shj/index.js +1 -0
  101. package/lib/components/scene-ue-shj/index.vue.js +1 -0
  102. package/lib/components/scene-ue-shj/index.vue2.js +1 -0
  103. package/lib/components/scene-unity-iframe/index.js +1 -0
  104. package/lib/components/scene-unity-iframe/index.vue.js +1 -0
  105. package/lib/components/scene-unity-iframe/index.vue2.js +1 -0
  106. package/lib/components/scene-unity-webgl/index.js +1 -0
  107. package/lib/components/scene-unity-webgl/index.vue.js +1 -0
  108. package/lib/components/scene-unity-webgl/index.vue2.js +1 -0
  109. package/lib/components/scene-vr/index.js +1 -0
  110. package/lib/components/scene-vr/index.vue.js +1 -0
  111. package/lib/components/scene-vr/index.vue2.js +11 -0
  112. package/lib/components/scene-vr/resources/zv-add.svg.js +1 -0
  113. package/lib/components/scene-vr/resources/zv-pause.svg.js +1 -0
  114. package/lib/components/scene-vr/resources/zv-play.svg.js +1 -0
  115. package/lib/components/scene-vr/resources/zv-reduce.svg.js +1 -0
  116. package/lib/components/scene-vr/resources/zv-refresh.svg.js +1 -0
  117. package/lib/components/scene-vr/resources/zv-return.svg.js +1 -0
  118. package/lib/components/scene-vr/resources/zv-vr-select.svg.js +1 -0
  119. package/lib/index.js +1 -1
  120. package/lib/style.css +1 -1
  121. package/lib/utils/clickOutSide.js +1 -0
  122. package/lib/utils/json2css.js +1 -1
  123. package/package.json +1 -1
@@ -0,0 +1,48 @@
1
+ import { defineComponent as n, openBlock as c, createElementBlock as i, createElementVNode as d, onMounted as w, onBeforeUnmount as m } from "vue";
2
+ const S = { class: "iframe-webscoket" }, f = ["src"], l = n({ name: "zv-scene-ue-iframe" }), k = /* @__PURE__ */ n({
3
+ ...l,
4
+ props: {
5
+ basicOption: {},
6
+ sources: {},
7
+ useEvents: {},
8
+ uuid: {},
9
+ isPreview: { type: Boolean }
10
+ },
11
+ emits: [
12
+ "on-message"
13
+ ],
14
+ setup(t, { emit: r }) {
15
+ const s = t, a = r;
16
+ return ((o) => {
17
+ w(() => {
18
+ if (o.webSocketUrl)
19
+ try {
20
+ window.SHJSceneUEIframeWebscoket && (window.SHJSceneUEIframeWebscoket.close(), window.SHJSceneUEIframeWebscoket = null), window.SHJSceneUEIframeWebscoket = new WebSocket(o.webSocketUrl), window.SHJSceneUEIframeWebscoket.onmessage = (e) => {
21
+ try {
22
+ if (JSON.parse(e.data).type && JSON.parse(e.data).type === "ping")
23
+ return;
24
+ if (!JSON.parse(e.data).data)
25
+ throw new Error("");
26
+ a("on-message", JSON.parse(e.data).data), window.SHJParseEvent(s.useEvents, "on-message", JSON.parse(e.data).data);
27
+ } catch {
28
+ }
29
+ }, window.SHJSceneUEIframeWebscoket.onopen = () => {
30
+ }, window.SHJSceneUEIframeWebscoket.onerror = () => {
31
+ };
32
+ } catch {
33
+ }
34
+ }), m(() => {
35
+ window.SHJSceneUEIframeWebscoket && window.SHJSceneUEIframeWebscoket.close();
36
+ });
37
+ })(s.basicOption), (o, e) => (c(), i("div", S, [
38
+ d("iframe", {
39
+ src: o.basicOption.iframeUrl,
40
+ sandbox: "allow-scripts allow-same-origin",
41
+ style: { width: "100%", height: "100%", border: "0" }
42
+ }, null, 8, f)
43
+ ]));
44
+ }
45
+ });
46
+ export {
47
+ k as default
48
+ };
@@ -0,0 +1,50 @@
1
+ export declare const ZvSceneUeShj: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ }, {
23
+ props: any;
24
+ emit: (event: "on-message", ...args: any[]) => void;
25
+ useShjForUeScene: () => void;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: any;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ isPreview: {
44
+ type: BooleanConstructor;
45
+ required: true;
46
+ };
47
+ }>> & {
48
+ "onOn-message"?: (...args: any[]) => any;
49
+ }, {}, {}>> & Record<string, any>;
50
+ export default ZvSceneUeShj;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as o } from "../../utils/install.mjs";
3
+ const a = o(t);
4
+ export {
5
+ a as ZvSceneUeShj,
6
+ a as default
7
+ };
@@ -0,0 +1,50 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ }, {
23
+ props: any;
24
+ emit: (event: "on-message", ...args: any[]) => void;
25
+ useShjForUeScene: () => void;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: any;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ isPreview: {
44
+ type: BooleanConstructor;
45
+ required: true;
46
+ };
47
+ }>> & {
48
+ "onOn-message"?: (...args: any[]) => any;
49
+ }, {}, {}>;
50
+ export default _sfc_main;
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9f2fe2d2"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as t, openBlock as u, createElementBlock as v, normalizeClass as p, onMounted as d } from "vue";
2
+ const h = t({ name: "zv-scene-ue-shj" }), m = /* @__PURE__ */ t({
3
+ ...h,
4
+ props: {
5
+ basicOption: {},
6
+ sources: {},
7
+ useEvents: {},
8
+ uuid: {},
9
+ isPreview: { type: Boolean }
10
+ },
11
+ emits: [
12
+ "on-message"
13
+ ],
14
+ setup(i, { emit: c }) {
15
+ const n = i, a = c;
16
+ return (() => {
17
+ d(() => {
18
+ n.useEvents.length > 0 && n.useEvents.forEach((e) => {
19
+ e && e.receivingMethod && (window.ue.interface[e.receivingMethod] = (s) => {
20
+ try {
21
+ if (!JSON.parse(s).data)
22
+ throw new Error("");
23
+ const o = n.useEvents.filter((r) => r.receivingMethod === e.receivingMethod && r.eventType === "on-message");
24
+ a("on-message", JSON.parse(s).data), window.SHJParseEvent(o, "on-message", JSON.parse(s).data);
25
+ } catch {
26
+ }
27
+ });
28
+ });
29
+ });
30
+ })(), (e, s) => (u(), v("div", {
31
+ class: p([{ isPreview: e.isPreview }, "shj-for-ue"])
32
+ }, null, 2));
33
+ }
34
+ });
35
+ export {
36
+ m as default
37
+ };
@@ -0,0 +1,61 @@
1
+ export declare const ZvSceneUnityIframe: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ disableDrag: {
23
+ type: BooleanConstructor;
24
+ required: true;
25
+ };
26
+ }, {
27
+ props: any;
28
+ emit: (event: "on-message", ...args: any[]) => void;
29
+ useUnityScene: () => {
30
+ unityIframeRef: import("vue").Ref<any>;
31
+ };
32
+ unityIframeRef: import("vue").Ref<any>;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ basicOption: {
35
+ type: any;
36
+ required: true;
37
+ };
38
+ sources: {
39
+ type: any;
40
+ required: true;
41
+ };
42
+ useEvents: {
43
+ type: ArrayConstructor;
44
+ required: true;
45
+ };
46
+ uuid: {
47
+ type: StringConstructor;
48
+ required: true;
49
+ };
50
+ isPreview: {
51
+ type: BooleanConstructor;
52
+ required: true;
53
+ };
54
+ disableDrag: {
55
+ type: BooleanConstructor;
56
+ required: true;
57
+ };
58
+ }>> & {
59
+ "onOn-message"?: (...args: any[]) => any;
60
+ }, {}, {}>> & Record<string, any>;
61
+ export default ZvSceneUnityIframe;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as r } from "../../utils/install.mjs";
3
+ const e = r(t);
4
+ export {
5
+ e as ZvSceneUnityIframe,
6
+ e as default
7
+ };
@@ -0,0 +1,61 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ disableDrag: {
23
+ type: BooleanConstructor;
24
+ required: true;
25
+ };
26
+ }, {
27
+ props: any;
28
+ emit: (event: "on-message", ...args: any[]) => void;
29
+ useUnityScene: () => {
30
+ unityIframeRef: import("vue").Ref<any>;
31
+ };
32
+ unityIframeRef: import("vue").Ref<any>;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ basicOption: {
35
+ type: any;
36
+ required: true;
37
+ };
38
+ sources: {
39
+ type: any;
40
+ required: true;
41
+ };
42
+ useEvents: {
43
+ type: ArrayConstructor;
44
+ required: true;
45
+ };
46
+ uuid: {
47
+ type: StringConstructor;
48
+ required: true;
49
+ };
50
+ isPreview: {
51
+ type: BooleanConstructor;
52
+ required: true;
53
+ };
54
+ disableDrag: {
55
+ type: BooleanConstructor;
56
+ required: true;
57
+ };
58
+ }>> & {
59
+ "onOn-message"?: (...args: any[]) => any;
60
+ }, {}, {}>;
61
+ export default _sfc_main;
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8088ee8f"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as t, openBlock as f, createElementBlock as m, ref as u, onMounted as l, onBeforeUnmount as d } from "vue";
2
+ const p = ["src"], w = t({ name: "zv-scene-unity-iframe" }), I = /* @__PURE__ */ t({
3
+ ...w,
4
+ props: {
5
+ basicOption: {},
6
+ sources: {},
7
+ useEvents: {},
8
+ uuid: {},
9
+ isPreview: { type: Boolean },
10
+ disableDrag: { type: Boolean }
11
+ },
12
+ emits: [
13
+ "on-message"
14
+ ],
15
+ setup(s, { emit: o }) {
16
+ const a = s, i = o, r = () => {
17
+ const e = u();
18
+ return l(() => {
19
+ window.SHJSceneUnityIframeInstance = e.value;
20
+ }), d(() => {
21
+ window.SHJSceneUnityIframeInstance && (window.SHJSceneUnityIframeInstance = null);
22
+ }), window.addEventListener("message", (n) => {
23
+ i("on-message", n.data), window.SHJParseEvent(a.useEvents, "on-message", n.data);
24
+ }, !1), { unityIframeRef: e };
25
+ }, { unityIframeRef: c } = r();
26
+ return (e, n) => (f(), m("iframe", {
27
+ ref_key: "unityIframeRef",
28
+ ref: c,
29
+ src: e.basicOption.iframeUrl,
30
+ sandbox: "allow-scripts allow-same-origin",
31
+ style: { width: "100%", height: "100%", border: "0" }
32
+ }, null, 8, p));
33
+ }
34
+ });
35
+ export {
36
+ I as default
37
+ };
@@ -0,0 +1,61 @@
1
+ export declare const ZvSceneUnityWebgl: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ disableDrag: {
23
+ type: BooleanConstructor;
24
+ required: true;
25
+ };
26
+ }, {
27
+ props: any;
28
+ emit: (event: "on-message", ...args: any[]) => void;
29
+ useUnityScene: () => {
30
+ unityIframeRef: import("vue").Ref<any>;
31
+ };
32
+ unityIframeRef: import("vue").Ref<any>;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ basicOption: {
35
+ type: any;
36
+ required: true;
37
+ };
38
+ sources: {
39
+ type: any;
40
+ required: true;
41
+ };
42
+ useEvents: {
43
+ type: ArrayConstructor;
44
+ required: true;
45
+ };
46
+ uuid: {
47
+ type: StringConstructor;
48
+ required: true;
49
+ };
50
+ isPreview: {
51
+ type: BooleanConstructor;
52
+ required: true;
53
+ };
54
+ disableDrag: {
55
+ type: BooleanConstructor;
56
+ required: true;
57
+ };
58
+ }>> & {
59
+ "onOn-message"?: (...args: any[]) => any;
60
+ }, {}, {}>> & Record<string, any>;
61
+ export default ZvSceneUnityWebgl;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as o } from "../../utils/install.mjs";
3
+ const a = o(t);
4
+ export {
5
+ a as ZvSceneUnityWebgl,
6
+ a as default
7
+ };
@@ -0,0 +1,61 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ disableDrag: {
23
+ type: BooleanConstructor;
24
+ required: true;
25
+ };
26
+ }, {
27
+ props: any;
28
+ emit: (event: "on-message", ...args: any[]) => void;
29
+ useUnityScene: () => {
30
+ unityIframeRef: import("vue").Ref<any>;
31
+ };
32
+ unityIframeRef: import("vue").Ref<any>;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ basicOption: {
35
+ type: any;
36
+ required: true;
37
+ };
38
+ sources: {
39
+ type: any;
40
+ required: true;
41
+ };
42
+ useEvents: {
43
+ type: ArrayConstructor;
44
+ required: true;
45
+ };
46
+ uuid: {
47
+ type: StringConstructor;
48
+ required: true;
49
+ };
50
+ isPreview: {
51
+ type: BooleanConstructor;
52
+ required: true;
53
+ };
54
+ disableDrag: {
55
+ type: BooleanConstructor;
56
+ required: true;
57
+ };
58
+ }>> & {
59
+ "onOn-message"?: (...args: any[]) => any;
60
+ }, {}, {}>;
61
+ export default _sfc_main;
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa09b254"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as t, openBlock as f, createElementBlock as m, ref as u, onMounted as d, onBeforeUnmount as l } from "vue";
2
+ const p = ["src"], w = t({ name: "zv-scene-unity-webgl" }), I = /* @__PURE__ */ t({
3
+ ...w,
4
+ props: {
5
+ basicOption: {},
6
+ sources: {},
7
+ useEvents: {},
8
+ uuid: {},
9
+ isPreview: { type: Boolean },
10
+ disableDrag: { type: Boolean }
11
+ },
12
+ emits: [
13
+ "on-message"
14
+ ],
15
+ setup(s, { emit: o }) {
16
+ const a = s, r = o, i = () => {
17
+ const e = u();
18
+ return d(() => {
19
+ window.SHJSceneUnityIframeInstance = e.value;
20
+ }), l(() => {
21
+ window.SHJSceneUnityIframeInstance && (window.SHJSceneUnityIframeInstance = null);
22
+ }), window.addEventListener("message", (n) => {
23
+ r("on-message", n.data), window.SHJParseEvent(a.useEvents, "on-message", n.data);
24
+ }, !1), { unityIframeRef: e };
25
+ }, { unityIframeRef: c } = i();
26
+ return (e, n) => (f(), m("iframe", {
27
+ ref_key: "unityIframeRef",
28
+ ref: c,
29
+ class: "unity-wrap",
30
+ src: `${e.basicOption.url}/index.html`,
31
+ frameborder: "0"
32
+ }, null, 8, p));
33
+ }
34
+ });
35
+ export {
36
+ I as default
37
+ };
@@ -0,0 +1,6 @@
1
+ export interface IAudio {
2
+ src: string;
3
+ autoplay: boolean;
4
+ loop: boolean;
5
+ volume: number;
6
+ }
@@ -0,0 +1,103 @@
1
+ /// <reference types="node" />
2
+ export declare const ZvSceneVr: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
3
+ basicOption: {
4
+ type: any;
5
+ required: true;
6
+ };
7
+ sources: {
8
+ type: any;
9
+ required: true;
10
+ };
11
+ useEvents: {
12
+ type: ArrayConstructor;
13
+ required: true;
14
+ };
15
+ uuid: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ isPreview: {
20
+ type: BooleanConstructor;
21
+ required: true;
22
+ };
23
+ disableDrag: {
24
+ type: BooleanConstructor;
25
+ required: true;
26
+ };
27
+ }, {
28
+ props: any;
29
+ emit: (event: "on-scene-loaded" | "on-scene-scenechange" | "on-scene-zooming" | "on-scene-hotClick", ...args: any[]) => void;
30
+ audioRef: import("vue").Ref<HTMLAudioElement>;
31
+ audio: import("vue").Ref<{
32
+ src: string;
33
+ autoplay: boolean;
34
+ loop: boolean;
35
+ volume: number;
36
+ }>;
37
+ videojsObj: import("vue").Ref<any>;
38
+ defaultScene: import("vue").Ref<string>;
39
+ currentScene: import("vue").Ref<string>;
40
+ currentSceneOption: import("vue").ComputedRef<any>;
41
+ strings: {
42
+ bylineLabel: string;
43
+ noPanoramaError: string;
44
+ fileAccessError: string;
45
+ malformedURLError: string;
46
+ iOS8WebGLError: string;
47
+ genericWebGLError: string;
48
+ textureSizeError: string;
49
+ unknownError: string;
50
+ };
51
+ initVrImageScene: () => void;
52
+ initVrVideoScene: () => void;
53
+ initVrViewer: () => void;
54
+ activeScene: import("vue").Ref<string>;
55
+ sceneList: import("vue").ComputedRef<any[]>;
56
+ handleSelectScene: (key: any) => void;
57
+ sceneMenuRef: import("vue").Ref<any>;
58
+ sceneMenuDialog: import("vue").Ref<boolean>;
59
+ handleOpenSceneSelect: () => void;
60
+ controlUp: () => void;
61
+ controlDown: () => void;
62
+ controlLeft: () => void;
63
+ controlRight: () => void;
64
+ controlZoomIn: () => void;
65
+ controlZoomOut: () => void;
66
+ audioPlayStatus: import("vue").Ref<boolean>;
67
+ playBackgroundMusic: (type: string) => void;
68
+ controlStartAutoRotate: () => void;
69
+ mouseTipShowTimer: NodeJS.Timeout;
70
+ mouseTipShow: import("vue").Ref<boolean>;
71
+ startMouseTip: () => void;
72
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-scene-loaded" | "on-scene-scenechange" | "on-scene-zooming" | "on-scene-hotClick")[], "on-scene-loaded" | "on-scene-scenechange" | "on-scene-zooming" | "on-scene-hotClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
73
+ basicOption: {
74
+ type: any;
75
+ required: true;
76
+ };
77
+ sources: {
78
+ type: any;
79
+ required: true;
80
+ };
81
+ useEvents: {
82
+ type: ArrayConstructor;
83
+ required: true;
84
+ };
85
+ uuid: {
86
+ type: StringConstructor;
87
+ required: true;
88
+ };
89
+ isPreview: {
90
+ type: BooleanConstructor;
91
+ required: true;
92
+ };
93
+ disableDrag: {
94
+ type: BooleanConstructor;
95
+ required: true;
96
+ };
97
+ }>> & {
98
+ "onOn-scene-loaded"?: (...args: any[]) => any;
99
+ "onOn-scene-scenechange"?: (...args: any[]) => any;
100
+ "onOn-scene-zooming"?: (...args: any[]) => any;
101
+ "onOn-scene-hotClick"?: (...args: any[]) => any;
102
+ }, {}, {}>> & Record<string, any>;
103
+ export default ZvSceneVr;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as r } from "../../utils/install.mjs";
3
+ const e = r(t);
4
+ export {
5
+ e as ZvSceneVr,
6
+ e as default
7
+ };