ss-component-new 1.3.614 → 1.3.615
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/JSEncrypt-B36c1iN5.js +1983 -0
- package/dist/{MTLLoader-B6ottYFV.js → MTLLoader-BL2uYkTJ.js} +2 -2
- package/dist/{OrbitControls-BFVKU7s-.js → OrbitControls-Zyj23qrC.js} +1 -1
- package/dist/{URDFLoader-CH-7Pzmq.js → URDFLoader-CRx5L75v.js} +584 -589
- package/dist/{animationData-F0z3GN7j.js → animationData-CJQE6_nu.js} +3 -3
- package/dist/{array-DZZ1aQEC.js → array-CKTk7Sq_.js} +14 -13
- package/dist/{clone-MyfSNInd.js → clone-ESeDvnJv.js} +1 -1
- package/dist/{eleIcon-BoKZ_PzU.js → eleIcon-C7Pz9jha.js} +2 -2
- package/dist/{iconfont-BJYdStg5.js → iconfont-DZGSkx-_.js} +247 -396
- package/dist/{index-CbFYfzNE.js → index--FPbFJB2.js} +6 -6
- package/dist/{index-DJrzqi4-.js → index-11kpzK0A.js} +17 -17
- package/dist/{index-BvtOLltL.js → index-B0M1YCUY.js} +7 -7
- package/dist/{index-aTEfnfYn.js → index-BA1kJZth.js} +40 -36
- package/dist/{index-CT1LWsrT.js → index-BBBCr4Oo.js} +2 -2
- package/dist/{index-dD-mKgue.js → index-BHtNKL1L.js} +2 -2
- package/dist/{index-CznUP1Ek.js → index-BJFXtH-X.js} +3 -3
- package/dist/{index-DcPtyCDm.js → index-BUqviBFi.js} +35 -29
- package/dist/{index-B2LYEScO.js → index-BXh02EAd.js} +4 -4
- package/dist/{index-CkO7j_i1.js → index-B_fRppeJ.js} +8 -8
- package/dist/index-BmaW6Me9.js +572 -0
- package/dist/{index-6qXeMn6b.js → index-BvkIoiVW.js} +3 -3
- package/dist/{index-DIVct0z6.js → index-C3pboX9W.js} +5 -5
- package/dist/{index-BkkvdZXm.js → index-CPW7tdrA.js} +20 -17
- package/dist/{index-CXqqIuf-.js → index-CTicGWoS.js} +3 -3
- package/dist/{index-BybrpYzx.js → index-CX8Apbo7.js} +1 -1
- package/dist/{index-DI44qg1B.js → index-Cn33Gz2z.js} +616 -587
- package/dist/{index-DmILGKv9.js → index-D1E8EPxn.js} +61 -57
- package/dist/{index-B8NQAdR4.js → index-D8UY4uNQ.js} +967 -966
- package/dist/{index-CYjsE5Gs.js → index-D9xMYIes.js} +3 -3
- package/dist/{index-C6H6VzYm.js → index-DAs4L0hx.js} +6436 -6878
- package/dist/{index-IT-HvgkV.js → index-Dd-8nw2f.js} +20 -18
- package/dist/{index-pMtaHLbt.js → index-DjSJhlad.js} +62 -60
- package/dist/{index-hg0CdgKe.js → index-DkumSU1-.js} +4 -4
- package/dist/{index-CvZcm-Tt.js → index-DlQXFCw8.js} +8 -7
- package/dist/{index-BvyM6d06.js → index-DsdWSuDi.js} +483 -482
- package/dist/{index-DCY5J8nu.js → index-XvX6TMzr.js} +1 -1
- package/dist/{index-B4NcYIuS.js → index-YvUJL9Us.js} +1 -1
- package/dist/{index-BskHs38T.js → index-cYgzND1g.js} +8594 -8615
- package/dist/{index-BFS4iFyT.js → index-gXFBfuoD.js} +8 -8
- package/dist/{index-TgVsU-aK.js → index-obXIOkF7.js} +4 -4
- package/dist/{index-BFqUz4pN.js → index-rlStojTL.js} +1 -1
- package/dist/{index-DEbrqw2f.js → index-t9LvhXac.js} +5 -5
- package/dist/{index-CM6aWexA.js → index-tMqKF2l6.js} +2 -2
- package/dist/{index-BCb4e7gH.js → index-tniD_xHN.js} +157 -148
- package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-Dp7tIi0S.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-X_k372gl.js} +27735 -27760
- package/dist/isString-BlNsHiyU.js +8 -0
- package/dist/{localIcon-CoJHw5ss.js → localIcon-D5UoFBU5.js} +1 -1
- package/dist/{main-DMRXk1rO.js → main-DgwLoFSd.js} +9 -9
- package/dist/{menuIndex-BiUB7t5q.js → menuIndex-DAW9B-9g.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/{request-BfrhYBTM.js → request-B1c8BUkR.js} +3075 -3493
- package/dist/ss-component.css +3 -3
- package/dist/ss-component.js +14 -14
- package/dist/ss-component2.js +13 -13
- package/dist/ss-component3.js +1 -1
- package/dist/svgIcon-4u4PW7Is.js +42 -0
- package/dist/{threeModel-gP4XEBBx.js → threeModel-Df46gQvy.js} +174 -174
- package/dist/{threePreview-CpcrqmFS.js → threePreview-C4Ra7sjU.js} +554 -554
- package/dist/threeSceneView-tLPMhgrS.js +1291 -0
- package/dist/{threeSceneViewForCPMPIP-DuORHSj3.js → threeSceneViewForCPMPIP-DZ5wkTWo.js} +208 -207
- package/dist/{threeTrackPathView-Bw6e-quT.js → threeTrackPathView-DT80eKxv.js} +25 -25
- package/dist/{threeViewerHost-BPdmCSow.js → threeViewerHost-t6BRTmw8.js} +4 -4
- package/dist/urdfTree-Bu7OVUsr.js +404 -0
- package/dist/{workpieceTreePanel-XH9mYAT2.js → workpieceTreePanel-CuXFoEjJ.js} +60 -56
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BmHnPjUq.js +0 -2623
- package/dist/isString-Dxm3W5iX.js +0 -8
- package/dist/svgIcon-4m2zaZkj.js +0 -42
- package/dist/threeSceneView-CWlU0pao.js +0 -1290
- package/dist/urdfTree-DU02c_91.js +0 -254
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, ref as F, watch as M, onMounted as C, onUnmounted as E, openBlock as m, createElementBlock as f, Fragment as P, renderList as T, createElementVNode as d, toDisplayString as h, createCommentVNode as U, computed as L, resolveComponent as S, createVNode as A } from "vue";
|
|
2
|
-
import { h as V } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-Dp7tIi0S.js";
|
|
3
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const D = (i, a) => {
|
|
5
|
-
if (!a)
|
|
6
|
-
return null;
|
|
7
|
-
const l = i.joints[a];
|
|
8
|
-
return l || null;
|
|
9
|
-
}, ae = (i, a) => {
|
|
10
|
-
if (!a)
|
|
11
|
-
return null;
|
|
12
|
-
const l = D(i, a);
|
|
13
|
-
if (!l)
|
|
14
|
-
return null;
|
|
15
|
-
let o = null;
|
|
16
|
-
return l.traverse((u) => {
|
|
17
|
-
u instanceof V && !o && (o = u);
|
|
18
|
-
}), o;
|
|
19
|
-
}, N = (i, a) => {
|
|
20
|
-
if (!a)
|
|
21
|
-
return null;
|
|
22
|
-
const l = i.links[a];
|
|
23
|
-
return l || null;
|
|
24
|
-
}, ie = (i, a) => {
|
|
25
|
-
if (!a)
|
|
26
|
-
return null;
|
|
27
|
-
const l = N(i, a);
|
|
28
|
-
if (!l)
|
|
29
|
-
return null;
|
|
30
|
-
let o = null;
|
|
31
|
-
return l.traverse((u) => {
|
|
32
|
-
u instanceof V && !o && (o = u);
|
|
33
|
-
}), o;
|
|
34
|
-
}, w = (i) => {
|
|
35
|
-
const a = i.joints;
|
|
36
|
-
return Object.values(a);
|
|
37
|
-
}, oe = (i) => w(i).filter((o) => o.jointType !== "fixed"), ue = (i) => {
|
|
38
|
-
const a = i.links;
|
|
39
|
-
return Object.keys(a);
|
|
40
|
-
}, R = { class: "panel-content" }, O = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "joints-list"
|
|
43
|
-
}, K = { class: "joint-info-row" }, B = { class: "joint-left" }, q = { class: "joint-name" }, $ = { class: "joint-range" }, z = { class: "joint-type" }, G = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "joint-control-row"
|
|
46
|
-
}, H = { class: "slider-container" }, Q = ["min", "max", "value", "onInput"], W = { class: "value-display" }, X = { class: "joint-value" }, Y = { class: "unit" }, Z = {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: "empty-state"
|
|
49
|
-
}, j = /* @__PURE__ */ I({
|
|
50
|
-
__name: "urdfJointPanel",
|
|
51
|
-
props: {
|
|
52
|
-
model: {}
|
|
53
|
-
},
|
|
54
|
-
setup(i, { expose: a }) {
|
|
55
|
-
const l = i, o = F([]), u = F(null), _ = (n, e = !1) => n === "revolute" ? e ? Math.PI : -Math.PI : n === "prismatic" ? e ? 1 : -1 : 0, y = (n) => {
|
|
56
|
-
if (!n || !n.joints)
|
|
57
|
-
return console.warn("URDF模型无效或不包含关节信息"), [];
|
|
58
|
-
const e = [];
|
|
59
|
-
return w(n).forEach((r) => {
|
|
60
|
-
var c, p;
|
|
61
|
-
if (r.jointType === "fixed")
|
|
62
|
-
return;
|
|
63
|
-
let t = {
|
|
64
|
-
lower: ((c = r.limit) == null ? void 0 : c.lower) ?? _(r.jointType, !1),
|
|
65
|
-
upper: ((p = r.limit) == null ? void 0 : p.upper) ?? _(r.jointType, !0)
|
|
66
|
-
};
|
|
67
|
-
r.jointType === "continuous" && (t = {
|
|
68
|
-
lower: -10 * Math.PI,
|
|
69
|
-
upper: 10 * Math.PI
|
|
70
|
-
}), e.push({
|
|
71
|
-
name: r.name,
|
|
72
|
-
type: r.jointType || "unknown",
|
|
73
|
-
limit: t,
|
|
74
|
-
currentValue: r.angle || 0,
|
|
75
|
-
urdfJoint: r
|
|
76
|
-
});
|
|
77
|
-
}), e;
|
|
78
|
-
}, v = (n, e) => {
|
|
79
|
-
var c;
|
|
80
|
-
const s = o.value.find((p) => p.name === n);
|
|
81
|
-
if (!s) return;
|
|
82
|
-
const r = parseFloat(e), t = Math.max(s.limit.lower, Math.min(s.limit.upper, r));
|
|
83
|
-
s.currentValue = t, (c = l.model) != null && c.setJointValue ? l.model.setJointValue(n, t) : s.urdfJoint.setJointValue(t);
|
|
84
|
-
}, g = () => {
|
|
85
|
-
o.value.forEach((n) => {
|
|
86
|
-
(n.type === "revolute" || n.type === "continuous" || n.type === "prismatic") && v(n.name, 0);
|
|
87
|
-
});
|
|
88
|
-
}, J = () => {
|
|
89
|
-
l.model && o.value.forEach((n) => {
|
|
90
|
-
n.urdfJoint.angle !== void 0 && n.currentValue !== n.urdfJoint.angle && (n.currentValue = n.urdfJoint.angle);
|
|
91
|
-
});
|
|
92
|
-
}, x = () => {
|
|
93
|
-
const n = () => {
|
|
94
|
-
J(), u.value = requestAnimationFrame(n);
|
|
95
|
-
};
|
|
96
|
-
n();
|
|
97
|
-
}, k = () => {
|
|
98
|
-
u.value && (cancelAnimationFrame(u.value), u.value = null);
|
|
99
|
-
};
|
|
100
|
-
return M(
|
|
101
|
-
() => l.model,
|
|
102
|
-
(n) => {
|
|
103
|
-
n ? o.value = y(n) : o.value = [];
|
|
104
|
-
},
|
|
105
|
-
{ immediate: !0 }
|
|
106
|
-
), C(() => {
|
|
107
|
-
x();
|
|
108
|
-
}), E(() => {
|
|
109
|
-
k();
|
|
110
|
-
}), a({
|
|
111
|
-
resetAllJoints: g
|
|
112
|
-
}), (n, e) => (m(), f("div", R, [
|
|
113
|
-
o.value.length > 0 ? (m(), f("div", O, [
|
|
114
|
-
(m(!0), f(P, null, T(o.value, (s) => (m(), f("div", {
|
|
115
|
-
key: s.name,
|
|
116
|
-
class: "joint-item"
|
|
117
|
-
}, [
|
|
118
|
-
d("div", K, [
|
|
119
|
-
d("div", B, [
|
|
120
|
-
d("span", q, h(s.name), 1),
|
|
121
|
-
d("span", $, " [" + h(s.limit.lower.toFixed(2)) + ", " + h(s.limit.upper.toFixed(2)) + "] ", 1)
|
|
122
|
-
]),
|
|
123
|
-
d("span", z, h(s.type), 1)
|
|
124
|
-
]),
|
|
125
|
-
s.type === "revolute" || s.type === "prismatic" || s.type === "continuous" ? (m(), f("div", G, [
|
|
126
|
-
d("div", H, [
|
|
127
|
-
d("input", {
|
|
128
|
-
type: "range",
|
|
129
|
-
min: s.limit.lower,
|
|
130
|
-
max: s.limit.upper,
|
|
131
|
-
step: "0.001",
|
|
132
|
-
value: s.currentValue,
|
|
133
|
-
onInput: (r) => v(s.name, r.target.value),
|
|
134
|
-
class: "joint-slider"
|
|
135
|
-
}, null, 40, Q)
|
|
136
|
-
]),
|
|
137
|
-
d("div", W, [
|
|
138
|
-
d("span", X, h(s.currentValue ? Number(s.currentValue).toFixed(3) : "0.000"), 1),
|
|
139
|
-
d("span", Y, h(s.type === "prismatic" ? "m" : "rad"), 1)
|
|
140
|
-
])
|
|
141
|
-
])) : U("", !0)
|
|
142
|
-
]))), 128))
|
|
143
|
-
])) : (m(), f("div", Z, [...e[0] || (e[0] = [
|
|
144
|
-
d("p", null, "未检测到可控制的关节", -1)
|
|
145
|
-
])]))
|
|
146
|
-
]));
|
|
147
|
-
}
|
|
148
|
-
}), ce = /* @__PURE__ */ b(j, [["__scopeId", "data-v-b1467983"]]), ee = { class: "panel-content" }, te = "id", se = {
|
|
149
|
-
__name: "urdfTree",
|
|
150
|
-
props: {
|
|
151
|
-
model: Object,
|
|
152
|
-
maxExpandCount: {
|
|
153
|
-
type: Number,
|
|
154
|
-
default: 10
|
|
155
|
-
},
|
|
156
|
-
expandStrategy: {
|
|
157
|
-
type: String,
|
|
158
|
-
default: "breadth",
|
|
159
|
-
validator: (i) => ["breadth", "firstLevel"].includes(i)
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
emits: ["nodeClick"],
|
|
163
|
-
setup(i, { emit: a }) {
|
|
164
|
-
const l = i, o = a, u = F([]), _ = {
|
|
165
|
-
children: "children",
|
|
166
|
-
label: "label"
|
|
167
|
-
}, y = (e) => {
|
|
168
|
-
o("nodeClick", e);
|
|
169
|
-
}, v = (e, s = 0) => {
|
|
170
|
-
const r = [];
|
|
171
|
-
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 && e.forEach((t) => {
|
|
172
|
-
if (!(t != null && t.isMesh) && ((t == null ? void 0 : t.type) === "URDFJoint" || (t == null ? void 0 : t.type) === "URDFLink")) {
|
|
173
|
-
const c = {
|
|
174
|
-
name: t == null ? void 0 : t.name,
|
|
175
|
-
label: t == null ? void 0 : t.name,
|
|
176
|
-
show: !0,
|
|
177
|
-
level: s + 1,
|
|
178
|
-
isPenultimate: !1,
|
|
179
|
-
type: t == null ? void 0 : t.type,
|
|
180
|
-
id: t == null ? void 0 : t.id,
|
|
181
|
-
limit: (t == null ? void 0 : t.limit) ?? "",
|
|
182
|
-
children: v(t == null ? void 0 : t.children, s + 1),
|
|
183
|
-
path: t == null ? void 0 : t.name
|
|
184
|
-
};
|
|
185
|
-
r.push(c);
|
|
186
|
-
}
|
|
187
|
-
}), r;
|
|
188
|
-
}, g = (e) => e ? [{
|
|
189
|
-
name: e == null ? void 0 : e.name,
|
|
190
|
-
label: e == null ? void 0 : e.name,
|
|
191
|
-
show: !0,
|
|
192
|
-
level: 1,
|
|
193
|
-
isPenultimate: !1,
|
|
194
|
-
type: e == null ? void 0 : e.type,
|
|
195
|
-
id: e == null ? void 0 : e.id,
|
|
196
|
-
limit: (e == null ? void 0 : e.limit) ?? "",
|
|
197
|
-
children: v(e == null ? void 0 : e.children, 1) || [],
|
|
198
|
-
path: e == null ? void 0 : e.name
|
|
199
|
-
}] : [], J = (e, s) => {
|
|
200
|
-
const r = [], t = [...e];
|
|
201
|
-
for (; t.length > 0 && r.length < s; ) {
|
|
202
|
-
const c = t.shift();
|
|
203
|
-
c.children && c.children.length > 0 && (r.push(c.id), t.push(...c.children));
|
|
204
|
-
}
|
|
205
|
-
return r;
|
|
206
|
-
}, x = (e, s) => {
|
|
207
|
-
const r = [];
|
|
208
|
-
return e.forEach((t) => {
|
|
209
|
-
if (t.children && t.children.length > 0) {
|
|
210
|
-
r.push(t.id);
|
|
211
|
-
const c = t.children.filter((p) => p.children && p.children.length > 0).slice(0, s).map((p) => p.id);
|
|
212
|
-
r.push(...c);
|
|
213
|
-
}
|
|
214
|
-
}), r.slice(0, s + 1);
|
|
215
|
-
}, k = L(() => !u.value || u.value.length === 0 ? [] : l.expandStrategy === "firstLevel" ? x(u.value, l.maxExpandCount) : J(u.value, l.maxExpandCount)), n = L(() => [{
|
|
216
|
-
name: "场景",
|
|
217
|
-
label: "场景",
|
|
218
|
-
show: !0,
|
|
219
|
-
level: 1,
|
|
220
|
-
isPenultimate: !1,
|
|
221
|
-
type: "场景",
|
|
222
|
-
id: "场景",
|
|
223
|
-
children: l != null && l.model ? g(l.model) : [],
|
|
224
|
-
path: "场景"
|
|
225
|
-
}]);
|
|
226
|
-
return M(
|
|
227
|
-
n,
|
|
228
|
-
(e) => {
|
|
229
|
-
u.value = JSON.parse(JSON.stringify(e));
|
|
230
|
-
},
|
|
231
|
-
{ immediate: !0 }
|
|
232
|
-
), (e, s) => {
|
|
233
|
-
const r = S("el-tree");
|
|
234
|
-
return m(), f("div", ee, [
|
|
235
|
-
A(r, {
|
|
236
|
-
data: u.value,
|
|
237
|
-
props: _,
|
|
238
|
-
"default-expanded-keys": k.value,
|
|
239
|
-
"node-key": te,
|
|
240
|
-
onNodeClick: y
|
|
241
|
-
}, null, 8, ["data", "default-expanded-keys"])
|
|
242
|
-
]);
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
}, de = /* @__PURE__ */ b(se, [["__scopeId", "data-v-cfde50c3"]]);
|
|
246
|
-
export {
|
|
247
|
-
ce as J,
|
|
248
|
-
de as U,
|
|
249
|
-
ae as a,
|
|
250
|
-
ue as b,
|
|
251
|
-
D as c,
|
|
252
|
-
ie as d,
|
|
253
|
-
oe as g
|
|
254
|
-
};
|