ss-component-new 1.3.813 → 1.3.815
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-DeqHL-AI.js} +39 -39
- package/dist/{URDFLoader-DUzCZjnV.js → URDFLoader-CiSgFgWK.js} +156 -156
- package/dist/{animationData-DwQetFQD.js → animationData-CVVm5rD_.js} +11 -11
- package/dist/{array-COidmpRY.js → array-8BOBukwZ.js} +178 -178
- package/dist/{iconfont-Ij2RVNFj.js → iconfont-CuxO25jz.js} +1 -1
- package/dist/{index-dh1Gi7jC.js → index-BGAhYPQI.js} +1 -1
- package/dist/{index-CcBUPD0v.js → index-BjbnnFmN.js} +3 -3
- package/dist/{index-CXY_sgN_.js → index-BrVAczXU.js} +4 -4
- package/dist/{index-Cv6rlCAH.js → index-Bz7cdL2l.js} +19463 -19316
- package/dist/{index-Cd11-eam.js → index-C4x5BF6v.js} +7191 -7184
- package/dist/{index-Dsce3BX1.js → index-CHKlT3mb.js} +3 -3
- package/dist/{index-CCZspl83.js → index-CKWkVjdr.js} +1 -1
- package/dist/{index-DQryAYzQ.js → index-DCFvBMG1.js} +1 -1
- package/dist/{index-DqizREJ2.js → index-DZe4W71_.js} +1 -1
- package/dist/{index-KEw10uzh.js → index-DmiiVNgM.js} +1 -1
- package/dist/{index-B7P0-Odj.js → index-DzNKmhm_.js} +2 -2
- package/dist/{index-B4kaaRbF.js → index-djF386bV.js} +1567 -1563
- package/dist/{index-D8-0gsl7.js → index-fLaMmGT7.js} +4 -4
- package/dist/{index-ZhT8hVC2.js → index-sDRXkpeY.js} +10 -10
- package/dist/{index-CaLfl7ix.js → index-vMStskjM.js} +1 -1
- 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-CZUHaA2-.js} +4419 -4411
- package/dist/{main-fNwMqnvv.js → main-CK-3ac4L.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-5jLpnZxT.js} +49 -49
- package/dist/{threePreview-BnPPysvl.js → threePreview-E6bBnyEu.js} +1258 -1103
- package/dist/{threeSceneView-C_KAY9V1.js → threeSceneView-CIBq_Yjm.js} +71 -69
- package/dist/{threeSceneViewForCPMPIP-uac2fzAK.js → threeSceneViewForCPMPIP-BwD010zk.js} +7 -7
- package/dist/{threeTrackPathView-Ugj5_KnE.js → threeTrackPathView-B1FFx8pz.js} +31 -31
- package/dist/{threeViewerHost-Dv0JTTnu.js → threeViewerHost-RF4w3At4.js} +2 -2
- package/dist/{urdfTree-CLtWTrD6.js → urdfTree-B8y6pXfi.js} +1 -1
- package/dist/{workpieceTreePanel-Ch75Cqlr.js → workpieceTreePanel-v_yqJYFX.js} +35 -35
- package/package.json +1 -1
|
@@ -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-CZUHaA2-.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-CIBq_Yjm.js")), y = b(() => import("./threePreview-E6bBnyEu.js")), i = b(() => import("./threeTrackPathView-B1FFx8pz.js")), p = b(() => import("./threeSceneViewForCPMPIP-BwD010zk.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-CZUHaA2-.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 {
|
|
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
|
|
8
|
-
import { c as Re, e as
|
|
4
|
+
import { U as me } from "./URDFLoader-CiSgFgWK.js";
|
|
5
|
+
import { S as ve, M as pe, O as fe } from "./MTLLoader-DeqHL-AI.js";
|
|
6
|
+
import { be, bf as re, s as O, k as we, h as he, bg as E, B as _e, a$ as ge, an as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js";
|
|
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 $, createElementVNode as c, withCtx as F, createTextVNode as D, toDisplayString as C } from "vue";
|
|
8
|
+
import { c as Re, e as $e, g as Ue } from "./iconfont-CuxO25jz.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) {
|
|
@@ -94,8 +94,8 @@ function dt(b, l, t, s) {
|
|
|
94
94
|
y = j || 0, _ = u || 0, s.value = y > 0 ? `开始下载资源: 0 / ${y}` : "开始下载资源...", t.value = !0;
|
|
95
95
|
}, f.onProgress = (n, u, j) => {
|
|
96
96
|
_ = u, y = j;
|
|
97
|
-
const
|
|
98
|
-
s.value =
|
|
97
|
+
const U = `正在加载 ${u} / ${j} 个文件: ${re(n)}`;
|
|
98
|
+
s.value = U, u === j && (s.value = "资源加载完成,正在处理模型...", setTimeout(() => {
|
|
99
99
|
if (r) {
|
|
100
100
|
r.updateMatrixWorld(!0);
|
|
101
101
|
const p = new _e().setFromObject(r);
|
|
@@ -112,9 +112,9 @@ function dt(b, l, t, s) {
|
|
|
112
112
|
console.warn(`LoadingManager 报告一个资源加载失败: ${n}。加载流程将继续。`);
|
|
113
113
|
};
|
|
114
114
|
const g = (n, u, j) => {
|
|
115
|
-
const
|
|
115
|
+
const U = re(n);
|
|
116
116
|
let p;
|
|
117
|
-
j && j > 0 ? p = `${
|
|
117
|
+
j && j > 0 ? p = `${U}(${E(u)} / ${E(j)})` : u && u > 0 ? p = `${U}(已下载 ${E(u)})` : p = `${U}`, s.value = `正在下载第 ${_ + 1} / ${y} 个文件: ${p}`;
|
|
118
118
|
};
|
|
119
119
|
try {
|
|
120
120
|
const n = URL.createObjectURL(i);
|
|
@@ -189,9 +189,9 @@ function mt(b, l, t, s = ["URDFVisual"]) {
|
|
|
189
189
|
function j(p) {
|
|
190
190
|
var o;
|
|
191
191
|
const { axis: d, value: e } = p;
|
|
192
|
-
|
|
192
|
+
$e((o = i.value) == null ? void 0 : o.obj, d, e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function U(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);
|
|
@@ -202,7 +202,7 @@ function mt(b, l, t, s = ["URDFVisual"]) {
|
|
|
202
202
|
selectedObject3D: i,
|
|
203
203
|
setSelectedObjVisible: u,
|
|
204
204
|
updatePosition: j,
|
|
205
|
-
updateRotation:
|
|
205
|
+
updateRotation: U
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
class vt {
|
|
@@ -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: {},
|
|
@@ -378,7 +378,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
378
378
|
});
|
|
379
379
|
}, u = (e) => {
|
|
380
380
|
s("visibleChange", e);
|
|
381
|
-
}, j = M(() => t != null && t.model ? v(t.model) : []),
|
|
381
|
+
}, j = M(() => t != null && t.model ? v(t.model) : []), U = 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
384
|
}), p = M(() => {
|
|
@@ -389,7 +389,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
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 = Ue(t.model));
|
|
393
393
|
}, {
|
|
394
394
|
deep: !0,
|
|
395
395
|
immediate: !0
|
|
@@ -400,10 +400,10 @@ 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
|
+
$(w, null, {
|
|
407
407
|
default: F(() => o[6] || (o[6] = [
|
|
408
408
|
D("对象")
|
|
409
409
|
])),
|
|
@@ -414,19 +414,19 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
414
414
|
t.model ? (V(), k("div", Ee, [
|
|
415
415
|
c("div", {
|
|
416
416
|
class: "obj-name",
|
|
417
|
-
title:
|
|
418
|
-
}, C(
|
|
417
|
+
title: U.value
|
|
418
|
+
}, C(U.value), 9, xe),
|
|
419
419
|
c("div", {
|
|
420
420
|
class: "obj-type",
|
|
421
421
|
title: p.value
|
|
422
422
|
}, "[" + C(p.value) + "]", 9, ke)
|
|
423
423
|
])) : (V(), k("div", Ve, "空")),
|
|
424
|
-
|
|
424
|
+
$(a, {
|
|
425
425
|
"model-value": d.value,
|
|
426
426
|
onChange: u
|
|
427
427
|
}, null, 8, ["model-value"])
|
|
428
428
|
]),
|
|
429
|
-
|
|
429
|
+
$(w, null, {
|
|
430
430
|
default: F(() => o[7] || (o[7] = [
|
|
431
431
|
D("相对位置")
|
|
432
432
|
])),
|
|
@@ -436,7 +436,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
436
436
|
c("div", Te, [
|
|
437
437
|
c("div", ze, [
|
|
438
438
|
o[8] || (o[8] = c("span", { class: "axis-label" }, "X", -1)),
|
|
439
|
-
|
|
439
|
+
$(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 Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
449
449
|
]),
|
|
450
450
|
c("div", Pe, [
|
|
451
451
|
o[9] || (o[9] = c("span", { class: "axis-label" }, "Y", -1)),
|
|
452
|
-
|
|
452
|
+
$(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 Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
462
462
|
]),
|
|
463
463
|
c("div", Ae, [
|
|
464
464
|
o[10] || (o[10] = c("span", { class: "axis-label" }, "Z", -1)),
|
|
465
|
-
|
|
465
|
+
$(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,7 +474,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
474
474
|
}, null, 8, ["model-value"])
|
|
475
475
|
])
|
|
476
476
|
]),
|
|
477
|
-
|
|
477
|
+
$(w, null, {
|
|
478
478
|
default: F(() => o[11] || (o[11] = [
|
|
479
479
|
D("相对旋转")
|
|
480
480
|
])),
|
|
@@ -484,7 +484,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
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
|
+
$(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 Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
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
|
+
$(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 Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
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
|
+
$(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,18 +522,18 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
|
|
|
522
522
|
}, null, 8, ["model-value"])
|
|
523
523
|
])
|
|
524
524
|
]),
|
|
525
|
-
|
|
525
|
+
$(w, null, {
|
|
526
526
|
default: F(() => o[15] || (o[15] = [
|
|
527
527
|
D("世界信息")
|
|
528
528
|
])),
|
|
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
|
])
|