ss-component-new 1.2.77 → 1.2.79
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/dist/{MTLLoader-BruI0iCV.js → MTLLoader-DHOpgWoh.js} +5 -5
- package/dist/{MTLLoader-Bseg1sor.cjs → MTLLoader-DcCqSeA-.cjs} +1 -1
- package/dist/{OrbitControls-Bxqvo8Mr.js → OrbitControls-Bwv0Wdfk.js} +1 -1
- package/dist/{OrbitControls-BiNnC97N.cjs → OrbitControls-DlWvN12h.cjs} +1 -1
- package/dist/{URDFLoader-DexIn4xU.cjs → URDFLoader-DykmnnHW.cjs} +1 -1
- package/dist/{URDFLoader-DWo3pDBH.js → URDFLoader-o5u_BjJ_.js} +174 -174
- package/dist/{animationData-BDkjPdQf.js → animationData-DS8Fzn6Q.js} +18 -18
- package/dist/{animationData-BVpXOZwe.cjs → animationData-I6_-ND6R.cjs} +1 -1
- package/dist/{array-D5Rc5rM9.js → array-Bhgw4Iyf.js} +27 -27
- package/dist/{array-6LpFOZ5o.cjs → array-ZC8P-Rx9.cjs} +1 -1
- package/dist/{iconfont-14del5d2.js → iconfont-CDf_oBPo.js} +27 -27
- package/dist/{iconfont-Bnhc7fLw.cjs → iconfont-DX6dC3Hu.cjs} +1 -1
- package/dist/{index-PkJYBcS-.js → index-9pgjgz-5.js} +25 -22
- package/dist/{index-CTfB2BO7.cjs → index-AjZKp-AZ.cjs} +1 -1
- package/dist/{index-D_coIVx9.cjs → index-B-LUDlpn.cjs} +1 -1
- package/dist/{index-1uzZjqSR.cjs → index-B20WPHZ5.cjs} +1 -1
- package/dist/{index-lkxTc6vy.js → index-B3u2tRTw.js} +576 -572
- package/dist/{index-BMwOfyZG.js → index-B5J3L2e2.js} +2 -2
- package/dist/{index-Da8kLXUi.js → index-B5SNHDlg.js} +1 -1
- package/dist/{index-BU__qorE.cjs → index-BG1yQRX5.cjs} +1 -1
- package/dist/index-BLSQNpLC.js +12694 -0
- package/dist/{index-C5AMx3DP.js → index-BRjEFy0A.js} +2 -2
- package/dist/{index-BOttcNaR.js → index-BVj-AkPa.js} +2 -2
- package/dist/{index-CiluLmLS.js → index-BYSmRvIB.js} +11 -11
- package/dist/{index-CV0wJjuo.cjs → index-BeikcPFZ.cjs} +1 -1
- package/dist/{index-Ai5OAXHo.js → index-BgE_6FYY.js} +6 -6
- package/dist/{index-jKLdvV3y.js → index-BluztDZ9.js} +20 -20
- package/dist/{index-D9iPLSwS.js → index-Bmtw8a5p.js} +2 -2
- package/dist/{index-Pg_Ez4Na.cjs → index-Bq6XgQV3.cjs} +1 -1
- package/dist/{index-DZboVCcU.cjs → index-C2Y0cih9.cjs} +1 -1
- package/dist/{index-CT1bDBZy.js → index-C3UcoA71.js} +5 -5
- package/dist/{index-Cv58m2R8.js → index-CGe5AJp6.js} +1 -1
- package/dist/{index-DNp4E_lQ.cjs → index-CJXu9f3F.cjs} +1 -1
- package/dist/index-CM2le7df.cjs +1 -0
- package/dist/{index-BXCI98KY.js → index-CMHJ7CCR.js} +6 -6
- package/dist/{index-CNDlskJD.cjs → index-CTStbcBT.cjs} +1 -1
- package/dist/{index-sCZuOhEC.js → index-CXSbzU1a.js} +1 -1
- package/dist/index-CXWS6054.js +2876 -0
- package/dist/{index-CS2SJFa5.cjs → index-Cbz7ElQN.cjs} +1 -1
- package/dist/{index-cGnhqEuy.cjs → index-Cc1ykPE-.cjs} +1 -1
- package/dist/index-Cc4a5Z89.cjs +1 -0
- package/dist/{index-iqnKq5qd.js → index-CdWi5i0R.js} +1 -1
- package/dist/{index-BPWX1kmE.cjs → index-CgNpvAbR.cjs} +1 -1
- package/dist/{index-DRbQJezd.cjs → index-ChvyEtLh.cjs} +1 -1
- package/dist/{index-DndAdSGT.js → index-CjszYT-m.js} +3 -3
- package/dist/{index-nzQPJif1.cjs → index-D-_nblT-.cjs} +1 -1
- package/dist/{index-BJizDAnh.cjs → index-D5REUQyF.cjs} +1 -1
- package/dist/{index-Bq27i8N6.js → index-D8BszxzY.js} +4 -4
- package/dist/{index-Do4pZeLF.cjs → index-D8biWfYq.cjs} +1 -1
- package/dist/{index-B3jUJ0ml.js → index-DCPWjTH2.js} +7 -7
- package/dist/{index-BjDn0YhH.cjs → index-DZSfCv1U.cjs} +12 -12
- package/dist/{index-BWjhL8R0.js → index-D_qR3hDI.js} +1 -1
- package/dist/{index-Cc_IAZBO.js → index-Dcz5u1Wl.js} +4 -4
- package/dist/{index-CjipjSmP.cjs → index-DhdaxDcr.cjs} +1 -1
- package/dist/{index-BCGURMXa.js → index-Di8UuMxb.js} +2 -2
- package/dist/{index-CwvAshmz.js → index-DjfNhR3v.js} +3 -3
- package/dist/{index-CZkjboM8.js → index-DkVB-AEp.js} +6 -6
- package/dist/{index-CEuxxYEp.cjs → index-DqrGFL1c.cjs} +1 -1
- package/dist/{index-CBIrHmhA.cjs → index-IrdgJgK1.cjs} +1 -1
- package/dist/{index-BP1mTaAy.js → index-KP6vMTgE.js} +4 -4
- package/dist/{index-aG7MmrtC.js → index-Quv-LzXf.js} +3 -3
- package/dist/{index-BYc9jyiE.js → index-bfMyItzl.js} +3 -3
- package/dist/{index-BXumaiVx.js → index-fzUpIEce.js} +2 -2
- package/dist/{index-B3x0Un8L.js → index-gaIXSSnU.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Ctqs6jS6.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Cwtk3HI8.js} +13935 -14262
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DkW9dWKj.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bqxa7GJA.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-6Ap42_Dn.js} +14096 -13945
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6FKmWHb.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-RZydwY0l.cjs} +356 -356
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BRLX6S9R.js +377 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Cu33JXj5.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-CrcbIeWl.js → index.vue_vue_type_style_index_1_lang-BJBnOzjh.js} +37 -37
- package/dist/{index.vue_vue_type_style_index_1_lang-DQ90IC2k.cjs → index.vue_vue_type_style_index_1_lang-KlMxUDnq.cjs} +1 -1
- package/dist/{isString-8mN8gX27.js → isString-Bb0EYAKj.js} +1 -1
- package/dist/{main-D3WREi0-.cjs → main-D0CiEOi_.cjs} +1 -1
- package/dist/{main-BkI9SlJQ.js → main-itEiu5WV.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CVlu8rK_.js → threeModel-C1pBED0w.js} +5 -5
- package/dist/{threeModel-Bp11Ni6H.cjs → threeModel-DrVpq-KZ.cjs} +1 -1
- package/dist/{threePreview-CdzNCx3-.js → threePreview-BHmdeJ_g.js} +4 -4
- package/dist/{threePreview-Dw4LR6jh.cjs → threePreview-BwKp0Pme.cjs} +1 -1
- package/dist/{threeSceneView-BdVTjYBI.cjs → threeSceneView-BlYiTnf8.cjs} +1 -1
- package/dist/{threeSceneView-jhQi8rSG.js → threeSceneView-CHzaHloG.js} +134 -134
- package/dist/{threeSceneViewForCPMPIP-DgAoijFZ.js → threeSceneViewForCPMPIP-Bxfu-nOk.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-DRYioXDE.cjs → threeSceneViewForCPMPIP-C6dwXzB6.cjs} +1 -1
- package/dist/{threeTrackPathView-C1HVNI2F.js → threeTrackPathView-D5b7ja2X.js} +48 -48
- package/dist/{threeTrackPathView-Ds9FmHU1.cjs → threeTrackPathView-YDfE6lF-.cjs} +1 -1
- package/dist/{threeViewerHost-Cazxmy9Q.cjs → threeViewerHost-BdoXIgqv.cjs} +1 -1
- package/dist/{threeViewerHost-DvIwe0xo.js → threeViewerHost-DhtCUUpq.js} +15 -15
- package/dist/{urdfTree-CMKhj8xM.js → urdfTree-ClXv-I_k.js} +1 -1
- package/dist/{urdfTree-dHyqQi6d.cjs → urdfTree-DhRlnWn_.cjs} +1 -1
- package/dist/{workpieceTreePanel-4MfitYyo.cjs → workpieceTreePanel-CA1W7zBB.cjs} +1 -1
- package/dist/{workpieceTreePanel-BM7lPJRO.js → workpieceTreePanel-Ctwrp39y.js} +29 -29
- package/package.json +1 -1
- package/dist/index-C-Cn4YSI.js +0 -12234
- package/dist/index-C3DC8sX2.js +0 -2853
- package/dist/index-DEyzKyXf.cjs +0 -1
- package/dist/index-qqyeENwY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-wPtij0q7.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Ddv_4Qcm.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DmUFTzw3.js +0 -376
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as B,
|
|
2
|
-
import { c as
|
|
1
|
+
import { g as B, aP as C, a as x, aF as K, bY as N } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-6Ap42_Dn.js";
|
|
2
|
+
import { c as O } from "./index-BgE_6FYY.js";
|
|
3
3
|
const g = async (n) => {
|
|
4
4
|
const e = n.join("/"), c = sessionStorage.getItem("systemKey");
|
|
5
5
|
return await B(e, c, "");
|
|
6
|
-
},
|
|
6
|
+
}, R = (n) => {
|
|
7
7
|
var s;
|
|
8
8
|
const e = n == null ? void 0 : n.compData, c = (s = e == null ? void 0 : e.find((i) => {
|
|
9
9
|
const { key: p } = i;
|
|
@@ -15,18 +15,18 @@ const g = async (n) => {
|
|
|
15
15
|
}), r;
|
|
16
16
|
}, q = async () => {
|
|
17
17
|
let n = {};
|
|
18
|
-
const c = await g(["弯管仿真加工分析", "模具筛选安装"]), r = C("输入(加工件)", c), s =
|
|
18
|
+
const c = await g(["弯管仿真加工分析", "模具筛选安装"]), r = C("输入(加工件)", c), s = R(r), i = s.管长 || 0, p = s.外径 || 0;
|
|
19
19
|
console.log("管长", i, "外径", p, s);
|
|
20
|
-
const D = i,
|
|
21
|
-
console.log("夹持长度",
|
|
22
|
-
const G = Number(
|
|
20
|
+
const D = i, T = p / 2, k = await g(["弯管仿真加工分析", "加工位姿生成"]), E = C("输入", k), P = R(E), b = P.夹持长度 || 0;
|
|
21
|
+
console.log("夹持长度", b, P);
|
|
22
|
+
const G = Number(b), m = {}, l = await g(["弯管仿真加工分析", "仿真动画生成"]);
|
|
23
23
|
l == null || l.forEach((a) => {
|
|
24
24
|
var M, d, f, y, w, F;
|
|
25
25
|
if ((a == null ? void 0 : a.comp) === "Table") {
|
|
26
26
|
let L = [], u = (f = (d = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : f.map((t) => t == null ? void 0 : t.label), h = (F = (w = (y = a == null ? void 0 : a.compData) == null ? void 0 : y.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
|
|
27
27
|
h == null || h.forEach((t) => {
|
|
28
28
|
L.push(
|
|
29
|
-
|
|
29
|
+
x(
|
|
30
30
|
t,
|
|
31
31
|
u == null ? void 0 : u.filter((o) => o !== "操作")
|
|
32
32
|
)
|
|
@@ -34,27 +34,27 @@ const g = async (n) => {
|
|
|
34
34
|
}), m[a.name] = L, m[a.name + "Content"] = a;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
const A =
|
|
37
|
+
const A = O(m) || [];
|
|
38
38
|
return n = {
|
|
39
39
|
initialPipeLength: D,
|
|
40
|
-
pipeRadius:
|
|
40
|
+
pipeRadius: T,
|
|
41
41
|
clampLength: G,
|
|
42
42
|
animationData: A
|
|
43
43
|
}, n;
|
|
44
44
|
}, z = async () => {
|
|
45
45
|
let n = {};
|
|
46
|
-
const c = await g(["双弯管仿真加工分析", "模具筛选安装"]), r = C("输入(加工件)", c), s =
|
|
46
|
+
const c = await g(["双弯管仿真加工分析", "模具筛选安装"]), r = C("输入(加工件)", c), s = R(r), i = s.管长 || 0, p = s.外径 || 0;
|
|
47
47
|
console.log("管长", i, "外径", p, s);
|
|
48
|
-
const D = i,
|
|
49
|
-
console.log("夹持长度",
|
|
50
|
-
const G = Number(
|
|
48
|
+
const D = i, T = p / 2, k = await g(["双弯管仿真加工分析", "加工工艺生成"]), E = C("输入", k), P = R(E), b = P.夹持位置 || 0;
|
|
49
|
+
console.log("夹持长度", b, P);
|
|
50
|
+
const G = Number(b), m = {}, l = await g(["双弯管仿真加工分析", "仿真动画生成"]);
|
|
51
51
|
l == null || l.forEach((a) => {
|
|
52
52
|
var M, d, f, y, w, F;
|
|
53
53
|
if ((a == null ? void 0 : a.comp) === "Table") {
|
|
54
54
|
let L = [], u = (f = (d = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : f.map((t) => t == null ? void 0 : t.label), h = (F = (w = (y = a == null ? void 0 : a.compData) == null ? void 0 : y.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
|
|
55
55
|
h == null || h.forEach((t) => {
|
|
56
56
|
L.push(
|
|
57
|
-
|
|
57
|
+
x(
|
|
58
58
|
t,
|
|
59
59
|
u == null ? void 0 : u.filter((o) => o !== "操作")
|
|
60
60
|
)
|
|
@@ -62,10 +62,10 @@ const g = async (n) => {
|
|
|
62
62
|
}), m[a.name] = L, m[a.name + "Content"] = a;
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
const A =
|
|
65
|
+
const A = O(m) || [];
|
|
66
66
|
return n = {
|
|
67
67
|
initialPipeLength: D,
|
|
68
|
-
pipeRadius:
|
|
68
|
+
pipeRadius: T,
|
|
69
69
|
clampLength: G,
|
|
70
70
|
animationData: A
|
|
71
71
|
}, n;
|
|
@@ -75,7 +75,7 @@ const g = async (n) => {
|
|
|
75
75
|
};
|
|
76
76
|
export {
|
|
77
77
|
z as a,
|
|
78
|
-
|
|
78
|
+
R as b,
|
|
79
79
|
q as f,
|
|
80
80
|
g,
|
|
81
81
|
H as i
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const p=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-RZydwY0l.cjs"),x=require("./index-C8qRkCgn.cjs"),D=async n=>{const a=n.join("/"),c=sessionStorage.getItem("systemKey");return await p.getItemData(a,c,"")},T=n=>{var s;const a=n==null?void 0:n.compData,c=(s=a==null?void 0:a.find(i=>{const{key:r}=i;return r==="formContent"}))==null?void 0:s.contents,l={};return c==null||c.forEach(i=>{const{prop:r,value:b}=i;l[r]=b}),l},V=async()=>{let n={};const c=await D(["弯管仿真加工分析","模具筛选安装"]),l=p.getTargetGroup("输入(加工件)",c),s=T(l),i=s.管长||0,r=s.外径||0;console.log("管长",i,"外径",r,s);const b=i,_=r/2,G=await D(["弯管仿真加工分析","加工位姿生成"]),R=p.getTargetGroup("输入",G),d=T(R),P=d.夹持长度||0;console.log("夹持长度",P,d);const A=Number(P),u={},m=await D(["弯管仿真加工分析","仿真动画生成"]);m==null||m.forEach(e=>{var y,M,f,w,F,L;if((e==null?void 0:e.comp)==="Table"){let C=[],h=(f=(M=(y=e==null?void 0:e.compData)==null?void 0:y.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:M.contents)==null?void 0:f.map(t=>t==null?void 0:t.label),g=(L=(F=(w=e==null?void 0:e.compData)==null?void 0:w.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(o=>!(o!=null&&o.id)),t));g==null||g.forEach(t=>{C.push(p.getValueToObjectValue(t,h==null?void 0:h.filter(o=>o!=="操作")))}),u[e.name]=C,u[e.name+"Content"]=e}});const k=x.cloneDeep(u)||[];return n={initialPipeLength:b,pipeRadius:_,clampLength:A,animationData:k},n},j=async()=>{let n={};const c=await D(["双弯管仿真加工分析","模具筛选安装"]),l=p.getTargetGroup("输入(加工件)",c),s=T(l),i=s.管长||0,r=s.外径||0;console.log("管长",i,"外径",r,s);const b=i,_=r/2,G=await D(["双弯管仿真加工分析","加工工艺生成"]),R=p.getTargetGroup("输入",G),d=T(R),P=d.夹持位置||0;console.log("夹持长度",P,d);const A=Number(P),u={},m=await D(["双弯管仿真加工分析","仿真动画生成"]);m==null||m.forEach(e=>{var y,M,f,w,F,L;if((e==null?void 0:e.comp)==="Table"){let C=[],h=(f=(M=(y=e==null?void 0:e.compData)==null?void 0:y.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:M.contents)==null?void 0:f.map(t=>t==null?void 0:t.label),g=(L=(F=(w=e==null?void 0:e.compData)==null?void 0:w.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(o=>!(o!=null&&o.id)),t));g==null||g.forEach(t=>{C.push(p.getValueToObjectValue(t,h==null?void 0:h.filter(o=>o!=="操作")))}),u[e.name]=C,u[e.name+"Content"]=e}});const k=x.cloneDeep(u)||[];return n={initialPipeLength:b,pipeRadius:_,clampLength:A,animationData:k},n},B=async n=>await p.downloadFile(n),S=async n=>await p.readCsv(n),X=async n=>{const a=await B(n);return await S(a)};exports.fetchDoubleRobotAnimationData=j;exports.fetchSingleRobotAnimationData=V;exports.getFormData=T;exports.getMenuData=D;exports.initXYZBCList=X;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as T, computed as se, reactive as ce } from "vue";
|
|
2
|
-
import { a as ue, u as pe } from "./index-
|
|
3
|
-
import { c as t, s as re, p as oe } from "./index-
|
|
4
|
-
import {
|
|
2
|
+
import { a as ue, u as pe } from "./index-D_qR3hDI.js";
|
|
3
|
+
import { c as t, s as re, p as oe } from "./index-BgE_6FYY.js";
|
|
4
|
+
import { x as P, y as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-6Ap42_Dn.js";
|
|
5
5
|
const K = ue(oe), { pageMapState: ie } = re(K), fe = pe(), { activeMenuPath: _ } = re(fe), j = T([
|
|
6
6
|
// [
|
|
7
7
|
// {
|
|
@@ -212,40 +212,40 @@ const K = ue(oe), { pageMapState: ie } = re(K), fe = pe(), { activeMenuPath: _ }
|
|
|
212
212
|
]
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
]),
|
|
215
|
+
]), x = T([]), Ie = se(() => {
|
|
216
216
|
var l;
|
|
217
|
-
return (l =
|
|
217
|
+
return (l = x.value) == null ? void 0 : l.map((s, a) => ({
|
|
218
218
|
value: s == null ? void 0 : s.id,
|
|
219
219
|
label: s == null ? void 0 : s.name
|
|
220
220
|
}));
|
|
221
|
-
}), he = T("data"), Z = T("任务配置"), B = T({}),
|
|
221
|
+
}), he = T("data"), Z = T("任务配置"), B = T({}), F = T(null), D = ce({
|
|
222
222
|
width: "30%",
|
|
223
223
|
title: "任务配置",
|
|
224
224
|
type: "创建",
|
|
225
225
|
show: !1
|
|
226
226
|
}), Ee = () => {
|
|
227
227
|
D.show = !1;
|
|
228
|
-
},
|
|
228
|
+
}, xe = (l, s) => {
|
|
229
229
|
var e, r, n, c, p, g, f, C, u;
|
|
230
230
|
if (B.value = t(s), l === "删除")
|
|
231
231
|
return Z.value === "任务配置" ? j.value = (e = j.value) == null ? void 0 : e.filter((b) => (b == null ? void 0 : b.id) !== (s == null ? void 0 : s.id)) : Z.value === "任务关联" && ($.value = (r = $.value) == null ? void 0 : r.filter((b) => (b == null ? void 0 : b.id) !== (s == null ? void 0 : s.id))), K.setItemExtendData({
|
|
232
232
|
任务配置: {
|
|
233
233
|
pageKey: _.value,
|
|
234
|
-
compId: (n =
|
|
234
|
+
compId: (n = F.value) == null ? void 0 : n.id,
|
|
235
235
|
results: j.value
|
|
236
236
|
},
|
|
237
237
|
任务关联: {
|
|
238
238
|
pageKey: _.value,
|
|
239
|
-
compId: (c =
|
|
239
|
+
compId: (c = F.value) == null ? void 0 : c.id,
|
|
240
240
|
results: $.value
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
const a = s ? (p = Object.keys(s)) == null ? void 0 : p[1] : "";
|
|
244
|
-
Z.value === "任务配置" ? D.title = `当前配置:${(g =
|
|
245
|
-
},
|
|
244
|
+
Z.value === "任务配置" ? D.title = `当前配置:${(g = F.value) == null ? void 0 : g.name}>任务配置>【${(s == null ? void 0 : s[a]) || l}】` : Z.value === "任务关联" && (D.title = `当前配置:${(f = F.value) == null ? void 0 : f.name}>任务关联>【${(s == null ? void 0 : s[a]) || l}】`), D.type = typeof ((C = B.value) == null ? void 0 : C.id) == "string" || !((u = B.value) != null && u.id) ? "创建" : "编辑", D.show = l === "创建" || l === "访问";
|
|
245
|
+
}, Fe = (l) => {
|
|
246
246
|
var s;
|
|
247
|
-
typeof l == "number" && (
|
|
248
|
-
},
|
|
247
|
+
typeof l == "number" && (F.value = (s = x.value) == null ? void 0 : s[l], be()), he.value = "data";
|
|
248
|
+
}, Ne = (l) => {
|
|
249
249
|
}, de = (l) => {
|
|
250
250
|
var s, a;
|
|
251
251
|
switch (Z.value) {
|
|
@@ -286,7 +286,7 @@ const K = ue(oe), { pageMapState: ie } = re(K), fe = pe(), { activeMenuPath: _ }
|
|
|
286
286
|
D.show = !1;
|
|
287
287
|
else if ((l == null ? void 0 : l.buttonName) === "保存") {
|
|
288
288
|
const e = {
|
|
289
|
-
compId: (s =
|
|
289
|
+
compId: (s = F.value) == null ? void 0 : s.id,
|
|
290
290
|
data: {
|
|
291
291
|
...l == null ? void 0 : l.content,
|
|
292
292
|
id: (a = B.value) == null ? void 0 : a.id
|
|
@@ -299,19 +299,19 @@ const K = ue(oe), { pageMapState: ie } = re(K), fe = pe(), { activeMenuPath: _ }
|
|
|
299
299
|
const { target: a, styleConfigs: e } = l;
|
|
300
300
|
if (!e) return;
|
|
301
301
|
const r = e == null ? void 0 : e.reduce((p, g) => (p[g.prop] = g.value, p), {});
|
|
302
|
-
s ?
|
|
302
|
+
s ? x.value = (c = x.value) == null ? void 0 : c.map((p) => (p == null ? void 0 : p.id) === (s == null ? void 0 : s.id) ? {
|
|
303
303
|
...p,
|
|
304
304
|
...r
|
|
305
|
-
} : p) :
|
|
305
|
+
} : p) : x.value = (n = x.value) == null ? void 0 : n.map((p) => ({
|
|
306
306
|
...p,
|
|
307
307
|
...r
|
|
308
|
-
})), K.setItemData(
|
|
308
|
+
})), K.setItemData(x.value);
|
|
309
309
|
}, Pe = (l) => {
|
|
310
310
|
}, le = (l, s) => {
|
|
311
311
|
var a;
|
|
312
312
|
return (a = l == null ? void 0 : l.filter((e) => {
|
|
313
313
|
var r, n, c, p, g;
|
|
314
|
-
return ((n = (r = e == null ? void 0 : e.key) == null ? void 0 : r.relatedInfo) == null ? void 0 : n.target) === s && ((p = (c = e == null ? void 0 : e.key) == null ? void 0 : c.relatedInfo) == null ? void 0 : p.compId) === ((g =
|
|
314
|
+
return ((n = (r = e == null ? void 0 : e.key) == null ? void 0 : r.relatedInfo) == null ? void 0 : n.target) === s && ((p = (c = e == null ? void 0 : e.key) == null ? void 0 : c.relatedInfo) == null ? void 0 : p.compId) === ((g = F.value) == null ? void 0 : g.id);
|
|
315
315
|
})) == null ? void 0 : a.map((e) => {
|
|
316
316
|
var r;
|
|
317
317
|
return {
|
|
@@ -532,12 +532,12 @@ const me = (l) => {
|
|
|
532
532
|
let C = (n = t(f)) == null ? void 0 : n.map((u) => {
|
|
533
533
|
var b;
|
|
534
534
|
return u != null && u.compData && (u.compData = (b = u == null ? void 0 : u.compData) == null ? void 0 : b.map((o) => {
|
|
535
|
-
var i, R, y, H, U, I, E, d, k, m,
|
|
535
|
+
var i, R, y, H, U, I, E, d, k, m, N;
|
|
536
536
|
if ((o == null ? void 0 : o.key) === "formFlex")
|
|
537
537
|
o.contents = ((R = (i = o.contents) == null ? void 0 : i.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : R.toUpperCase()) !== "Vertical".toUpperCase();
|
|
538
538
|
else if ((o == null ? void 0 : o.key) === "groupContents")
|
|
539
539
|
o.contents = (y = t(o.contents)) == null ? void 0 : y.map((M) => Te(t(M)));
|
|
540
|
-
else if (((U = (H = o.contents) == null ? void 0 : H.trim()) != null && U.startsWith("[") || (E = (I = o.contents) == null ? void 0 : I.trim()) != null && E.startsWith("【")) && ((k = (d = o.contents) == null ? void 0 : d.trim()) != null && k.endsWith("]") || (
|
|
540
|
+
else if (((U = (H = o.contents) == null ? void 0 : H.trim()) != null && U.startsWith("[") || (E = (I = o.contents) == null ? void 0 : I.trim()) != null && E.startsWith("【")) && ((k = (d = o.contents) == null ? void 0 : d.trim()) != null && k.endsWith("]") || (N = (m = o.contents) == null ? void 0 : m.trim()) != null && N.endsWith("】")))
|
|
541
541
|
o.contents = Ce(t(o.contents));
|
|
542
542
|
else {
|
|
543
543
|
if (!o.contents) return;
|
|
@@ -552,7 +552,7 @@ const me = (l) => {
|
|
|
552
552
|
var R;
|
|
553
553
|
let i = [];
|
|
554
554
|
return (R = o.contents) == null || R.forEach((y) => {
|
|
555
|
-
var H, U, I, E, d, k, m,
|
|
555
|
+
var H, U, I, E, d, k, m, N, M, L, W, S, q, Q, X, Y, ee;
|
|
556
556
|
if ((H = P) != null && H.find((h) => {
|
|
557
557
|
var A, v, O;
|
|
558
558
|
return ((A = h == null ? void 0 : h.key) == null ? void 0 : A.toUpperCase()) === ((O = (v = Object.keys(y)) == null ? void 0 : v[0]) == null ? void 0 : O.toUpperCase());
|
|
@@ -571,7 +571,7 @@ const me = (l) => {
|
|
|
571
571
|
})) {
|
|
572
572
|
if ((i == null ? void 0 : i.length) === 0) return;
|
|
573
573
|
(m = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) != null && m.compData && i[(i == null ? void 0 : i.length) - 1].compData.push({
|
|
574
|
-
key: (M = (
|
|
574
|
+
key: (M = (N = J) == null ? void 0 : N.find((h) => {
|
|
575
575
|
var A, v, O;
|
|
576
576
|
return ((A = h == null ? void 0 : h.key) == null ? void 0 : A.toUpperCase()) === ((O = (v = Object.keys(y)) == null ? void 0 : v[0]) == null ? void 0 : O.toUpperCase());
|
|
577
577
|
})) == null ? void 0 : M.value,
|
|
@@ -602,24 +602,24 @@ const me = (l) => {
|
|
|
602
602
|
}, {});
|
|
603
603
|
export {
|
|
604
604
|
Be as a,
|
|
605
|
-
|
|
605
|
+
Fe as b,
|
|
606
606
|
he as c,
|
|
607
|
-
|
|
607
|
+
Ne as d,
|
|
608
608
|
Ve as e,
|
|
609
609
|
Z as f,
|
|
610
610
|
Ue as g,
|
|
611
611
|
ze as h,
|
|
612
|
-
|
|
612
|
+
xe as i,
|
|
613
613
|
Pe as j,
|
|
614
614
|
Ee as k,
|
|
615
615
|
D as l,
|
|
616
|
-
|
|
616
|
+
F as m,
|
|
617
617
|
Je as n,
|
|
618
618
|
Ie as o,
|
|
619
619
|
B as p,
|
|
620
620
|
ye as q,
|
|
621
621
|
Ze as r,
|
|
622
|
-
|
|
622
|
+
x as s,
|
|
623
623
|
j as t,
|
|
624
624
|
Me as u,
|
|
625
625
|
me as v,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const m=require("vue"),le=require("./index-DeBHVrj0.cjs"),a=require("./index-C8qRkCgn.cjs"),j=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const m=require("vue"),le=require("./index-DeBHVrj0.cjs"),a=require("./index-C8qRkCgn.cjs"),j=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-RZydwY0l.cjs"),B=le.useModelComp(a.pinia),{pageMapState:ue}=a.storeToRefs(B),oe=le.useMenuState(),{activeMenuPath:V}=a.storeToRefs(oe),A=m.ref([]),x=m.ref([]),pe=m.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:A.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:x.value}]}}]),N=m.ref([]),ie=m.computed(()=>{var l;return(l=N.value)==null?void 0:l.map((s,n)=>({value:s==null?void 0:s.id,label:s==null?void 0:s.name}))}),se=m.ref("data"),F=m.ref("任务配置"),M=m.ref({}),_=m.ref(null),O=m.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),fe=()=>{O.show=!1},de=(l,s)=>{var e,r,t,c,o,D,f,$,u;if(M.value=a.cloneDeep(s),l==="删除")return F.value==="任务配置"?A.value=(e=A.value)==null?void 0:e.filter(b=>(b==null?void 0:b.id)!==(s==null?void 0:s.id)):F.value==="任务关联"&&(x.value=(r=x.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(s==null?void 0:s.id))),B.setItemExtendData({任务配置:{pageKey:V.value,compId:(t=_.value)==null?void 0:t.id,results:A.value},任务关联:{pageKey:V.value,compId:(c=_.value)==null?void 0:c.id,results:x.value}});const n=s?(o=Object.keys(s))==null?void 0:o[1]:"";F.value==="任务配置"?O.title=`当前配置:${(D=_.value)==null?void 0:D.name}>任务配置>【${(s==null?void 0:s[n])||l}】`:F.value==="任务关联"&&(O.title=`当前配置:${(f=_.value)==null?void 0:f.name}>任务关联>【${(s==null?void 0:s[n])||l}】`),O.type=typeof(($=M.value)==null?void 0:$.id)=="string"||!((u=M.value)!=null&&u.id)?"创建":"编辑",O.show=l==="创建"||l==="访问"},he=l=>{var s;typeof l=="number"&&(_.value=(s=N.value)==null?void 0:s[l],me()),se.value="data"},be=l=>{},De=l=>{var s,n;switch(F.value){case"任务配置":O.type==="创建"?A.value.push(l==null?void 0:l.data):A.value=(s=A.value)==null?void 0:s.map(e=>{var r;return(e==null?void 0:e.id)===((r=l==null?void 0:l.data)==null?void 0:r.id)?{...e,...l==null?void 0:l.data}:e});break;case"任务关联":O.type==="创建"?x.value.push(l==null?void 0:l.data):x.value=(n=x.value)==null?void 0:n.map(e=>{var r;return(e==null?void 0:e.id)===((r=l==null?void 0:l.data)==null?void 0:r.id)?{...e,...l==null?void 0:l.data}:e});break}console.log("handleTableData:",A.value,l,O.type),B.setItemExtendData({任务配置:{pageKey:V.value,compId:l==null?void 0:l.compId,results:A.value},任务关联:{pageKey:V.value,compId:l==null?void 0:l.compId,results:x.value}}),O.show=!1},ge=l=>{var s,n;if((l==null?void 0:l.buttonName)==="取消")O.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const e={compId:(s=_.value)==null?void 0:s.id,data:{...l==null?void 0:l.content,id:(n=M.value)==null?void 0:n.id}};De(e)}},ke=(l,s)=>{var t,c;const{target:n,styleConfigs:e}=l;if(!e)return;const r=e==null?void 0:e.reduce((o,D)=>(o[D.prop]=D.value,o),{});s?N.value=(c=N.value)==null?void 0:c.map(o=>(o==null?void 0:o.id)===(s==null?void 0:s.id)?{...o,...r}:o):N.value=(t=N.value)==null?void 0:t.map(o=>({...o,...r})),B.setItemData(N.value)},ye=l=>{},ee=(l,s)=>{var n;return(n=l==null?void 0:l.filter(e=>{var r,t,c,o,D;return((t=(r=e==null?void 0:e.key)==null?void 0:r.relatedInfo)==null?void 0:t.target)===s&&((o=(c=e==null?void 0:e.key)==null?void 0:c.relatedInfo)==null?void 0:o.compId)===((D=_.value)==null?void 0:D.id)}))==null?void 0:n.map(e=>{var r;return{...(r=e==null?void 0:e.value)==null?void 0:r.tableData,id:e==null?void 0:e.id}})},me=()=>{var s,n;const l=(n=(s=ue.value)==null?void 0:s[V.value])==null?void 0:n.filter(e=>{var r;return((r=e==null?void 0:e.key)==null?void 0:r.type)==="extend"});(l==null?void 0:l.length)!==0&&(A.value=ee(l,"任务配置"),x.value=ee(l,"任务关联"))};m.ref(0);const re=l=>{var s,n;if(Array.isArray(Object.keys(l))&&((s=Object.keys(l))==null?void 0:s.length)>0){let e=[];return(n=Object.entries(l))==null||n.forEach(([r,t])=>{var o,D;let c=[];if(c.push(r),((o=Object.keys(t))==null?void 0:o.length)>0){let f=[];(D=re(t))==null||D.forEach($=>{f.push($)}),f==null||f.forEach($=>{c.push($)})}e.push(c)}),e}},ve=(l,s)=>{var e;let n=s;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,t])=>{let c=[r];if(typeof t=="object"&&t!==null){let o=re(t);o==null||o.forEach(D=>{c.push(D)})}n.push(c)})),n},Te=l=>{const s={};return l.forEach(e=>{const r=e.split("/");let t=s;r.forEach(c=>{t[c]||(t[c]={}),t=t[c]})}),ve(s,[])},Ce=l=>Te(l);m.ref(0);m.ref(1);const ne=l=>{let s;l.replaceAll(" ",`\r
|
|
2
2
|
`).replaceAll(`
|
|
3
3
|
`,`\r
|
|
4
4
|
`).includes(`\r
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as c2, ref as k, defineComponent as o2, computed as Z, createElementBlock as h2, openBlock as n2, createElementVNode as w } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { O as V2 } from "./OrbitControls-
|
|
2
|
+
import { W as p, bb as s2, ag as Y, X as O, a8 as E, bd as p2, a5 as r2, a6 as j, a7 as d2, Y as v2, Z as z2, _ as f2, $ as A2, a0 as m2, a1 as M2, a2 as u2, a3 as l2, c8 as F2, a4 as g2, a9 as y2, aa as U, ab as w2, ac as t2, bJ as b2, ad as B2, ae as H2, af as $ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-6Ap42_Dn.js";
|
|
3
|
+
import { O as V2 } from "./OrbitControls-Bwv0Wdfk.js";
|
|
4
4
|
import { _ as x2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const c1 = (o, a = "YZX") => {
|
|
6
6
|
const t = new p(), h = new s2(), n = new p(), r = new Y();
|
|
@@ -33,7 +33,7 @@ function n1(o, a) {
|
|
|
33
33
|
const { scene: t, camera: h, renderer: n, controls: r } = o();
|
|
34
34
|
if (!t || !h || !n || !r)
|
|
35
35
|
return;
|
|
36
|
-
const M = new
|
|
36
|
+
const M = new O().setFromObject(a), c = M.getCenter(new p()), z = M.getSize(new p()), f = Math.max(z.x, z.y, z.z), m = h.fov * (Math.PI / 180);
|
|
37
37
|
let g = Math.abs(f / 2 / Math.tan(m / 2));
|
|
38
38
|
g *= 1.2, h.position.copy(c), h.position.z += g, h.lookAt(c), r.target.copy(c), r.update();
|
|
39
39
|
}
|
|
@@ -60,7 +60,7 @@ function s1(o) {
|
|
|
60
60
|
let a = null, t = null, h = null, n = null, r = null, M = [], c = null, z = null, f = null, m = null;
|
|
61
61
|
const u = 1e3 / 30;
|
|
62
62
|
let P = 0;
|
|
63
|
-
const
|
|
63
|
+
const I = 1, A = c2([]), i = k(new p()), s = k(new p()), v = k(!1), F = k(!1), V = () => {
|
|
64
64
|
if (!o.value) return;
|
|
65
65
|
const l = o.value;
|
|
66
66
|
a = x(), t = b(l), h = B(l), n = D(t, h), m = S(), r = W(l, n), M = q(), i.value.copy(t.position), s.value.copy(n.target), Q(100, new p(0, 0, 0)), K();
|
|
@@ -106,11 +106,11 @@ function s1(o) {
|
|
|
106
106
|
if (!a) return [];
|
|
107
107
|
const l = new y2(4210752, 0.6);
|
|
108
108
|
a.add(l);
|
|
109
|
-
const e = new
|
|
109
|
+
const e = new U(16777215, 2);
|
|
110
110
|
e.position.set(10, 10, 8), e.castShadow = !0, e.shadow.mapSize.width = 4096, e.shadow.mapSize.height = 4096, e.shadow.camera.near = 0.5, e.shadow.camera.far = 50, e.shadow.camera.left = -50, e.shadow.camera.right = 50, e.shadow.camera.top = 50, e.shadow.camera.bottom = -50, a.add(e);
|
|
111
|
-
const d = new
|
|
111
|
+
const d = new U(16777215, 0.8);
|
|
112
112
|
d.position.set(-8, -8, 6), a.add(d);
|
|
113
|
-
const y = new
|
|
113
|
+
const y = new U(16777215, 0.6);
|
|
114
114
|
y.position.set(0, -15, 2), a.add(y);
|
|
115
115
|
const H = new w2(16777215, 4473924, 0.8);
|
|
116
116
|
a.add(H);
|
|
@@ -135,9 +135,9 @@ function s1(o) {
|
|
|
135
135
|
Q(100, new p(0, 0, 0));
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
const l = new
|
|
138
|
+
const l = new O();
|
|
139
139
|
if (A.value.forEach((L) => {
|
|
140
|
-
L.userData.boundingBox instanceof
|
|
140
|
+
L.userData.boundingBox instanceof O ? l.union(L.userData.boundingBox) : l.expandByObject(L);
|
|
141
141
|
}), l.isEmpty()) {
|
|
142
142
|
console.warn("模型没有有效边界框,网格和阴影平面更新失败");
|
|
143
143
|
return;
|
|
@@ -157,11 +157,11 @@ function s1(o) {
|
|
|
157
157
|
a && (A.value.forEach((l) => {
|
|
158
158
|
a == null || a.remove(l), e2(l);
|
|
159
159
|
}), A.value = [], T());
|
|
160
|
-
},
|
|
160
|
+
}, J = () => {
|
|
161
161
|
if (!t || !n || !a || A.value.length === 0) return;
|
|
162
|
-
const l = new
|
|
162
|
+
const l = new O();
|
|
163
163
|
A.value.forEach((R) => {
|
|
164
|
-
R.userData.boundingBox instanceof
|
|
164
|
+
R.userData.boundingBox instanceof O && !R.userData.boundingBox.isEmpty() ? l.union(R.userData.boundingBox) : (R.updateMatrixWorld(!0), l.expandByObject(R));
|
|
165
165
|
});
|
|
166
166
|
const e = l.getSize(new p());
|
|
167
167
|
if (l.getCenter(new p()), l.isEmpty() || e.length() === 0) {
|
|
@@ -209,14 +209,14 @@ function s1(o) {
|
|
|
209
209
|
e.traverse((d) => {
|
|
210
210
|
d instanceof E && (d.castShadow = !1, d.receiveShadow = !1);
|
|
211
211
|
}), a == null || a.add(e);
|
|
212
|
-
}), A.value = l, T(),
|
|
212
|
+
}), A.value = l, T(), J());
|
|
213
213
|
},
|
|
214
214
|
addModelAndFit: (l) => {
|
|
215
215
|
if (!a) return;
|
|
216
216
|
const e = Array.isArray(l) ? l : [l];
|
|
217
217
|
e.forEach((d) => {
|
|
218
218
|
a == null || a.add(d);
|
|
219
|
-
}), A.value = [...A.value, ...e], T(),
|
|
219
|
+
}), A.value = [...A.value, ...e], T(), J();
|
|
220
220
|
},
|
|
221
221
|
setGridVisibility: (l) => {
|
|
222
222
|
v.value = l, z && (z.visible = l);
|
|
@@ -224,7 +224,7 @@ function s1(o) {
|
|
|
224
224
|
toggleAxesVisibility: () => {
|
|
225
225
|
F.value = !F.value, m && (m.visible = F.value);
|
|
226
226
|
},
|
|
227
|
-
fitCameraToAllModels:
|
|
227
|
+
fitCameraToAllModels: J,
|
|
228
228
|
clearAllModels: N,
|
|
229
229
|
updateGridForModels: T,
|
|
230
230
|
resetView: () => {
|
|
@@ -236,7 +236,7 @@ function s1(o) {
|
|
|
236
236
|
n.enabled = !1, n.autoRotate = !1, n.enableDamping = !1, n.update(), t.position.copy(i.value), n.target.copy(s.value), t.lookAt(n.target), t.updateProjectionMatrix(), n.update(), n.enableDamping = e, n.enabled = l;
|
|
237
237
|
},
|
|
238
238
|
zoomIn: () => {
|
|
239
|
-
t && t.position.addScaledVector(t.getWorldDirection(new p()),
|
|
239
|
+
t && t.position.addScaledVector(t.getWorldDirection(new p()), I);
|
|
240
240
|
},
|
|
241
241
|
zoomOut: () => {
|
|
242
242
|
t && t.position.addScaledVector(t.getWorldDirection(new p()), -1);
|
|
@@ -268,7 +268,7 @@ function p1(o, a) {
|
|
|
268
268
|
h || (h = Date.now());
|
|
269
269
|
const v = Date.now() - h, F = Math.min(v / n, 1);
|
|
270
270
|
if (F >= 1) {
|
|
271
|
-
|
|
271
|
+
I();
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
274
|
const V = g(F);
|
|
@@ -278,7 +278,7 @@ function p1(o, a) {
|
|
|
278
278
|
const { camera: i, controls: s } = o();
|
|
279
279
|
if (!i || !s) return;
|
|
280
280
|
r.copy(i.position), M.copy(s.target);
|
|
281
|
-
const v = new
|
|
281
|
+
const v = new O();
|
|
282
282
|
a.value.forEach((S) => {
|
|
283
283
|
v.expandByObject(S);
|
|
284
284
|
});
|
|
@@ -291,7 +291,7 @@ function p1(o, a) {
|
|
|
291
291
|
i.position.lerpVectors(x, V, q), i.lookAt(c), s.target.copy(c), W < 1 ? requestAnimationFrame(D) : (t.value = !0, h = null, u());
|
|
292
292
|
};
|
|
293
293
|
D();
|
|
294
|
-
},
|
|
294
|
+
}, I = () => {
|
|
295
295
|
t.value = !1, h = null, f && (cancelAnimationFrame(f), f = null);
|
|
296
296
|
const { controls: i } = o();
|
|
297
297
|
i && (i.enabled = !0, i.target.copy(M));
|
|
@@ -313,7 +313,7 @@ function p1(o, a) {
|
|
|
313
313
|
P();
|
|
314
314
|
},
|
|
315
315
|
startAnimation: P,
|
|
316
|
-
stopAnimation:
|
|
316
|
+
stopAnimation: I
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
const C = {
|
|
@@ -324,14 +324,14 @@ const C = {
|
|
|
324
324
|
};
|
|
325
325
|
function r1(o, a) {
|
|
326
326
|
const t = k(!1), h = k("none");
|
|
327
|
-
let n = [], r = [], M = new
|
|
327
|
+
let n = [], r = [], M = new O(), c = new p();
|
|
328
328
|
const z = () => {
|
|
329
329
|
n = [
|
|
330
|
-
new
|
|
330
|
+
new $(new p(1, 0, 0), 0),
|
|
331
331
|
// X轴平面
|
|
332
|
-
new
|
|
332
|
+
new $(new p(0, 1, 0), 0),
|
|
333
333
|
// Y轴平面
|
|
334
|
-
new
|
|
334
|
+
new $(new p(0, 0, 1), 0)
|
|
335
335
|
// Z轴平面
|
|
336
336
|
];
|
|
337
337
|
}, f = () => {
|
|
@@ -396,7 +396,7 @@ function r1(o, a) {
|
|
|
396
396
|
clearClippingMeshes: P
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
const L2 = { class: "panel-content" }, E2 = { class: "clipping-content" }, S2 = { class: "radio-group" }, _2 = { class: "radio-label" }, k2 = ["checked"],
|
|
399
|
+
const L2 = { class: "panel-content" }, E2 = { class: "clipping-content" }, S2 = { class: "radio-group" }, _2 = { class: "radio-label" }, k2 = ["checked"], O2 = { class: "radio-label" }, I2 = ["checked"], T2 = { class: "radio-label" }, R2 = ["checked"], W2 = { class: "radio-label" }, N2 = ["checked"], G2 = /* @__PURE__ */ o2({
|
|
400
400
|
__name: "clippingPanel",
|
|
401
401
|
props: {
|
|
402
402
|
value: {}
|
|
@@ -420,14 +420,14 @@ const L2 = { class: "panel-content" }, E2 = { class: "clipping-content" }, S2 =
|
|
|
420
420
|
}, null, 40, k2),
|
|
421
421
|
m[0] || (m[0] = w("span", { class: "radio-text" }, "无切割", -1))
|
|
422
422
|
]),
|
|
423
|
-
w("label",
|
|
423
|
+
w("label", O2, [
|
|
424
424
|
w("input", {
|
|
425
425
|
type: "radio",
|
|
426
426
|
name: "clipping-axis",
|
|
427
427
|
value: "x",
|
|
428
428
|
checked: r.value,
|
|
429
429
|
onChange: z
|
|
430
|
-
}, null, 40,
|
|
430
|
+
}, null, 40, I2),
|
|
431
431
|
m[1] || (m[1] = w("span", { class: "radio-text" }, "X轴切割", -1))
|
|
432
432
|
]),
|
|
433
433
|
w("label", T2, [
|