@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.
- package/es/components/commons-product-model/index.vue.mjs +2 -2
- package/es/components/commons-product-model/index.vue2.mjs +33 -33
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +40 -40
- package/es/components/index.d.ts +5 -0
- package/es/components/index.mjs +82 -72
- package/es/components/interaction-select/index.d.ts +188 -8
- package/es/components/interaction-select/index.vue.d.ts +193 -8
- package/es/components/interaction-select/index.vue.mjs +5 -11
- package/es/components/interaction-select/index.vue2.mjs +220 -2
- package/es/components/scene-amap2d/index.d.ts +2 -2
- package/es/components/scene-amap2d/index.vue.d.ts +2 -2
- package/es/components/scene-amap2d/index.vue.mjs +2 -2
- package/es/components/scene-amap2d/index.vue2.mjs +16 -16
- package/es/components/scene-amap3d/index.d.ts +2 -2
- package/es/components/scene-amap3d/index.vue.d.ts +2 -2
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +95 -88
- package/es/components/scene-map3d/index.d.ts +2 -2
- package/es/components/scene-map3d/index.vue.d.ts +2 -2
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +13 -13
- package/es/components/scene-map3d/map3d/module/MapMirror.mjs +1 -1
- package/es/components/scene-ue-iframe/index.d.ts +50 -0
- package/es/components/scene-ue-iframe/index.mjs +7 -0
- package/es/components/scene-ue-iframe/index.vue.d.ts +50 -0
- package/es/components/scene-ue-iframe/index.vue.mjs +7 -0
- package/es/components/scene-ue-iframe/index.vue2.mjs +48 -0
- package/es/components/scene-ue-shj/index.d.ts +50 -0
- package/es/components/scene-ue-shj/index.mjs +7 -0
- package/es/components/scene-ue-shj/index.vue.d.ts +50 -0
- package/es/components/scene-ue-shj/index.vue.mjs +7 -0
- package/es/components/scene-ue-shj/index.vue2.mjs +37 -0
- package/es/components/scene-unity-iframe/index.d.ts +61 -0
- package/es/components/scene-unity-iframe/index.mjs +7 -0
- package/es/components/scene-unity-iframe/index.vue.d.ts +61 -0
- package/es/components/scene-unity-iframe/index.vue.mjs +7 -0
- package/es/components/scene-unity-iframe/index.vue2.mjs +37 -0
- package/es/components/scene-unity-webgl/index.d.ts +61 -0
- package/es/components/scene-unity-webgl/index.mjs +7 -0
- package/es/components/scene-unity-webgl/index.vue.d.ts +61 -0
- package/es/components/scene-unity-webgl/index.vue.mjs +7 -0
- package/es/components/scene-unity-webgl/index.vue2.mjs +37 -0
- package/es/components/scene-vr/entity/audio.d.ts +6 -0
- package/es/components/scene-vr/index.d.ts +103 -0
- package/es/components/scene-vr/index.mjs +7 -0
- package/es/components/scene-vr/index.vue.d.ts +103 -0
- package/es/components/scene-vr/index.vue.mjs +7 -0
- package/es/components/scene-vr/index.vue2.mjs +355 -0
- package/es/components/scene-vr/resources/zv-add.svg.mjs +4 -0
- package/es/components/scene-vr/resources/zv-pause.svg.mjs +4 -0
- package/es/components/scene-vr/resources/zv-play.svg.mjs +4 -0
- package/es/components/scene-vr/resources/zv-reduce.svg.mjs +4 -0
- package/es/components/scene-vr/resources/zv-refresh.svg.mjs +4 -0
- package/es/components/scene-vr/resources/zv-return.svg.mjs +4 -0
- package/es/components/scene-vr/resources/zv-vr-select.svg.mjs +4 -0
- package/es/components/text-over-number/index.vue.d.ts +32 -32
- package/es/index.mjs +94 -84
- package/es/style.css +1 -1
- package/es/utils/clickOutSide.d.ts +5 -0
- package/es/utils/clickOutSide.mjs +13 -0
- package/es/utils/json2css.mjs +8 -8
- package/lib/components/commons-product-model/index.vue.js +1 -1
- package/lib/components/commons-product-model/index.vue2.js +1 -1
- package/lib/components/commons-three-loader3/index.vue.js +1 -1
- package/lib/components/commons-three-loader3/index.vue2.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/interaction-select/index.vue.js +1 -1
- package/lib/components/interaction-select/index.vue2.js +1 -1
- package/lib/components/scene-amap2d/index.vue.js +1 -1
- package/lib/components/scene-amap2d/index.vue2.js +1 -1
- package/lib/components/scene-amap3d/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue2.js +2 -2
- package/lib/components/scene-map3d/index.vue.js +1 -1
- package/lib/components/scene-map3d/index.vue2.js +1 -1
- package/lib/components/scene-map3d/map3d/module/MapMirror.js +1 -1
- package/lib/components/scene-ue-iframe/index.js +1 -0
- package/lib/components/scene-ue-iframe/index.vue.js +1 -0
- package/lib/components/scene-ue-iframe/index.vue2.js +1 -0
- package/lib/components/scene-ue-shj/index.js +1 -0
- package/lib/components/scene-ue-shj/index.vue.js +1 -0
- package/lib/components/scene-ue-shj/index.vue2.js +1 -0
- package/lib/components/scene-unity-iframe/index.js +1 -0
- package/lib/components/scene-unity-iframe/index.vue.js +1 -0
- package/lib/components/scene-unity-iframe/index.vue2.js +1 -0
- package/lib/components/scene-unity-webgl/index.js +1 -0
- package/lib/components/scene-unity-webgl/index.vue.js +1 -0
- package/lib/components/scene-unity-webgl/index.vue2.js +1 -0
- package/lib/components/scene-vr/index.js +1 -0
- package/lib/components/scene-vr/index.vue.js +1 -0
- package/lib/components/scene-vr/index.vue2.js +11 -0
- package/lib/components/scene-vr/resources/zv-add.svg.js +1 -0
- package/lib/components/scene-vr/resources/zv-pause.svg.js +1 -0
- package/lib/components/scene-vr/resources/zv-play.svg.js +1 -0
- package/lib/components/scene-vr/resources/zv-reduce.svg.js +1 -0
- package/lib/components/scene-vr/resources/zv-refresh.svg.js +1 -0
- package/lib/components/scene-vr/resources/zv-return.svg.js +1 -0
- package/lib/components/scene-vr/resources/zv-vr-select.svg.js +1 -0
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/lib/utils/clickOutSide.js +1 -0
- package/lib/utils/json2css.js +1 -1
- 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,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,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,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;
|