@shjjs/visual-ui 1.0.3 → 1.0.4
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/chart-bar-contrast2/index.d.ts +51 -0
- package/es/components/chart-bar-contrast2/index.mjs +7 -0
- package/es/components/chart-bar-contrast2/index.vue.d.ts +51 -0
- package/es/components/chart-bar-contrast2/index.vue.mjs +75 -0
- package/es/components/chart-bar-contrast2/index.vue2.mjs +4 -0
- package/es/components/chart-line-rain-flow/index.d.ts +51 -0
- package/es/components/chart-line-rain-flow/index.mjs +7 -0
- package/es/components/chart-line-rain-flow/index.vue.d.ts +51 -0
- package/es/components/chart-line-rain-flow/index.vue.mjs +76 -0
- package/es/components/chart-line-rain-flow/index.vue2.mjs +4 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +222 -218
- package/es/components/scene-ue-iframe/index.d.ts +3 -3
- package/es/components/scene-ue-iframe/index.vue.d.ts +3 -3
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +7 -9
- package/es/components/scene-ue-shj/index.d.ts +3 -3
- package/es/components/scene-ue-shj/index.vue.d.ts +3 -3
- package/es/components/scene-ue-shj/index.vue.mjs +2 -2
- package/es/components/scene-ue-shj/index.vue2.mjs +4 -6
- package/es/components/scene-unity-iframe/index.d.ts +3 -3
- package/es/components/scene-unity-iframe/index.vue.d.ts +3 -3
- package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
- package/es/components/scene-unity-iframe/index.vue2.mjs +10 -12
- package/es/components/scene-unity-webgl/index.d.ts +3 -3
- package/es/components/scene-unity-webgl/index.vue.d.ts +3 -3
- package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue2.mjs +12 -12
- package/es/env.d.ts +4 -1
- package/es/index.mjs +222 -218
- package/es/style.css +1 -1
- package/es/utils/parseDataset.mjs +12 -12
- package/lib/components/chart-bar-contrast2/index.js +1 -0
- package/lib/components/chart-bar-contrast2/index.vue.js +1 -0
- package/lib/components/chart-bar-contrast2/index.vue2.js +1 -0
- package/lib/components/chart-line-rain-flow/index.js +1 -0
- package/lib/components/chart-line-rain-flow/index.vue.js +1 -0
- package/lib/components/chart-line-rain-flow/index.vue2.js +1 -0
- package/lib/components/index.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
- package/lib/components/scene-ue-shj/index.vue.js +1 -1
- package/lib/components/scene-ue-shj/index.vue2.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/lib/utils/parseDataset.js +1 -1
- package/package.json +1 -1
|
@@ -8,11 +8,9 @@ const h = t({ name: "zv-scene-ue-shj" }), m = /* @__PURE__ */ t({
|
|
|
8
8
|
uuid: {},
|
|
9
9
|
isPreview: { type: Boolean }
|
|
10
10
|
},
|
|
11
|
-
emits: [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
setup(i, { emit: c }) {
|
|
15
|
-
const n = i, a = c;
|
|
11
|
+
emits: ["ue-scene-on-message"],
|
|
12
|
+
setup(c, { emit: i }) {
|
|
13
|
+
const n = c, a = i;
|
|
16
14
|
return (() => {
|
|
17
15
|
d(() => {
|
|
18
16
|
n.useEvents.length > 0 && n.useEvents.forEach((e) => {
|
|
@@ -21,7 +19,7 @@ const h = t({ name: "zv-scene-ue-shj" }), m = /* @__PURE__ */ t({
|
|
|
21
19
|
if (!JSON.parse(s).data)
|
|
22
20
|
throw new Error("");
|
|
23
21
|
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);
|
|
22
|
+
a("ue-scene-on-message", JSON.parse(s).data), window.SHJParseEvent(o, "ue-scene-on-message", JSON.parse(s).data);
|
|
25
23
|
} catch {
|
|
26
24
|
}
|
|
27
25
|
});
|
|
@@ -25,12 +25,12 @@ export declare const ZvSceneUnityIframe: import("../../utils/typescript").SFCWit
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
props: any;
|
|
28
|
-
emit: (event: "on-message", ...args: any[]) => void;
|
|
28
|
+
emit: (event: "unity-scene-on-message", ...args: any[]) => void;
|
|
29
29
|
useUnityScene: () => {
|
|
30
30
|
unityIframeRef: import("vue").Ref<any>;
|
|
31
31
|
};
|
|
32
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<{
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unity-scene-on-message"[], "unity-scene-on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
basicOption: {
|
|
35
35
|
type: any;
|
|
36
36
|
required: true;
|
|
@@ -56,6 +56,6 @@ export declare const ZvSceneUnityIframe: import("../../utils/typescript").SFCWit
|
|
|
56
56
|
required: true;
|
|
57
57
|
};
|
|
58
58
|
}>> & {
|
|
59
|
-
"
|
|
59
|
+
"onUnity-scene-on-message"?: (...args: any[]) => any;
|
|
60
60
|
}, {}, {}>> & Record<string, any>;
|
|
61
61
|
export default ZvSceneUnityIframe;
|
|
@@ -25,12 +25,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
props: any;
|
|
28
|
-
emit: (event: "on-message", ...args: any[]) => void;
|
|
28
|
+
emit: (event: "unity-scene-on-message", ...args: any[]) => void;
|
|
29
29
|
useUnityScene: () => {
|
|
30
30
|
unityIframeRef: import("vue").Ref<any>;
|
|
31
31
|
};
|
|
32
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<{
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unity-scene-on-message"[], "unity-scene-on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
basicOption: {
|
|
35
35
|
type: any;
|
|
36
36
|
required: true;
|
|
@@ -56,6 +56,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
56
56
|
required: true;
|
|
57
57
|
};
|
|
58
58
|
}>> & {
|
|
59
|
-
"
|
|
59
|
+
"onUnity-scene-on-message"?: (...args: any[]) => any;
|
|
60
60
|
}, {}, {}>;
|
|
61
61
|
export default _sfc_main;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f93f10bb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
...
|
|
1
|
+
import { defineComponent as s, openBlock as f, createElementBlock as m, ref as u, onMounted as l, onBeforeUnmount as d } from "vue";
|
|
2
|
+
const w = ["src"], y = s({ name: "zv-scene-unity-iframe" }), I = /* @__PURE__ */ s({
|
|
3
|
+
...y,
|
|
4
4
|
props: {
|
|
5
5
|
basicOption: {},
|
|
6
6
|
sources: {},
|
|
@@ -9,18 +9,16 @@ const p = ["src"], w = t({ name: "zv-scene-unity-iframe" }), I = /* @__PURE__ */
|
|
|
9
9
|
isPreview: { type: Boolean },
|
|
10
10
|
disableDrag: { type: Boolean }
|
|
11
11
|
},
|
|
12
|
-
emits: [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
setup(s, { emit: o }) {
|
|
16
|
-
const a = s, i = o, r = () => {
|
|
12
|
+
emits: ["unity-scene-on-message"],
|
|
13
|
+
setup(i, { emit: a }) {
|
|
14
|
+
const t = i, o = a, r = () => {
|
|
17
15
|
const e = u();
|
|
18
16
|
return l(() => {
|
|
19
|
-
window.SHJSceneUnityIframeInstance = e.value;
|
|
17
|
+
window.SHJSceneUnityIframeInstance || (window.SHJSceneUnityIframeInstance = {}), window.SHJSceneUnityIframeInstance.url = t.basicOption.iframeUrl, window.SHJSceneUnityIframeInstance.ref = e.value;
|
|
20
18
|
}), d(() => {
|
|
21
|
-
window.SHJSceneUnityIframeInstance
|
|
19
|
+
window.SHJSceneUnityIframeInstance = null;
|
|
22
20
|
}), window.addEventListener("message", (n) => {
|
|
23
|
-
|
|
21
|
+
o("unity-scene-on-message", n.data), window.SHJParseEvent(t.useEvents, "unity-scene-on-message", n.data);
|
|
24
22
|
}, !1), { unityIframeRef: e };
|
|
25
23
|
}, { unityIframeRef: c } = r();
|
|
26
24
|
return (e, n) => (f(), m("iframe", {
|
|
@@ -29,7 +27,7 @@ const p = ["src"], w = t({ name: "zv-scene-unity-iframe" }), I = /* @__PURE__ */
|
|
|
29
27
|
src: e.basicOption.iframeUrl,
|
|
30
28
|
sandbox: "allow-scripts allow-same-origin",
|
|
31
29
|
style: { width: "100%", height: "100%", border: "0" }
|
|
32
|
-
}, null, 8,
|
|
30
|
+
}, null, 8, w));
|
|
33
31
|
}
|
|
34
32
|
});
|
|
35
33
|
export {
|
|
@@ -25,12 +25,12 @@ export declare const ZvSceneUnityWebgl: import("../../utils/typescript").SFCWith
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
props: any;
|
|
28
|
-
emit: (event: "on-message", ...args: any[]) => void;
|
|
28
|
+
emit: (event: "unity-scene-on-message", ...args: any[]) => void;
|
|
29
29
|
useUnityScene: () => {
|
|
30
30
|
unityIframeRef: import("vue").Ref<any>;
|
|
31
31
|
};
|
|
32
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<{
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unity-scene-on-message"[], "unity-scene-on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
basicOption: {
|
|
35
35
|
type: any;
|
|
36
36
|
required: true;
|
|
@@ -56,6 +56,6 @@ export declare const ZvSceneUnityWebgl: import("../../utils/typescript").SFCWith
|
|
|
56
56
|
required: true;
|
|
57
57
|
};
|
|
58
58
|
}>> & {
|
|
59
|
-
"
|
|
59
|
+
"onUnity-scene-on-message"?: (...args: any[]) => any;
|
|
60
60
|
}, {}, {}>> & Record<string, any>;
|
|
61
61
|
export default ZvSceneUnityWebgl;
|
|
@@ -25,12 +25,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
props: any;
|
|
28
|
-
emit: (event: "on-message", ...args: any[]) => void;
|
|
28
|
+
emit: (event: "unity-scene-on-message", ...args: any[]) => void;
|
|
29
29
|
useUnityScene: () => {
|
|
30
30
|
unityIframeRef: import("vue").Ref<any>;
|
|
31
31
|
};
|
|
32
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<{
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unity-scene-on-message"[], "unity-scene-on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
basicOption: {
|
|
35
35
|
type: any;
|
|
36
36
|
required: true;
|
|
@@ -56,6 +56,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
56
56
|
required: true;
|
|
57
57
|
};
|
|
58
58
|
}>> & {
|
|
59
|
-
"
|
|
59
|
+
"onUnity-scene-on-message"?: (...args: any[]) => any;
|
|
60
60
|
}, {}, {}>;
|
|
61
61
|
export default _sfc_main;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50d20c64"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, openBlock as u, createElementBlock as f, ref as m, onMounted as d, onBeforeUnmount as l } from "vue";
|
|
2
|
+
const y = ["src"], w = s({ name: "zv-scene-unity-webgl" }), I = /* @__PURE__ */ s({
|
|
3
3
|
...w,
|
|
4
4
|
props: {
|
|
5
5
|
basicOption: {},
|
|
@@ -10,26 +10,26 @@ const p = ["src"], w = t({ name: "zv-scene-unity-webgl" }), I = /* @__PURE__ */
|
|
|
10
10
|
disableDrag: { type: Boolean }
|
|
11
11
|
},
|
|
12
12
|
emits: [
|
|
13
|
-
"on-message"
|
|
13
|
+
"unity-scene-on-message"
|
|
14
14
|
],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
const e =
|
|
15
|
+
setup(a, { emit: i }) {
|
|
16
|
+
const t = a, o = i, r = () => {
|
|
17
|
+
const e = m();
|
|
18
18
|
return d(() => {
|
|
19
|
-
window.SHJSceneUnityIframeInstance = e.value;
|
|
19
|
+
window.SHJSceneUnityIframeInstance || (window.SHJSceneUnityIframeInstance = {}), window.SHJSceneUnityIframeInstance.url = t.basicOption.url + "/index.html", window.SHJSceneUnityIframeInstance.ref = e.value;
|
|
20
20
|
}), l(() => {
|
|
21
|
-
window.SHJSceneUnityIframeInstance
|
|
21
|
+
window.SHJSceneUnityIframeInstance = null;
|
|
22
22
|
}), window.addEventListener("message", (n) => {
|
|
23
|
-
|
|
23
|
+
o("unity-scene-on-message", n.data), window.SHJParseEvent(t.useEvents, "unity-scene-on-message", n.data);
|
|
24
24
|
}, !1), { unityIframeRef: e };
|
|
25
|
-
}, { unityIframeRef: c } =
|
|
26
|
-
return (e, n) => (
|
|
25
|
+
}, { unityIframeRef: c } = r();
|
|
26
|
+
return (e, n) => (u(), f("iframe", {
|
|
27
27
|
ref_key: "unityIframeRef",
|
|
28
28
|
ref: c,
|
|
29
29
|
class: "unity-wrap",
|
|
30
30
|
src: `${e.basicOption.url}/index.html`,
|
|
31
31
|
frameborder: "0"
|
|
32
|
-
}, null, 8,
|
|
32
|
+
}, null, 8, y));
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
export {
|
package/es/env.d.ts
CHANGED
|
@@ -16,7 +16,10 @@ declare interface Window {
|
|
|
16
16
|
// Vr场景
|
|
17
17
|
SHJSceneVrViewer: any;
|
|
18
18
|
// Unity场景
|
|
19
|
-
SHJSceneUnityIframeInstance:
|
|
19
|
+
SHJSceneUnityIframeInstance: {
|
|
20
|
+
url: string
|
|
21
|
+
ref: any
|
|
22
|
+
};
|
|
20
23
|
// 全局数据源函数
|
|
21
24
|
SHJDatasourceV2: ({ sources, callback, tId, isStore, noUseMapping, isInterval }: { sources: IDataSource[], callback?: Function, tId: string, isStore?: boolean, noUseMapping?: boolean, isInterval?: boolean }) => void;
|
|
22
25
|
SHJDatasourceV2Timer: {
|