ss-component-new 1.3.113 → 1.3.114
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-BviVUPWi.cjs → MTLLoader-DcIQb_s3.cjs} +1 -1
- package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-iRxhJhIF.js} +34 -34
- package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-9REskSZo.cjs} +1 -1
- package/dist/{OrbitControls-390k2OM3.js → OrbitControls-PQJZejy_.js} +1 -1
- package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BuABv8Tv.cjs} +1 -1
- package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-Buak6sTX.js} +222 -222
- package/dist/{animationData-DfDLy_M4.js → animationData-DJhhkfHw.js} +18 -18
- package/dist/{animationData-B1Jlpr7b.cjs → animationData-DiCszzEt.cjs} +1 -1
- package/dist/{array-DLBDgy0c.js → array-Be4dCwU5.js} +5 -5
- package/dist/{array-ymebeoXj.cjs → array-BsWbhqqH.cjs} +1 -1
- package/dist/{iconfont-cBX7rs7k.cjs → iconfont-CTi1EROO.cjs} +1 -1
- package/dist/{iconfont-BYa5tDrN.js → iconfont-Dkz3EhnP.js} +37 -37
- package/dist/{index-JJBPRJiI.cjs → index-1ATQxYGc.cjs} +1 -1
- package/dist/{index-UytjSmc1.cjs → index-69FRQH94.cjs} +1 -1
- package/dist/{index-4p0yEeUu.js → index-B2WIMplB.js} +1 -1
- package/dist/{index--hQDmx_x.js → index-B2pcDjLn.js} +2 -2
- package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
- package/dist/{index-DdCyGfF9.cjs → index-BBrdsI9W.cjs} +1 -1
- package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
- package/dist/{index-BXZlLwr6.cjs → index-Bd8mah99.cjs} +1 -1
- package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
- package/dist/{index-C2yeqxnB.js → index-BhPhyI8f.js} +3 -3
- package/dist/{index-bbJ9Y_oO.js → index-BhU0rWGt.js} +3 -3
- package/dist/index-BhsUBoCD.cjs +1 -0
- package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
- package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
- package/dist/{index-BfNg0B2v.js → index-BsoWrBpk.js} +33 -33
- package/dist/{index-DpIzJvIr.cjs → index-BuaAY6T_.cjs} +1 -1
- package/dist/{index-DaX27S_0.js → index-BugYnyXc.js} +31 -31
- package/dist/{index-DMzBNabY.js → index-Bz_ZsUz_.js} +1 -1
- package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
- package/dist/{index-CXkaTWVT.js → index-C3LqP4qY.js} +2 -2
- package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
- package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
- package/dist/{index-DLK6UU4l.cjs → index-C_CGGyPH.cjs} +1 -1
- package/dist/{index-CYXsxIou.js → index-CdOlTQZV.js} +1 -1
- package/dist/{index-CVwsrCrZ.cjs → index-CdzQfZvY.cjs} +12 -12
- package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
- package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
- package/dist/{index-BxmhgJuz.js → index-Cw0eFU8n.js} +1 -1
- package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
- package/dist/{index-Drd5_tIE.js → index-DHrzZlzn.js} +2 -2
- package/dist/{index-CEiscADV.cjs → index-DVhZbYfk.cjs} +1 -1
- package/dist/{index-CJiEoadC.js → index-Dar27fP9.js} +5 -5
- package/dist/index-DavcqNxP.cjs +1 -0
- package/dist/{index-DczQgLYk.cjs → index-DbAWw4as.cjs} +5 -5
- package/dist/{index-C6_KNp1M.cjs → index-DbnQZ22f.cjs} +1 -1
- package/dist/{index-CIoHy7Dg.js → index-Ddn_i6kt.js} +3 -3
- package/dist/index-DgBjwajW.js +456 -0
- package/dist/{index-SeEbZNcJ.cjs → index-DhFQdrUj.cjs} +1 -1
- package/dist/index-DiowIVZT.cjs +36 -0
- package/dist/{index-YwMY3Aya.js → index-DkgsdCot.js} +7 -7
- package/dist/{index-NdxRkX7O.js → index-Do9OpnU6.js} +316 -316
- package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
- package/dist/{index-mabPGJUl.js → index-DqljyATQ.js} +1924 -1902
- package/dist/{index-B9g8IV0C.cjs → index-Dxxg-n__.cjs} +1 -1
- package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
- package/dist/{index-BjAtlMRE.cjs → index-OS-qw-PB.cjs} +1 -1
- package/dist/{index-BVURmufk.js → index-RJF35C5O.js} +7 -7
- package/dist/index-SJHk-hwy.cjs +1 -0
- package/dist/index-TspEOSLc.cjs +1 -0
- package/dist/{index-DnJB2OQC.cjs → index-d198q36G.cjs} +1 -1
- package/dist/{index-CVySIgt4.cjs → index-eOampyhu.cjs} +1 -1
- package/dist/index-h4MsH7WN.cjs +1 -0
- package/dist/{index-DBdrmcqM.cjs → index-hSBc9pHD.cjs} +1 -1
- package/dist/index-kP2LUcSw.cjs +1 -0
- package/dist/{index-BIOl9xBh.js → index-p6bofhog.js} +2 -2
- package/dist/{index-D39f9FDD.cjs → index-rgLAMPYl.cjs} +1 -1
- package/dist/{index-8TMkI46d.js → index-tXc9-Dpz.js} +5 -5
- package/dist/{index-Cu75UXH1.js → index-wT_u7Sip.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js} +19045 -19450
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs} +397 -397
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-AEdMqNIL.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-DzaXkSeA.js} +134 -134
- package/dist/{main-b1OREkjD.js → main-BuHWLsd1.js} +4 -4
- package/dist/{main-ChE0Sl1V.cjs → main-CvEytDJd.cjs} +1 -1
- package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
- package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-BTiM-_yY.cjs → threeModel-BBPdmBqX.cjs} +1 -1
- package/dist/{threeModel-CUViA1pV.js → threeModel-qPRHxt0O.js} +62 -62
- package/dist/{threePreview-fEcukbqP.js → threePreview-BNspl3PQ.js} +102 -102
- package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BQfgRzYJ.cjs} +1 -1
- package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-BTG6qz5g.cjs} +1 -1
- package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-Dkw-3Lex.js} +133 -133
- package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-BUGbgcyW.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-DZtGuJLA.cjs} +1 -1
- package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-BMRciFya.cjs} +1 -1
- package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-D5aLq-PQ.js} +94 -94
- package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-B5ajpfKi.js} +17 -17
- package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-DZgqSUXb.cjs} +1 -1
- package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-CXoYn4F5.cjs} +1 -1
- package/dist/{urdfTree-B9gafrR3.js → urdfTree-DVRrRAEg.js} +1 -1
- package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel--Lz2aEfm.cjs} +1 -1
- package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-myjwdWI9.js} +81 -81
- package/package.json +1 -1
- package/dist/index-8ddlDjHL.js +0 -455
- package/dist/index-BLGT4-wX.cjs +0 -1
- package/dist/index-CTGhzBZx.cjs +0 -1
- package/dist/index-D7Ao1GyZ.cjs +0 -1
- package/dist/index-DUqjjluX.cjs +0 -1
- package/dist/index-NtRUaVwS.cjs +0 -1
- package/dist/index-aMvM6ti6.cjs +0 -1
- package/dist/index-kutaq0AT.cjs +0 -36
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var ce = Object.defineProperty;
|
|
2
2
|
var de = (b, l, t) => l in b ? ce(b, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[l] = t;
|
|
3
|
-
var
|
|
4
|
-
import { U as me } from "./URDFLoader-
|
|
5
|
-
import { S as ve, M as pe, O as fe } from "./MTLLoader-
|
|
6
|
-
import {
|
|
7
|
-
import { ref as V, defineComponent as Le, computed as
|
|
8
|
-
import { c as Re, e as
|
|
3
|
+
var J = (b, l, t) => de(b, typeof l != "symbol" ? l + "" : l, t);
|
|
4
|
+
import { U as me } from "./URDFLoader-Buak6sTX.js";
|
|
5
|
+
import { S as ve, M as pe, O as fe } from "./MTLLoader-iRxhJhIF.js";
|
|
6
|
+
import { bw as be, bx as re, ap as O, T as we, L as he, by as E, B as _e, bz as ge, aT as ye, V as je } from "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js";
|
|
7
|
+
import { ref as V, defineComponent as Le, computed as M, watch as ue, resolveComponent as x, createElementBlock as T, openBlock as k, createVNode as U, createElementVNode as c, withCtx as F, createTextVNode as D, toDisplayString as C } from "vue";
|
|
8
|
+
import { c as Re, e as Ue, g as $e } from "./iconfont-Dkz3EhnP.js";
|
|
9
9
|
import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Se = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
|
|
11
|
-
function
|
|
11
|
+
function Me(b) {
|
|
12
12
|
const { mtlUrl: l, manager: t, resourcePath: s, onLoad: m, onProgress: i, onError: h } = b, v = new pe(t);
|
|
13
13
|
return s && v.setResourcePath(s), v.load(l, m, i, h), v;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Fe(b) {
|
|
16
16
|
const { objUrl: l, manager: t, materials: s, onLoad: m, onProgress: i, onError: h } = b, v = new fe(t);
|
|
17
17
|
return s && v.setMaterials(s), v.load(l, m, i, h), v;
|
|
18
18
|
}
|
|
19
19
|
function De(b) {
|
|
20
20
|
const { manager: l, baseFolderUrl: t, onFileProgress: s } = b, m = new me(l);
|
|
21
21
|
return m.packages = (i) => `${t.endsWith("/") ? t : t + "/"}${i}/`, m.loadMeshCb = (i, h, v) => {
|
|
22
|
-
const
|
|
22
|
+
const j = (() => {
|
|
23
23
|
const _ = i.split("?")[0].split("#")[0], r = _.lastIndexOf(".");
|
|
24
24
|
return r >= 0 ? _.slice(r + 1).toLowerCase() : void 0;
|
|
25
25
|
})();
|
|
26
|
-
switch (
|
|
26
|
+
switch (j) {
|
|
27
27
|
// OBJ+MTL
|
|
28
28
|
case "obj": {
|
|
29
29
|
const _ = (() => {
|
|
@@ -37,18 +37,18 @@ function De(b) {
|
|
|
37
37
|
var u;
|
|
38
38
|
return (((u = i.split("/").pop()) == null ? void 0 : u.split("?")[0].split("#")[0]) ?? "").replace(/\.[^/.?#]+$/, "");
|
|
39
39
|
})(), f = `${_}${r}.mtl`, g = (n) => {
|
|
40
|
-
|
|
40
|
+
Fe({
|
|
41
41
|
objUrl: i,
|
|
42
42
|
manager: h,
|
|
43
43
|
materials: n,
|
|
44
44
|
onLoad: (u) => v(u),
|
|
45
45
|
onProgress: (u) => s == null ? void 0 : s(i, u == null ? void 0 : u.loaded, u == null ? void 0 : u.total),
|
|
46
46
|
onError: (u) => {
|
|
47
|
-
console.error(`[URDF 资源加载失败,已跳过] 无法加载 OBJ 模型: ${i}`, u), v(new
|
|
47
|
+
console.error(`[URDF 资源加载失败,已跳过] 无法加载 OBJ 模型: ${i}`, u), v(new O());
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
Me({
|
|
52
52
|
mtlUrl: f,
|
|
53
53
|
manager: h,
|
|
54
54
|
resourcePath: _,
|
|
@@ -75,27 +75,27 @@ function De(b) {
|
|
|
75
75
|
},
|
|
76
76
|
(r) => s == null ? void 0 : s(i, r == null ? void 0 : r.loaded, r == null ? void 0 : r.total),
|
|
77
77
|
(r) => {
|
|
78
|
-
console.error(`[URDF 资源加载失败,已跳过] 无法加载 STL 模型: ${i}`, r), v(new
|
|
78
|
+
console.error(`[URDF 资源加载失败,已跳过] 无法加载 STL 模型: ${i}`, r), v(new O());
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
default:
|
|
84
|
-
console.error(`[URDF 资源加载失败,已跳过] 不支持的网格格式: .${
|
|
84
|
+
console.error(`[URDF 资源加载失败,已跳过] 不支持的网格格式: .${j} (路径: ${i})`), v(new O());
|
|
85
85
|
}
|
|
86
86
|
}, m;
|
|
87
87
|
}
|
|
88
88
|
function dt(b, l, t, s) {
|
|
89
89
|
return { loadSceneFromFile: (i) => new Promise((h, v) => {
|
|
90
90
|
t.value = !0, s.value = "正在初始化 URDF 加载器...";
|
|
91
|
-
let
|
|
91
|
+
let j = 0, _ = 0, r = null;
|
|
92
92
|
const f = new be();
|
|
93
|
-
f.onStart = (n, u,
|
|
94
|
-
|
|
95
|
-
}, f.onProgress = (n, u,
|
|
96
|
-
_ = u,
|
|
97
|
-
const
|
|
98
|
-
s.value =
|
|
93
|
+
f.onStart = (n, u, y) => {
|
|
94
|
+
j = y || 0, _ = u || 0, s.value = j > 0 ? `开始下载资源: 0 / ${j}` : "开始下载资源...", t.value = !0;
|
|
95
|
+
}, f.onProgress = (n, u, y) => {
|
|
96
|
+
_ = u, j = y;
|
|
97
|
+
const $ = `正在加载 ${u} / ${y} 个文件: ${re(n)}`;
|
|
98
|
+
s.value = $, u === y && (s.value = "资源加载完成,正在处理模型...", setTimeout(() => {
|
|
99
99
|
if (r) {
|
|
100
100
|
r.updateMatrixWorld(!0);
|
|
101
101
|
const p = new _e().setFromObject(r);
|
|
@@ -111,10 +111,10 @@ function dt(b, l, t, s) {
|
|
|
111
111
|
}, f.onError = (n) => {
|
|
112
112
|
console.warn(`LoadingManager 报告一个资源加载失败: ${n}。加载流程将继续。`);
|
|
113
113
|
};
|
|
114
|
-
const g = (n, u,
|
|
115
|
-
const
|
|
114
|
+
const g = (n, u, y) => {
|
|
115
|
+
const $ = re(n);
|
|
116
116
|
let p;
|
|
117
|
-
|
|
117
|
+
y && y > 0 ? p = `${$}(${E(u)} / ${E(y)})` : u && u > 0 ? p = `${$}(已下载 ${E(u)})` : p = `${$}`, s.value = `正在下载第 ${_ + 1} / ${j} 个文件: ${p}`;
|
|
118
118
|
};
|
|
119
119
|
try {
|
|
120
120
|
const n = URL.createObjectURL(i);
|
|
@@ -124,12 +124,12 @@ function dt(b, l, t, s) {
|
|
|
124
124
|
onFileProgress: g
|
|
125
125
|
}).load(
|
|
126
126
|
n,
|
|
127
|
-
(
|
|
128
|
-
r =
|
|
127
|
+
(y) => {
|
|
128
|
+
r = y;
|
|
129
129
|
},
|
|
130
130
|
void 0,
|
|
131
|
-
(
|
|
132
|
-
console.error(`加载 URDF 文件 (${i.name}) 时发生致命错误:`,
|
|
131
|
+
(y) => {
|
|
132
|
+
console.error(`加载 URDF 文件 (${i.name}) 时发生致命错误:`, y), s.value = "URDF 文件解析失败", t.value = !1, v(new Error(`加载 URDF 文件失败: ${i.name}`));
|
|
133
133
|
}
|
|
134
134
|
);
|
|
135
135
|
} catch (n) {
|
|
@@ -139,13 +139,13 @@ function dt(b, l, t, s) {
|
|
|
139
139
|
}
|
|
140
140
|
function mt(b, l, t, s = ["URDFVisual"]) {
|
|
141
141
|
let m = null;
|
|
142
|
-
const i = V(null), h = new ge(), v = new
|
|
142
|
+
const i = V(null), h = new ge(), v = new ye(), j = /* @__PURE__ */ new Map();
|
|
143
143
|
function _() {
|
|
144
144
|
t.value.forEach((p) => {
|
|
145
145
|
p.traverse((d) => {
|
|
146
|
-
s != null && s.includes(d.type) &&
|
|
146
|
+
s != null && s.includes(d.type) && j.set(d.id, {
|
|
147
147
|
obj: d,
|
|
148
|
-
axis: d.axis || new
|
|
148
|
+
axis: d.axis || new je(1, 0, 0),
|
|
149
149
|
// URDF 里的 <axis>
|
|
150
150
|
limits: d.limits
|
|
151
151
|
});
|
|
@@ -168,8 +168,8 @@ function mt(b, l, t, s = ["URDFVisual"]) {
|
|
|
168
168
|
if (e.length === 0) return;
|
|
169
169
|
let o = e[0].object, w = null;
|
|
170
170
|
for (; o; ) {
|
|
171
|
-
if (
|
|
172
|
-
w =
|
|
171
|
+
if (j.has(o.id)) {
|
|
172
|
+
w = j.get(o.id);
|
|
173
173
|
break;
|
|
174
174
|
}
|
|
175
175
|
o = o.parent;
|
|
@@ -186,12 +186,12 @@ function mt(b, l, t, s = ["URDFVisual"]) {
|
|
|
186
186
|
function u(p) {
|
|
187
187
|
i.value && (i.value.obj.visible = p);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function y(p) {
|
|
190
190
|
var o;
|
|
191
191
|
const { axis: d, value: e } = p;
|
|
192
|
-
|
|
192
|
+
Ue((o = i.value) == null ? void 0 : o.obj, d, e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function $(p) {
|
|
195
195
|
var o;
|
|
196
196
|
const { axis: d, value: e } = p;
|
|
197
197
|
Re((o = i.value) == null ? void 0 : o.obj, d, e);
|
|
@@ -201,14 +201,14 @@ function mt(b, l, t, s = ["URDFVisual"]) {
|
|
|
201
201
|
dispose: g,
|
|
202
202
|
selectedObject3D: i,
|
|
203
203
|
setSelectedObjVisible: u,
|
|
204
|
-
updatePosition:
|
|
205
|
-
updateRotation:
|
|
204
|
+
updatePosition: y,
|
|
205
|
+
updateRotation: $
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
class vt {
|
|
209
209
|
constructor(l) {
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
J(this, "robot");
|
|
211
|
+
J(this, "movableJoints");
|
|
212
212
|
this.robot = l, this.movableJoints = this.getMovableJoints();
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
@@ -279,7 +279,7 @@ class vt {
|
|
|
279
279
|
const m = this.getCurrentJointStates(), i = Date.now();
|
|
280
280
|
return new Promise((h) => {
|
|
281
281
|
const v = () => {
|
|
282
|
-
const
|
|
282
|
+
const j = Date.now() - i, _ = Math.min(j / t, 1), r = this.easeInOutCubic(_), f = {};
|
|
283
283
|
Object.keys(l).forEach((g) => {
|
|
284
284
|
const n = m[g] || 0, u = l[g];
|
|
285
285
|
f[g] = n + (u - n) * r;
|
|
@@ -304,10 +304,10 @@ class vt {
|
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
308
308
|
key: 0,
|
|
309
309
|
class: "obj-base"
|
|
310
|
-
}, xe = ["title"],
|
|
310
|
+
}, xe = ["title"], Te = ["title"], ke = { key: 1 }, Ve = { class: "obj-position" }, ze = { class: "coord-item" }, Pe = { class: "coord-item" }, Ae = { class: "coord-item" }, Ie = { class: "obj-rotation" }, Be = { class: "coord-item" }, Ne = { class: "coord-item" }, We = { class: "coord-item" }, qe = { class: "world" }, Xe = { class: "coord-line" }, Ye = { class: "coord-text" }, Ze = { class: "world-position-item" }, Ke = { class: "world-position-item" }, Ge = { class: "world-position-item" }, He = { class: "coord-line" }, Qe = { class: "coord-text" }, et = { class: "world-rotation-item" }, tt = { class: "world-rotation-item" }, ot = { class: "world-rotation-item" }, st = /* @__PURE__ */ Le({
|
|
311
311
|
__name: "workpieceTreePanel",
|
|
312
312
|
props: {
|
|
313
313
|
model: {},
|
|
@@ -346,7 +346,7 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
346
346
|
limit: (e == null ? void 0 : e.limit) ?? "",
|
|
347
347
|
children: h(e == null ? void 0 : e.children, 1),
|
|
348
348
|
path: e == null ? void 0 : e.name
|
|
349
|
-
}] : [],
|
|
349
|
+
}] : [], j = (e, o) => {
|
|
350
350
|
const w = [], a = [...e];
|
|
351
351
|
for (; a.length > 0 && w.length < o; ) {
|
|
352
352
|
const L = a.shift();
|
|
@@ -363,7 +363,7 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
363
363
|
}
|
|
364
364
|
}), w.slice(0, o + 1);
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
M(() => !m.value || m.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? _(m.value, t.maxExpandCount) : j(m.value, t.maxExpandCount));
|
|
367
367
|
const r = (e) => e ? parseFloat(e.toFixed(3)) : 0, f = (e) => e ? parseFloat(e.toFixed(1)) : 0, g = (e, o) => {
|
|
368
368
|
s("updatePosition", {
|
|
369
369
|
obj: t.model,
|
|
@@ -378,56 +378,56 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
378
378
|
});
|
|
379
379
|
}, u = (e) => {
|
|
380
380
|
s("visibleChange", e);
|
|
381
|
-
},
|
|
381
|
+
}, y = M(() => t != null && t.model ? v(t.model) : []), $ = M(() => {
|
|
382
382
|
var e, o;
|
|
383
383
|
return ((e = t == null ? void 0 : t.model) == null ? void 0 : e.name) || ((o = t == null ? void 0 : t.model) == null ? void 0 : o.type);
|
|
384
|
-
}), p =
|
|
384
|
+
}), p = M(() => {
|
|
385
385
|
var e;
|
|
386
386
|
return (e = t == null ? void 0 : t.model) == null ? void 0 : e.type;
|
|
387
|
-
}), d =
|
|
387
|
+
}), d = M(() => {
|
|
388
388
|
var e;
|
|
389
389
|
return (e = t == null ? void 0 : t.model) == null ? void 0 : e.visible;
|
|
390
390
|
});
|
|
391
391
|
return ue(() => t.model, () => {
|
|
392
|
-
t.model && (i.value =
|
|
392
|
+
t.model && (i.value = $e(t.model));
|
|
393
393
|
}, {
|
|
394
394
|
deep: !0,
|
|
395
395
|
immediate: !0
|
|
396
396
|
}), ue(
|
|
397
|
-
|
|
397
|
+
y,
|
|
398
398
|
(e) => {
|
|
399
399
|
m.value = JSON.parse(JSON.stringify(e));
|
|
400
400
|
},
|
|
401
401
|
{ immediate: !0 }
|
|
402
402
|
), (e, o) => {
|
|
403
|
-
var S, z, P, A, I, B, N, W, q,
|
|
403
|
+
var S, z, P, A, I, B, N, W, q, X, Y, Z, K, G, H, Q, ee, te, oe, se, ie, le, ae, ne;
|
|
404
404
|
const w = x("el-divider"), a = x("el-switch"), L = x("el-input-number");
|
|
405
|
-
return
|
|
406
|
-
|
|
407
|
-
default:
|
|
405
|
+
return k(), T("div", Je, [
|
|
406
|
+
U(w, null, {
|
|
407
|
+
default: F(() => o[6] || (o[6] = [
|
|
408
408
|
D("对象")
|
|
409
409
|
])),
|
|
410
410
|
_: 1,
|
|
411
411
|
__: [6]
|
|
412
412
|
}),
|
|
413
|
-
c("div",
|
|
414
|
-
t.model ? (
|
|
413
|
+
c("div", Oe, [
|
|
414
|
+
t.model ? (k(), T("div", Ee, [
|
|
415
415
|
c("div", {
|
|
416
416
|
class: "obj-name",
|
|
417
|
-
title:
|
|
418
|
-
}, C(
|
|
417
|
+
title: $.value
|
|
418
|
+
}, C($.value), 9, xe),
|
|
419
419
|
c("div", {
|
|
420
420
|
class: "obj-type",
|
|
421
421
|
title: p.value
|
|
422
|
-
}, "[" + C(p.value) + "]", 9,
|
|
423
|
-
])) : (
|
|
424
|
-
|
|
422
|
+
}, "[" + C(p.value) + "]", 9, Te)
|
|
423
|
+
])) : (k(), T("div", ke, "空")),
|
|
424
|
+
U(a, {
|
|
425
425
|
"model-value": d.value,
|
|
426
426
|
onChange: u
|
|
427
427
|
}, null, 8, ["model-value"])
|
|
428
428
|
]),
|
|
429
|
-
|
|
430
|
-
default:
|
|
429
|
+
U(w, null, {
|
|
430
|
+
default: F(() => o[7] || (o[7] = [
|
|
431
431
|
D("相对位置")
|
|
432
432
|
])),
|
|
433
433
|
_: 1,
|
|
@@ -436,7 +436,7 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
436
436
|
c("div", Ve, [
|
|
437
437
|
c("div", ze, [
|
|
438
438
|
o[8] || (o[8] = c("span", { class: "axis-label" }, "X", -1)),
|
|
439
|
-
|
|
439
|
+
U(L, {
|
|
440
440
|
"model-value": r((z = (S = i.value) == null ? void 0 : S.position) == null ? void 0 : z.x),
|
|
441
441
|
onChange: o[0] || (o[0] = (R) => g(R, "x")),
|
|
442
442
|
size: "small",
|
|
@@ -449,7 +449,7 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
449
449
|
]),
|
|
450
450
|
c("div", Pe, [
|
|
451
451
|
o[9] || (o[9] = c("span", { class: "axis-label" }, "Y", -1)),
|
|
452
|
-
|
|
452
|
+
U(L, {
|
|
453
453
|
"model-value": r((A = (P = i.value) == null ? void 0 : P.position) == null ? void 0 : A.y),
|
|
454
454
|
onChange: o[1] || (o[1] = (R) => g(R, "y")),
|
|
455
455
|
size: "small",
|
|
@@ -462,7 +462,7 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
462
462
|
]),
|
|
463
463
|
c("div", Ae, [
|
|
464
464
|
o[10] || (o[10] = c("span", { class: "axis-label" }, "Z", -1)),
|
|
465
|
-
|
|
465
|
+
U(L, {
|
|
466
466
|
"model-value": r((B = (I = i.value) == null ? void 0 : I.position) == null ? void 0 : B.z),
|
|
467
467
|
onChange: o[2] || (o[2] = (R) => g(R, "z")),
|
|
468
468
|
size: "small",
|
|
@@ -474,8 +474,8 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
474
474
|
}, null, 8, ["model-value"])
|
|
475
475
|
])
|
|
476
476
|
]),
|
|
477
|
-
|
|
478
|
-
default:
|
|
477
|
+
U(w, null, {
|
|
478
|
+
default: F(() => o[11] || (o[11] = [
|
|
479
479
|
D("相对旋转")
|
|
480
480
|
])),
|
|
481
481
|
_: 1,
|
|
@@ -484,7 +484,7 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
484
484
|
c("div", Ie, [
|
|
485
485
|
c("div", Be, [
|
|
486
486
|
o[12] || (o[12] = c("span", { class: "axis-label" }, "X°", -1)),
|
|
487
|
-
|
|
487
|
+
U(L, {
|
|
488
488
|
"model-value": f((W = (N = i.value) == null ? void 0 : N.rotation) == null ? void 0 : W.x),
|
|
489
489
|
onChange: o[3] || (o[3] = (R) => n(R, "x")),
|
|
490
490
|
size: "small",
|
|
@@ -497,8 +497,8 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
497
497
|
]),
|
|
498
498
|
c("div", Ne, [
|
|
499
499
|
o[13] || (o[13] = c("span", { class: "axis-label" }, "Y°", -1)),
|
|
500
|
-
|
|
501
|
-
"model-value": f((
|
|
500
|
+
U(L, {
|
|
501
|
+
"model-value": f((X = (q = i.value) == null ? void 0 : q.rotation) == null ? void 0 : X.y),
|
|
502
502
|
onChange: o[4] || (o[4] = (R) => n(R, "y")),
|
|
503
503
|
size: "small",
|
|
504
504
|
class: "coord-input-compact",
|
|
@@ -510,8 +510,8 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
510
510
|
]),
|
|
511
511
|
c("div", We, [
|
|
512
512
|
o[14] || (o[14] = c("span", { class: "axis-label" }, "Z°", -1)),
|
|
513
|
-
|
|
514
|
-
"model-value": f((
|
|
513
|
+
U(L, {
|
|
514
|
+
"model-value": f((Z = (Y = i.value) == null ? void 0 : Y.rotation) == null ? void 0 : Z.z),
|
|
515
515
|
onChange: o[5] || (o[5] = (R) => n(R, "z")),
|
|
516
516
|
size: "small",
|
|
517
517
|
class: "coord-input-compact",
|
|
@@ -522,20 +522,20 @@ const Ee = { class: "panel-content" }, Je = { class: "obj" }, Oe = {
|
|
|
522
522
|
}, null, 8, ["model-value"])
|
|
523
523
|
])
|
|
524
524
|
]),
|
|
525
|
-
|
|
526
|
-
default:
|
|
525
|
+
U(w, null, {
|
|
526
|
+
default: F(() => o[15] || (o[15] = [
|
|
527
527
|
D("世界信息")
|
|
528
528
|
])),
|
|
529
529
|
_: 1,
|
|
530
530
|
__: [15]
|
|
531
531
|
}),
|
|
532
532
|
c("div", qe, [
|
|
533
|
-
c("div",
|
|
533
|
+
c("div", Xe, [
|
|
534
534
|
o[16] || (o[16] = c("span", { class: "coord-label" }, "世界位置:", -1)),
|
|
535
|
-
c("span",
|
|
536
|
-
c("div",
|
|
537
|
-
c("div",
|
|
538
|
-
c("div",
|
|
535
|
+
c("span", Ye, [
|
|
536
|
+
c("div", Ze, C(r((G = (K = i.value) == null ? void 0 : K.worldPosition) == null ? void 0 : G.x)) + ", ", 1),
|
|
537
|
+
c("div", Ke, C(r((Q = (H = i.value) == null ? void 0 : H.worldPosition) == null ? void 0 : Q.y)) + ", ", 1),
|
|
538
|
+
c("div", Ge, C(r((te = (ee = i.value) == null ? void 0 : ee.worldPosition) == null ? void 0 : te.z)), 1)
|
|
539
539
|
])
|
|
540
540
|
]),
|
|
541
541
|
c("div", He, [
|