ss-component-new 1.3.813 → 1.3.814
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-Cw11TWAL.js → MTLLoader-Cr05Jq1r.js} +1 -1
- package/dist/{URDFLoader-DUzCZjnV.js → URDFLoader-BPUcMfaA.js} +2 -2
- package/dist/{animationData-DwQetFQD.js → animationData-BtDIT0yo.js} +11 -11
- package/dist/{array-COidmpRY.js → array-DedLKtnj.js} +178 -178
- package/dist/{iconfont-Ij2RVNFj.js → iconfont-CHWuGARa.js} +1 -1
- package/dist/{index-KEw10uzh.js → index-4yKtNvgp.js} +1 -1
- package/dist/{index-dh1Gi7jC.js → index-BbSOlGJX.js} +1 -1
- package/dist/{index-CcBUPD0v.js → index-BpSEfABH.js} +3 -3
- package/dist/{index-Cv6rlCAH.js → index-BsScSvsX.js} +19933 -19792
- package/dist/{index-CCZspl83.js → index-CfXO0Pxj.js} +1 -1
- package/dist/{index-DqizREJ2.js → index-ClGtFB-m.js} +1 -1
- package/dist/{index-CXY_sgN_.js → index-CyW60_5F.js} +4 -4
- package/dist/{index-D8-0gsl7.js → index-D5DqBgT9.js} +4 -4
- package/dist/{index-Dsce3BX1.js → index-D8oTYZFq.js} +3 -3
- package/dist/{index-B4kaaRbF.js → index-DEhKdMQM.js} +1567 -1563
- package/dist/{index-Cd11-eam.js → index-DF8T6mYj.js} +7191 -7184
- package/dist/{index-DQryAYzQ.js → index-Uu1cC9bk.js} +1 -1
- package/dist/{index-CaLfl7ix.js → index-aA0s_3Sc.js} +1 -1
- package/dist/{index-ZhT8hVC2.js → index-eCFjxwNX.js} +1 -1
- package/dist/{index-B7P0-Odj.js → index-mXVDZfeY.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js} +30 -30
- package/dist/{main-fNwMqnvv.js → main-DKqsz6KW.js} +2 -2
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BeCT-wuA.js → threeModel-COjNAXHI.js} +49 -49
- package/dist/{threePreview-BnPPysvl.js → threePreview-DbCREqix.js} +1258 -1103
- package/dist/{threeSceneView-C_KAY9V1.js → threeSceneView-Bvx19y--.js} +71 -69
- package/dist/{threeSceneViewForCPMPIP-uac2fzAK.js → threeSceneViewForCPMPIP-DCKUI5B9.js} +7 -7
- package/dist/{threeTrackPathView-Ugj5_KnE.js → threeTrackPathView-Bj3hHKs6.js} +84 -84
- package/dist/{threeViewerHost-Dv0JTTnu.js → threeViewerHost-Orcumk6X.js} +2 -2
- package/dist/{urdfTree-CLtWTrD6.js → urdfTree-DvLm61lR.js} +1 -1
- package/dist/{workpieceTreePanel-Ch75Cqlr.js → workpieceTreePanel-cpqQoDnb.js} +12 -12
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ce, computed as U, ref as k, resolveComponent as E, createElementBlock as ee, openBlock as X, createElementVNode as d, createVNode as p, withCtx as I, toDisplayString as Y, shallowRef as D, watch as Ee, onMounted as Xe, onBeforeUnmount as Ye, withDirectives as N, createCommentVNode as S, unref as A, renderSlot as
|
|
2
|
-
import { u as De, a as Ne, b as Ze, T as w, C as Be, f as Ie, d as re } from "./iconfont-
|
|
3
|
-
import { C as O, h as Oe,
|
|
1
|
+
import { defineComponent as ce, computed as U, ref as k, resolveComponent as E, createElementBlock as ee, openBlock as X, createElementVNode as d, createVNode as p, withCtx as I, toDisplayString as Y, shallowRef as D, watch as Ee, onMounted as Xe, onBeforeUnmount as Ye, withDirectives as N, createCommentVNode as S, unref as A, renderSlot as ae, createBlock as le, vShow as Z, nextTick as je } from "vue";
|
|
2
|
+
import { u as De, a as Ne, b as Ze, T as w, C as Be, f as Ie, d as re } from "./iconfont-CHWuGARa.js";
|
|
3
|
+
import { C as O, h as Oe, bb as Ge, t as qe, V as te, u as ue, Y as fe, a2 as Ke, w as We, a1 as Je, _ as Re, $ as He, o as Qe, bc as Se } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
|
|
4
4
|
import "./index-DkDX7FWy.js";
|
|
5
|
-
import { U as et, J as tt } from "./urdfTree-
|
|
5
|
+
import { U as et, J as tt } from "./urdfTree-DvLm61lR.js";
|
|
6
6
|
import { E as B } from "./request-DzUsnuWu.js";
|
|
7
7
|
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { i as nt } from "./isString-DnHHBaRc.js";
|
|
@@ -16,19 +16,19 @@ function ot(e = 0.5, n = 4) {
|
|
|
16
16
|
// ↓ 降金属
|
|
17
17
|
roughness: 0.6
|
|
18
18
|
})
|
|
19
|
-
),
|
|
20
|
-
return o.geometry.translate(0, -
|
|
19
|
+
), i = o.geometry.parameters.height;
|
|
20
|
+
return o.geometry.translate(0, -i / 2, 0), o.rotation.set(-90, 0, 0, "XYZ"), o;
|
|
21
21
|
}
|
|
22
22
|
function st(e, n) {
|
|
23
23
|
e.position.copy(n);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
n.getWorldPosition(
|
|
25
|
+
function it(e, n, o = new O(16711680)) {
|
|
26
|
+
const i = new te();
|
|
27
|
+
n.getWorldPosition(i);
|
|
28
28
|
const l = e.geometry.attributes.position, t = e.geometry.attributes.color, s = new O(55551);
|
|
29
29
|
let r = 1 / 0, f = -1;
|
|
30
30
|
for (let c = 0; c < l.count; c++) {
|
|
31
|
-
const v = new te().fromBufferAttribute(l, c).distanceTo(
|
|
31
|
+
const v = new te().fromBufferAttribute(l, c).distanceTo(i);
|
|
32
32
|
v < r && (r = v, f = c);
|
|
33
33
|
}
|
|
34
34
|
for (let c = 0; c < t.count; c++) s.toArray(t.array, c * 3);
|
|
@@ -39,10 +39,10 @@ function at(e, n, o = new O(16711680)) {
|
|
|
39
39
|
}
|
|
40
40
|
t.needsUpdate = !0;
|
|
41
41
|
}
|
|
42
|
-
function de(e, n, o,
|
|
43
|
-
st(e, n),
|
|
42
|
+
function de(e, n, o, i = new O(16711680)) {
|
|
43
|
+
st(e, n), it(o, e, i);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const at = { class: "panel-content" }, lt = { class: "animation-controls" }, rt = { class: "control-row" }, ct = { class: "control-row" }, ut = { class: "frame-info" }, ft = { class: "control-row" }, vt = /* @__PURE__ */ ce({
|
|
46
46
|
__name: "trackAnimationPanel",
|
|
47
47
|
props: {
|
|
48
48
|
cloud: {},
|
|
@@ -51,7 +51,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
|
|
|
51
51
|
},
|
|
52
52
|
emits: ["getThreeData"],
|
|
53
53
|
setup(e, { expose: n, emit: o }) {
|
|
54
|
-
const
|
|
54
|
+
const i = e, l = U(() => i.vectors), t = k(!1), s = k(0), r = k(100);
|
|
55
55
|
let f = !1;
|
|
56
56
|
const c = (g) => `第 ${g + 1} 帧`, m = (g) => {
|
|
57
57
|
if (g < 0 || g >= l.value.length) {
|
|
@@ -59,7 +59,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
|
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
const y = l.value[g];
|
|
62
|
-
s.value = g, de(
|
|
62
|
+
s.value = g, de(i.knife, y, i.cloud);
|
|
63
63
|
}, v = async () => {
|
|
64
64
|
if (l.value.length === 0) {
|
|
65
65
|
B.error("无法播放动画:无数据");
|
|
@@ -92,7 +92,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
|
|
|
92
92
|
await C(), h();
|
|
93
93
|
} }), (g, y) => {
|
|
94
94
|
const q = E("el-input-number"), K = E("el-form-item"), W = E("el-form"), J = E("el-slider");
|
|
95
|
-
return X(), ee("div",
|
|
95
|
+
return X(), ee("div", at, [
|
|
96
96
|
d("div", lt, [
|
|
97
97
|
d("div", rt, [
|
|
98
98
|
p(W, {
|
|
@@ -146,8 +146,8 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
|
|
|
146
146
|
function mt(e) {
|
|
147
147
|
const n = [];
|
|
148
148
|
return e.forEach((o) => {
|
|
149
|
-
const [
|
|
150
|
-
n.push(+
|
|
149
|
+
const [i, l, t] = o.trim().split(/\s+/);
|
|
150
|
+
n.push(+i, +l, +t);
|
|
151
151
|
}), n;
|
|
152
152
|
}
|
|
153
153
|
function G(e, n, o) {
|
|
@@ -165,12 +165,12 @@ function G(e, n, o) {
|
|
|
165
165
|
}
|
|
166
166
|
function pt(e) {
|
|
167
167
|
const n = [], o = ["X", "Y", "Z"];
|
|
168
|
-
return e.forEach((
|
|
168
|
+
return e.forEach((i) => {
|
|
169
169
|
const l = {
|
|
170
170
|
x: 0,
|
|
171
171
|
y: 0,
|
|
172
172
|
z: 0
|
|
173
|
-
}, t =
|
|
173
|
+
}, t = i.trim();
|
|
174
174
|
if (!t)
|
|
175
175
|
return;
|
|
176
176
|
let s = null, r = "";
|
|
@@ -191,9 +191,9 @@ const ht = (e) => e == null ? void 0 : e.filter((o) => o.includes("=")), gt = (e
|
|
|
191
191
|
};
|
|
192
192
|
function wt(e) {
|
|
193
193
|
const n = Ct(e), o = [];
|
|
194
|
-
return n.forEach((
|
|
194
|
+
return n.forEach((i) => {
|
|
195
195
|
var v, C, P, _, T, h;
|
|
196
|
-
let [l, t, s, r] =
|
|
196
|
+
let [l, t, s, r] = i.trim().split(/\s+/);
|
|
197
197
|
t = (v = t == null ? void 0 : t.trim) == null ? void 0 : v.call(t), s = (C = s == null ? void 0 : s.trim) == null ? void 0 : C.call(s), r = (P = r == null ? void 0 : r.trim) == null ? void 0 : P.call(r);
|
|
198
198
|
const [, f] = (_ = t == null ? void 0 : t.split) == null ? void 0 : _.call(t, "="), [, c] = (T = s == null ? void 0 : s.split) == null ? void 0 : T.call(s, "="), [, m] = (h = r == null ? void 0 : r.split) == null ? void 0 : h.call(r, "=");
|
|
199
199
|
o.push(+f, +c, +m);
|
|
@@ -205,12 +205,12 @@ function Tt(e) {
|
|
|
205
205
|
}
|
|
206
206
|
function zt(e) {
|
|
207
207
|
const n = [], o = /* @__PURE__ */ new Set(["X", "Y", "Z"]);
|
|
208
|
-
return e.forEach((
|
|
208
|
+
return e.forEach((i) => {
|
|
209
209
|
const l = {
|
|
210
210
|
x: 0,
|
|
211
211
|
y: 0,
|
|
212
212
|
z: 0
|
|
213
|
-
}, t =
|
|
213
|
+
}, t = i.trim();
|
|
214
214
|
if (!t)
|
|
215
215
|
return;
|
|
216
216
|
let s = null, r = "";
|
|
@@ -236,16 +236,16 @@ async function Pt(e) {
|
|
|
236
236
|
const n = (l = e == null ? void 0 : e.trim()) == null ? void 0 : l.split(/\r?\n/);
|
|
237
237
|
if (At(e))
|
|
238
238
|
return wt(n);
|
|
239
|
-
const o = n == null ? void 0 : n[0],
|
|
240
|
-
if ((
|
|
239
|
+
const o = n == null ? void 0 : n[0], i = (t = o == null ? void 0 : o.trim()) == null ? void 0 : t.split(/\s+/);
|
|
240
|
+
if ((i == null ? void 0 : i.length) >= 3)
|
|
241
241
|
return mt(n);
|
|
242
|
-
if ((
|
|
242
|
+
if ((i == null ? void 0 : i.length) === 1)
|
|
243
243
|
return pt(n);
|
|
244
244
|
}
|
|
245
245
|
async function xt(e) {
|
|
246
246
|
const n = e.trim().split(/\r?\n/), o = [];
|
|
247
|
-
return n.forEach((
|
|
248
|
-
const l =
|
|
247
|
+
return n.forEach((i) => {
|
|
248
|
+
const l = i.trim().split(/\s+/);
|
|
249
249
|
if (l.length != 3)
|
|
250
250
|
return;
|
|
251
251
|
const [t, s, r] = l;
|
|
@@ -254,8 +254,8 @@ async function xt(e) {
|
|
|
254
254
|
}
|
|
255
255
|
async function Ft(e) {
|
|
256
256
|
const n = e.trim().split(/\r?\n/), o = [];
|
|
257
|
-
return n.forEach((
|
|
258
|
-
const l =
|
|
257
|
+
return n.forEach((i) => {
|
|
258
|
+
const l = i.trim().split(/\s+/);
|
|
259
259
|
if (l.length != 3)
|
|
260
260
|
return;
|
|
261
261
|
const [t, s, r] = l;
|
|
@@ -264,14 +264,14 @@ async function Ft(e) {
|
|
|
264
264
|
}
|
|
265
265
|
async function Mt(e) {
|
|
266
266
|
let n = e.trim().split(/\r?\n/);
|
|
267
|
-
return n = n.filter((
|
|
268
|
-
const l =
|
|
267
|
+
return n = n.filter((i) => {
|
|
268
|
+
const l = i.startsWith("X") || i.startsWith("Y") || i.startsWith("Z"), t = i.startsWith("G") && (i.includes("X") || i.includes("Y") || i.includes("Z")), s = i.startsWith("N") && (i.includes("X") || i.includes("Y") || i.includes("Z"));
|
|
269
269
|
return l || t || s;
|
|
270
270
|
}), zt(n);
|
|
271
271
|
}
|
|
272
272
|
async function Ut(e, n) {
|
|
273
|
-
const { isCyd: o, isUv:
|
|
274
|
-
return
|
|
273
|
+
const { isCyd: o, isUv: i, isCpt: l, isNc: t } = n;
|
|
274
|
+
return i ? Pt(e) : o ? Ft(e) : l ? xt(e) : t ? Mt(e) : [];
|
|
275
275
|
}
|
|
276
276
|
function Lt(e) {
|
|
277
277
|
const n = [];
|
|
@@ -291,19 +291,19 @@ function $t(e) {
|
|
|
291
291
|
function Vt(e, n) {
|
|
292
292
|
if (!n || n.length < 3)
|
|
293
293
|
return;
|
|
294
|
-
const { scene: o, camera:
|
|
295
|
-
if (!o || !
|
|
294
|
+
const { scene: o, camera: i, renderer: l, controls: t } = e();
|
|
295
|
+
if (!o || !i || !l || !t)
|
|
296
296
|
return;
|
|
297
297
|
const s = $t(n);
|
|
298
298
|
return s.name = "轨迹路径", o.add(s), s;
|
|
299
299
|
}
|
|
300
|
-
function Et(e, n, o,
|
|
300
|
+
function Et(e, n, o, i = 4, l = 50) {
|
|
301
301
|
let t = 1 / 0, s = -1 / 0, r = 1 / 0, f = -1 / 0, c = 1 / 0, m = -1 / 0;
|
|
302
302
|
for (let h = 0; h < e.length; h += 3) {
|
|
303
303
|
const L = e[h], g = e[h + 1], y = e[h + 2];
|
|
304
304
|
t = Math.min(t, L), s = Math.max(s, L), r = Math.min(r, g), f = Math.max(f, g), c = Math.min(c, y), m = Math.max(m, y);
|
|
305
305
|
}
|
|
306
|
-
const C = Math.sqrt((s - t) ** 2 + (f - r) ** 2 + (m - c) ** 2) * 0.05, P = Qe.degToRad(n.fov), _ = 2 * Math.tan(P / 2) * l, T = C / _ * o.domElement.height * (
|
|
306
|
+
const C = Math.sqrt((s - t) ** 2 + (f - r) ** 2 + (m - c) ** 2) * 0.05, P = Qe.degToRad(n.fov), _ = 2 * Math.tan(P / 2) * l, T = C / _ * o.domElement.height * (i / 4);
|
|
307
307
|
return Math.min(0.4, T);
|
|
308
308
|
}
|
|
309
309
|
function Xt(e) {
|
|
@@ -315,25 +315,25 @@ function Xt(e) {
|
|
|
315
315
|
for (let t = 0; t < e.length; t += 3)
|
|
316
316
|
o[t] = 0, o[t + 1] = 0.847, o[t + 2] = 1;
|
|
317
317
|
n.setAttribute("color", new Je(o, 3));
|
|
318
|
-
const
|
|
318
|
+
const i = new Re({
|
|
319
319
|
vertexColors: !0,
|
|
320
320
|
size: 0.4,
|
|
321
321
|
// 像素世界单位
|
|
322
322
|
sizeAttenuation: !0
|
|
323
|
-
}), l = new He(n,
|
|
324
|
-
return
|
|
323
|
+
}), l = new He(n, i);
|
|
324
|
+
return i.needsUpdate = !0, l;
|
|
325
325
|
}
|
|
326
326
|
function Yt(e, n) {
|
|
327
327
|
if (!n)
|
|
328
328
|
return;
|
|
329
|
-
const { scene: o, camera:
|
|
330
|
-
if (!o || !
|
|
329
|
+
const { scene: o, camera: i, renderer: l, controls: t } = e();
|
|
330
|
+
if (!o || !i || !l || !t)
|
|
331
331
|
return;
|
|
332
332
|
const s = Xt(n);
|
|
333
333
|
if (!s)
|
|
334
334
|
return;
|
|
335
335
|
s.name = "轨迹路径", o.add(s);
|
|
336
|
-
const r = Et(n,
|
|
336
|
+
const r = Et(n, i, l, 0.1, 50);
|
|
337
337
|
return s.material.size = r, s;
|
|
338
338
|
}
|
|
339
339
|
const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft" }, Nt = { class: "buttonGroup-left" }, Zt = { class: "buttonGroup-right" }, Bt = { class: "buttonGroup-bottom" }, It = { class: "left-panel" }, Ot = { class: "panel-header" }, Gt = { class: "panel-body" }, qt = { class: "right-panel" }, Kt = { class: "panel-header" }, Wt = { class: "panel-body" }, Jt = {
|
|
@@ -347,7 +347,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
347
347
|
trackFileType: {}
|
|
348
348
|
},
|
|
349
349
|
setup(e) {
|
|
350
|
-
const n = e, o = k(null),
|
|
350
|
+
const n = e, o = k(null), i = k(!1), l = k(""), t = k(), s = k(!1), r = k(""), f = k(!1), c = k(""), m = D(null), v = D(null), {
|
|
351
351
|
currentModels: C,
|
|
352
352
|
resetView: P,
|
|
353
353
|
initThreeJS: _,
|
|
@@ -362,12 +362,12 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
362
362
|
zoomOut: J
|
|
363
363
|
} = De(o), { isAnimating: M, toggleAnimation: me, startAnimation: Ht, stopAnimation: pe } = Ne(h, C), { isClipping: he, activeClippingAxis: ne, toggleClipping: ge, updateClippingPlanes: ye } = Ze(h, C), Ce = () => {
|
|
364
364
|
K();
|
|
365
|
-
}, we = (
|
|
366
|
-
ne.value =
|
|
367
|
-
}, R = (
|
|
368
|
-
s.value = !0, r.value =
|
|
369
|
-
}, H = (
|
|
370
|
-
f.value = !0, c.value =
|
|
365
|
+
}, we = (a) => {
|
|
366
|
+
ne.value = a, ye();
|
|
367
|
+
}, R = (a) => {
|
|
368
|
+
s.value = !0, r.value = a, a === "剖面视图" && !he.value && ge();
|
|
369
|
+
}, H = (a) => {
|
|
370
|
+
f.value = !0, c.value = a;
|
|
371
371
|
}, Q = k([]), $ = k([]), ke = U(() => {
|
|
372
372
|
var u;
|
|
373
373
|
return (u = n.trackFileType) == null ? void 0 : u.isUv;
|
|
@@ -381,58 +381,58 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
381
381
|
var u;
|
|
382
382
|
return (u = n.trackFileType) == null ? void 0 : u.isNc;
|
|
383
383
|
}), oe = U(() => {
|
|
384
|
-
const
|
|
385
|
-
return
|
|
384
|
+
const a = n.fileBlobs || [];
|
|
385
|
+
return a == null ? void 0 : a[0];
|
|
386
386
|
});
|
|
387
387
|
let b = D(), F = D();
|
|
388
388
|
const Te = () => {
|
|
389
|
-
const { scene:
|
|
390
|
-
b.value &&
|
|
389
|
+
const { scene: a } = h();
|
|
390
|
+
b.value && a && (re(b.value, a), b.value = null);
|
|
391
391
|
}, ze = () => {
|
|
392
|
-
const { scene:
|
|
393
|
-
F.value &&
|
|
392
|
+
const { scene: a } = h();
|
|
393
|
+
F.value && a && (re(F.value, a), F.value = null);
|
|
394
394
|
}, se = () => {
|
|
395
395
|
Te(), ze();
|
|
396
|
-
}, Ae = async (
|
|
397
|
-
const u = URL.createObjectURL(
|
|
396
|
+
}, Ae = async (a) => {
|
|
397
|
+
const u = URL.createObjectURL(a), V = await Se(u);
|
|
398
398
|
if (URL.revokeObjectURL(u), nt(V)) {
|
|
399
399
|
Q.value = await Ut(V, n.trackFileType) || [];
|
|
400
400
|
const z = Q.value;
|
|
401
401
|
ke.value && (b.value = Vt(h, z)), (be.value || _e.value || x.value) && (b.value = Yt(h, z));
|
|
402
402
|
}
|
|
403
403
|
}, Pe = async () => {
|
|
404
|
-
var
|
|
405
|
-
F.value = ot(), $.value = Lt(Q.value), $.value && $.value.length && (de(F.value, $.value[0], b.value, new O(16711680)), (u = (
|
|
406
|
-
},
|
|
407
|
-
se(), await Ae(
|
|
404
|
+
var a, u;
|
|
405
|
+
F.value = ot(), $.value = Lt(Q.value), $.value && $.value.length && (de(F.value, $.value[0], b.value, new O(16711680)), (u = (a = v.value) == null ? void 0 : a.add) == null || u.call(a, F.value));
|
|
406
|
+
}, ie = async (a) => {
|
|
407
|
+
se(), await Ae(a), b.value && Ie(h, b.value), x.value && Pe();
|
|
408
408
|
};
|
|
409
|
-
Ee(() => oe.value, async (
|
|
410
|
-
|
|
409
|
+
Ee(() => oe.value, async (a) => {
|
|
410
|
+
a && await ie(a);
|
|
411
411
|
}, {
|
|
412
412
|
immediate: !0,
|
|
413
413
|
deep: !0
|
|
414
414
|
});
|
|
415
415
|
const xe = async () => {
|
|
416
|
-
var
|
|
417
|
-
await ((
|
|
416
|
+
var a;
|
|
417
|
+
await ((a = t == null ? void 0 : t.value) == null ? void 0 : a.reset()), await ie(oe.value);
|
|
418
418
|
}, Fe = () => {
|
|
419
|
-
var
|
|
420
|
-
x.value && ((
|
|
419
|
+
var a;
|
|
420
|
+
x.value && ((a = t == null ? void 0 : t.value) == null || a.playAnimation());
|
|
421
421
|
}, Me = () => {
|
|
422
|
-
var
|
|
423
|
-
x.value && ((
|
|
422
|
+
var a;
|
|
423
|
+
x.value && ((a = t == null ? void 0 : t.value) == null || a.stopAnimation());
|
|
424
424
|
}, Ue = () => {
|
|
425
|
-
var
|
|
426
|
-
x.value && ((
|
|
425
|
+
var a;
|
|
426
|
+
x.value && ((a = t == null ? void 0 : t.value) == null || a.forwardFrame());
|
|
427
427
|
}, Le = () => {
|
|
428
|
-
var
|
|
429
|
-
x.value && ((
|
|
428
|
+
var a;
|
|
429
|
+
x.value && ((a = t == null ? void 0 : t.value) == null || a.backwardFrame());
|
|
430
430
|
}, $e = () => {
|
|
431
431
|
_(), je(() => {
|
|
432
432
|
o.value && (j = new ResizeObserver(T), j.observe(o.value));
|
|
433
433
|
});
|
|
434
|
-
const
|
|
435
|
-
v.value =
|
|
434
|
+
const a = h();
|
|
435
|
+
v.value = a.scene, v.value && (v.value.name = "CPMPIP");
|
|
436
436
|
}, Ve = () => {
|
|
437
437
|
j && j.disconnect(), M.value && pe(), se(), L();
|
|
438
438
|
};
|
|
@@ -440,12 +440,12 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
440
440
|
return Xe(async () => {
|
|
441
441
|
try {
|
|
442
442
|
$e();
|
|
443
|
-
} catch (
|
|
444
|
-
console.error("Three.js 初始化失败:",
|
|
443
|
+
} catch (a) {
|
|
444
|
+
console.error("Three.js 初始化失败:", a), B.error("渲染引擎初始化失败!");
|
|
445
445
|
}
|
|
446
446
|
}), Ye(() => {
|
|
447
447
|
Ve();
|
|
448
|
-
}), (
|
|
448
|
+
}), (a, u) => {
|
|
449
449
|
const V = E("el-scrollbar");
|
|
450
450
|
return X(), ee("div", jt, [
|
|
451
451
|
d("div", {
|
|
@@ -487,7 +487,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
487
487
|
}, null, 8, ["active"])
|
|
488
488
|
]),
|
|
489
489
|
d("div", Nt, [
|
|
490
|
-
|
|
490
|
+
ae(a.$slots, "button-left", { switchRightPanel: R }, void 0, !0),
|
|
491
491
|
p(w, {
|
|
492
492
|
name: "jiegoushu",
|
|
493
493
|
size: "24",
|
|
@@ -504,7 +504,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
504
504
|
}, null, 8, ["active"])
|
|
505
505
|
]),
|
|
506
506
|
d("div", Zt, [
|
|
507
|
-
|
|
507
|
+
ae(a.$slots, "button-right", { switchRightPanel: H }, void 0, !0),
|
|
508
508
|
p(w, {
|
|
509
509
|
name: "guanjiekongzhi",
|
|
510
510
|
size: "24",
|
|
@@ -607,7 +607,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
607
607
|
], 512), [
|
|
608
608
|
[Z, f.value]
|
|
609
609
|
]),
|
|
610
|
-
|
|
610
|
+
i.value ? (X(), ee("div", Jt, [
|
|
611
611
|
u[6] || (u[6] = d("div", { class: "loading-spinner" }, null, -1)),
|
|
612
612
|
d("p", null, Y(l.value), 1)
|
|
613
613
|
])) : S("", !0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, defineAsyncComponent as b, computed as I, ref as R, watch as H, createElementBlock as N, openBlock as T, createElementVNode as K, createBlock as B, createCommentVNode as V, renderSlot as u, unref as m, withCtx as d } from "vue";
|
|
2
2
|
import { a0 as W, u as A, p as D, s as $ } from "./index-DkDX7FWy.js";
|
|
3
|
-
import { g as j, q as M, r as L } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-
|
|
3
|
+
import { g as j, q as M, r as L } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
|
|
4
4
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const re = {
|
|
6
6
|
SINGLE: "单机",
|
|
@@ -112,7 +112,7 @@ const Y = { class: "three-platform mv-inline" }, J = { class: "top-menu" }, Q =
|
|
|
112
112
|
height: { default: "100%" }
|
|
113
113
|
},
|
|
114
114
|
setup(E) {
|
|
115
|
-
const O = b(() => import("./threeSceneView-
|
|
115
|
+
const O = b(() => import("./threeSceneView-Bvx19y--.js")), y = b(() => import("./threePreview-DbCREqix.js")), i = b(() => import("./threeTrackPathView-Bj3hHKs6.js")), p = b(() => import("./threeSceneViewForCPMPIP-DCKUI5B9.js")), n = E, P = A(D), { platName: f } = $(P), { isUrdf: _, isTrackPathFile: g } = z(), c = I(() => {
|
|
116
116
|
var t;
|
|
117
117
|
return (t = n == null ? void 0 : n.files) == null ? void 0 : t.map((s) => {
|
|
118
118
|
const { url: e, name: r } = s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, ref as F, watch as M, onMounted as C, onUnmounted as E, createElementBlock as m, openBlock as f, Fragment as P, renderList as T, createElementVNode as d, createCommentVNode as U, toDisplayString as h, 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_05e3a1d8_lang-
|
|
2
|
+
import { h as V } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
|
|
3
3
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const D = (i, a) => {
|
|
5
5
|
if (!a)
|
|
@@ -1,11 +1,11 @@
|
|
|
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
3
|
var J = (b, l, t) => de(b, typeof l != "symbol" ? l + "" : l, t);
|
|
4
|
-
import { U as me } from "./URDFLoader-
|
|
5
|
-
import { S as ve, M as pe, O as fe } from "./MTLLoader-
|
|
6
|
-
import {
|
|
4
|
+
import { U as me } from "./URDFLoader-BPUcMfaA.js";
|
|
5
|
+
import { S as ve, M as pe, O as fe } from "./MTLLoader-Cr05Jq1r.js";
|
|
6
|
+
import { bd as be, be as re, s as O, k as we, h as he, bf as E, B as _e, a_ as ge, am as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
|
|
7
7
|
import { ref as T, defineComponent as Le, computed as M, watch as ue, resolveComponent as x, createElementBlock as k, openBlock as V, 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-
|
|
8
|
+
import { c as Re, e as Ue, g as $e } from "./iconfont-CHWuGARa.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
11
|
function Me(b) {
|
|
@@ -307,7 +307,7 @@ class vt {
|
|
|
307
307
|
const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
308
308
|
key: 0,
|
|
309
309
|
class: "obj-base"
|
|
310
|
-
}, xe = ["title"], ke = ["title"], Ve = { key: 1 }, Te = { 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" },
|
|
310
|
+
}, xe = ["title"], ke = ["title"], Ve = { key: 1 }, Te = { 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: {},
|
|
@@ -400,7 +400,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
400
400
|
},
|
|
401
401
|
{ immediate: !0 }
|
|
402
402
|
), (e, o) => {
|
|
403
|
-
var S, z, P, A, I, B, N, W,
|
|
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
405
|
return V(), k("div", Je, [
|
|
406
406
|
U(w, null, {
|
|
@@ -498,7 +498,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
498
498
|
c("div", Ne, [
|
|
499
499
|
o[13] || (o[13] = c("span", { class: "axis-label" }, "Y°", -1)),
|
|
500
500
|
U(L, {
|
|
501
|
-
"model-value": f((
|
|
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",
|
|
@@ -511,7 +511,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
511
511
|
c("div", We, [
|
|
512
512
|
o[14] || (o[14] = c("span", { class: "axis-label" }, "Z°", -1)),
|
|
513
513
|
U(L, {
|
|
514
|
-
"model-value": f((
|
|
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",
|
|
@@ -529,11 +529,11 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
529
529
|
_: 1,
|
|
530
530
|
__: [15]
|
|
531
531
|
}),
|
|
532
|
-
c("div",
|
|
533
|
-
c("div",
|
|
532
|
+
c("div", qe, [
|
|
533
|
+
c("div", Xe, [
|
|
534
534
|
o[16] || (o[16] = c("span", { class: "coord-label" }, "世界位置:", -1)),
|
|
535
|
-
c("span",
|
|
536
|
-
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
537
|
c("div", Ke, C(r((Q = (H = i.value) == null ? void 0 : H.worldPosition) == null ? void 0 : Q.y)) + ", ", 1),
|
|
538
538
|
c("div", Ge, C(r((te = (ee = i.value) == null ? void 0 : ee.worldPosition) == null ? void 0 : te.z)), 1)
|
|
539
539
|
])
|