@shjjs/visual-ui 1.0.0 → 1.0.2

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 (103) 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-select/index.d.ts +188 -8
  8. package/es/components/interaction-select/index.vue.d.ts +193 -8
  9. package/es/components/interaction-select/index.vue.mjs +5 -11
  10. package/es/components/interaction-select/index.vue2.mjs +220 -2
  11. package/es/components/scene-amap2d/index.d.ts +2 -2
  12. package/es/components/scene-amap2d/index.vue.d.ts +2 -2
  13. package/es/components/scene-amap2d/index.vue.mjs +2 -2
  14. package/es/components/scene-amap2d/index.vue2.mjs +16 -16
  15. package/es/components/scene-amap3d/index.d.ts +2 -2
  16. package/es/components/scene-amap3d/index.vue.d.ts +2 -2
  17. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  18. package/es/components/scene-amap3d/index.vue2.mjs +95 -88
  19. package/es/components/scene-map3d/index.d.ts +2 -2
  20. package/es/components/scene-map3d/index.vue.d.ts +2 -2
  21. package/es/components/scene-map3d/index.vue.mjs +2 -2
  22. package/es/components/scene-map3d/index.vue2.mjs +13 -13
  23. package/es/components/scene-map3d/map3d/module/MapMirror.mjs +1 -1
  24. package/es/components/scene-ue-iframe/index.d.ts +50 -0
  25. package/es/components/scene-ue-iframe/index.mjs +7 -0
  26. package/es/components/scene-ue-iframe/index.vue.d.ts +50 -0
  27. package/es/components/scene-ue-iframe/index.vue.mjs +7 -0
  28. package/es/components/scene-ue-iframe/index.vue2.mjs +48 -0
  29. package/es/components/scene-ue-shj/index.d.ts +50 -0
  30. package/es/components/scene-ue-shj/index.mjs +7 -0
  31. package/es/components/scene-ue-shj/index.vue.d.ts +50 -0
  32. package/es/components/scene-ue-shj/index.vue.mjs +7 -0
  33. package/es/components/scene-ue-shj/index.vue2.mjs +37 -0
  34. package/es/components/scene-unity-iframe/index.d.ts +61 -0
  35. package/es/components/scene-unity-iframe/index.mjs +7 -0
  36. package/es/components/scene-unity-iframe/index.vue.d.ts +61 -0
  37. package/es/components/scene-unity-iframe/index.vue.mjs +7 -0
  38. package/es/components/scene-unity-iframe/index.vue2.mjs +37 -0
  39. package/es/components/scene-unity-webgl/index.d.ts +61 -0
  40. package/es/components/scene-unity-webgl/index.mjs +7 -0
  41. package/es/components/scene-unity-webgl/index.vue.d.ts +61 -0
  42. package/es/components/scene-unity-webgl/index.vue.mjs +7 -0
  43. package/es/components/scene-unity-webgl/index.vue2.mjs +37 -0
  44. package/es/components/scene-vr/entity/audio.d.ts +6 -0
  45. package/es/components/scene-vr/index.d.ts +103 -0
  46. package/es/components/scene-vr/index.mjs +7 -0
  47. package/es/components/scene-vr/index.vue.d.ts +103 -0
  48. package/es/components/scene-vr/index.vue.mjs +7 -0
  49. package/es/components/scene-vr/index.vue2.mjs +355 -0
  50. package/es/components/scene-vr/resources/zv-add.svg.mjs +4 -0
  51. package/es/components/scene-vr/resources/zv-pause.svg.mjs +4 -0
  52. package/es/components/scene-vr/resources/zv-play.svg.mjs +4 -0
  53. package/es/components/scene-vr/resources/zv-reduce.svg.mjs +4 -0
  54. package/es/components/scene-vr/resources/zv-refresh.svg.mjs +4 -0
  55. package/es/components/scene-vr/resources/zv-return.svg.mjs +4 -0
  56. package/es/components/scene-vr/resources/zv-vr-select.svg.mjs +4 -0
  57. package/es/components/text-over-number/index.vue.d.ts +32 -32
  58. package/es/index.mjs +94 -84
  59. package/es/style.css +1 -1
  60. package/es/utils/clickOutSide.d.ts +5 -0
  61. package/es/utils/clickOutSide.mjs +13 -0
  62. package/es/utils/json2css.mjs +8 -8
  63. package/lib/components/commons-product-model/index.vue.js +1 -1
  64. package/lib/components/commons-product-model/index.vue2.js +1 -1
  65. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  66. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  67. package/lib/components/index.js +1 -1
  68. package/lib/components/interaction-select/index.vue.js +1 -1
  69. package/lib/components/interaction-select/index.vue2.js +1 -1
  70. package/lib/components/scene-amap2d/index.vue.js +1 -1
  71. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  72. package/lib/components/scene-amap3d/index.vue.js +1 -1
  73. package/lib/components/scene-amap3d/index.vue2.js +2 -2
  74. package/lib/components/scene-map3d/index.vue.js +1 -1
  75. package/lib/components/scene-map3d/index.vue2.js +1 -1
  76. package/lib/components/scene-map3d/map3d/module/MapMirror.js +1 -1
  77. package/lib/components/scene-ue-iframe/index.js +1 -0
  78. package/lib/components/scene-ue-iframe/index.vue.js +1 -0
  79. package/lib/components/scene-ue-iframe/index.vue2.js +1 -0
  80. package/lib/components/scene-ue-shj/index.js +1 -0
  81. package/lib/components/scene-ue-shj/index.vue.js +1 -0
  82. package/lib/components/scene-ue-shj/index.vue2.js +1 -0
  83. package/lib/components/scene-unity-iframe/index.js +1 -0
  84. package/lib/components/scene-unity-iframe/index.vue.js +1 -0
  85. package/lib/components/scene-unity-iframe/index.vue2.js +1 -0
  86. package/lib/components/scene-unity-webgl/index.js +1 -0
  87. package/lib/components/scene-unity-webgl/index.vue.js +1 -0
  88. package/lib/components/scene-unity-webgl/index.vue2.js +1 -0
  89. package/lib/components/scene-vr/index.js +1 -0
  90. package/lib/components/scene-vr/index.vue.js +1 -0
  91. package/lib/components/scene-vr/index.vue2.js +11 -0
  92. package/lib/components/scene-vr/resources/zv-add.svg.js +1 -0
  93. package/lib/components/scene-vr/resources/zv-pause.svg.js +1 -0
  94. package/lib/components/scene-vr/resources/zv-play.svg.js +1 -0
  95. package/lib/components/scene-vr/resources/zv-reduce.svg.js +1 -0
  96. package/lib/components/scene-vr/resources/zv-refresh.svg.js +1 -0
  97. package/lib/components/scene-vr/resources/zv-return.svg.js +1 -0
  98. package/lib/components/scene-vr/resources/zv-vr-select.svg.js +1 -0
  99. package/lib/index.js +1 -1
  100. package/lib/style.css +1 -1
  101. package/lib/utils/clickOutSide.js +1 -0
  102. package/lib/utils/json2css.js +1 -1
  103. package/package.json +2 -1
@@ -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
+ };
@@ -0,0 +1,103 @@
1
+ /// <reference types="node" />
2
+ declare const _sfc_main: 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
+ }, {}, {}>;
103
+ 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-96f96666"]]);
5
+ export {
6
+ m as default
7
+ };