ss-component-new 1.3.701 → 1.3.702

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.
Files changed (85) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/{index-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
  3. package/dist/index-BZ6XZp4O.js +182 -0
  4. package/dist/index-DMqUY4yR.js +27 -0
  5. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D9DRZPyb.js → index-DXYV8CAc.js} +112065 -110832
  6. package/dist/index-Dad_IdSm.js +213 -0
  7. package/dist/index-Nxu5ivW5.js +1044 -0
  8. package/dist/index-T_MmKXF1.js +50 -0
  9. package/dist/menu-BYmz2cKN.js +5229 -0
  10. package/dist/platform-C9131Sg-.js +11490 -0
  11. package/dist/ss-component.css +8 -8
  12. package/dist/ss-component.js +28 -64
  13. package/dist/ss-component2.js +15 -75
  14. package/dist/ss-component3.js +1 -1
  15. package/package.json +8 -6
  16. package/public/config.js +1 -1
  17. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  18. package/dist/MTLLoader-DC5Di-ql.js +0 -657
  19. package/dist/URDFLoader-BqfNCQLH.js +0 -2299
  20. package/dist/animationData-BNQm3jIu.js +0 -83
  21. package/dist/array-BXz16Xf3.js +0 -1045
  22. package/dist/clone-Dp_gc9ll.js +0 -8
  23. package/dist/eleIcon-qStmsM1q.js +0 -29
  24. package/dist/fileUtil-UOt_otFo.js +0 -20
  25. package/dist/iconfont-B2Moc_Mi.js +0 -1026
  26. package/dist/icons/svg/functionList.svg +0 -1
  27. package/dist/icons/svg/method.svg +0 -1
  28. package/dist/index-11kpzK0A.js +0 -209
  29. package/dist/index-B0H3C7WG.js +0 -103
  30. package/dist/index-B3OyTnhN.js +0 -119
  31. package/dist/index-BHtNKL1L.js +0 -27
  32. package/dist/index-Bbwy0rRx.js +0 -411
  33. package/dist/index-BbyrFzEO.js +0 -93
  34. package/dist/index-Bk_HGMFV.js +0 -20578
  35. package/dist/index-BooO2Bml.js +0 -78
  36. package/dist/index-BpgixwCC.js +0 -83
  37. package/dist/index-Bw3sTXPI.js +0 -8993
  38. package/dist/index-Bz8vSCfN.js +0 -84
  39. package/dist/index-CAm10a_p.js +0 -107
  40. package/dist/index-CGVmScXF.js +0 -470
  41. package/dist/index-CGi0g-VN.js +0 -627
  42. package/dist/index-CTD1ZbEQ.js +0 -873
  43. package/dist/index-CV_jQDcg.js +0 -9
  44. package/dist/index-CWOXvFfD.js +0 -44
  45. package/dist/index-Ch_Lf81f.js +0 -63004
  46. package/dist/index-CjsQSzV6.js +0 -572
  47. package/dist/index-Ck_oTi7E.js +0 -25297
  48. package/dist/index-CydXQbtX.js +0 -622
  49. package/dist/index-DAJxL40d.js +0 -55
  50. package/dist/index-DBsEVMiM.js +0 -201
  51. package/dist/index-DG4hoOWt.js +0 -665
  52. package/dist/index-DUbk5m5P.js +0 -99
  53. package/dist/index-Ds6m_4JJ.js +0 -28500
  54. package/dist/index-DupTchhl.js +0 -1000
  55. package/dist/index-DyCq_odP.js +0 -331
  56. package/dist/index-DynGQqC3.js +0 -93
  57. package/dist/index-UB_oCdlo.js +0 -62
  58. package/dist/index-YjBTGOkO.js +0 -61
  59. package/dist/index-ib1DMe8v.js +0 -98
  60. package/dist/index-jbOjjV0j.js +0 -447
  61. package/dist/index-ke-XsSa7.js +0 -30
  62. package/dist/index-lPVVum78.js +0 -48
  63. package/dist/index-rlStojTL.js +0 -52
  64. package/dist/index-uF-ibwG0.js +0 -9
  65. package/dist/isString-0ZglyOfu.js +0 -8
  66. package/dist/localIcon-D5UoFBU5.js +0 -76
  67. package/dist/main-1uytY6Nj.js +0 -502
  68. package/dist/menuIndex-BB0uVPRX.js +0 -159
  69. package/dist/request-1RPa2bBn.js +0 -9048
  70. package/dist/threeModel-BEmaHjYZ.js +0 -1109
  71. package/dist/threePreview-D7ncVQLV.js +0 -2810
  72. package/dist/threeSceneView-ClvW-1FZ.js +0 -1290
  73. package/dist/threeSceneViewForCPMPIP-D7zwZFBW.js +0 -539
  74. package/dist/threeTrackPathView-VySiazeH.js +0 -620
  75. package/dist/threeViewerHost-sD-GHVTI.js +0 -233
  76. package/dist/urdfTree-B-7DfE39.js +0 -254
  77. package/dist/workpieceTreePanel-DB06G34P.js +0 -559
  78. package/public/icons/svg/functionList.svg +0 -1
  79. package/public/icons/svg/method.svg +0 -1
  80. /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  81. /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  82. /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
  83. /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  84. /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  85. /package/public/icons/svg/{Update.svg → update.svg} +0 -0
@@ -1,559 +0,0 @@
1
- var ce = Object.defineProperty;
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 J = (b, l, t) => de(b, typeof l != "symbol" ? l + "" : l, t);
4
- import { U as me } from "./URDFLoader-BqfNCQLH.js";
5
- import { S as ve, M as pe, O as fe } from "./MTLLoader-DC5Di-ql.js";
6
- import { bb as be, bc as re, s as O, k as we, h as he, bd as E, B as _e, be as ge, ay as ye, V as je } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D9DRZPyb.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 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-B2Moc_Mi.js";
9
- import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const Se = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
11
- function Me(b) {
12
- const { mtlUrl: l, manager: t, resourcePath: s, onLoad: m, onProgress: i, onError: h } = b, v = new pe(t);
13
- return s && v.setResourcePath(s), v.load(l, m, i, h), v;
14
- }
15
- function Fe(b) {
16
- const { objUrl: l, manager: t, materials: s, onLoad: m, onProgress: i, onError: h } = b, v = new fe(t);
17
- return s && v.setMaterials(s), v.load(l, m, i, h), v;
18
- }
19
- function De(b) {
20
- const { manager: l, baseFolderUrl: t, onFileProgress: s } = b, m = new me(l);
21
- return m.packages = (i) => `${t.endsWith("/") ? t : t + "/"}${i}/`, m.loadMeshCb = (i, h, v) => {
22
- const j = (() => {
23
- const _ = i.split("?")[0].split("#")[0], r = _.lastIndexOf(".");
24
- return r >= 0 ? _.slice(r + 1).toLowerCase() : void 0;
25
- })();
26
- switch (j) {
27
- // OBJ+MTL
28
- case "obj": {
29
- const _ = (() => {
30
- try {
31
- return new URL(".", i).toString();
32
- } catch {
33
- const n = i.lastIndexOf("/");
34
- return n >= 0 ? i.slice(0, n + 1) : i;
35
- }
36
- })(), r = (() => {
37
- var u;
38
- return (((u = i.split("/").pop()) == null ? void 0 : u.split("?")[0].split("#")[0]) ?? "").replace(/\.[^/.?#]+$/, "");
39
- })(), f = `${_}${r}.mtl`, g = (n) => {
40
- Fe({
41
- objUrl: i,
42
- manager: h,
43
- materials: n,
44
- onLoad: (u) => v(u),
45
- onProgress: (u) => s == null ? void 0 : s(i, u == null ? void 0 : u.loaded, u == null ? void 0 : u.total),
46
- onError: (u) => {
47
- console.error(`[URDF 资源加载失败,已跳过] 无法加载 OBJ 模型: ${i}`, u), v(new O());
48
- }
49
- });
50
- };
51
- Me({
52
- mtlUrl: f,
53
- manager: h,
54
- resourcePath: _,
55
- onLoad: (n) => {
56
- try {
57
- n.preload();
58
- } catch {
59
- }
60
- g(n);
61
- },
62
- onProgress: (n) => s == null ? void 0 : s(f, n == null ? void 0 : n.loaded, n == null ? void 0 : n.total),
63
- onError: (n) => {
64
- console.warn(`[URDF 资源警告] 未找到或加载材质失败: ${f}。将尝试无材质加载。`), g(void 0);
65
- }
66
- });
67
- break;
68
- }
69
- case "stl": {
70
- new ve(h).load(
71
- i,
72
- (r) => {
73
- const f = new we({ color: 12303291, shininess: 30 }), g = new he(r, f);
74
- g.castShadow = !0, g.receiveShadow = !0, v(g);
75
- },
76
- (r) => s == null ? void 0 : s(i, r == null ? void 0 : r.loaded, r == null ? void 0 : r.total),
77
- (r) => {
78
- console.error(`[URDF 资源加载失败,已跳过] 无法加载 STL 模型: ${i}`, r), v(new O());
79
- }
80
- );
81
- break;
82
- }
83
- default:
84
- console.error(`[URDF 资源加载失败,已跳过] 不支持的网格格式: .${j} (路径: ${i})`), v(new O());
85
- }
86
- }, m;
87
- }
88
- function dt(b, l, t, s) {
89
- return { loadSceneFromFile: (i) => new Promise((h, v) => {
90
- t.value = !0, s.value = "正在初始化 URDF 加载器...";
91
- let j = 0, _ = 0, r = null;
92
- const f = new be();
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
- if (r) {
100
- r.updateMatrixWorld(!0);
101
- const p = new _e().setFromObject(r);
102
- p.isEmpty() && console.warn("模型加载完成,但所有可视化网格均加载失败,模型将不可见。"), r.userData.boundingBox = p, r.traverse((d) => {
103
- d.isMesh && (d.castShadow = !0, d.receiveShadow = !0);
104
- }), h(r);
105
- } else
106
- v(new Error("URDF 文件本身加载失败。"));
107
- s.value = "模型加载完成", setTimeout(() => {
108
- s.value === "模型加载完成" && (t.value = !1, s.value = "");
109
- }, 500);
110
- }, 100));
111
- }, f.onError = (n) => {
112
- console.warn(`LoadingManager 报告一个资源加载失败: ${n}。加载流程将继续。`);
113
- };
114
- const g = (n, u, y) => {
115
- const $ = re(n);
116
- let p;
117
- y && y > 0 ? p = `${$}(${E(u)} / ${E(y)})` : u && u > 0 ? p = `${$}(已下载 ${E(u)})` : p = `${$}`, s.value = `正在下载第 ${_ + 1} / ${j} 个文件: ${p}`;
118
- };
119
- try {
120
- const n = URL.createObjectURL(i);
121
- De({
122
- manager: f,
123
- baseFolderUrl: Se,
124
- onFileProgress: g
125
- }).load(
126
- n,
127
- (y) => {
128
- r = y;
129
- },
130
- void 0,
131
- (y) => {
132
- console.error(`加载 URDF 文件 (${i.name}) 时发生致命错误:`, y), s.value = "URDF 文件解析失败", t.value = !1, v(new Error(`加载 URDF 文件失败: ${i.name}`));
133
- }
134
- );
135
- } catch (n) {
136
- console.error("初始化 URDF 加载时发生致命错误:", n), s.value = "模型加载失败", t.value = !1, v(n);
137
- }
138
- }) };
139
- }
140
- function mt(b, l, t, s = ["URDFVisual"]) {
141
- let m = null;
142
- const i = T(null), h = new ge(), v = new ye(), j = /* @__PURE__ */ new Map();
143
- function _() {
144
- t.value.forEach((p) => {
145
- p.traverse((d) => {
146
- s != null && s.includes(d.type) && j.set(d.id, {
147
- obj: d,
148
- axis: d.axis || new je(1, 0, 0),
149
- // URDF 里的 <axis>
150
- limits: d.limits
151
- });
152
- });
153
- });
154
- }
155
- function r(p) {
156
- i.value && i.value.obj.traverse((d) => {
157
- var e;
158
- d.material && ((e = d.material.emissive) == null || e.set(0));
159
- }), i.value = p, p.obj.traverse((d) => {
160
- var e;
161
- d.material && ((e = d.material.emissive) == null || e.set(65280));
162
- });
163
- }
164
- function f(p) {
165
- const d = b.value.getBoundingClientRect();
166
- v.x = (p.clientX - d.left) / d.width * 2 - 1, v.y = -((p.clientY - d.top) / d.height) * 2 + 1, h.setFromCamera(v, m);
167
- const e = h.intersectObjects(t.value, !0);
168
- if (e.length === 0) return;
169
- let o = e[0].object, w = null;
170
- for (; o; ) {
171
- if (j.has(o.id)) {
172
- w = j.get(o.id);
173
- break;
174
- }
175
- o = o.parent;
176
- }
177
- w && r(w);
178
- }
179
- function g() {
180
- b.value && b.value.removeEventListener("click", f, !1);
181
- }
182
- function n() {
183
- const { scene: p, camera: d } = l();
184
- m = d, _(), b.value && b.value.addEventListener("click", f, !1);
185
- }
186
- function u(p) {
187
- i.value && (i.value.obj.visible = p);
188
- }
189
- function y(p) {
190
- var o;
191
- const { axis: d, value: e } = p;
192
- Ue((o = i.value) == null ? void 0 : o.obj, d, e);
193
- }
194
- function $(p) {
195
- var o;
196
- const { axis: d, value: e } = p;
197
- Re((o = i.value) == null ? void 0 : o.obj, d, e);
198
- }
199
- return {
200
- initRaycaster: n,
201
- dispose: g,
202
- selectedObject3D: i,
203
- setSelectedObjVisible: u,
204
- updatePosition: y,
205
- updateRotation: $
206
- };
207
- }
208
- class vt {
209
- constructor(l) {
210
- J(this, "robot");
211
- J(this, "movableJoints");
212
- this.robot = l, this.movableJoints = this.getMovableJoints();
213
- }
214
- /**
215
- * 获取所有可动关节
216
- */
217
- getMovableJoints() {
218
- return Object.values(this.robot.joints).filter((l) => l.jointType !== "fixed");
219
- }
220
- /**
221
- * 获取可动关节名称列表
222
- */
223
- getMovableJointNames() {
224
- return this.movableJoints.map((l) => l.name);
225
- }
226
- /**
227
- * 设置单个关节角度
228
- */
229
- setJointAngle(l, t) {
230
- const s = this.robot.joints[l];
231
- if (!s || s.jointType === "fixed")
232
- return console.warn(`关节 ${l} 不存在或不可动`), !1;
233
- if (s.limit) {
234
- const m = Math.max(s.limit.lower, Math.min(s.limit.upper, t));
235
- m !== t && console.warn(`关节 ${l} 角度被限制在 [${s.limit.lower}, ${s.limit.upper}]`), s.setJointValue(m);
236
- } else
237
- s.setJointValue(t);
238
- return !0;
239
- }
240
- /**
241
- * 批量设置关节角度
242
- */
243
- setJointAngles(l) {
244
- Object.entries(l).forEach(([t, s]) => {
245
- typeof s == "number" && !isNaN(s) && this.setJointAngle(t, s);
246
- });
247
- }
248
- /**
249
- * 获取当前所有关节状态
250
- */
251
- getCurrentJointStates() {
252
- const l = {};
253
- return this.movableJoints.forEach((t) => {
254
- l[t.name] = t.angle || 0;
255
- }), l;
256
- }
257
- /**
258
- * 重置所有关节到零位
259
- */
260
- resetToZero() {
261
- this.movableJoints.forEach((l) => {
262
- l.setJointValue(0);
263
- });
264
- }
265
- /**
266
- * 获取关节限制信息
267
- */
268
- getJointLimits(l) {
269
- const t = this.robot.joints[l];
270
- return !t || !t.limit ? null : {
271
- lower: t.limit.lower,
272
- upper: t.limit.upper
273
- };
274
- }
275
- /**
276
- * 线性插值动画到目标状态
277
- */
278
- async animateToState(l, t = 1e3, s) {
279
- const m = this.getCurrentJointStates(), i = Date.now();
280
- return new Promise((h) => {
281
- const v = () => {
282
- const j = Date.now() - i, _ = Math.min(j / t, 1), r = this.easeInOutCubic(_), f = {};
283
- Object.keys(l).forEach((g) => {
284
- const n = m[g] || 0, u = l[g];
285
- f[g] = n + (u - n) * r;
286
- }), this.setJointAngles(f), s && s(_), _ < 1 ? requestAnimationFrame(v) : h();
287
- };
288
- v();
289
- });
290
- }
291
- /**
292
- * 缓动函数
293
- */
294
- easeInOutCubic(l) {
295
- return l < 0.5 ? 4 * l * l * l : 1 - Math.pow(-2 * l + 2, 3) / 2;
296
- }
297
- /**
298
- * 播放关键帧动画序列
299
- */
300
- async playSequence(l, t = 1e3, s) {
301
- for (let m = 0; m < l.length; m++)
302
- await this.animateToState(l[m], t, (i) => {
303
- s && s(m, i);
304
- });
305
- }
306
- }
307
- const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
308
- key: 0,
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" }, 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
- __name: "workpieceTreePanel",
312
- props: {
313
- model: {},
314
- maxExpandCount: { default: 10 },
315
- expandStrategy: { default: "breadth" }
316
- },
317
- emits: ["nodeClick", "visibleChange", "updatePosition", "updateRotation"],
318
- setup(b, { emit: l }) {
319
- const t = b, s = l, m = T([]), i = T({}), h = (e, o = 0) => {
320
- const w = [];
321
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 && e.forEach((a) => {
322
- if (!(a != null && a.isMesh)) {
323
- const L = {
324
- name: a == null ? void 0 : a.name,
325
- label: (a == null ? void 0 : a.name) || (a == null ? void 0 : a.type),
326
- show: !0,
327
- level: o + 1,
328
- isPenultimate: !1,
329
- type: a == null ? void 0 : a.type,
330
- id: a == null ? void 0 : a.id,
331
- limit: (a == null ? void 0 : a.limit) ?? "",
332
- children: h(a == null ? void 0 : a.children, o + 1),
333
- path: a == null ? void 0 : a.name
334
- };
335
- w.push(L);
336
- }
337
- }), w;
338
- }, v = (e) => e ? [{
339
- name: e == null ? void 0 : e.name,
340
- label: (e == null ? void 0 : e.name) || (e == null ? void 0 : e.type),
341
- show: !0,
342
- level: 1,
343
- isPenultimate: !1,
344
- type: e == null ? void 0 : e.type,
345
- id: e == null ? void 0 : e.id,
346
- limit: (e == null ? void 0 : e.limit) ?? "",
347
- children: h(e == null ? void 0 : e.children, 1),
348
- path: e == null ? void 0 : e.name
349
- }] : [], j = (e, o) => {
350
- const w = [], a = [...e];
351
- for (; a.length > 0 && w.length < o; ) {
352
- const L = a.shift();
353
- L.children && L.children.length > 0 && (w.push(L.id), a.push(...L.children));
354
- }
355
- return w;
356
- }, _ = (e, o) => {
357
- const w = [];
358
- return e.forEach((a) => {
359
- if (a.children && a.children.length > 0) {
360
- w.push(a.id);
361
- const L = a.children.filter((S) => S.children && S.children.length > 0).slice(0, o).map((S) => S.id);
362
- w.push(...L);
363
- }
364
- }), w.slice(0, o + 1);
365
- };
366
- M(() => !m.value || m.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? _(m.value, t.maxExpandCount) : j(m.value, t.maxExpandCount));
367
- const r = (e) => e ? parseFloat(e.toFixed(3)) : 0, f = (e) => e ? parseFloat(e.toFixed(1)) : 0, g = (e, o) => {
368
- s("updatePosition", {
369
- obj: t.model,
370
- axis: o,
371
- value: (e == null ? void 0 : e.toString()) || "0"
372
- });
373
- }, n = (e, o) => {
374
- s("updateRotation", {
375
- obj: t.model,
376
- axis: o,
377
- value: (e == null ? void 0 : e.toString()) || "0"
378
- });
379
- }, u = (e) => {
380
- s("visibleChange", e);
381
- }, y = M(() => t != null && t.model ? v(t.model) : []), $ = M(() => {
382
- var e, o;
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 = M(() => {
385
- var e;
386
- return (e = t == null ? void 0 : t.model) == null ? void 0 : e.type;
387
- }), d = M(() => {
388
- var e;
389
- return (e = t == null ? void 0 : t.model) == null ? void 0 : e.visible;
390
- });
391
- return ue(() => t.model, () => {
392
- t.model && (i.value = $e(t.model));
393
- }, {
394
- deep: !0,
395
- immediate: !0
396
- }), ue(
397
- y,
398
- (e) => {
399
- m.value = JSON.parse(JSON.stringify(e));
400
- },
401
- { immediate: !0 }
402
- ), (e, o) => {
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
- const w = x("el-divider"), a = x("el-switch"), L = x("el-input-number");
405
- return V(), k("div", Je, [
406
- U(w, null, {
407
- default: F(() => o[6] || (o[6] = [
408
- D("对象")
409
- ])),
410
- _: 1,
411
- __: [6]
412
- }),
413
- c("div", Oe, [
414
- t.model ? (V(), k("div", Ee, [
415
- c("div", {
416
- class: "obj-name",
417
- title: $.value
418
- }, C($.value), 9, xe),
419
- c("div", {
420
- class: "obj-type",
421
- title: p.value
422
- }, "[" + C(p.value) + "]", 9, ke)
423
- ])) : (V(), k("div", Ve, "空")),
424
- U(a, {
425
- "model-value": d.value,
426
- onChange: u
427
- }, null, 8, ["model-value"])
428
- ]),
429
- U(w, null, {
430
- default: F(() => o[7] || (o[7] = [
431
- D("相对位置")
432
- ])),
433
- _: 1,
434
- __: [7]
435
- }),
436
- c("div", Te, [
437
- c("div", ze, [
438
- o[8] || (o[8] = c("span", { class: "axis-label" }, "X", -1)),
439
- U(L, {
440
- "model-value": r((z = (S = i.value) == null ? void 0 : S.position) == null ? void 0 : z.x),
441
- onChange: o[0] || (o[0] = (R) => g(R, "x")),
442
- size: "small",
443
- class: "coord-input-compact",
444
- precision: 3,
445
- step: 0.1,
446
- controls: !0,
447
- "controls-position": "right"
448
- }, null, 8, ["model-value"])
449
- ]),
450
- c("div", Pe, [
451
- o[9] || (o[9] = c("span", { class: "axis-label" }, "Y", -1)),
452
- U(L, {
453
- "model-value": r((A = (P = i.value) == null ? void 0 : P.position) == null ? void 0 : A.y),
454
- onChange: o[1] || (o[1] = (R) => g(R, "y")),
455
- size: "small",
456
- class: "coord-input-compact",
457
- precision: 3,
458
- step: 0.1,
459
- controls: !0,
460
- "controls-position": "right"
461
- }, null, 8, ["model-value"])
462
- ]),
463
- c("div", Ae, [
464
- o[10] || (o[10] = c("span", { class: "axis-label" }, "Z", -1)),
465
- U(L, {
466
- "model-value": r((B = (I = i.value) == null ? void 0 : I.position) == null ? void 0 : B.z),
467
- onChange: o[2] || (o[2] = (R) => g(R, "z")),
468
- size: "small",
469
- class: "coord-input-compact",
470
- precision: 3,
471
- step: 0.1,
472
- controls: !0,
473
- "controls-position": "right"
474
- }, null, 8, ["model-value"])
475
- ])
476
- ]),
477
- U(w, null, {
478
- default: F(() => o[11] || (o[11] = [
479
- D("相对旋转")
480
- ])),
481
- _: 1,
482
- __: [11]
483
- }),
484
- c("div", Ie, [
485
- c("div", Be, [
486
- o[12] || (o[12] = c("span", { class: "axis-label" }, "X°", -1)),
487
- U(L, {
488
- "model-value": f((W = (N = i.value) == null ? void 0 : N.rotation) == null ? void 0 : W.x),
489
- onChange: o[3] || (o[3] = (R) => n(R, "x")),
490
- size: "small",
491
- class: "coord-input-compact",
492
- precision: 3,
493
- step: 0.1,
494
- controls: !0,
495
- "controls-position": "right"
496
- }, null, 8, ["model-value"])
497
- ]),
498
- c("div", Ne, [
499
- o[13] || (o[13] = c("span", { class: "axis-label" }, "Y°", -1)),
500
- U(L, {
501
- "model-value": f((X = (q = i.value) == null ? void 0 : q.rotation) == null ? void 0 : X.y),
502
- onChange: o[4] || (o[4] = (R) => n(R, "y")),
503
- size: "small",
504
- class: "coord-input-compact",
505
- precision: 3,
506
- step: 0.1,
507
- controls: !0,
508
- "controls-position": "right"
509
- }, null, 8, ["model-value"])
510
- ]),
511
- c("div", We, [
512
- o[14] || (o[14] = c("span", { class: "axis-label" }, "Z°", -1)),
513
- U(L, {
514
- "model-value": f((Z = (Y = i.value) == null ? void 0 : Y.rotation) == null ? void 0 : Z.z),
515
- onChange: o[5] || (o[5] = (R) => n(R, "z")),
516
- size: "small",
517
- class: "coord-input-compact",
518
- precision: 3,
519
- step: 0.1,
520
- controls: !0,
521
- "controls-position": "right"
522
- }, null, 8, ["model-value"])
523
- ])
524
- ]),
525
- U(w, null, {
526
- default: F(() => o[15] || (o[15] = [
527
- D("世界信息")
528
- ])),
529
- _: 1,
530
- __: [15]
531
- }),
532
- c("div", qe, [
533
- c("div", Xe, [
534
- o[16] || (o[16] = c("span", { class: "coord-label" }, "世界位置:", -1)),
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
- ])
540
- ]),
541
- c("div", He, [
542
- o[17] || (o[17] = c("span", { class: "coord-label" }, "世界旋转:", -1)),
543
- c("span", Qe, [
544
- c("div", et, C(f((se = (oe = i.value) == null ? void 0 : oe.worldRotation) == null ? void 0 : se.x)) + "°, ", 1),
545
- c("div", tt, C(f((le = (ie = i.value) == null ? void 0 : ie.worldRotation) == null ? void 0 : le.y)) + "°, ", 1),
546
- c("div", ot, C(f((ne = (ae = i.value) == null ? void 0 : ae.worldRotation) == null ? void 0 : ne.z)) + "° ", 1)
547
- ])
548
- ])
549
- ])
550
- ]);
551
- };
552
- }
553
- }), pt = /* @__PURE__ */ Ce(st, [["__scopeId", "data-v-00d48931"]]);
554
- export {
555
- vt as U,
556
- pt as W,
557
- dt as a,
558
- mt as u
559
- };
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1780642425297" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2833" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M384 806.4l275.2-275.2-57.6-57.6-19.2 19.2c-12.8 12.8-38.4 12.8-51.2 0-12.8-12.8-12.8-38.4 0-51.2l19.2-19.2c25.6-25.6 64-25.6 89.6 0l64 70.4c25.6 25.6 25.6 64 0 89.6l-275.2 275.2c6.4 12.8 12.8 32 12.8 44.8 0 51.2-44.8 96-96 96S256 947.2 256 896s44.8-96 96-96c12.8 0 25.6 0 32 6.4z m275.2-563.2L384 518.4l57.6 57.6 19.2-19.2c12.8-12.8 38.4-12.8 51.2 0 12.8 12.8 12.8 38.4 0 51.2l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0l-64-70.4c-25.6-25.6-25.6-64 0-89.6L614.4 192c-6.4-12.8-6.4-19.2-6.4-32 0-51.2 44.8-96 96-96s96 44.8 96 96S755.2 256 704 256c-19.2 0-32-6.4-44.8-12.8z m198.4 275.2l-128-128c-12.8-12.8-12.8-38.4 0-51.2 12.8-12.8 38.4-12.8 51.2 0l128 128c12.8 12.8 19.2 32 19.2 51.2 0 19.2-6.4 38.4-19.2 51.2l-128 128c-12.8 12.8-38.4 12.8-51.2 0-12.8-12.8-12.8-38.4 0-51.2l128-128z m-691.2 0l128 128c12.8 12.8 12.8 38.4 0 51.2-12.8 12.8-38.4 12.8-51.2 0l-128-128c-12.8-12.8-19.2-32-19.2-51.2 0-19.2 6.4-38.4 19.2-51.2l128-128c12.8-12.8 38.4-12.8 51.2 0 12.8 12.8 12.8 38.4 0 51.2l-128 128z" p-id="2834"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1782276995812" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4176" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M469.745309 0a469.745309 469.745309 0 1 0 0 939.490619A469.745309 469.745309 0 0 0 469.809272 0z m0 81.872821a387.872488 387.872488 0 1 1 0 775.744977 387.872488 387.872488 0 0 1 0-775.744977z" fill="#444444" p-id="4177"></path><path d="M753.485804 753.485804a40.93641 40.93641 0 0 1 55.264154-2.4306l2.558525 2.4306 200.204633 200.076706a40.93641 40.93641 0 0 1-55.328118 60.317242l-2.622488-2.4306-200.140669-200.076705a40.93641 40.93641 0 0 1 0-57.886643z" fill="#444444" p-id="4178"></path><path d="M266.086668 552.64154c15.351154 0 29.423045 8.571061 36.45899 22.19521l-1.982857-2.878341c45.733646 70.487382 115.005728 111.295866 198.477627 113.598539l7.419724 0.063963V767.557695c-112.575129 0-208.327951-53.217334-270.308235-144.556699l-4.28553-6.396314 0.191889-0.127927a40.93641 40.93641 0 0 1 34.028392-63.771252z" p-id="4179"></path></svg>
File without changes
File without changes