endset_three_editor 0.4.2 → 0.4.3

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.
@@ -1,11 +1,11 @@
1
1
  var _n = Object.defineProperty;
2
2
  var $n = (r, e, t) => e in r ? _n(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var Re = (r, e, t) => $n(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { toRaw as xt, defineComponent as be, ref as j, inject as es, computed as Be, watchEffect as ts, resolveComponent as ns, openBlock as T, createElementBlock as R, createElementVNode as b, normalizeClass as se, withModifiers as jt, unref as ss, toDisplayString as ie, Fragment as ve, renderList as wt, createBlock as Ke, createCommentVNode as X, reactive as kt, watch as Me, withDirectives as E, vModelText as N, withKeys as Se, vModelCheckbox as is, toRef as os, provide as rs, createVNode as Dt, vShow as De, shallowRef as $t, onMounted as as, onBeforeUnmount as ls } from "vue";
4
+ import { toRaw as xt, defineComponent as be, ref as j, inject as es, computed as Be, watchEffect as ts, resolveComponent as ns, openBlock as T, createElementBlock as R, createElementVNode as b, normalizeClass as se, withModifiers as jt, unref as ss, toDisplayString as ie, Fragment as ve, renderList as wt, createBlock as Ke, createCommentVNode as X, reactive as kt, watch as Me, withDirectives as E, vModelText as N, withKeys as He, vModelCheckbox as is, toRef as os, provide as rs, createVNode as Dt, vShow as De, shallowRef as $t, onMounted as as, onBeforeUnmount as ls } from "vue";
5
5
  import * as P from "three";
6
- import { Controls as On, Vector3 as M, MOUSE as Ne, TOUCH as Le, Quaternion as K, Spherical as en, Vector2 as Y, Ray as cs, Plane as us, MathUtils as En, Raycaster as As, Object3D as ke, MeshBasicMaterial as Pe, LineBasicMaterial as Ze, CylinderGeometry as U, BoxGeometry as q, BufferGeometry as We, Float32BufferAttribute as pe, Mesh as v, OctahedronGeometry as lt, Line as ue, TorusGeometry as Ge, SphereGeometry as ds, Euler as hs, Matrix4 as me, PlaneGeometry as fs, DoubleSide as Rn, Loader as Yt, FileLoader as tt, Color as de, SRGBColorSpace as Ae, Group as ft, Material as Qe, PointsMaterial as Ue, MeshPhongMaterial as ps, LineSegments as Wt, Points as pt, TrianglesDrawMode as ms, TriangleFanDrawMode as zt, TriangleStripDrawMode as Hn, LoaderUtils as Je, MeshPhysicalMaterial as le, LinearSRGBColorSpace as ae, SpotLight as gs, PointLight as bs, DirectionalLight as Is, InstancedMesh as ys, InstancedBufferAttribute as Cs, TextureLoader as xs, ImageBitmapLoader as ws, BufferAttribute as _e, InterleavedBuffer as Sn, InterleavedBufferAttribute as Ln, LinearMipmapLinearFilter as Nn, NearestMipmapLinearFilter as vs, LinearMipmapNearestFilter as Ms, NearestMipmapNearestFilter as Ds, LinearFilter as Gt, NearestFilter as jn, RepeatWrapping as Ft, MirroredRepeatWrapping as Ps, ClampToEdgeWrapping as Ts, MeshStandardMaterial as kn, PropertyBinding as Os, SkinnedMesh as Es, LineLoop as Rs, PerspectiveCamera as Hs, OrthographicCamera as Ss, Skeleton as Ls, AnimationClip as Ns, Bone as js, InterpolateDiscrete as ks, InterpolateLinear as Wn, Texture as tn, VectorKeyframeTrack as nn, NumberKeyframeTrack as sn, QuaternionKeyframeTrack as on, ColorManagement as qt, FrontSide as Ws, Interpolant as zs, Box3 as Gs, Sphere as Fs } from "three";
6
+ import { Controls as On, Vector3 as M, MOUSE as Ne, TOUCH as Le, Quaternion as K, Spherical as en, Vector2 as Y, Ray as cs, Plane as us, MathUtils as En, Raycaster as As, Object3D as ke, MeshBasicMaterial as Pe, LineBasicMaterial as Ze, CylinderGeometry as U, BoxGeometry as q, BufferGeometry as We, Float32BufferAttribute as pe, Mesh as v, OctahedronGeometry as lt, Line as ue, TorusGeometry as Ge, SphereGeometry as ds, Euler as hs, Matrix4 as me, PlaneGeometry as fs, DoubleSide as Rn, Loader as Yt, FileLoader as tt, Color as de, SRGBColorSpace as Ae, Group as ft, Material as Qe, PointsMaterial as Ue, MeshPhongMaterial as ps, LineSegments as Wt, Points as pt, TrianglesDrawMode as ms, TriangleFanDrawMode as zt, TriangleStripDrawMode as Sn, LoaderUtils as Je, MeshPhysicalMaterial as le, LinearSRGBColorSpace as ae, SpotLight as gs, PointLight as bs, DirectionalLight as Is, InstancedMesh as ys, InstancedBufferAttribute as Cs, TextureLoader as xs, ImageBitmapLoader as ws, BufferAttribute as _e, InterleavedBuffer as Hn, InterleavedBufferAttribute as Ln, LinearMipmapLinearFilter as Nn, NearestMipmapLinearFilter as vs, LinearMipmapNearestFilter as Ms, NearestMipmapNearestFilter as Ds, LinearFilter as Gt, NearestFilter as jn, RepeatWrapping as Ft, MirroredRepeatWrapping as Ps, ClampToEdgeWrapping as Ts, MeshStandardMaterial as kn, PropertyBinding as Os, SkinnedMesh as Es, LineLoop as Rs, PerspectiveCamera as Ss, OrthographicCamera as Hs, Skeleton as Ls, AnimationClip as Ns, Bone as js, InterpolateDiscrete as ks, InterpolateLinear as Wn, Texture as tn, VectorKeyframeTrack as nn, NumberKeyframeTrack as sn, QuaternionKeyframeTrack as on, ColorManagement as qt, FrontSide as Ws, Interpolant as zs, Box3 as Gs, Sphere as Fs } from "three";
7
7
  import nt from "@tweenjs/tween.js";
8
- const rn = { type: "change" }, Kt = { type: "start" }, zn = { type: "end" }, ct = new cs(), an = new us(), qs = Math.cos(70 * En.DEG2RAD), G = new M(), V = 2 * Math.PI, S = {
8
+ const rn = { type: "change" }, Kt = { type: "start" }, zn = { type: "end" }, ct = new cs(), an = new us(), qs = Math.cos(70 * En.DEG2RAD), G = new M(), V = 2 * Math.PI, H = {
9
9
  NONE: -1,
10
10
  ROTATE: 0,
11
11
  DOLLY: 1,
@@ -23,7 +23,7 @@ class Xs extends On {
23
23
  * @param {?HTMLElement} domElement - The HTML element used for event listeners.
24
24
  */
25
25
  constructor(e, t = null) {
26
- super(e, t), this.state = S.NONE, this.target = new M(), this.cursor = new M(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Ne.ROTATE, MIDDLE: Ne.DOLLY, RIGHT: Ne.PAN }, this.touches = { ONE: Le.ROTATE, TWO: Le.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new M(), this._lastQuaternion = new K(), this._lastTargetPosition = new M(), this._quat = new K().setFromUnitVectors(e.up, new M(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new en(), this._sphericalDelta = new en(), this._scale = 1, this._panOffset = new M(), this._rotateStart = new Y(), this._rotateEnd = new Y(), this._rotateDelta = new Y(), this._panStart = new Y(), this._panEnd = new Y(), this._panDelta = new Y(), this._dollyStart = new Y(), this._dollyEnd = new Y(), this._dollyDelta = new Y(), this._dollyDirection = new M(), this._mouse = new Y(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Us.bind(this), this._onPointerDown = Bs.bind(this), this._onPointerUp = Vs.bind(this), this._onContextMenu = $s.bind(this), this._onMouseWheel = Zs.bind(this), this._onKeyDown = Qs.bind(this), this._onTouchStart = Js.bind(this), this._onTouchMove = _s.bind(this), this._onMouseDown = Ys.bind(this), this._onMouseMove = Ks.bind(this), this._interceptControlDown = ei.bind(this), this._interceptControlUp = ti.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
26
+ super(e, t), this.state = H.NONE, this.target = new M(), this.cursor = new M(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Ne.ROTATE, MIDDLE: Ne.DOLLY, RIGHT: Ne.PAN }, this.touches = { ONE: Le.ROTATE, TWO: Le.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new M(), this._lastQuaternion = new K(), this._lastTargetPosition = new M(), this._quat = new K().setFromUnitVectors(e.up, new M(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new en(), this._sphericalDelta = new en(), this._scale = 1, this._panOffset = new M(), this._rotateStart = new Y(), this._rotateEnd = new Y(), this._rotateDelta = new Y(), this._panStart = new Y(), this._panEnd = new Y(), this._panDelta = new Y(), this._dollyStart = new Y(), this._dollyEnd = new Y(), this._dollyDelta = new Y(), this._dollyDirection = new M(), this._mouse = new Y(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Us.bind(this), this._onPointerDown = Bs.bind(this), this._onPointerUp = Vs.bind(this), this._onContextMenu = $s.bind(this), this._onMouseWheel = Zs.bind(this), this._onKeyDown = Qs.bind(this), this._onTouchStart = Js.bind(this), this._onTouchMove = _s.bind(this), this._onMouseDown = Ys.bind(this), this._onMouseMove = Ks.bind(this), this._interceptControlDown = ei.bind(this), this._interceptControlUp = ti.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
27
27
  }
28
28
  /**
29
29
  * Defines the visual representation of the cursor.
@@ -96,7 +96,7 @@ class Xs extends On {
96
96
  * was called, or the initial state.
97
97
  */
98
98
  reset() {
99
- this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(rn), this.update(), this.state = S.NONE;
99
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(rn), this.update(), this.state = H.NONE;
100
100
  }
101
101
  /**
102
102
  * Programmatically pan the camera.
@@ -141,7 +141,7 @@ class Xs extends On {
141
141
  }
142
142
  update(e = null) {
143
143
  const t = this.object.position;
144
- G.copy(t).sub(this.target), G.applyQuaternion(this._quat), this._spherical.setFromVector3(G), this.autoRotate && this.state === S.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
144
+ G.copy(t).sub(this.target), G.applyQuaternion(this._quat), this._spherical.setFromVector3(G), this.autoRotate && this.state === H.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
145
145
  let s = this.minAzimuthAngle, n = this.maxAzimuthAngle;
146
146
  isFinite(s) && isFinite(n) && (s < -Math.PI ? s += V : s > Math.PI && (s -= V), n < -Math.PI ? n += V : n > Math.PI && (n -= V), s <= n ? this._spherical.theta = Math.max(s, Math.min(n, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (s + n) / 2 ? Math.max(s, this._spherical.theta) : Math.min(n, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
147
147
  let i = !1;
@@ -373,7 +373,7 @@ function Us(r) {
373
373
  function Vs(r) {
374
374
  switch (this._removePointer(r), this._pointers.length) {
375
375
  case 0:
376
- this.domElement.releasePointerCapture(r.pointerId), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(zn), this.state = S.NONE, this._cursorStyle === "grab" && (this.domElement.style.cursor = "grab");
376
+ this.domElement.releasePointerCapture(r.pointerId), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(zn), this.state = H.NONE, this._cursorStyle === "grab" && (this.domElement.style.cursor = "grab");
377
377
  break;
378
378
  case 1:
379
379
  const e = this._pointers[0], t = this._pointerPositions[e];
@@ -399,49 +399,49 @@ function Ys(r) {
399
399
  switch (e) {
400
400
  case Ne.DOLLY:
401
401
  if (this.enableZoom === !1) return;
402
- this._handleMouseDownDolly(r), this.state = S.DOLLY;
402
+ this._handleMouseDownDolly(r), this.state = H.DOLLY;
403
403
  break;
404
404
  case Ne.ROTATE:
405
405
  if (r.ctrlKey || r.metaKey || r.shiftKey) {
406
406
  if (this.enablePan === !1) return;
407
- this._handleMouseDownPan(r), this.state = S.PAN;
407
+ this._handleMouseDownPan(r), this.state = H.PAN;
408
408
  } else {
409
409
  if (this.enableRotate === !1) return;
410
- this._handleMouseDownRotate(r), this.state = S.ROTATE;
410
+ this._handleMouseDownRotate(r), this.state = H.ROTATE;
411
411
  }
412
412
  break;
413
413
  case Ne.PAN:
414
414
  if (r.ctrlKey || r.metaKey || r.shiftKey) {
415
415
  if (this.enableRotate === !1) return;
416
- this._handleMouseDownRotate(r), this.state = S.ROTATE;
416
+ this._handleMouseDownRotate(r), this.state = H.ROTATE;
417
417
  } else {
418
418
  if (this.enablePan === !1) return;
419
- this._handleMouseDownPan(r), this.state = S.PAN;
419
+ this._handleMouseDownPan(r), this.state = H.PAN;
420
420
  }
421
421
  break;
422
422
  default:
423
- this.state = S.NONE;
423
+ this.state = H.NONE;
424
424
  }
425
- this.state !== S.NONE && this.dispatchEvent(Kt);
425
+ this.state !== H.NONE && this.dispatchEvent(Kt);
426
426
  }
427
427
  function Ks(r) {
428
428
  switch (this.state) {
429
- case S.ROTATE:
429
+ case H.ROTATE:
430
430
  if (this.enableRotate === !1) return;
431
431
  this._handleMouseMoveRotate(r);
432
432
  break;
433
- case S.DOLLY:
433
+ case H.DOLLY:
434
434
  if (this.enableZoom === !1) return;
435
435
  this._handleMouseMoveDolly(r);
436
436
  break;
437
- case S.PAN:
437
+ case H.PAN:
438
438
  if (this.enablePan === !1) return;
439
439
  this._handleMouseMovePan(r);
440
440
  break;
441
441
  }
442
442
  }
443
443
  function Zs(r) {
444
- this.enabled === !1 || this.enableZoom === !1 || this.state !== S.NONE || (r.preventDefault(), this.dispatchEvent(Kt), this._handleMouseWheel(this._customWheelEvent(r)), this.dispatchEvent(zn));
444
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (r.preventDefault(), this.dispatchEvent(Kt), this._handleMouseWheel(this._customWheelEvent(r)), this.dispatchEvent(zn));
445
445
  }
446
446
  function Qs(r) {
447
447
  this.enabled !== !1 && this._handleKeyDown(r);
@@ -452,55 +452,55 @@ function Js(r) {
452
452
  switch (this.touches.ONE) {
453
453
  case Le.ROTATE:
454
454
  if (this.enableRotate === !1) return;
455
- this._handleTouchStartRotate(r), this.state = S.TOUCH_ROTATE;
455
+ this._handleTouchStartRotate(r), this.state = H.TOUCH_ROTATE;
456
456
  break;
457
457
  case Le.PAN:
458
458
  if (this.enablePan === !1) return;
459
- this._handleTouchStartPan(r), this.state = S.TOUCH_PAN;
459
+ this._handleTouchStartPan(r), this.state = H.TOUCH_PAN;
460
460
  break;
461
461
  default:
462
- this.state = S.NONE;
462
+ this.state = H.NONE;
463
463
  }
464
464
  break;
465
465
  case 2:
466
466
  switch (this.touches.TWO) {
467
467
  case Le.DOLLY_PAN:
468
468
  if (this.enableZoom === !1 && this.enablePan === !1) return;
469
- this._handleTouchStartDollyPan(r), this.state = S.TOUCH_DOLLY_PAN;
469
+ this._handleTouchStartDollyPan(r), this.state = H.TOUCH_DOLLY_PAN;
470
470
  break;
471
471
  case Le.DOLLY_ROTATE:
472
472
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
473
- this._handleTouchStartDollyRotate(r), this.state = S.TOUCH_DOLLY_ROTATE;
473
+ this._handleTouchStartDollyRotate(r), this.state = H.TOUCH_DOLLY_ROTATE;
474
474
  break;
475
475
  default:
476
- this.state = S.NONE;
476
+ this.state = H.NONE;
477
477
  }
478
478
  break;
479
479
  default:
480
- this.state = S.NONE;
480
+ this.state = H.NONE;
481
481
  }
482
- this.state !== S.NONE && this.dispatchEvent(Kt);
482
+ this.state !== H.NONE && this.dispatchEvent(Kt);
483
483
  }
484
484
  function _s(r) {
485
485
  switch (this._trackPointer(r), this.state) {
486
- case S.TOUCH_ROTATE:
486
+ case H.TOUCH_ROTATE:
487
487
  if (this.enableRotate === !1) return;
488
488
  this._handleTouchMoveRotate(r), this.update();
489
489
  break;
490
- case S.TOUCH_PAN:
490
+ case H.TOUCH_PAN:
491
491
  if (this.enablePan === !1) return;
492
492
  this._handleTouchMovePan(r), this.update();
493
493
  break;
494
- case S.TOUCH_DOLLY_PAN:
494
+ case H.TOUCH_DOLLY_PAN:
495
495
  if (this.enableZoom === !1 && this.enablePan === !1) return;
496
496
  this._handleTouchMoveDollyPan(r), this.update();
497
497
  break;
498
- case S.TOUCH_DOLLY_ROTATE:
498
+ case H.TOUCH_DOLLY_ROTATE:
499
499
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
500
500
  this._handleTouchMoveDollyRotate(r), this.update();
501
501
  break;
502
502
  default:
503
- this.state = S.NONE;
503
+ this.state = H.NONE;
504
504
  }
505
505
  }
506
506
  function $s(r) {
@@ -882,7 +882,7 @@ class ci extends ke {
882
882
  XZ: [
883
883
  [new v(new q(0.2, 0.2, 0.01), s), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
884
884
  ]
885
- }, H = {
885
+ }, S = {
886
886
  START: [
887
887
  [new v(new lt(0.01, 2), n), null, null, null, "helper"]
888
888
  ],
@@ -1012,7 +1012,7 @@ class ci extends ke {
1012
1012
  }
1013
1013
  return it;
1014
1014
  }
1015
- this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = ce(w)), this.add(this.gizmo.rotate = ce(Z)), this.add(this.gizmo.scale = ce(ye)), this.add(this.picker.translate = ce(D)), this.add(this.picker.rotate = ce(Q)), this.add(this.picker.scale = ce(Mt)), this.add(this.helper.translate = ce(H)), this.add(this.helper.rotate = ce(_)), this.add(this.helper.scale = ce(Qn)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
1015
+ this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = ce(w)), this.add(this.gizmo.rotate = ce(Z)), this.add(this.gizmo.scale = ce(ye)), this.add(this.picker.translate = ce(D)), this.add(this.picker.rotate = ce(Q)), this.add(this.picker.scale = ce(Mt)), this.add(this.helper.translate = ce(S)), this.add(this.helper.rotate = ce(_)), this.add(this.helper.scale = ce(Qn)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
1016
1016
  }
1017
1017
  // updateMatrixWorld will update transformations and appearance of individual handles
1018
1018
  updateMatrixWorld(e) {
@@ -1096,7 +1096,7 @@ class Ai extends ke {
1096
1096
  return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
1097
1097
  }
1098
1098
  }
1099
- const He = new M(), pn = new me(), mn = new me(), gn = new M(), bn = new M();
1099
+ const Se = new M(), pn = new me(), mn = new me(), gn = new M(), bn = new M();
1100
1100
  class di {
1101
1101
  /**
1102
1102
  * Constructs a new CSS2D renderer.
@@ -1130,9 +1130,9 @@ class di {
1130
1130
  return;
1131
1131
  }
1132
1132
  if (p.isCSS2DObject) {
1133
- He.setFromMatrixPosition(p.matrixWorld), He.applyMatrix4(mn);
1134
- const g = He.z >= -1 && He.z <= 1 && p.layers.test(f.layers) === !0, x = p.element;
1135
- x.style.display = g === !0 ? "" : "none", g === !0 && (p.onBeforeRender(t, m, f), x.style.transform = "translate(" + -100 * p.center.x + "%," + -100 * p.center.y + "%)translate(" + (He.x * i + i) + "px," + (-He.y * o + o) + "px)", x.parentNode !== l && l.appendChild(x), p.onAfterRender(t, m, f));
1133
+ Se.setFromMatrixPosition(p.matrixWorld), Se.applyMatrix4(mn);
1134
+ const g = Se.z >= -1 && Se.z <= 1 && p.layers.test(f.layers) === !0, x = p.element;
1135
+ x.style.display = g === !0 ? "" : "none", g === !0 && (p.onBeforeRender(t, m, f), x.style.transform = "translate(" + -100 * p.center.x + "%," + -100 * p.center.y + "%)translate(" + (Se.x * i + i) + "px," + (-Se.y * o + o) + "px)", x.parentNode !== l && l.appendChild(x), p.onAfterRender(t, m, f));
1136
1136
  const C = {
1137
1137
  distanceToCameraSquared: u(f, p)
1138
1138
  };
@@ -1587,7 +1587,7 @@ function Ei(r) {
1587
1587
  console.warn("[selectModelHandle] 传入的 objectId 为空");
1588
1588
  return;
1589
1589
  }
1590
- Si(r);
1590
+ Hi(r);
1591
1591
  let e = null;
1592
1592
  st.forEach((t) => {
1593
1593
  t.userData.id == r && (e = t), t.children && t.children.forEach((s) => {
@@ -1613,12 +1613,12 @@ function Ri(r) {
1613
1613
  });
1614
1614
  const i = s.intersectObjects(n);
1615
1615
  if (i.length > 0) {
1616
- let o = Hi(i[0].object);
1616
+ let o = Si(i[0].object);
1617
1617
  Qt(o);
1618
1618
  } else
1619
1619
  Jt();
1620
1620
  }
1621
- function Hi(r) {
1621
+ function Si(r) {
1622
1622
  if (r.type === "Line") {
1623
1623
  const e = r.parent;
1624
1624
  switch (e.type) {
@@ -1630,7 +1630,7 @@ function Hi(r) {
1630
1630
  }
1631
1631
  return r;
1632
1632
  }
1633
- function Si(r, e = 500) {
1633
+ function Hi(r, e = 500) {
1634
1634
  var d;
1635
1635
  if (!I.camera || !I.orbitControls) {
1636
1636
  console.warn(
@@ -1638,10 +1638,6 @@ function Si(r, e = 500) {
1638
1638
  );
1639
1639
  return;
1640
1640
  }
1641
- if (r == null || r === "") {
1642
- console.warn("[focusOnObject] 传入的 objectId 为空,无法聚焦");
1643
- return;
1644
- }
1645
1641
  let t = null;
1646
1642
  if ((d = I.scene) == null || d.traverse((p) => {
1647
1643
  p.userData.id == r && (t = p);
@@ -1776,12 +1772,12 @@ async function Ki() {
1776
1772
  p.element.querySelectorAll(
1777
1773
  ".css2d-data-panel-item"
1778
1774
  ).forEach((x) => {
1779
- var w, D, H;
1775
+ var w, D, S;
1780
1776
  const C = x.querySelector(".item-label"), y = x.querySelector(".item-value");
1781
1777
  if (C && y) {
1782
1778
  const Z = (C.textContent || "").trim(), _ = ((D = (w = y.childNodes[0]) == null ? void 0 : w.textContent) == null ? void 0 : D.trim()) || "", Q = y.querySelector(
1783
1779
  "span"
1784
- ), ye = Q ? (Q.textContent || "").trim() : void 0, Mt = ((H = x.getAttribute("data-item-code")) == null ? void 0 : H.trim()) || void 0;
1780
+ ), ye = Q ? (Q.textContent || "").trim() : void 0, Mt = ((S = x.getAttribute("data-item-code")) == null ? void 0 : S.trim()) || void 0;
1785
1781
  f.push({ label: Z, value: _, unit: ye, code: Mt });
1786
1782
  }
1787
1783
  }), h.parent && s.set(
@@ -2182,11 +2178,11 @@ class no extends Yt {
2182
2178
  let D = t.materials[w];
2183
2179
  if (this.materials !== null) {
2184
2180
  if (D = this.materials.create(y.name), h && D && !(D instanceof Ze)) {
2185
- const H = new Ze();
2186
- Qe.prototype.copy.call(H, D), H.color.copy(D.color), D = H;
2181
+ const S = new Ze();
2182
+ Qe.prototype.copy.call(S, D), S.color.copy(D.color), D = S;
2187
2183
  } else if (d && D && !(D instanceof Ue)) {
2188
- const H = new Ue({ size: 10, sizeAttenuation: !1 });
2189
- Qe.prototype.copy.call(H, D), H.color.copy(D.color), H.map = D.map, D = H;
2184
+ const S = new Ue({ size: 10, sizeAttenuation: !1 });
2185
+ Qe.prototype.copy.call(S, D), S.color.copy(D.color), S.map = D.map, D = S;
2190
2186
  }
2191
2187
  }
2192
2188
  D === void 0 && (h ? D = new Ze() : d ? D = new Ue({ size: 1, sizeAttenuation: !1 }) : D = new ps(), D.name = y.name, D.flatShading = !y.smooth, D.vertexColors = p, t.materials[w] = D), f.push(D);
@@ -2214,7 +2210,7 @@ class no extends Yt {
2214
2210
  function wn(r, e) {
2215
2211
  if (e === ms)
2216
2212
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), r;
2217
- if (e === zt || e === Hn) {
2213
+ if (e === zt || e === Sn) {
2218
2214
  let t = r.getIndex();
2219
2215
  if (t === null) {
2220
2216
  const o = [], a = r.getAttribute("position");
@@ -2932,8 +2928,8 @@ class Zn extends zs {
2932
2928
  interpolate_(e, t, s, n) {
2933
2929
  const i = this.resultBuffer, o = this.sampleValues, a = this.valueSize, l = a * 2, c = a * 3, A = n - t, u = (s - t) / A, h = u * u, d = h * u, p = e * c, m = p - c, f = -2 * d + 3 * h, g = d - h, x = 1 - f, C = g - h + u;
2934
2930
  for (let y = 0; y !== a; y++) {
2935
- const w = o[m + y + a], D = o[m + y + l] * A, H = o[p + y + a], Z = o[p + y] * A;
2936
- i[y] = x * w + C * D + f * H + g * Z;
2931
+ const w = o[m + y + a], D = o[m + y + l] * A, S = o[p + y + a], Z = o[p + y] * A;
2932
+ i[y] = x * w + C * D + f * S + g * Z;
2937
2933
  }
2938
2934
  return i;
2939
2935
  }
@@ -2971,7 +2967,7 @@ const te = {
2971
2967
  33071: Ts,
2972
2968
  33648: Ps,
2973
2969
  10497: Ft
2974
- }, Ht = {
2970
+ }, St = {
2975
2971
  SCALAR: 1,
2976
2972
  VEC2: 2,
2977
2973
  VEC3: 3,
@@ -3001,7 +2997,7 @@ const te = {
3001
2997
  // keyframe track will be initialized with a default interpolation type, then modified.
3002
2998
  LINEAR: Wn,
3003
2999
  STEP: ks
3004
- }, St = {
3000
+ }, Ht = {
3005
3001
  OPAQUE: "OPAQUE",
3006
3002
  MASK: "MASK",
3007
3003
  BLEND: "BLEND"
@@ -3024,7 +3020,7 @@ function xe(r, e, t) {
3024
3020
  function re(r, e) {
3025
3021
  e.extras !== void 0 && (typeof e.extras == "object" ? Object.assign(r.userData, e.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + e.extras));
3026
3022
  }
3027
- function Ho(r, e, t) {
3023
+ function So(r, e, t) {
3028
3024
  let s = !1, n = !1, i = !1;
3029
3025
  for (let c = 0, A = e.length; c < A; c++) {
3030
3026
  const u = e[c];
@@ -3056,7 +3052,7 @@ function Ho(r, e, t) {
3056
3052
  return s && (r.morphAttributes.position = A), n && (r.morphAttributes.normal = u), i && (r.morphAttributes.color = h), r.morphTargetsRelative = !0, r;
3057
3053
  });
3058
3054
  }
3059
- function So(r, e) {
3055
+ function Ho(r, e) {
3060
3056
  if (r.updateMorphTargets(), e.weights !== void 0)
3061
3057
  for (let t = 0, s = e.weights.length; t < s; t++)
3062
3058
  r.morphTargetInfluences[t] = e.weights[t];
@@ -3353,25 +3349,25 @@ class ko {
3353
3349
  loadAccessor(e) {
3354
3350
  const t = this, s = this.json, n = this.json.accessors[e];
3355
3351
  if (n.bufferView === void 0 && n.sparse === void 0) {
3356
- const o = Ht[n.type], a = je[n.componentType], l = n.normalized === !0, c = new a(n.count * o);
3352
+ const o = St[n.type], a = je[n.componentType], l = n.normalized === !0, c = new a(n.count * o);
3357
3353
  return Promise.resolve(new _e(c, o, l));
3358
3354
  }
3359
3355
  const i = [];
3360
3356
  return n.bufferView !== void 0 ? i.push(this.getDependency("bufferView", n.bufferView)) : i.push(null), n.sparse !== void 0 && (i.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), i.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(i).then(function(o) {
3361
- const a = o[0], l = Ht[n.type], c = je[n.componentType], A = c.BYTES_PER_ELEMENT, u = A * l, h = n.byteOffset || 0, d = n.bufferView !== void 0 ? s.bufferViews[n.bufferView].byteStride : void 0, p = n.normalized === !0;
3357
+ const a = o[0], l = St[n.type], c = je[n.componentType], A = c.BYTES_PER_ELEMENT, u = A * l, h = n.byteOffset || 0, d = n.bufferView !== void 0 ? s.bufferViews[n.bufferView].byteStride : void 0, p = n.normalized === !0;
3362
3358
  let m, f;
3363
3359
  if (d && d !== u) {
3364
3360
  const g = Math.floor(h / d), x = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + g + ":" + n.count;
3365
3361
  let C = t.cache.get(x);
3366
- C || (m = new c(a, g * d, n.count * d / A), C = new Sn(m, d / A), t.cache.add(x, C)), f = new Ln(C, l, h % d / A, p);
3362
+ C || (m = new c(a, g * d, n.count * d / A), C = new Hn(m, d / A), t.cache.add(x, C)), f = new Ln(C, l, h % d / A, p);
3367
3363
  } else
3368
3364
  a === null ? m = new c(n.count * l) : m = new c(a, h, n.count * l), f = new _e(m, l, p);
3369
3365
  if (n.sparse !== void 0) {
3370
- const g = Ht.SCALAR, x = je[n.sparse.indices.componentType], C = n.sparse.indices.byteOffset || 0, y = n.sparse.values.byteOffset || 0, w = new x(o[1], C, n.sparse.count * g), D = new c(o[2], y, n.sparse.count * l);
3366
+ const g = St.SCALAR, x = je[n.sparse.indices.componentType], C = n.sparse.indices.byteOffset || 0, y = n.sparse.values.byteOffset || 0, w = new x(o[1], C, n.sparse.count * g), D = new c(o[2], y, n.sparse.count * l);
3371
3367
  a !== null && (f = new _e(f.array.slice(), f.itemSize, f.normalized)), f.normalized = !1;
3372
- for (let H = 0, Z = w.length; H < Z; H++) {
3373
- const _ = w[H];
3374
- if (f.setX(_, D[H * l]), l >= 2 && f.setY(_, D[H * l + 1]), l >= 3 && f.setZ(_, D[H * l + 2]), l >= 4 && f.setW(_, D[H * l + 3]), l >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
3368
+ for (let S = 0, Z = w.length; S < Z; S++) {
3369
+ const _ = w[S];
3370
+ if (f.setX(_, D[S * l]), l >= 2 && f.setY(_, D[S * l + 1]), l >= 3 && f.setZ(_, D[S * l + 2]), l >= 4 && f.setW(_, D[S * l + 3]), l >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
3375
3371
  }
3376
3372
  f.normalized = p;
3377
3373
  }
@@ -3521,8 +3517,8 @@ class ko {
3521
3517
  })));
3522
3518
  }
3523
3519
  i.doubleSided === !0 && (a.side = Rn);
3524
- const A = i.alphaMode || St.OPAQUE;
3525
- if (A === St.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, A === St.MASK && (a.alphaTest = i.alphaCutoff !== void 0 ? i.alphaCutoff : 0.5)), i.normalTexture !== void 0 && o !== Pe && (c.push(t.assignTexture(a, "normalMap", i.normalTexture)), a.normalScale = new Y(1, 1), i.normalTexture.scale !== void 0)) {
3520
+ const A = i.alphaMode || Ht.OPAQUE;
3521
+ if (A === Ht.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, A === Ht.MASK && (a.alphaTest = i.alphaCutoff !== void 0 ? i.alphaCutoff : 0.5)), i.normalTexture !== void 0 && o !== Pe && (c.push(t.assignTexture(a, "normalMap", i.normalTexture)), a.normalScale = new Y(1, 1), i.normalTexture.scale !== void 0)) {
3526
3522
  const u = i.normalTexture.scale;
3527
3523
  a.normalScale.set(u, u);
3528
3524
  }
@@ -3594,7 +3590,7 @@ class ko {
3594
3590
  let g;
3595
3591
  const x = c[d];
3596
3592
  if (f.mode === te.TRIANGLES || f.mode === te.TRIANGLE_STRIP || f.mode === te.TRIANGLE_FAN || f.mode === void 0)
3597
- g = i.isSkinnedMesh === !0 ? new Es(m, x) : new v(m, x), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), f.mode === te.TRIANGLE_STRIP ? g.geometry = wn(g.geometry, Hn) : f.mode === te.TRIANGLE_FAN && (g.geometry = wn(g.geometry, zt));
3593
+ g = i.isSkinnedMesh === !0 ? new Es(m, x) : new v(m, x), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), f.mode === te.TRIANGLE_STRIP ? g.geometry = wn(g.geometry, Sn) : f.mode === te.TRIANGLE_FAN && (g.geometry = wn(g.geometry, zt));
3598
3594
  else if (f.mode === te.LINES)
3599
3595
  g = new Wt(m, x);
3600
3596
  else if (f.mode === te.LINE_STRIP)
@@ -3605,7 +3601,7 @@ class ko {
3605
3601
  g = new pt(m, x);
3606
3602
  else
3607
3603
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + f.mode);
3608
- Object.keys(g.geometry.morphAttributes).length > 0 && So(g, i), g.name = t.createUniqueName(i.name || "mesh_" + e), re(g, i), f.extensions && xe(n, g, f), t.assignFinalMaterial(g), u.push(g);
3604
+ Object.keys(g.geometry.morphAttributes).length > 0 && Ho(g, i), g.name = t.createUniqueName(i.name || "mesh_" + e), re(g, i), f.extensions && xe(n, g, f), t.assignFinalMaterial(g), u.push(g);
3609
3605
  }
3610
3606
  for (let d = 0, p = u.length; d < p; d++)
3611
3607
  t.associations.set(u[d], {
@@ -3635,7 +3631,7 @@ class ko {
3635
3631
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
3636
3632
  return;
3637
3633
  }
3638
- return s.type === "perspective" ? t = new Hs(En.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : s.type === "orthographic" && (t = new Ss(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), s.name && (t.name = this.createUniqueName(s.name)), re(t, s), Promise.resolve(t);
3634
+ return s.type === "perspective" ? t = new Ss(En.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : s.type === "orthographic" && (t = new Hs(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), s.name && (t.name = this.createUniqueName(s.name)), re(t, s), Promise.resolve(t);
3639
3635
  }
3640
3636
  /**
3641
3637
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -3684,10 +3680,10 @@ class ko {
3684
3680
  ]).then(function(u) {
3685
3681
  const h = u[0], d = u[1], p = u[2], m = u[3], f = u[4], g = [];
3686
3682
  for (let C = 0, y = h.length; C < y; C++) {
3687
- const w = h[C], D = d[C], H = p[C], Z = m[C], _ = f[C];
3683
+ const w = h[C], D = d[C], S = p[C], Z = m[C], _ = f[C];
3688
3684
  if (w === void 0) continue;
3689
3685
  w.updateMatrix && w.updateMatrix();
3690
- const Q = s._createAnimationTracks(w, D, H, Z, _);
3686
+ const Q = s._createAnimationTracks(w, D, S, Z, _);
3691
3687
  if (Q)
3692
3688
  for (let ye = 0; ye < Q.length; ye++)
3693
3689
  g.push(Q[ye]);
@@ -3920,7 +3916,7 @@ function Tn(r, e, t) {
3920
3916
  n.push(o);
3921
3917
  }
3922
3918
  return qt.workingColorSpace !== ae && "COLOR_0" in s && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${qt.workingColorSpace}" not supported.`), re(r, e), Wo(r, e, t), Promise.all(n).then(function() {
3923
- return e.targets !== void 0 ? Ho(r, e.targets, t) : r;
3919
+ return e.targets !== void 0 ? So(r, e.targets, t) : r;
3924
3920
  });
3925
3921
  }
3926
3922
  const Nt = /* @__PURE__ */ new WeakMap();
@@ -4039,7 +4035,7 @@ class zo extends Yt {
4039
4035
  if (o === a)
4040
4036
  c = new _e(i, o);
4041
4037
  else {
4042
- const A = new Sn(i, a);
4038
+ const A = new Hn(i, a);
4043
4039
  c = new Ln(A, o, 0);
4044
4040
  }
4045
4041
  n === "color" && (this._assignVertexColorSpace(c, l), c.normalized = !(i instanceof Float32Array)), t.setAttribute(n, c);
@@ -4185,11 +4181,11 @@ function Go() {
4185
4181
  D = w.slice();
4186
4182
  else {
4187
4183
  D = new A(C / A.BYTES_PER_ELEMENT);
4188
- let H = 0;
4184
+ let S = 0;
4189
4185
  for (let Z = 0, _ = w.length; Z < _; Z++) {
4190
4186
  for (let Q = 0; Q < d; Q++)
4191
- D[H + Q] = w[Z * d + Q];
4192
- H += g;
4187
+ D[S + Q] = w[Z * d + Q];
4188
+ S += g;
4193
4189
  }
4194
4190
  }
4195
4191
  return o._free(y), {
@@ -4324,16 +4320,28 @@ function Ko(r) {
4324
4320
  return console.warn("请先选中一个模型,再添加数据面板"), null;
4325
4321
  const t = Zt(e);
4326
4322
  t && (t.dispose(), hi(e));
4327
- const s = [
4323
+ const s = Math.min(window.innerWidth, 7e3), n = 1920, i = 200, o = Math.max(
4324
+ 150,
4325
+ // 最小宽度 150px(小屏设备)
4326
+ Math.round(s / n * i)
4327
+ ), l = Math.max(
4328
+ 12,
4329
+ Math.min(
4330
+ 20,
4331
+ Math.round(o / i * 13)
4332
+ )
4333
+ ), c = [
4328
4334
  { label: "温度", value: "30", unit: "℃" },
4329
4335
  { label: "湿度", value: "65", unit: "%" },
4330
4336
  { label: "压力", value: "101.3", unit: "kPa" },
4331
4337
  { label: "名称", value: e.name || "未命名" }
4332
- ], n = new Gn({
4338
+ ], A = new Gn({
4333
4339
  title: (r == null ? void 0 : r.title) || "数据面板",
4334
- items: (r == null ? void 0 : r.items) || s
4340
+ items: (r == null ? void 0 : r.items) || c,
4341
+ width: `${o}px`,
4342
+ fontSize: `${l}px`
4335
4343
  });
4336
- return n.attachTo(e), Fn(e, n), n;
4344
+ return A.attachTo(e), Fn(e, A), A;
4337
4345
  }
4338
4346
  const Zo = {
4339
4347
  key: 1,
@@ -4742,10 +4750,10 @@ const Zo = {
4742
4750
  }, Dr = { class: "ud-value-json-preview" }, Pr = ["onClick"], Tr = {
4743
4751
  key: 0,
4744
4752
  class: "ud-json-error"
4745
- }, Or = { class: "ud-json-actions" }, Er = ["onClick"], Rr = ["onClick"], Hr = {
4753
+ }, Or = { class: "ud-json-actions" }, Er = ["onClick"], Rr = ["onClick"], Sr = {
4746
4754
  key: 1,
4747
4755
  class: "userdata-empty"
4748
- }, Sr = /* @__PURE__ */ be({
4756
+ }, Hr = /* @__PURE__ */ be({
4749
4757
  __name: "UserDataTab",
4750
4758
  props: {
4751
4759
  selectedObject: {}
@@ -4869,7 +4877,7 @@ const Zo = {
4869
4877
  "onUpdate:modelValue": y[0] || (y[0] = (w) => t.value = w),
4870
4878
  placeholder: "属性名",
4871
4879
  class: "ud-input",
4872
- onKeyup: Se(u, ["enter"])
4880
+ onKeyup: He(u, ["enter"])
4873
4881
  }, null, 544), [
4874
4882
  [N, t.value]
4875
4883
  ]),
@@ -4877,7 +4885,7 @@ const Zo = {
4877
4885
  "onUpdate:modelValue": y[1] || (y[1] = (w) => s.value = w),
4878
4886
  placeholder: "值",
4879
4887
  class: "ud-input ud-textarea",
4880
- onKeyup: Se(jt(u, ["prevent"]), ["enter"])
4888
+ onKeyup: He(jt(u, ["prevent"]), ["enter"])
4881
4889
  }, null, 40, xr), [
4882
4890
  [N, s.value]
4883
4891
  ]),
@@ -4902,12 +4910,12 @@ const Zo = {
4902
4910
  b("button", {
4903
4911
  class: "ud-btn edit-json-btn",
4904
4912
  title: "编辑对象",
4905
- onClick: (H) => p(w.key)
4913
+ onClick: (S) => p(w.key)
4906
4914
  }, " ✎ ", 8, Pr)
4907
4915
  ], 64)) : (T(), R(ve, { key: 1 }, [
4908
4916
  o.value ? (T(), R("div", Tr, " ⚠ " + ie(o.value), 1)) : X("", !0),
4909
4917
  E(b("textarea", {
4910
- "onUpdate:modelValue": y[2] || (y[2] = (H) => i.value = H),
4918
+ "onUpdate:modelValue": y[2] || (y[2] = (S) => i.value = S),
4911
4919
  class: se(["ud-json-textarea", { "has-error": o.value }]),
4912
4920
  rows: "3",
4913
4921
  onInput: m
@@ -4918,7 +4926,7 @@ const Zo = {
4918
4926
  b("button", {
4919
4927
  class: "ud-btn apply-btn",
4920
4928
  title: "应用修改",
4921
- onClick: (H) => f(w.key)
4929
+ onClick: (S) => f(w.key)
4922
4930
  }, " ✓ ", 8, Er),
4923
4931
  b("button", {
4924
4932
  class: "ud-btn cancel-btn",
@@ -4931,11 +4939,11 @@ const Zo = {
4931
4939
  key: 2,
4932
4940
  class: "ud-btn del-btn",
4933
4941
  title: "删除",
4934
- onClick: (H) => h(w.key)
4942
+ onClick: (S) => h(w.key)
4935
4943
  }, " ✕ ", 8, Rr)) : X("", !0)
4936
4944
  ], 64)) : X("", !0)
4937
4945
  ], 2))), 128))
4938
- ])) : (T(), R("div", Hr, "暂无自定义数据")),
4946
+ ])) : (T(), R("div", Sr, "暂无自定义数据")),
4939
4947
  b("button", {
4940
4948
  class: "get-camera-btn",
4941
4949
  onClick: x
@@ -4943,7 +4951,7 @@ const Zo = {
4943
4951
  ])
4944
4952
  ]));
4945
4953
  }
4946
- }), Lr = /* @__PURE__ */ Ie(Sr, [["__scopeId", "data-v-4e117415"]]), Nr = { class: "datapanel-tab" }, jr = { class: "property-group" }, kr = { class: "dp-section" }, Wr = { class: "dp-visibility-row" }, zr = { class: "dp-toggle" }, Gr = { class: "dp-visibility-text" }, Fr = { class: "dp-section" }, qr = { class: "dp-section" }, Xr = { class: "dp-list" }, Br = ["onUpdate:modelValue"], Ur = ["onUpdate:modelValue"], Vr = ["onUpdate:modelValue"], Yr = ["onUpdate:modelValue"], Kr = ["onClick"], Zr = { class: "dp-add-row" }, Qr = /* @__PURE__ */ be({
4954
+ }), Lr = /* @__PURE__ */ Ie(Hr, [["__scopeId", "data-v-4e117415"]]), Nr = { class: "datapanel-tab" }, jr = { class: "property-group" }, kr = { class: "dp-section" }, Wr = { class: "dp-visibility-row" }, zr = { class: "dp-toggle" }, Gr = { class: "dp-visibility-text" }, Fr = { class: "dp-section" }, qr = { class: "dp-section" }, Xr = { class: "dp-list" }, Br = ["onUpdate:modelValue"], Ur = ["onUpdate:modelValue"], Vr = ["onUpdate:modelValue"], Yr = ["onUpdate:modelValue"], Kr = ["onClick"], Zr = { class: "dp-add-row" }, Qr = /* @__PURE__ */ be({
4947
4955
  __name: "DataPanelTab",
4948
4956
  props: {
4949
4957
  selectedObject: {}
@@ -5065,7 +5073,7 @@ const Zo = {
5065
5073
  class: "dp-input dp-input-sm",
5066
5074
  "onUpdate:modelValue": f[2] || (f[2] = (g) => i.value = g),
5067
5075
  placeholder: "标签",
5068
- onKeyup: Se(p, ["enter"])
5076
+ onKeyup: He(p, ["enter"])
5069
5077
  }, null, 544), [
5070
5078
  [N, i.value]
5071
5079
  ]),
@@ -5074,7 +5082,7 @@ const Zo = {
5074
5082
  class: "dp-input dp-input-sm",
5075
5083
  "onUpdate:modelValue": f[3] || (f[3] = (g) => o.value = g),
5076
5084
  placeholder: "值",
5077
- onKeyup: Se(p, ["enter"])
5085
+ onKeyup: He(p, ["enter"])
5078
5086
  }, null, 544), [
5079
5087
  [N, o.value]
5080
5088
  ]),
@@ -5083,7 +5091,7 @@ const Zo = {
5083
5091
  class: "dp-input dp-input-xs",
5084
5092
  "onUpdate:modelValue": f[4] || (f[4] = (g) => a.value = g),
5085
5093
  placeholder: "单位",
5086
- onKeyup: Se(p, ["enter"])
5094
+ onKeyup: He(p, ["enter"])
5087
5095
  }, null, 544), [
5088
5096
  [N, a.value]
5089
5097
  ]),
@@ -5092,7 +5100,7 @@ const Zo = {
5092
5100
  class: "dp-input dp-input-xs",
5093
5101
  "onUpdate:modelValue": f[5] || (f[5] = (g) => l.value = g),
5094
5102
  placeholder: "编码",
5095
- onKeyup: Se(p, ["enter"])
5103
+ onKeyup: He(p, ["enter"])
5096
5104
  }, null, 544), [
5097
5105
  [N, l.value]
5098
5106
  ]),
@@ -5460,11 +5468,11 @@ const $r = {
5460
5468
  r.mode === "edit" ? (T(), Ke(ya, { key: 2 })) : X("", !0)
5461
5469
  ]));
5462
5470
  }
5463
- }), Ha = /* @__PURE__ */ Ie(wa, [["__scopeId", "data-v-ffa5f5c1"]]);
5471
+ }), Sa = /* @__PURE__ */ Ie(wa, [["__scopeId", "data-v-ffa5f5c1"]]);
5464
5472
  export {
5465
5473
  ya as BottomBar,
5466
5474
  Gn as DataPanel,
5467
- Ha as DrawingBoard,
5475
+ Sa as DrawingBoard,
5468
5476
  ca as PropertyPanel,
5469
5477
  ga as TopBar,
5470
5478
  er as TreeItem,
@@ -5479,7 +5487,7 @@ export {
5479
5487
  Qi as destroyEditor,
5480
5488
  gi as disposeCSS2DRenderer,
5481
5489
  Ki as exportSceneToJSON,
5482
- Si as focusOnObject,
5490
+ Hi as focusOnObject,
5483
5491
  Ta as getCSS2DRenderer,
5484
5492
  Yi as getCamera,
5485
5493
  Zt as getDataPanel,