vim-web 0.3.44-dev.0 → 0.3.44-dev.2

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.
@@ -13866,9 +13866,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
13866
13866
  normalize: normalize$1,
13867
13867
  denormalize
13868
13868
  };
13869
- let Vector2$1 = class Vector22 {
13869
+ class Vector2 {
13870
13870
  constructor(x = 0, y = 0) {
13871
- Vector22.prototype.isVector2 = true;
13871
+ Vector2.prototype.isVector2 = true;
13872
13872
  this.x = x;
13873
13873
  this.y = y;
13874
13874
  }
@@ -14128,7 +14128,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
14128
14128
  yield this.x;
14129
14129
  yield this.y;
14130
14130
  }
14131
- };
14131
+ }
14132
14132
  class Matrix3 {
14133
14133
  constructor(n11, n12, n13, n21, n22, n23, n31, n32, n33) {
14134
14134
  Matrix3.prototype.isMatrix3 = true;
@@ -14764,9 +14764,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
14764
14764
  this.format = format;
14765
14765
  this.internalFormat = null;
14766
14766
  this.type = type;
14767
- this.offset = new Vector2$1(0, 0);
14768
- this.repeat = new Vector2$1(1, 1);
14769
- this.center = new Vector2$1(0, 0);
14767
+ this.offset = new Vector2(0, 0);
14768
+ this.repeat = new Vector2(1, 1);
14769
+ this.center = new Vector2(0, 0);
14770
14770
  this.rotation = 0;
14771
14771
  this.matrixAutoUpdate = true;
14772
14772
  this.matrix = new Matrix3();
@@ -15851,9 +15851,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
15851
15851
  yield this._w;
15852
15852
  }
15853
15853
  }
15854
- let Vector3$1 = class Vector32 {
15854
+ class Vector3 {
15855
15855
  constructor(x = 0, y = 0, z = 0) {
15856
- Vector32.prototype.isVector3 = true;
15856
+ Vector3.prototype.isVector3 = true;
15857
15857
  this.x = x;
15858
15858
  this.y = y;
15859
15859
  this.z = z;
@@ -16263,11 +16263,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16263
16263
  yield this.y;
16264
16264
  yield this.z;
16265
16265
  }
16266
- };
16267
- const _vector$c = /* @__PURE__ */ new Vector3$1();
16266
+ }
16267
+ const _vector$c = /* @__PURE__ */ new Vector3();
16268
16268
  const _quaternion$4 = /* @__PURE__ */ new Quaternion();
16269
- let Box3$1 = class Box3 {
16270
- constructor(min2 = new Vector3$1(Infinity, Infinity, Infinity), max2 = new Vector3$1(-Infinity, -Infinity, -Infinity)) {
16269
+ class Box3 {
16270
+ constructor(min2 = new Vector3(Infinity, Infinity, Infinity), max2 = new Vector3(-Infinity, -Infinity, -Infinity)) {
16271
16271
  this.isBox3 = true;
16272
16272
  this.min = min2;
16273
16273
  this.max = max2;
@@ -16526,29 +16526,29 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16526
16526
  equals(box) {
16527
16527
  return box.min.equals(this.min) && box.max.equals(this.max);
16528
16528
  }
16529
- };
16529
+ }
16530
16530
  const _points = [
16531
- /* @__PURE__ */ new Vector3$1(),
16532
- /* @__PURE__ */ new Vector3$1(),
16533
- /* @__PURE__ */ new Vector3$1(),
16534
- /* @__PURE__ */ new Vector3$1(),
16535
- /* @__PURE__ */ new Vector3$1(),
16536
- /* @__PURE__ */ new Vector3$1(),
16537
- /* @__PURE__ */ new Vector3$1(),
16538
- /* @__PURE__ */ new Vector3$1()
16531
+ /* @__PURE__ */ new Vector3(),
16532
+ /* @__PURE__ */ new Vector3(),
16533
+ /* @__PURE__ */ new Vector3(),
16534
+ /* @__PURE__ */ new Vector3(),
16535
+ /* @__PURE__ */ new Vector3(),
16536
+ /* @__PURE__ */ new Vector3(),
16537
+ /* @__PURE__ */ new Vector3(),
16538
+ /* @__PURE__ */ new Vector3()
16539
16539
  ];
16540
- const _vector$b = /* @__PURE__ */ new Vector3$1();
16541
- const _box$4 = /* @__PURE__ */ new Box3$1();
16542
- const _v0$2 = /* @__PURE__ */ new Vector3$1();
16543
- const _v1$7 = /* @__PURE__ */ new Vector3$1();
16544
- const _v2$4 = /* @__PURE__ */ new Vector3$1();
16545
- const _f0 = /* @__PURE__ */ new Vector3$1();
16546
- const _f1 = /* @__PURE__ */ new Vector3$1();
16547
- const _f2 = /* @__PURE__ */ new Vector3$1();
16548
- const _center = /* @__PURE__ */ new Vector3$1();
16549
- const _extents = /* @__PURE__ */ new Vector3$1();
16550
- const _triangleNormal = /* @__PURE__ */ new Vector3$1();
16551
- const _testAxis = /* @__PURE__ */ new Vector3$1();
16540
+ const _vector$b = /* @__PURE__ */ new Vector3();
16541
+ const _box$4 = /* @__PURE__ */ new Box3();
16542
+ const _v0$2 = /* @__PURE__ */ new Vector3();
16543
+ const _v1$7 = /* @__PURE__ */ new Vector3();
16544
+ const _v2$4 = /* @__PURE__ */ new Vector3();
16545
+ const _f0 = /* @__PURE__ */ new Vector3();
16546
+ const _f1 = /* @__PURE__ */ new Vector3();
16547
+ const _f2 = /* @__PURE__ */ new Vector3();
16548
+ const _center = /* @__PURE__ */ new Vector3();
16549
+ const _extents = /* @__PURE__ */ new Vector3();
16550
+ const _triangleNormal = /* @__PURE__ */ new Vector3();
16551
+ const _testAxis = /* @__PURE__ */ new Vector3();
16552
16552
  function satForAxes(axes, v0, v1, v2, extents) {
16553
16553
  for (let i2 = 0, j = axes.length - 3; i2 <= j; i2 += 3) {
16554
16554
  _testAxis.fromArray(axes, i2);
@@ -16562,11 +16562,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16562
16562
  }
16563
16563
  return true;
16564
16564
  }
16565
- const _box$3 = /* @__PURE__ */ new Box3$1();
16566
- const _v1$6 = /* @__PURE__ */ new Vector3$1();
16567
- const _v2$3 = /* @__PURE__ */ new Vector3$1();
16565
+ const _box$3 = /* @__PURE__ */ new Box3();
16566
+ const _v1$6 = /* @__PURE__ */ new Vector3();
16567
+ const _v2$3 = /* @__PURE__ */ new Vector3();
16568
16568
  class Sphere {
16569
- constructor(center = new Vector3$1(), radius = -1) {
16569
+ constructor(center = new Vector3(), radius = -1) {
16570
16570
  this.isSphere = true;
16571
16571
  this.center = center;
16572
16572
  this.radius = radius;
@@ -16686,15 +16686,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16686
16686
  return new this.constructor().copy(this);
16687
16687
  }
16688
16688
  }
16689
- const _vector$a = /* @__PURE__ */ new Vector3$1();
16690
- const _segCenter = /* @__PURE__ */ new Vector3$1();
16691
- const _segDir = /* @__PURE__ */ new Vector3$1();
16692
- const _diff = /* @__PURE__ */ new Vector3$1();
16693
- const _edge1 = /* @__PURE__ */ new Vector3$1();
16694
- const _edge2 = /* @__PURE__ */ new Vector3$1();
16695
- const _normal$1 = /* @__PURE__ */ new Vector3$1();
16689
+ const _vector$a = /* @__PURE__ */ new Vector3();
16690
+ const _segCenter = /* @__PURE__ */ new Vector3();
16691
+ const _segDir = /* @__PURE__ */ new Vector3();
16692
+ const _diff = /* @__PURE__ */ new Vector3();
16693
+ const _edge1 = /* @__PURE__ */ new Vector3();
16694
+ const _edge2 = /* @__PURE__ */ new Vector3();
16695
+ const _normal$1 = /* @__PURE__ */ new Vector3();
16696
16696
  class Ray {
16697
- constructor(origin = new Vector3$1(), direction = new Vector3$1(0, 0, -1)) {
16697
+ constructor(origin = new Vector3(), direction = new Vector3(0, 0, -1)) {
16698
16698
  this.origin = origin;
16699
16699
  this.direction = direction;
16700
16700
  }
@@ -17692,13 +17692,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17692
17692
  return array;
17693
17693
  }
17694
17694
  }
17695
- const _v1$5 = /* @__PURE__ */ new Vector3$1();
17695
+ const _v1$5 = /* @__PURE__ */ new Vector3();
17696
17696
  const _m1$2 = /* @__PURE__ */ new Matrix4();
17697
- const _zero = /* @__PURE__ */ new Vector3$1(0, 0, 0);
17698
- const _one = /* @__PURE__ */ new Vector3$1(1, 1, 1);
17699
- const _x = /* @__PURE__ */ new Vector3$1();
17700
- const _y = /* @__PURE__ */ new Vector3$1();
17701
- const _z = /* @__PURE__ */ new Vector3$1();
17697
+ const _zero = /* @__PURE__ */ new Vector3(0, 0, 0);
17698
+ const _one = /* @__PURE__ */ new Vector3(1, 1, 1);
17699
+ const _x = /* @__PURE__ */ new Vector3();
17700
+ const _y = /* @__PURE__ */ new Vector3();
17701
+ const _z = /* @__PURE__ */ new Vector3();
17702
17702
  const _matrix$2 = /* @__PURE__ */ new Matrix4();
17703
17703
  const _quaternion$3 = /* @__PURE__ */ new Quaternion();
17704
17704
  class Euler {
@@ -17902,16 +17902,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17902
17902
  }
17903
17903
  }
17904
17904
  let _object3DId = 0;
17905
- const _v1$4 = /* @__PURE__ */ new Vector3$1();
17905
+ const _v1$4 = /* @__PURE__ */ new Vector3();
17906
17906
  const _q1 = /* @__PURE__ */ new Quaternion();
17907
17907
  const _m1$1$1 = /* @__PURE__ */ new Matrix4();
17908
- const _target = /* @__PURE__ */ new Vector3$1();
17909
- const _position$3 = /* @__PURE__ */ new Vector3$1();
17910
- const _scale$2 = /* @__PURE__ */ new Vector3$1();
17908
+ const _target = /* @__PURE__ */ new Vector3();
17909
+ const _position$3 = /* @__PURE__ */ new Vector3();
17910
+ const _scale$2 = /* @__PURE__ */ new Vector3();
17911
17911
  const _quaternion$2 = /* @__PURE__ */ new Quaternion();
17912
- const _xAxis = /* @__PURE__ */ new Vector3$1(1, 0, 0);
17913
- const _yAxis = /* @__PURE__ */ new Vector3$1(0, 1, 0);
17914
- const _zAxis = /* @__PURE__ */ new Vector3$1(0, 0, 1);
17912
+ const _xAxis = /* @__PURE__ */ new Vector3(1, 0, 0);
17913
+ const _yAxis = /* @__PURE__ */ new Vector3(0, 1, 0);
17914
+ const _zAxis = /* @__PURE__ */ new Vector3(0, 0, 1);
17915
17915
  const _addedEvent = { type: "added" };
17916
17916
  const _removedEvent = { type: "removed" };
17917
17917
  const _childaddedEvent = { type: "childadded", child: null };
@@ -17927,10 +17927,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17927
17927
  this.parent = null;
17928
17928
  this.children = [];
17929
17929
  this.up = Object3D2.DEFAULT_UP.clone();
17930
- const position = new Vector3$1();
17930
+ const position = new Vector3();
17931
17931
  const rotation = new Euler();
17932
17932
  const quaternion = new Quaternion();
17933
- const scale = new Vector3$1(1, 1, 1);
17933
+ const scale = new Vector3(1, 1, 1);
17934
17934
  function onRotationChange() {
17935
17935
  quaternion.setFromEuler(rotation, false);
17936
17936
  }
@@ -18456,24 +18456,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
18456
18456
  return this;
18457
18457
  }
18458
18458
  };
18459
- Object3D$1.DEFAULT_UP = /* @__PURE__ */ new Vector3$1(0, 1, 0);
18459
+ Object3D$1.DEFAULT_UP = /* @__PURE__ */ new Vector3(0, 1, 0);
18460
18460
  Object3D$1.DEFAULT_MATRIX_AUTO_UPDATE = true;
18461
18461
  Object3D$1.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = true;
18462
- const _v0$1 = /* @__PURE__ */ new Vector3$1();
18463
- const _v1$3 = /* @__PURE__ */ new Vector3$1();
18464
- const _v2$2 = /* @__PURE__ */ new Vector3$1();
18465
- const _v3$2 = /* @__PURE__ */ new Vector3$1();
18466
- const _vab = /* @__PURE__ */ new Vector3$1();
18467
- const _vac = /* @__PURE__ */ new Vector3$1();
18468
- const _vbc = /* @__PURE__ */ new Vector3$1();
18469
- const _vap = /* @__PURE__ */ new Vector3$1();
18470
- const _vbp = /* @__PURE__ */ new Vector3$1();
18471
- const _vcp = /* @__PURE__ */ new Vector3$1();
18462
+ const _v0$1 = /* @__PURE__ */ new Vector3();
18463
+ const _v1$3 = /* @__PURE__ */ new Vector3();
18464
+ const _v2$2 = /* @__PURE__ */ new Vector3();
18465
+ const _v3$2 = /* @__PURE__ */ new Vector3();
18466
+ const _vab = /* @__PURE__ */ new Vector3();
18467
+ const _vac = /* @__PURE__ */ new Vector3();
18468
+ const _vbc = /* @__PURE__ */ new Vector3();
18469
+ const _vap = /* @__PURE__ */ new Vector3();
18470
+ const _vbp = /* @__PURE__ */ new Vector3();
18471
+ const _vcp = /* @__PURE__ */ new Vector3();
18472
18472
  const _v40 = /* @__PURE__ */ new Vector4();
18473
18473
  const _v41 = /* @__PURE__ */ new Vector4();
18474
18474
  const _v42 = /* @__PURE__ */ new Vector4();
18475
18475
  class Triangle {
18476
- constructor(a = new Vector3$1(), b = new Vector3$1(), c = new Vector3$1()) {
18476
+ constructor(a = new Vector3(), b = new Vector3(), c = new Vector3()) {
18477
18477
  this.a = a;
18478
18478
  this.b = b;
18479
18479
  this.c = c;
@@ -19613,8 +19613,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
19613
19613
  toHalfFloat,
19614
19614
  fromHalfFloat
19615
19615
  };
19616
- const _vector$9 = /* @__PURE__ */ new Vector3$1();
19617
- const _vector2$1 = /* @__PURE__ */ new Vector2$1();
19616
+ const _vector$9 = /* @__PURE__ */ new Vector3();
19617
+ const _vector2$1 = /* @__PURE__ */ new Vector2();
19618
19618
  class BufferAttribute {
19619
19619
  constructor(array, itemSize, normalized = false) {
19620
19620
  if (Array.isArray(array)) {
@@ -19942,10 +19942,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
19942
19942
  let _id$1 = 0;
19943
19943
  const _m1$3 = /* @__PURE__ */ new Matrix4();
19944
19944
  const _obj = /* @__PURE__ */ new Object3D$1();
19945
- const _offset = /* @__PURE__ */ new Vector3$1();
19946
- const _box$2 = /* @__PURE__ */ new Box3$1();
19947
- const _boxMorphTargets = /* @__PURE__ */ new Box3$1();
19948
- const _vector$8 = /* @__PURE__ */ new Vector3$1();
19945
+ const _offset = /* @__PURE__ */ new Vector3();
19946
+ const _box$2 = /* @__PURE__ */ new Box3();
19947
+ const _boxMorphTargets = /* @__PURE__ */ new Box3();
19948
+ const _vector$8 = /* @__PURE__ */ new Vector3();
19949
19949
  class BufferGeometry extends EventDispatcher {
19950
19950
  constructor() {
19951
19951
  super();
@@ -20102,15 +20102,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20102
20102
  }
20103
20103
  computeBoundingBox() {
20104
20104
  if (this.boundingBox === null) {
20105
- this.boundingBox = new Box3$1();
20105
+ this.boundingBox = new Box3();
20106
20106
  }
20107
20107
  const position = this.attributes.position;
20108
20108
  const morphAttributesPosition = this.morphAttributes.position;
20109
20109
  if (position && position.isGLBufferAttribute) {
20110
20110
  console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this);
20111
20111
  this.boundingBox.set(
20112
- new Vector3$1(-Infinity, -Infinity, -Infinity),
20113
- new Vector3$1(Infinity, Infinity, Infinity)
20112
+ new Vector3(-Infinity, -Infinity, -Infinity),
20113
+ new Vector3(Infinity, Infinity, Infinity)
20114
20114
  );
20115
20115
  return;
20116
20116
  }
@@ -20146,7 +20146,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20146
20146
  const morphAttributesPosition = this.morphAttributes.position;
20147
20147
  if (position && position.isGLBufferAttribute) {
20148
20148
  console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this);
20149
- this.boundingSphere.set(new Vector3$1(), Infinity);
20149
+ this.boundingSphere.set(new Vector3(), Infinity);
20150
20150
  return;
20151
20151
  }
20152
20152
  if (position) {
@@ -20209,10 +20209,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20209
20209
  const tangentAttribute = this.getAttribute("tangent");
20210
20210
  const tan1 = [], tan2 = [];
20211
20211
  for (let i2 = 0; i2 < positionAttribute.count; i2++) {
20212
- tan1[i2] = new Vector3$1();
20213
- tan2[i2] = new Vector3$1();
20212
+ tan1[i2] = new Vector3();
20213
+ tan2[i2] = new Vector3();
20214
20214
  }
20215
- const vA = new Vector3$1(), vB = new Vector3$1(), vC = new Vector3$1(), uvA = new Vector2$1(), uvB = new Vector2$1(), uvC = new Vector2$1(), sdir = new Vector3$1(), tdir = new Vector3$1();
20215
+ const vA = new Vector3(), vB = new Vector3(), vC = new Vector3(), uvA = new Vector2(), uvB = new Vector2(), uvC = new Vector2(), sdir = new Vector3(), tdir = new Vector3();
20216
20216
  function handleTriangle(a, b, c) {
20217
20217
  vA.fromBufferAttribute(positionAttribute, a);
20218
20218
  vB.fromBufferAttribute(positionAttribute, b);
@@ -20254,8 +20254,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20254
20254
  );
20255
20255
  }
20256
20256
  }
20257
- const tmp2 = new Vector3$1(), tmp22 = new Vector3$1();
20258
- const n = new Vector3$1(), n2 = new Vector3$1();
20257
+ const tmp2 = new Vector3(), tmp22 = new Vector3();
20258
+ const n = new Vector3(), n2 = new Vector3();
20259
20259
  function handleVertex(v) {
20260
20260
  n.fromBufferAttribute(normalAttribute, v);
20261
20261
  n2.copy(n);
@@ -20291,9 +20291,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20291
20291
  normalAttribute.setXYZ(i2, 0, 0, 0);
20292
20292
  }
20293
20293
  }
20294
- const pA = new Vector3$1(), pB = new Vector3$1(), pC = new Vector3$1();
20295
- const nA = new Vector3$1(), nB = new Vector3$1(), nC = new Vector3$1();
20296
- const cb = new Vector3$1(), ab = new Vector3$1();
20294
+ const pA = new Vector3(), pB = new Vector3(), pC = new Vector3();
20295
+ const nA = new Vector3(), nB = new Vector3(), nC = new Vector3();
20296
+ const cb = new Vector3(), ab = new Vector3();
20297
20297
  if (index2) {
20298
20298
  for (let i2 = 0, il = index2.count; i2 < il; i2 += 3) {
20299
20299
  const vA = index2.getX(i2 + 0);
@@ -20509,14 +20509,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20509
20509
  const _inverseMatrix$3 = /* @__PURE__ */ new Matrix4();
20510
20510
  const _ray$3 = /* @__PURE__ */ new Ray();
20511
20511
  const _sphere$6 = /* @__PURE__ */ new Sphere();
20512
- const _sphereHitAt = /* @__PURE__ */ new Vector3$1();
20513
- const _vA$1 = /* @__PURE__ */ new Vector3$1();
20514
- const _vB$1 = /* @__PURE__ */ new Vector3$1();
20515
- const _vC$1 = /* @__PURE__ */ new Vector3$1();
20516
- const _tempA = /* @__PURE__ */ new Vector3$1();
20517
- const _morphA = /* @__PURE__ */ new Vector3$1();
20518
- const _intersectionPoint = /* @__PURE__ */ new Vector3$1();
20519
- const _intersectionPointWorld = /* @__PURE__ */ new Vector3$1();
20512
+ const _sphereHitAt = /* @__PURE__ */ new Vector3();
20513
+ const _vA$1 = /* @__PURE__ */ new Vector3();
20514
+ const _vB$1 = /* @__PURE__ */ new Vector3();
20515
+ const _vC$1 = /* @__PURE__ */ new Vector3();
20516
+ const _tempA = /* @__PURE__ */ new Vector3();
20517
+ const _morphA = /* @__PURE__ */ new Vector3();
20518
+ const _intersectionPoint = /* @__PURE__ */ new Vector3();
20519
+ const _intersectionPointWorld = /* @__PURE__ */ new Vector3();
20520
20520
  class Mesh extends Object3D$1 {
20521
20521
  constructor(geometry = new BufferGeometry(), material = new MeshBasicMaterial()) {
20522
20522
  super();
@@ -20703,16 +20703,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20703
20703
  object.getVertexPosition(c, _vC$1);
20704
20704
  const intersection = checkIntersection$1(object, material, raycaster, ray, _vA$1, _vB$1, _vC$1, _intersectionPoint);
20705
20705
  if (intersection) {
20706
- const barycoord = new Vector3$1();
20706
+ const barycoord = new Vector3();
20707
20707
  Triangle.getBarycoord(_intersectionPoint, _vA$1, _vB$1, _vC$1, barycoord);
20708
20708
  if (uv) {
20709
- intersection.uv = Triangle.getInterpolatedAttribute(uv, a, b, c, barycoord, new Vector2$1());
20709
+ intersection.uv = Triangle.getInterpolatedAttribute(uv, a, b, c, barycoord, new Vector2());
20710
20710
  }
20711
20711
  if (uv1) {
20712
- intersection.uv1 = Triangle.getInterpolatedAttribute(uv1, a, b, c, barycoord, new Vector2$1());
20712
+ intersection.uv1 = Triangle.getInterpolatedAttribute(uv1, a, b, c, barycoord, new Vector2());
20713
20713
  }
20714
20714
  if (normal) {
20715
- intersection.normal = Triangle.getInterpolatedAttribute(normal, a, b, c, barycoord, new Vector3$1());
20715
+ intersection.normal = Triangle.getInterpolatedAttribute(normal, a, b, c, barycoord, new Vector3());
20716
20716
  if (intersection.normal.dot(ray.direction) > 0) {
20717
20717
  intersection.normal.multiplyScalar(-1);
20718
20718
  }
@@ -20721,7 +20721,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20721
20721
  a,
20722
20722
  b,
20723
20723
  c,
20724
- normal: new Vector3$1(),
20724
+ normal: new Vector3(),
20725
20725
  materialIndex: 0
20726
20726
  };
20727
20727
  Triangle.getNormal(_vA$1, _vB$1, _vC$1, face.normal);
@@ -20772,7 +20772,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20772
20772
  const gridY1 = gridY + 1;
20773
20773
  let vertexCounter = 0;
20774
20774
  let groupCount = 0;
20775
- const vector = new Vector3$1();
20775
+ const vector = new Vector3();
20776
20776
  for (let iy = 0; iy < gridY1; iy++) {
20777
20777
  const y = iy * segmentHeight - heightHalf;
20778
20778
  for (let ix = 0; ix < gridX1; ix++) {
@@ -21012,9 +21012,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21012
21012
  return new this.constructor().copy(this);
21013
21013
  }
21014
21014
  };
21015
- const _v3$1 = /* @__PURE__ */ new Vector3$1();
21016
- const _minTarget = /* @__PURE__ */ new Vector2$1();
21017
- const _maxTarget = /* @__PURE__ */ new Vector2$1();
21015
+ const _v3$1 = /* @__PURE__ */ new Vector3();
21016
+ const _minTarget = /* @__PURE__ */ new Vector2();
21017
+ const _maxTarget = /* @__PURE__ */ new Vector2();
21018
21018
  class PerspectiveCamera extends Camera$2 {
21019
21019
  constructor(fov2 = 50, aspect2 = 1, near = 0.1, far = 2e3) {
21020
21020
  super();
@@ -21563,7 +21563,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21563
21563
  };
21564
21564
  }
21565
21565
  }
21566
- const _vector$7 = /* @__PURE__ */ new Vector3$1();
21566
+ const _vector$7 = /* @__PURE__ */ new Vector3();
21567
21567
  class InterleavedBufferAttribute {
21568
21568
  constructor(interleavedBuffer, itemSize, offset, normalized = false) {
21569
21569
  this.isInterleavedBufferAttribute = true;
@@ -21772,18 +21772,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21772
21772
  }
21773
21773
  }
21774
21774
  let _geometry$1;
21775
- const _intersectPoint = /* @__PURE__ */ new Vector3$1();
21776
- const _worldScale = /* @__PURE__ */ new Vector3$1();
21777
- const _mvPosition = /* @__PURE__ */ new Vector3$1();
21778
- const _alignedPosition = /* @__PURE__ */ new Vector2$1();
21779
- const _rotatedPosition = /* @__PURE__ */ new Vector2$1();
21775
+ const _intersectPoint = /* @__PURE__ */ new Vector3();
21776
+ const _worldScale = /* @__PURE__ */ new Vector3();
21777
+ const _mvPosition = /* @__PURE__ */ new Vector3();
21778
+ const _alignedPosition = /* @__PURE__ */ new Vector2();
21779
+ const _rotatedPosition = /* @__PURE__ */ new Vector2();
21780
21780
  const _viewWorldMatrix = /* @__PURE__ */ new Matrix4();
21781
- const _vA = /* @__PURE__ */ new Vector3$1();
21782
- const _vB = /* @__PURE__ */ new Vector3$1();
21783
- const _vC = /* @__PURE__ */ new Vector3$1();
21784
- const _uvA = /* @__PURE__ */ new Vector2$1();
21785
- const _uvB = /* @__PURE__ */ new Vector2$1();
21786
- const _uvC = /* @__PURE__ */ new Vector2$1();
21781
+ const _vA = /* @__PURE__ */ new Vector3();
21782
+ const _vB = /* @__PURE__ */ new Vector3();
21783
+ const _vC = /* @__PURE__ */ new Vector3();
21784
+ const _uvA = /* @__PURE__ */ new Vector2();
21785
+ const _uvB = /* @__PURE__ */ new Vector2();
21786
+ const _uvC = /* @__PURE__ */ new Vector2();
21787
21787
  class Sprite extends Object3D$1 {
21788
21788
  constructor(material = new SpriteMaterial()) {
21789
21789
  super();
@@ -21820,7 +21820,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21820
21820
  }
21821
21821
  this.geometry = _geometry$1;
21822
21822
  this.material = material;
21823
- this.center = new Vector2$1(0.5, 0.5);
21823
+ this.center = new Vector2(0.5, 0.5);
21824
21824
  }
21825
21825
  raycast(raycaster, intersects2) {
21826
21826
  if (raycaster.camera === null) {
@@ -21860,7 +21860,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21860
21860
  intersects2.push({
21861
21861
  distance,
21862
21862
  point: _intersectPoint.clone(),
21863
- uv: Triangle.getInterpolation(_intersectPoint, _vA, _vB, _vC, _uvA, _uvB, _uvC, new Vector2$1()),
21863
+ uv: Triangle.getInterpolation(_intersectPoint, _vA, _vB, _vC, _uvA, _uvB, _uvC, new Vector2()),
21864
21864
  face: null,
21865
21865
  object: this
21866
21866
  });
@@ -21885,8 +21885,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21885
21885
  vertexPosition.y += _rotatedPosition.y;
21886
21886
  vertexPosition.applyMatrix4(_viewWorldMatrix);
21887
21887
  }
21888
- const _v1$2 = /* @__PURE__ */ new Vector3$1();
21889
- const _v2$1 = /* @__PURE__ */ new Vector3$1();
21888
+ const _v1$2 = /* @__PURE__ */ new Vector3();
21889
+ const _v2$1 = /* @__PURE__ */ new Vector3();
21890
21890
  class LOD extends Object3D$1 {
21891
21891
  constructor() {
21892
21892
  super();
@@ -22007,12 +22007,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22007
22007
  return data2;
22008
22008
  }
22009
22009
  }
22010
- const _basePosition = /* @__PURE__ */ new Vector3$1();
22010
+ const _basePosition = /* @__PURE__ */ new Vector3();
22011
22011
  const _skinIndex = /* @__PURE__ */ new Vector4();
22012
22012
  const _skinWeight = /* @__PURE__ */ new Vector4();
22013
- const _vector3 = /* @__PURE__ */ new Vector3$1();
22013
+ const _vector3 = /* @__PURE__ */ new Vector3();
22014
22014
  const _matrix4 = /* @__PURE__ */ new Matrix4();
22015
- const _vertex = /* @__PURE__ */ new Vector3$1();
22015
+ const _vertex = /* @__PURE__ */ new Vector3();
22016
22016
  const _sphere$5 = /* @__PURE__ */ new Sphere();
22017
22017
  const _inverseMatrix$2 = /* @__PURE__ */ new Matrix4();
22018
22018
  const _ray$2 = /* @__PURE__ */ new Ray();
@@ -22030,7 +22030,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22030
22030
  computeBoundingBox() {
22031
22031
  const geometry = this.geometry;
22032
22032
  if (this.boundingBox === null) {
22033
- this.boundingBox = new Box3$1();
22033
+ this.boundingBox = new Box3();
22034
22034
  }
22035
22035
  this.boundingBox.makeEmpty();
22036
22036
  const positionAttribute = geometry.getAttribute("position");
@@ -22312,7 +22312,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22312
22312
  const _instanceLocalMatrix = /* @__PURE__ */ new Matrix4();
22313
22313
  const _instanceWorldMatrix = /* @__PURE__ */ new Matrix4();
22314
22314
  const _instanceIntersects = [];
22315
- const _box3 = /* @__PURE__ */ new Box3$1();
22315
+ const _box3 = /* @__PURE__ */ new Box3();
22316
22316
  const _identity = /* @__PURE__ */ new Matrix4();
22317
22317
  const _mesh$1 = /* @__PURE__ */ new Mesh();
22318
22318
  const _sphere$4 = /* @__PURE__ */ new Sphere();
@@ -22334,7 +22334,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22334
22334
  const geometry = this.geometry;
22335
22335
  const count = this.count;
22336
22336
  if (this.boundingBox === null) {
22337
- this.boundingBox = new Box3$1();
22337
+ this.boundingBox = new Box3();
22338
22338
  }
22339
22339
  if (geometry.boundingBox === null) {
22340
22340
  geometry.computeBoundingBox();
@@ -22447,11 +22447,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22447
22447
  return this;
22448
22448
  }
22449
22449
  };
22450
- const _vector1 = /* @__PURE__ */ new Vector3$1();
22451
- const _vector2 = /* @__PURE__ */ new Vector3$1();
22450
+ const _vector1 = /* @__PURE__ */ new Vector3();
22451
+ const _vector2 = /* @__PURE__ */ new Vector3();
22452
22452
  const _normalMatrix = /* @__PURE__ */ new Matrix3();
22453
22453
  class Plane {
22454
- constructor(normal = new Vector3$1(1, 0, 0), constant = 0) {
22454
+ constructor(normal = new Vector3(1, 0, 0), constant = 0) {
22455
22455
  this.isPlane = true;
22456
22456
  this.normal = normal;
22457
22457
  this.constant = constant;
@@ -22549,7 +22549,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22549
22549
  }
22550
22550
  }
22551
22551
  const _sphere$3 = /* @__PURE__ */ new Sphere();
22552
- const _vector$6 = /* @__PURE__ */ new Vector3$1();
22552
+ const _vector$6 = /* @__PURE__ */ new Vector3();
22553
22553
  class Frustum {
22554
22554
  constructor(p0 = new Plane(), p1 = new Plane(), p2 = new Plane(), p3 = new Plane(), p4 = new Plane(), p5 = new Plane()) {
22555
22555
  this.planes = [p0, p1, p2, p3, p4, p5];
@@ -22689,11 +22689,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22689
22689
  const _matrix$1 = /* @__PURE__ */ new Matrix4();
22690
22690
  const _whiteColor = /* @__PURE__ */ new Color(1, 1, 1);
22691
22691
  const _frustum = /* @__PURE__ */ new Frustum();
22692
- const _box$1 = /* @__PURE__ */ new Box3$1();
22692
+ const _box$1 = /* @__PURE__ */ new Box3();
22693
22693
  const _sphere$2 = /* @__PURE__ */ new Sphere();
22694
- const _vector$5 = /* @__PURE__ */ new Vector3$1();
22695
- const _forward = /* @__PURE__ */ new Vector3$1();
22696
- const _temp = /* @__PURE__ */ new Vector3$1();
22694
+ const _vector$5 = /* @__PURE__ */ new Vector3();
22695
+ const _forward = /* @__PURE__ */ new Vector3();
22696
+ const _temp = /* @__PURE__ */ new Vector3();
22697
22697
  const _renderList = /* @__PURE__ */ new MultiDrawRenderList();
22698
22698
  const _mesh = /* @__PURE__ */ new Mesh();
22699
22699
  const _batchIntersects = [];
@@ -22842,7 +22842,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22842
22842
  }
22843
22843
  computeBoundingBox() {
22844
22844
  if (this.boundingBox === null) {
22845
- this.boundingBox = new Box3$1();
22845
+ this.boundingBox = new Box3();
22846
22846
  }
22847
22847
  const boundingBox = this.boundingBox;
22848
22848
  const instanceInfo = this._instanceInfo;
@@ -23080,7 +23080,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23080
23080
  const geometry = this.geometry;
23081
23081
  const geometryInfo = this._geometryInfo[geometryId];
23082
23082
  if (geometryInfo.boundingBox === null) {
23083
- const box = new Box3$1();
23083
+ const box = new Box3();
23084
23084
  const index2 = geometry.index;
23085
23085
  const position = geometry.attributes.position;
23086
23086
  for (let i2 = geometryInfo.start, l = geometryInfo.start + geometryInfo.count; i2 < l; i2++) {
@@ -23255,7 +23255,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23255
23255
  _mesh.geometry.index = batchGeometry.index;
23256
23256
  _mesh.geometry.attributes = batchGeometry.attributes;
23257
23257
  if (_mesh.geometry.boundingBox === null) {
23258
- _mesh.geometry.boundingBox = new Box3$1();
23258
+ _mesh.geometry.boundingBox = new Box3();
23259
23259
  }
23260
23260
  if (_mesh.geometry.boundingSphere === null) {
23261
23261
  _mesh.geometry.boundingSphere = new Sphere();
@@ -23432,13 +23432,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23432
23432
  return this;
23433
23433
  }
23434
23434
  }
23435
- const _vStart = /* @__PURE__ */ new Vector3$1();
23436
- const _vEnd = /* @__PURE__ */ new Vector3$1();
23435
+ const _vStart = /* @__PURE__ */ new Vector3();
23436
+ const _vEnd = /* @__PURE__ */ new Vector3();
23437
23437
  const _inverseMatrix$1 = /* @__PURE__ */ new Matrix4();
23438
23438
  const _ray$1 = /* @__PURE__ */ new Ray();
23439
23439
  const _sphere$1 = /* @__PURE__ */ new Sphere();
23440
- const _intersectPointOnRay = /* @__PURE__ */ new Vector3$1();
23441
- const _intersectPointOnSegment = /* @__PURE__ */ new Vector3$1();
23440
+ const _intersectPointOnRay = /* @__PURE__ */ new Vector3();
23441
+ const _intersectPointOnSegment = /* @__PURE__ */ new Vector3();
23442
23442
  class Line extends Object3D$1 {
23443
23443
  constructor(geometry = new BufferGeometry(), material = new LineBasicMaterial()) {
23444
23444
  super();
@@ -23564,8 +23564,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23564
23564
  object
23565
23565
  };
23566
23566
  }
23567
- const _start = /* @__PURE__ */ new Vector3$1();
23568
- const _end = /* @__PURE__ */ new Vector3$1();
23567
+ const _start = /* @__PURE__ */ new Vector3();
23568
+ const _end = /* @__PURE__ */ new Vector3();
23569
23569
  class LineSegments extends Line {
23570
23570
  constructor(geometry, material) {
23571
23571
  super(geometry, material);
@@ -23624,7 +23624,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23624
23624
  const _inverseMatrix = /* @__PURE__ */ new Matrix4();
23625
23625
  const _ray = /* @__PURE__ */ new Ray();
23626
23626
  const _sphere = /* @__PURE__ */ new Sphere();
23627
- const _position$2 = /* @__PURE__ */ new Vector3$1();
23627
+ const _position$2 = /* @__PURE__ */ new Vector3();
23628
23628
  class Points extends Object3D$1 {
23629
23629
  constructor(geometry = new BufferGeometry(), material = new PointsMaterial()) {
23630
23630
  super();
@@ -23695,7 +23695,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23695
23695
  function testPoint(point, index2, localThresholdSq, matrixWorld, raycaster, intersects2, object) {
23696
23696
  const rayPointDistanceSq = _ray.distanceSqToPoint(point);
23697
23697
  if (rayPointDistanceSq < localThresholdSq) {
23698
- const intersectPoint = new Vector3$1();
23698
+ const intersectPoint = new Vector3();
23699
23699
  _ray.closestPointToPoint(point, intersectPoint);
23700
23700
  intersectPoint.applyMatrix4(matrixWorld);
23701
23701
  const distance = raycaster.ray.origin.distanceTo(intersectPoint);
@@ -23931,7 +23931,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23931
23931
  if (t2 > 1) t2 = 1;
23932
23932
  const pt1 = this.getPoint(t1);
23933
23933
  const pt2 = this.getPoint(t2);
23934
- const tangent = optionalTarget || (pt1.isVector2 ? new Vector2$1() : new Vector3$1());
23934
+ const tangent = optionalTarget || (pt1.isVector2 ? new Vector2() : new Vector3());
23935
23935
  tangent.copy(pt2).sub(pt1).normalize();
23936
23936
  return tangent;
23937
23937
  }
@@ -23940,18 +23940,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
23940
23940
  return this.getTangent(t, optionalTarget);
23941
23941
  }
23942
23942
  computeFrenetFrames(segments, closed) {
23943
- const normal = new Vector3$1();
23943
+ const normal = new Vector3();
23944
23944
  const tangents = [];
23945
23945
  const normals = [];
23946
23946
  const binormals = [];
23947
- const vec = new Vector3$1();
23947
+ const vec = new Vector3();
23948
23948
  const mat = new Matrix4();
23949
23949
  for (let i2 = 0; i2 <= segments; i2++) {
23950
23950
  const u = i2 / segments;
23951
- tangents[i2] = this.getTangentAt(u, new Vector3$1());
23951
+ tangents[i2] = this.getTangentAt(u, new Vector3());
23952
23952
  }
23953
- normals[0] = new Vector3$1();
23954
- binormals[0] = new Vector3$1();
23953
+ normals[0] = new Vector3();
23954
+ binormals[0] = new Vector3();
23955
23955
  let min2 = Number.MAX_VALUE;
23956
23956
  const tx = Math.abs(tangents[0].x);
23957
23957
  const ty = Math.abs(tangents[0].y);
@@ -24036,7 +24036,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24036
24036
  this.aClockwise = aClockwise;
24037
24037
  this.aRotation = aRotation;
24038
24038
  }
24039
- getPoint(t, optionalTarget = new Vector2$1()) {
24039
+ getPoint(t, optionalTarget = new Vector2()) {
24040
24040
  const point = optionalTarget;
24041
24041
  const twoPi = Math.PI * 2;
24042
24042
  let deltaAngle = this.aEndAngle - this.aStartAngle;
@@ -24140,7 +24140,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24140
24140
  }
24141
24141
  };
24142
24142
  }
24143
- const tmp = /* @__PURE__ */ new Vector3$1();
24143
+ const tmp = /* @__PURE__ */ new Vector3();
24144
24144
  const px = /* @__PURE__ */ new CubicPoly();
24145
24145
  const py = /* @__PURE__ */ new CubicPoly();
24146
24146
  const pz = /* @__PURE__ */ new CubicPoly();
@@ -24154,7 +24154,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24154
24154
  this.curveType = curveType;
24155
24155
  this.tension = tension;
24156
24156
  }
24157
- getPoint(t, optionalTarget = new Vector3$1()) {
24157
+ getPoint(t, optionalTarget = new Vector3()) {
24158
24158
  const point = optionalTarget;
24159
24159
  const points = this.points;
24160
24160
  const l = points.length;
@@ -24234,7 +24234,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24234
24234
  this.points = [];
24235
24235
  for (let i2 = 0, l = json.points.length; i2 < l; i2++) {
24236
24236
  const point = json.points[i2];
24237
- this.points.push(new Vector3$1().fromArray(point));
24237
+ this.points.push(new Vector3().fromArray(point));
24238
24238
  }
24239
24239
  this.closed = json.closed;
24240
24240
  this.curveType = json.curveType;
@@ -24280,7 +24280,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24280
24280
  return CubicBezierP0(t, p0) + CubicBezierP1(t, p1) + CubicBezierP2(t, p2) + CubicBezierP3(t, p3);
24281
24281
  }
24282
24282
  class CubicBezierCurve extends Curve {
24283
- constructor(v0 = new Vector2$1(), v1 = new Vector2$1(), v2 = new Vector2$1(), v3 = new Vector2$1()) {
24283
+ constructor(v0 = new Vector2(), v1 = new Vector2(), v2 = new Vector2(), v3 = new Vector2()) {
24284
24284
  super();
24285
24285
  this.isCubicBezierCurve = true;
24286
24286
  this.type = "CubicBezierCurve";
@@ -24289,7 +24289,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24289
24289
  this.v2 = v2;
24290
24290
  this.v3 = v3;
24291
24291
  }
24292
- getPoint(t, optionalTarget = new Vector2$1()) {
24292
+ getPoint(t, optionalTarget = new Vector2()) {
24293
24293
  const point = optionalTarget;
24294
24294
  const v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3;
24295
24295
  point.set(
@@ -24324,7 +24324,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24324
24324
  }
24325
24325
  }
24326
24326
  class CubicBezierCurve3 extends Curve {
24327
- constructor(v0 = new Vector3$1(), v1 = new Vector3$1(), v2 = new Vector3$1(), v3 = new Vector3$1()) {
24327
+ constructor(v0 = new Vector3(), v1 = new Vector3(), v2 = new Vector3(), v3 = new Vector3()) {
24328
24328
  super();
24329
24329
  this.isCubicBezierCurve3 = true;
24330
24330
  this.type = "CubicBezierCurve3";
@@ -24333,7 +24333,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24333
24333
  this.v2 = v2;
24334
24334
  this.v3 = v3;
24335
24335
  }
24336
- getPoint(t, optionalTarget = new Vector3$1()) {
24336
+ getPoint(t, optionalTarget = new Vector3()) {
24337
24337
  const point = optionalTarget;
24338
24338
  const v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3;
24339
24339
  point.set(
@@ -24369,14 +24369,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24369
24369
  }
24370
24370
  }
24371
24371
  class LineCurve extends Curve {
24372
- constructor(v1 = new Vector2$1(), v2 = new Vector2$1()) {
24372
+ constructor(v1 = new Vector2(), v2 = new Vector2()) {
24373
24373
  super();
24374
24374
  this.isLineCurve = true;
24375
24375
  this.type = "LineCurve";
24376
24376
  this.v1 = v1;
24377
24377
  this.v2 = v2;
24378
24378
  }
24379
- getPoint(t, optionalTarget = new Vector2$1()) {
24379
+ getPoint(t, optionalTarget = new Vector2()) {
24380
24380
  const point = optionalTarget;
24381
24381
  if (t === 1) {
24382
24382
  point.copy(this.v2);
@@ -24390,7 +24390,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24390
24390
  getPointAt(u, optionalTarget) {
24391
24391
  return this.getPoint(u, optionalTarget);
24392
24392
  }
24393
- getTangent(t, optionalTarget = new Vector2$1()) {
24393
+ getTangent(t, optionalTarget = new Vector2()) {
24394
24394
  return optionalTarget.subVectors(this.v2, this.v1).normalize();
24395
24395
  }
24396
24396
  getTangentAt(u, optionalTarget) {
@@ -24416,14 +24416,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24416
24416
  }
24417
24417
  }
24418
24418
  class LineCurve3 extends Curve {
24419
- constructor(v1 = new Vector3$1(), v2 = new Vector3$1()) {
24419
+ constructor(v1 = new Vector3(), v2 = new Vector3()) {
24420
24420
  super();
24421
24421
  this.isLineCurve3 = true;
24422
24422
  this.type = "LineCurve3";
24423
24423
  this.v1 = v1;
24424
24424
  this.v2 = v2;
24425
24425
  }
24426
- getPoint(t, optionalTarget = new Vector3$1()) {
24426
+ getPoint(t, optionalTarget = new Vector3()) {
24427
24427
  const point = optionalTarget;
24428
24428
  if (t === 1) {
24429
24429
  point.copy(this.v2);
@@ -24437,7 +24437,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24437
24437
  getPointAt(u, optionalTarget) {
24438
24438
  return this.getPoint(u, optionalTarget);
24439
24439
  }
24440
- getTangent(t, optionalTarget = new Vector3$1()) {
24440
+ getTangent(t, optionalTarget = new Vector3()) {
24441
24441
  return optionalTarget.subVectors(this.v2, this.v1).normalize();
24442
24442
  }
24443
24443
  getTangentAt(u, optionalTarget) {
@@ -24463,7 +24463,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24463
24463
  }
24464
24464
  }
24465
24465
  class QuadraticBezierCurve extends Curve {
24466
- constructor(v0 = new Vector2$1(), v1 = new Vector2$1(), v2 = new Vector2$1()) {
24466
+ constructor(v0 = new Vector2(), v1 = new Vector2(), v2 = new Vector2()) {
24467
24467
  super();
24468
24468
  this.isQuadraticBezierCurve = true;
24469
24469
  this.type = "QuadraticBezierCurve";
@@ -24471,7 +24471,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24471
24471
  this.v1 = v1;
24472
24472
  this.v2 = v2;
24473
24473
  }
24474
- getPoint(t, optionalTarget = new Vector2$1()) {
24474
+ getPoint(t, optionalTarget = new Vector2()) {
24475
24475
  const point = optionalTarget;
24476
24476
  const v0 = this.v0, v1 = this.v1, v2 = this.v2;
24477
24477
  point.set(
@@ -24503,7 +24503,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24503
24503
  }
24504
24504
  }
24505
24505
  class QuadraticBezierCurve3 extends Curve {
24506
- constructor(v0 = new Vector3$1(), v1 = new Vector3$1(), v2 = new Vector3$1()) {
24506
+ constructor(v0 = new Vector3(), v1 = new Vector3(), v2 = new Vector3()) {
24507
24507
  super();
24508
24508
  this.isQuadraticBezierCurve3 = true;
24509
24509
  this.type = "QuadraticBezierCurve3";
@@ -24511,7 +24511,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24511
24511
  this.v1 = v1;
24512
24512
  this.v2 = v2;
24513
24513
  }
24514
- getPoint(t, optionalTarget = new Vector3$1()) {
24514
+ getPoint(t, optionalTarget = new Vector3()) {
24515
24515
  const point = optionalTarget;
24516
24516
  const v0 = this.v0, v1 = this.v1, v2 = this.v2;
24517
24517
  point.set(
@@ -24550,7 +24550,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24550
24550
  this.type = "SplineCurve";
24551
24551
  this.points = points;
24552
24552
  }
24553
- getPoint(t, optionalTarget = new Vector2$1()) {
24553
+ getPoint(t, optionalTarget = new Vector2()) {
24554
24554
  const point = optionalTarget;
24555
24555
  const points = this.points;
24556
24556
  const p = (points.length - 1) * t;
@@ -24589,7 +24589,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24589
24589
  this.points = [];
24590
24590
  for (let i2 = 0, l = json.points.length; i2 < l; i2++) {
24591
24591
  const point = json.points[i2];
24592
- this.points.push(new Vector2$1().fromArray(point));
24592
+ this.points.push(new Vector2().fromArray(point));
24593
24593
  }
24594
24594
  return this;
24595
24595
  }
@@ -24741,7 +24741,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24741
24741
  constructor(points) {
24742
24742
  super();
24743
24743
  this.type = "Path";
24744
- this.currentPoint = new Vector2$1();
24744
+ this.currentPoint = new Vector2();
24745
24745
  if (points) {
24746
24746
  this.setFromPoints(points);
24747
24747
  }
@@ -24758,7 +24758,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24758
24758
  return this;
24759
24759
  }
24760
24760
  lineTo(x, y) {
24761
- const curve = new LineCurve(this.currentPoint.clone(), new Vector2$1(x, y));
24761
+ const curve = new LineCurve(this.currentPoint.clone(), new Vector2(x, y));
24762
24762
  this.curves.push(curve);
24763
24763
  this.currentPoint.set(x, y);
24764
24764
  return this;
@@ -24766,8 +24766,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24766
24766
  quadraticCurveTo(aCPx, aCPy, aX, aY) {
24767
24767
  const curve = new QuadraticBezierCurve(
24768
24768
  this.currentPoint.clone(),
24769
- new Vector2$1(aCPx, aCPy),
24770
- new Vector2$1(aX, aY)
24769
+ new Vector2(aCPx, aCPy),
24770
+ new Vector2(aX, aY)
24771
24771
  );
24772
24772
  this.curves.push(curve);
24773
24773
  this.currentPoint.set(aX, aY);
@@ -24776,9 +24776,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24776
24776
  bezierCurveTo(aCP1x, aCP1y, aCP2x, aCP2y, aX, aY) {
24777
24777
  const curve = new CubicBezierCurve(
24778
24778
  this.currentPoint.clone(),
24779
- new Vector2$1(aCP1x, aCP1y),
24780
- new Vector2$1(aCP2x, aCP2y),
24781
- new Vector2$1(aX, aY)
24779
+ new Vector2(aCP1x, aCP1y),
24780
+ new Vector2(aCP2x, aCP2y),
24781
+ new Vector2(aX, aY)
24782
24782
  );
24783
24783
  this.curves.push(curve);
24784
24784
  this.currentPoint.set(aX, aY);
@@ -24844,7 +24844,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24844
24844
  }
24845
24845
  }
24846
24846
  class LatheGeometry extends BufferGeometry {
24847
- constructor(points = [new Vector2$1(0, -0.5), new Vector2$1(0.5, 0), new Vector2$1(0, 0.5)], segments = 12, phiStart = 0, phiLength = Math.PI * 2) {
24847
+ constructor(points = [new Vector2(0, -0.5), new Vector2(0.5, 0), new Vector2(0, 0.5)], segments = 12, phiStart = 0, phiLength = Math.PI * 2) {
24848
24848
  super();
24849
24849
  this.type = "LatheGeometry";
24850
24850
  this.parameters = {
@@ -24861,11 +24861,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24861
24861
  const initNormals = [];
24862
24862
  const normals = [];
24863
24863
  const inverseSegments = 1 / segments;
24864
- const vertex2 = new Vector3$1();
24865
- const uv = new Vector2$1();
24866
- const normal = new Vector3$1();
24867
- const curNormal = new Vector3$1();
24868
- const prevNormal = new Vector3$1();
24864
+ const vertex2 = new Vector3();
24865
+ const uv = new Vector2();
24866
+ const normal = new Vector3();
24867
+ const curNormal = new Vector3();
24868
+ const prevNormal = new Vector3();
24869
24869
  let dx = 0;
24870
24870
  let dy = 0;
24871
24871
  for (let j = 0; j <= points.length - 1; j++) {
@@ -24974,8 +24974,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
24974
24974
  const vertices = [];
24975
24975
  const normals = [];
24976
24976
  const uvs = [];
24977
- const vertex2 = new Vector3$1();
24978
- const uv = new Vector2$1();
24977
+ const vertex2 = new Vector3();
24978
+ const uv = new Vector2();
24979
24979
  vertices.push(0, 0, 0);
24980
24980
  normals.push(0, 0, 1);
24981
24981
  uvs.push(0.5, 0.5);
@@ -25041,8 +25041,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25041
25041
  this.setAttribute("normal", new Float32BufferAttribute(normals, 3));
25042
25042
  this.setAttribute("uv", new Float32BufferAttribute(uvs, 2));
25043
25043
  function generateTorso() {
25044
- const normal = new Vector3$1();
25045
- const vertex2 = new Vector3$1();
25044
+ const normal = new Vector3();
25045
+ const vertex2 = new Vector3();
25046
25046
  let groupCount = 0;
25047
25047
  const slope = (radiusBottom - radiusTop) / height;
25048
25048
  for (let y = 0; y <= heightSegments; y++) {
@@ -25086,8 +25086,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25086
25086
  }
25087
25087
  function generateCap(top) {
25088
25088
  const centerIndexStart = index2;
25089
- const uv = new Vector2$1();
25090
- const vertex2 = new Vector3$1();
25089
+ const uv = new Vector2();
25090
+ const vertex2 = new Vector3();
25091
25091
  let groupCount = 0;
25092
25092
  const radius = top === true ? radiusTop : radiusBottom;
25093
25093
  const sign2 = top === true ? 1 : -1;
@@ -25178,9 +25178,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25178
25178
  this.normalizeNormals();
25179
25179
  }
25180
25180
  function subdivide(detail2) {
25181
- const a = new Vector3$1();
25182
- const b = new Vector3$1();
25183
- const c = new Vector3$1();
25181
+ const a = new Vector3();
25182
+ const b = new Vector3();
25183
+ const c = new Vector3();
25184
25184
  for (let i2 = 0; i2 < indices.length; i2 += 3) {
25185
25185
  getVertexByIndex(indices[i2 + 0], a);
25186
25186
  getVertexByIndex(indices[i2 + 1], b);
@@ -25220,7 +25220,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25220
25220
  }
25221
25221
  }
25222
25222
  function applyRadius(radius2) {
25223
- const vertex2 = new Vector3$1();
25223
+ const vertex2 = new Vector3();
25224
25224
  for (let i2 = 0; i2 < vertexBuffer.length; i2 += 3) {
25225
25225
  vertex2.x = vertexBuffer[i2 + 0];
25226
25226
  vertex2.y = vertexBuffer[i2 + 1];
@@ -25232,7 +25232,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25232
25232
  }
25233
25233
  }
25234
25234
  function generateUVs() {
25235
- const vertex2 = new Vector3$1();
25235
+ const vertex2 = new Vector3();
25236
25236
  for (let i2 = 0; i2 < vertexBuffer.length; i2 += 3) {
25237
25237
  vertex2.x = vertexBuffer[i2 + 0];
25238
25238
  vertex2.y = vertexBuffer[i2 + 1];
@@ -25268,13 +25268,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25268
25268
  vertex2.z = vertices[stride + 2];
25269
25269
  }
25270
25270
  function correctUVs() {
25271
- const a = new Vector3$1();
25272
- const b = new Vector3$1();
25273
- const c = new Vector3$1();
25274
- const centroid = new Vector3$1();
25275
- const uvA = new Vector2$1();
25276
- const uvB = new Vector2$1();
25277
- const uvC = new Vector2$1();
25271
+ const a = new Vector3();
25272
+ const b = new Vector3();
25273
+ const c = new Vector3();
25274
+ const centroid = new Vector3();
25275
+ const uvA = new Vector2();
25276
+ const uvB = new Vector2();
25277
+ const uvC = new Vector2();
25278
25278
  for (let i2 = 0, j = 0; i2 < vertexBuffer.length; i2 += 9, j += 6) {
25279
25279
  a.set(vertexBuffer[i2 + 0], vertexBuffer[i2 + 1], vertexBuffer[i2 + 2]);
25280
25280
  b.set(vertexBuffer[i2 + 3], vertexBuffer[i2 + 4], vertexBuffer[i2 + 5]);
@@ -25504,9 +25504,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
25504
25504
  return new DodecahedronGeometry(data2.radius, data2.detail);
25505
25505
  }
25506
25506
  }
25507
- const _v0$3 = /* @__PURE__ */ new Vector3$1();
25508
- const _v1$1 = /* @__PURE__ */ new Vector3$1();
25509
- const _normal = /* @__PURE__ */ new Vector3$1();
25507
+ const _v0$3 = /* @__PURE__ */ new Vector3();
25508
+ const _v1$1 = /* @__PURE__ */ new Vector3();
25509
+ const _normal = /* @__PURE__ */ new Vector3();
25510
25510
  const _triangle = /* @__PURE__ */ new Triangle();
25511
25511
  class EdgesGeometry extends BufferGeometry {
25512
25512
  constructor(geometry = null, thresholdAngle = 1) {
@@ -26080,7 +26080,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26080
26080
  }
26081
26081
  }
26082
26082
  class ExtrudeGeometry extends BufferGeometry {
26083
- constructor(shapes = new Shape([new Vector2$1(0.5, 0.5), new Vector2$1(-0.5, 0.5), new Vector2$1(-0.5, -0.5), new Vector2$1(0.5, -0.5)]), options = {}) {
26083
+ constructor(shapes = new Shape([new Vector2(0.5, 0.5), new Vector2(-0.5, 0.5), new Vector2(-0.5, -0.5), new Vector2(0.5, -0.5)]), options = {}) {
26084
26084
  super();
26085
26085
  this.type = "ExtrudeGeometry";
26086
26086
  this.parameters = {
@@ -26117,9 +26117,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26117
26117
  extrudeByPath = true;
26118
26118
  bevelEnabled = false;
26119
26119
  splineTube = extrudePath.computeFrenetFrames(steps, false);
26120
- binormal = new Vector3$1();
26121
- normal = new Vector3$1();
26122
- position2 = new Vector3$1();
26120
+ binormal = new Vector3();
26121
+ normal = new Vector3();
26122
+ position2 = new Vector3();
26123
26123
  }
26124
26124
  if (!bevelEnabled) {
26125
26125
  bevelSegments = 0;
@@ -26169,7 +26169,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26169
26169
  v_trans_y = ptPrevShift_y + v_prev_y * sf - inPt.y;
26170
26170
  const v_trans_lensq = v_trans_x * v_trans_x + v_trans_y * v_trans_y;
26171
26171
  if (v_trans_lensq <= 2) {
26172
- return new Vector2$1(v_trans_x, v_trans_y);
26172
+ return new Vector2(v_trans_x, v_trans_y);
26173
26173
  } else {
26174
26174
  shrink_by = Math.sqrt(v_trans_lensq / 2);
26175
26175
  }
@@ -26200,7 +26200,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26200
26200
  shrink_by = Math.sqrt(v_prev_lensq / 2);
26201
26201
  }
26202
26202
  }
26203
- return new Vector2$1(v_trans_x / shrink_by, v_trans_y / shrink_by);
26203
+ return new Vector2(v_trans_x / shrink_by, v_trans_y / shrink_by);
26204
26204
  }
26205
26205
  const contourMovements = [];
26206
26206
  for (let i2 = 0, il = contour.length, j = il - 1, k = i2 + 1; i2 < il; i2++, j++, k++) {
@@ -26414,9 +26414,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26414
26414
  const c_x = vertices[indexC * 3];
26415
26415
  const c_y = vertices[indexC * 3 + 1];
26416
26416
  return [
26417
- new Vector2$1(a_x, a_y),
26418
- new Vector2$1(b_x, b_y),
26419
- new Vector2$1(c_x, c_y)
26417
+ new Vector2(a_x, a_y),
26418
+ new Vector2(b_x, b_y),
26419
+ new Vector2(c_x, c_y)
26420
26420
  ];
26421
26421
  },
26422
26422
  generateSideWallUV: function(geometry, vertices, indexA, indexB, indexC, indexD) {
@@ -26434,17 +26434,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26434
26434
  const d_z = vertices[indexD * 3 + 2];
26435
26435
  if (Math.abs(a_y - b_y) < Math.abs(a_x - b_x)) {
26436
26436
  return [
26437
- new Vector2$1(a_x, 1 - a_z),
26438
- new Vector2$1(b_x, 1 - b_z),
26439
- new Vector2$1(c_x, 1 - c_z),
26440
- new Vector2$1(d_x, 1 - d_z)
26437
+ new Vector2(a_x, 1 - a_z),
26438
+ new Vector2(b_x, 1 - b_z),
26439
+ new Vector2(c_x, 1 - c_z),
26440
+ new Vector2(d_x, 1 - d_z)
26441
26441
  ];
26442
26442
  } else {
26443
26443
  return [
26444
- new Vector2$1(a_y, 1 - a_z),
26445
- new Vector2$1(b_y, 1 - b_z),
26446
- new Vector2$1(c_y, 1 - c_z),
26447
- new Vector2$1(d_y, 1 - d_z)
26444
+ new Vector2(a_y, 1 - a_z),
26445
+ new Vector2(b_y, 1 - b_z),
26446
+ new Vector2(c_y, 1 - c_z),
26447
+ new Vector2(d_y, 1 - d_z)
26448
26448
  ];
26449
26449
  }
26450
26450
  }
@@ -26712,8 +26712,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26712
26712
  const uvs = [];
26713
26713
  let radius = innerRadius;
26714
26714
  const radiusStep = (outerRadius - innerRadius) / phiSegments;
26715
- const vertex2 = new Vector3$1();
26716
- const uv = new Vector2$1();
26715
+ const vertex2 = new Vector3();
26716
+ const uv = new Vector2();
26717
26717
  for (let j = 0; j <= phiSegments; j++) {
26718
26718
  for (let i2 = 0; i2 <= thetaSegments; i2++) {
26719
26719
  const segment = thetaStart + i2 / thetaSegments * thetaLength;
@@ -26754,7 +26754,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26754
26754
  }
26755
26755
  }
26756
26756
  class ShapeGeometry extends BufferGeometry {
26757
- constructor(shapes = new Shape([new Vector2$1(0, 0.5), new Vector2$1(-0.5, -0.5), new Vector2$1(0.5, -0.5)]), curveSegments = 12) {
26757
+ constructor(shapes = new Shape([new Vector2(0, 0.5), new Vector2(-0.5, -0.5), new Vector2(0.5, -0.5)]), curveSegments = 12) {
26758
26758
  super();
26759
26759
  this.type = "ShapeGeometry";
26760
26760
  this.parameters = {
@@ -26865,8 +26865,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26865
26865
  const thetaEnd = Math.min(thetaStart + thetaLength, Math.PI);
26866
26866
  let index2 = 0;
26867
26867
  const grid = [];
26868
- const vertex2 = new Vector3$1();
26869
- const normal = new Vector3$1();
26868
+ const vertex2 = new Vector3();
26869
+ const normal = new Vector3();
26870
26870
  const indices = [];
26871
26871
  const vertices = [];
26872
26872
  const normals = [];
@@ -26975,9 +26975,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26975
26975
  const vertices = [];
26976
26976
  const normals = [];
26977
26977
  const uvs = [];
26978
- const center = new Vector3$1();
26979
- const vertex2 = new Vector3$1();
26980
- const normal = new Vector3$1();
26978
+ const center = new Vector3();
26979
+ const vertex2 = new Vector3();
26980
+ const normal = new Vector3();
26981
26981
  for (let j = 0; j <= radialSegments; j++) {
26982
26982
  for (let i2 = 0; i2 <= tubularSegments; i2++) {
26983
26983
  const u = i2 / tubularSegments * arc;
@@ -27036,13 +27036,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27036
27036
  const vertices = [];
27037
27037
  const normals = [];
27038
27038
  const uvs = [];
27039
- const vertex2 = new Vector3$1();
27040
- const normal = new Vector3$1();
27041
- const P1 = new Vector3$1();
27042
- const P2 = new Vector3$1();
27043
- const B = new Vector3$1();
27044
- const T = new Vector3$1();
27045
- const N = new Vector3$1();
27039
+ const vertex2 = new Vector3();
27040
+ const normal = new Vector3();
27041
+ const P1 = new Vector3();
27042
+ const P2 = new Vector3();
27043
+ const B = new Vector3();
27044
+ const T = new Vector3();
27045
+ const N = new Vector3();
27046
27046
  for (let i2 = 0; i2 <= tubularSegments; ++i2) {
27047
27047
  const u = i2 / tubularSegments * p * Math.PI * 2;
27048
27048
  calculatePositionOnCurve(u, p, q, radius, P1);
@@ -27101,7 +27101,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27101
27101
  }
27102
27102
  }
27103
27103
  class TubeGeometry extends BufferGeometry {
27104
- constructor(path = new QuadraticBezierCurve3(new Vector3$1(-1, -1, 0), new Vector3$1(-1, 1, 0), new Vector3$1(1, 1, 0)), tubularSegments = 64, radius = 1, radialSegments = 8, closed = false) {
27104
+ constructor(path = new QuadraticBezierCurve3(new Vector3(-1, -1, 0), new Vector3(-1, 1, 0), new Vector3(1, 1, 0)), tubularSegments = 64, radius = 1, radialSegments = 8, closed = false) {
27105
27105
  super();
27106
27106
  this.type = "TubeGeometry";
27107
27107
  this.parameters = {
@@ -27115,10 +27115,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27115
27115
  this.tangents = frames.tangents;
27116
27116
  this.normals = frames.normals;
27117
27117
  this.binormals = frames.binormals;
27118
- const vertex2 = new Vector3$1();
27119
- const normal = new Vector3$1();
27120
- const uv = new Vector2$1();
27121
- let P = new Vector3$1();
27118
+ const vertex2 = new Vector3();
27119
+ const normal = new Vector3();
27120
+ const uv = new Vector2();
27121
+ let P = new Vector3();
27122
27122
  const vertices = [];
27123
27123
  const normals = [];
27124
27124
  const uvs = [];
@@ -27207,8 +27207,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27207
27207
  if (geometry !== null) {
27208
27208
  const vertices = [];
27209
27209
  const edges = /* @__PURE__ */ new Set();
27210
- const start = new Vector3$1();
27211
- const end = new Vector3$1();
27210
+ const start = new Vector3();
27211
+ const end = new Vector3();
27212
27212
  if (geometry.index !== null) {
27213
27213
  const position = geometry.attributes.position;
27214
27214
  const indices = geometry.index;
@@ -27337,7 +27337,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27337
27337
  this.bumpScale = 1;
27338
27338
  this.normalMap = null;
27339
27339
  this.normalMapType = TangentSpaceNormalMap;
27340
- this.normalScale = new Vector2$1(1, 1);
27340
+ this.normalScale = new Vector2(1, 1);
27341
27341
  this.displacementMap = null;
27342
27342
  this.displacementScale = 1;
27343
27343
  this.displacementBias = 0;
@@ -27406,7 +27406,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27406
27406
  this.clearcoatMap = null;
27407
27407
  this.clearcoatRoughness = 0;
27408
27408
  this.clearcoatRoughnessMap = null;
27409
- this.clearcoatNormalScale = new Vector2$1(1, 1);
27409
+ this.clearcoatNormalScale = new Vector2(1, 1);
27410
27410
  this.clearcoatNormalMap = null;
27411
27411
  this.ior = 1.5;
27412
27412
  Object.defineProperty(this, "reflectivity", {
@@ -27556,7 +27556,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27556
27556
  this.bumpScale = 1;
27557
27557
  this.normalMap = null;
27558
27558
  this.normalMapType = TangentSpaceNormalMap;
27559
- this.normalScale = new Vector2$1(1, 1);
27559
+ this.normalScale = new Vector2(1, 1);
27560
27560
  this.displacementMap = null;
27561
27561
  this.displacementScale = 1;
27562
27562
  this.displacementBias = 0;
@@ -27632,7 +27632,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27632
27632
  this.bumpScale = 1;
27633
27633
  this.normalMap = null;
27634
27634
  this.normalMapType = TangentSpaceNormalMap;
27635
- this.normalScale = new Vector2$1(1, 1);
27635
+ this.normalScale = new Vector2(1, 1);
27636
27636
  this.displacementMap = null;
27637
27637
  this.displacementScale = 1;
27638
27638
  this.displacementBias = 0;
@@ -27682,7 +27682,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27682
27682
  this.bumpScale = 1;
27683
27683
  this.normalMap = null;
27684
27684
  this.normalMapType = TangentSpaceNormalMap;
27685
- this.normalScale = new Vector2$1(1, 1);
27685
+ this.normalScale = new Vector2(1, 1);
27686
27686
  this.displacementMap = null;
27687
27687
  this.displacementScale = 1;
27688
27688
  this.displacementBias = 0;
@@ -27725,7 +27725,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27725
27725
  this.bumpScale = 1;
27726
27726
  this.normalMap = null;
27727
27727
  this.normalMapType = TangentSpaceNormalMap;
27728
- this.normalScale = new Vector2$1(1, 1);
27728
+ this.normalScale = new Vector2(1, 1);
27729
27729
  this.displacementMap = null;
27730
27730
  this.displacementScale = 1;
27731
27731
  this.displacementBias = 0;
@@ -27842,7 +27842,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27842
27842
  this.bumpScale = 1;
27843
27843
  this.normalMap = null;
27844
27844
  this.normalMapType = TangentSpaceNormalMap;
27845
- this.normalScale = new Vector2$1(1, 1);
27845
+ this.normalScale = new Vector2(1, 1);
27846
27846
  this.displacementMap = null;
27847
27847
  this.displacementScale = 1;
27848
27848
  this.displacementBias = 0;
@@ -29362,8 +29362,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
29362
29362
  }
29363
29363
  }
29364
29364
  const _projScreenMatrix$1 = /* @__PURE__ */ new Matrix4();
29365
- const _lightPositionWorld$1 = /* @__PURE__ */ new Vector3$1();
29366
- const _lookTarget$1 = /* @__PURE__ */ new Vector3$1();
29365
+ const _lightPositionWorld$1 = /* @__PURE__ */ new Vector3();
29366
+ const _lookTarget$1 = /* @__PURE__ */ new Vector3();
29367
29367
  class LightShadow {
29368
29368
  constructor(camera2) {
29369
29369
  this.camera = camera2;
@@ -29372,14 +29372,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
29372
29372
  this.normalBias = 0;
29373
29373
  this.radius = 1;
29374
29374
  this.blurSamples = 8;
29375
- this.mapSize = new Vector2$1(512, 512);
29375
+ this.mapSize = new Vector2(512, 512);
29376
29376
  this.map = null;
29377
29377
  this.mapPass = null;
29378
29378
  this.matrix = new Matrix4();
29379
29379
  this.autoUpdate = true;
29380
29380
  this.needsUpdate = false;
29381
29381
  this._frustum = new Frustum();
29382
- this._frameExtents = new Vector2$1(1, 1);
29382
+ this._frameExtents = new Vector2(1, 1);
29383
29383
  this._viewportCount = 1;
29384
29384
  this._viewports = [
29385
29385
  new Vector4(0, 0, 1, 1)
@@ -29519,13 +29519,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
29519
29519
  }
29520
29520
  }
29521
29521
  const _projScreenMatrix = /* @__PURE__ */ new Matrix4();
29522
- const _lightPositionWorld = /* @__PURE__ */ new Vector3$1();
29523
- const _lookTarget = /* @__PURE__ */ new Vector3$1();
29522
+ const _lightPositionWorld = /* @__PURE__ */ new Vector3();
29523
+ const _lookTarget = /* @__PURE__ */ new Vector3();
29524
29524
  class PointLightShadow extends LightShadow {
29525
29525
  constructor() {
29526
29526
  super(new PerspectiveCamera(90, 1, 0.5, 500));
29527
29527
  this.isPointLightShadow = true;
29528
- this._frameExtents = new Vector2$1(4, 2);
29528
+ this._frameExtents = new Vector2(4, 2);
29529
29529
  this._viewportCount = 6;
29530
29530
  this._viewports = [
29531
29531
  // These viewports map a cube-map onto a 2D texture with the
@@ -29554,20 +29554,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
29554
29554
  new Vector4(1, 0, 1, 1)
29555
29555
  ];
29556
29556
  this._cubeDirections = [
29557
- new Vector3$1(1, 0, 0),
29558
- new Vector3$1(-1, 0, 0),
29559
- new Vector3$1(0, 0, 1),
29560
- new Vector3$1(0, 0, -1),
29561
- new Vector3$1(0, 1, 0),
29562
- new Vector3$1(0, -1, 0)
29557
+ new Vector3(1, 0, 0),
29558
+ new Vector3(-1, 0, 0),
29559
+ new Vector3(0, 0, 1),
29560
+ new Vector3(0, 0, -1),
29561
+ new Vector3(0, 1, 0),
29562
+ new Vector3(0, -1, 0)
29563
29563
  ];
29564
29564
  this._cubeUps = [
29565
- new Vector3$1(0, 1, 0),
29566
- new Vector3$1(0, 1, 0),
29567
- new Vector3$1(0, 1, 0),
29568
- new Vector3$1(0, 1, 0),
29569
- new Vector3$1(0, 0, 1),
29570
- new Vector3$1(0, 0, -1)
29565
+ new Vector3(0, 1, 0),
29566
+ new Vector3(0, 1, 0),
29567
+ new Vector3(0, 1, 0),
29568
+ new Vector3(0, 1, 0),
29569
+ new Vector3(0, 0, 1),
29570
+ new Vector3(0, 0, -1)
29571
29571
  ];
29572
29572
  }
29573
29573
  updateMatrices(light, viewportIndex = 0) {
@@ -29768,7 +29768,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
29768
29768
  this.isSphericalHarmonics3 = true;
29769
29769
  this.coefficients = [];
29770
29770
  for (let i2 = 0; i2 < 9; i2++) {
29771
- this.coefficients.push(new Vector3$1());
29771
+ this.coefficients.push(new Vector3());
29772
29772
  }
29773
29773
  }
29774
29774
  set(coefficients) {
@@ -30031,10 +30031,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30031
30031
  material.uniforms[name].value = new Color().setHex(uniform.value);
30032
30032
  break;
30033
30033
  case "v2":
30034
- material.uniforms[name].value = new Vector2$1().fromArray(uniform.value);
30034
+ material.uniforms[name].value = new Vector2().fromArray(uniform.value);
30035
30035
  break;
30036
30036
  case "v3":
30037
- material.uniforms[name].value = new Vector3$1().fromArray(uniform.value);
30037
+ material.uniforms[name].value = new Vector3().fromArray(uniform.value);
30038
30038
  break;
30039
30039
  case "v4":
30040
30040
  material.uniforms[name].value = new Vector4().fromArray(uniform.value);
@@ -30075,7 +30075,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30075
30075
  if (Array.isArray(normalScale) === false) {
30076
30076
  normalScale = [normalScale, normalScale];
30077
30077
  }
30078
- material.normalScale = new Vector2$1().fromArray(normalScale);
30078
+ material.normalScale = new Vector2().fromArray(normalScale);
30079
30079
  }
30080
30080
  if (json.displacementMap !== void 0) material.displacementMap = getTexture(json.displacementMap);
30081
30081
  if (json.displacementScale !== void 0) material.displacementScale = json.displacementScale;
@@ -30100,7 +30100,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30100
30100
  if (json.clearcoatMap !== void 0) material.clearcoatMap = getTexture(json.clearcoatMap);
30101
30101
  if (json.clearcoatRoughnessMap !== void 0) material.clearcoatRoughnessMap = getTexture(json.clearcoatRoughnessMap);
30102
30102
  if (json.clearcoatNormalMap !== void 0) material.clearcoatNormalMap = getTexture(json.clearcoatNormalMap);
30103
- if (json.clearcoatNormalScale !== void 0) material.clearcoatNormalScale = new Vector2$1().fromArray(json.clearcoatNormalScale);
30103
+ if (json.clearcoatNormalScale !== void 0) material.clearcoatNormalScale = new Vector2().fromArray(json.clearcoatNormalScale);
30104
30104
  if (json.iridescenceMap !== void 0) material.iridescenceMap = getTexture(json.iridescenceMap);
30105
30105
  if (json.iridescenceThicknessMap !== void 0) material.iridescenceThicknessMap = getTexture(json.iridescenceThicknessMap);
30106
30106
  if (json.transmissionMap !== void 0) material.transmissionMap = getTexture(json.transmissionMap);
@@ -30293,7 +30293,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30293
30293
  }
30294
30294
  const boundingSphere = json.data.boundingSphere;
30295
30295
  if (boundingSphere !== void 0) {
30296
- const center = new Vector3$1();
30296
+ const center = new Vector3();
30297
30297
  if (boundingSphere.center !== void 0) {
30298
30298
  center.fromArray(boundingSphere.center);
30299
30299
  }
@@ -30768,7 +30768,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30768
30768
  object._visibility = data2.visibility;
30769
30769
  object._active = data2.active;
30770
30770
  object._bounds = data2.bounds.map((bound) => {
30771
- const box = new Box3$1();
30771
+ const box = new Box3();
30772
30772
  box.min.fromArray(bound.boxMin);
30773
30773
  box.max.fromArray(bound.boxMax);
30774
30774
  const sphere = new Sphere();
@@ -31129,10 +31129,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
31129
31129
  function now() {
31130
31130
  return performance.now();
31131
31131
  }
31132
- const _position$1 = /* @__PURE__ */ new Vector3$1();
31132
+ const _position$1 = /* @__PURE__ */ new Vector3();
31133
31133
  const _quaternion$1 = /* @__PURE__ */ new Quaternion();
31134
- const _scale$1 = /* @__PURE__ */ new Vector3$1();
31135
- const _orientation$1 = /* @__PURE__ */ new Vector3$1();
31134
+ const _scale$1 = /* @__PURE__ */ new Vector3();
31135
+ const _orientation$1 = /* @__PURE__ */ new Vector3();
31136
31136
  class AudioListener extends Object3D$1 {
31137
31137
  constructor() {
31138
31138
  super();
@@ -31444,10 +31444,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
31444
31444
  return new this.constructor(this.listener).copy(this, recursive);
31445
31445
  }
31446
31446
  }
31447
- const _position = /* @__PURE__ */ new Vector3$1();
31447
+ const _position = /* @__PURE__ */ new Vector3();
31448
31448
  const _quaternion = /* @__PURE__ */ new Quaternion();
31449
- const _scale = /* @__PURE__ */ new Vector3$1();
31450
- const _orientation = /* @__PURE__ */ new Vector3$1();
31449
+ const _scale = /* @__PURE__ */ new Vector3();
31450
+ const _orientation = /* @__PURE__ */ new Vector3();
31451
31451
  class PositionalAudio extends Audio {
31452
31452
  constructor(listener2) {
31453
31453
  super(listener2);
@@ -33234,9 +33234,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33234
33234
  return this;
33235
33235
  }
33236
33236
  }
33237
- const _vector$4 = /* @__PURE__ */ new Vector2$1();
33237
+ const _vector$4 = /* @__PURE__ */ new Vector2();
33238
33238
  class Box2 {
33239
- constructor(min2 = new Vector2$1(Infinity, Infinity), max2 = new Vector2$1(-Infinity, -Infinity)) {
33239
+ constructor(min2 = new Vector2(Infinity, Infinity), max2 = new Vector2(-Infinity, -Infinity)) {
33240
33240
  this.isBox2 = true;
33241
33241
  this.min = min2;
33242
33242
  this.max = max2;
@@ -33337,10 +33337,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33337
33337
  return box.min.equals(this.min) && box.max.equals(this.max);
33338
33338
  }
33339
33339
  }
33340
- const _startP = /* @__PURE__ */ new Vector3$1();
33341
- const _startEnd = /* @__PURE__ */ new Vector3$1();
33340
+ const _startP = /* @__PURE__ */ new Vector3();
33341
+ const _startEnd = /* @__PURE__ */ new Vector3();
33342
33342
  class Line3 {
33343
- constructor(start = new Vector3$1(), end = new Vector3$1()) {
33343
+ constructor(start = new Vector3(), end = new Vector3()) {
33344
33344
  this.start = start;
33345
33345
  this.end = end;
33346
33346
  }
@@ -33396,7 +33396,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33396
33396
  return new this.constructor().copy(this);
33397
33397
  }
33398
33398
  }
33399
- const _vector$3 = /* @__PURE__ */ new Vector3$1();
33399
+ const _vector$3 = /* @__PURE__ */ new Vector3();
33400
33400
  class SpotLightHelper extends Object3D$1 {
33401
33401
  constructor(light, color) {
33402
33402
  super();
@@ -33481,7 +33481,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33481
33481
  }
33482
33482
  }
33483
33483
  }
33484
- const _vector$2 = /* @__PURE__ */ new Vector3$1();
33484
+ const _vector$2 = /* @__PURE__ */ new Vector3();
33485
33485
  const _boneMatrix = /* @__PURE__ */ new Matrix4();
33486
33486
  const _matrixWorldInv = /* @__PURE__ */ new Matrix4();
33487
33487
  class SkeletonHelper extends LineSegments {
@@ -33572,7 +33572,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33572
33572
  }
33573
33573
  }
33574
33574
  }
33575
- const _vector$1 = /* @__PURE__ */ new Vector3$1();
33575
+ const _vector$1 = /* @__PURE__ */ new Vector3();
33576
33576
  const _color1 = /* @__PURE__ */ new Color();
33577
33577
  const _color2 = /* @__PURE__ */ new Color();
33578
33578
  class HemisphereLightHelper extends Object3D$1 {
@@ -33694,9 +33694,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33694
33694
  this.material.dispose();
33695
33695
  }
33696
33696
  }
33697
- const _v1 = /* @__PURE__ */ new Vector3$1();
33698
- const _v2 = /* @__PURE__ */ new Vector3$1();
33699
- const _v3 = /* @__PURE__ */ new Vector3$1();
33697
+ const _v1 = /* @__PURE__ */ new Vector3();
33698
+ const _v2 = /* @__PURE__ */ new Vector3();
33699
+ const _v3 = /* @__PURE__ */ new Vector3();
33700
33700
  class DirectionalLightHelper extends Object3D$1 {
33701
33701
  constructor(light, size, color) {
33702
33702
  super();
@@ -33757,7 +33757,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33757
33757
  this.targetLine.scale.z = _v3.length();
33758
33758
  }
33759
33759
  }
33760
- const _vector$d = /* @__PURE__ */ new Vector3$1();
33760
+ const _vector$d = /* @__PURE__ */ new Vector3();
33761
33761
  const _camera$1 = /* @__PURE__ */ new Camera$2();
33762
33762
  class CameraHelper extends LineSegments {
33763
33763
  constructor(camera2) {
@@ -33918,7 +33918,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33918
33918
  }
33919
33919
  }
33920
33920
  }
33921
- const _box = /* @__PURE__ */ new Box3$1();
33921
+ const _box = /* @__PURE__ */ new Box3();
33922
33922
  class BoxHelper extends LineSegments {
33923
33923
  constructor(object, color = 16776960) {
33924
33924
  const indices = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]);
@@ -34042,11 +34042,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
34042
34042
  this.children[0].material.dispose();
34043
34043
  }
34044
34044
  }
34045
- const _axis = /* @__PURE__ */ new Vector3$1();
34045
+ const _axis = /* @__PURE__ */ new Vector3();
34046
34046
  let _lineGeometry, _coneGeometry;
34047
34047
  class ArrowHelper extends Object3D$1 {
34048
34048
  // dir is assumed to be normalized
34049
- constructor(dir = new Vector3$1(0, 0, 1), origin = new Vector3$1(0, 0, 0), length = 1, color = 16776960, headLength = length * 0.2, headWidth = headLength * 0.2) {
34049
+ constructor(dir = new Vector3(0, 0, 1), origin = new Vector3(0, 0, 0), length = 1, color = 16776960, headLength = length * 0.2, headWidth = headLength * 0.2) {
34050
34050
  super();
34051
34051
  this.type = "ArrowHelper";
34052
34052
  if (_lineGeometry === void 0) {
@@ -34999,7 +34999,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
34999
34999
  normalmap: {
35000
35000
  normalMap: { value: null },
35001
35001
  normalMapTransform: { value: /* @__PURE__ */ new Matrix3() },
35002
- normalScale: { value: /* @__PURE__ */ new Vector2$1(1, 1) }
35002
+ normalScale: { value: /* @__PURE__ */ new Vector2(1, 1) }
35003
35003
  },
35004
35004
  displacementmap: {
35005
35005
  displacementMap: { value: null },
@@ -35109,7 +35109,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
35109
35109
  sprite: {
35110
35110
  diffuse: { value: /* @__PURE__ */ new Color(16777215) },
35111
35111
  opacity: { value: 1 },
35112
- center: { value: /* @__PURE__ */ new Vector2$1(0.5, 0.5) },
35112
+ center: { value: /* @__PURE__ */ new Vector2(0.5, 0.5) },
35113
35113
  rotation: { value: 0 },
35114
35114
  map: { value: null },
35115
35115
  mapTransform: { value: /* @__PURE__ */ new Matrix3() },
@@ -35321,7 +35321,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
35321
35321
  UniformsLib.common,
35322
35322
  UniformsLib.displacementmap,
35323
35323
  {
35324
- referencePosition: { value: /* @__PURE__ */ new Vector3$1() },
35324
+ referencePosition: { value: /* @__PURE__ */ new Vector3() },
35325
35325
  nearDistance: { value: 1 },
35326
35326
  farDistance: { value: 1e3 }
35327
35327
  }
@@ -35351,7 +35351,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
35351
35351
  clearcoatMapTransform: { value: /* @__PURE__ */ new Matrix3() },
35352
35352
  clearcoatNormalMap: { value: null },
35353
35353
  clearcoatNormalMapTransform: { value: /* @__PURE__ */ new Matrix3() },
35354
- clearcoatNormalScale: { value: /* @__PURE__ */ new Vector2$1(1, 1) },
35354
+ clearcoatNormalScale: { value: /* @__PURE__ */ new Vector2(1, 1) },
35355
35355
  clearcoatRoughness: { value: 0 },
35356
35356
  clearcoatRoughnessMap: { value: null },
35357
35357
  clearcoatRoughnessMapTransform: { value: /* @__PURE__ */ new Matrix3() },
@@ -35374,7 +35374,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
35374
35374
  transmission: { value: 0 },
35375
35375
  transmissionMap: { value: null },
35376
35376
  transmissionMapTransform: { value: /* @__PURE__ */ new Matrix3() },
35377
- transmissionSamplerSize: { value: /* @__PURE__ */ new Vector2$1() },
35377
+ transmissionSamplerSize: { value: /* @__PURE__ */ new Vector2() },
35378
35378
  transmissionSamplerMap: { value: null },
35379
35379
  thickness: { value: 0 },
35380
35380
  thicknessMap: { value: null },
@@ -35387,7 +35387,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
35387
35387
  specularIntensity: { value: 1 },
35388
35388
  specularIntensityMap: { value: null },
35389
35389
  specularIntensityMapTransform: { value: /* @__PURE__ */ new Matrix3() },
35390
- anisotropyVector: { value: /* @__PURE__ */ new Vector2$1() },
35390
+ anisotropyVector: { value: /* @__PURE__ */ new Vector2() },
35391
35391
  anisotropyMap: { value: null },
35392
35392
  anisotropyMapTransform: { value: /* @__PURE__ */ new Matrix3() }
35393
35393
  }
@@ -36158,16 +36158,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
36158
36158
  const PHI = (1 + Math.sqrt(5)) / 2;
36159
36159
  const INV_PHI = 1 / PHI;
36160
36160
  const _axisDirections = [
36161
- /* @__PURE__ */ new Vector3$1(-PHI, INV_PHI, 0),
36162
- /* @__PURE__ */ new Vector3$1(PHI, INV_PHI, 0),
36163
- /* @__PURE__ */ new Vector3$1(-INV_PHI, 0, PHI),
36164
- /* @__PURE__ */ new Vector3$1(INV_PHI, 0, PHI),
36165
- /* @__PURE__ */ new Vector3$1(0, PHI, -INV_PHI),
36166
- /* @__PURE__ */ new Vector3$1(0, PHI, INV_PHI),
36167
- /* @__PURE__ */ new Vector3$1(-1, 1, -1),
36168
- /* @__PURE__ */ new Vector3$1(1, 1, -1),
36169
- /* @__PURE__ */ new Vector3$1(-1, 1, 1),
36170
- /* @__PURE__ */ new Vector3$1(1, 1, 1)
36161
+ /* @__PURE__ */ new Vector3(-PHI, INV_PHI, 0),
36162
+ /* @__PURE__ */ new Vector3(PHI, INV_PHI, 0),
36163
+ /* @__PURE__ */ new Vector3(-INV_PHI, 0, PHI),
36164
+ /* @__PURE__ */ new Vector3(INV_PHI, 0, PHI),
36165
+ /* @__PURE__ */ new Vector3(0, PHI, -INV_PHI),
36166
+ /* @__PURE__ */ new Vector3(0, PHI, INV_PHI),
36167
+ /* @__PURE__ */ new Vector3(-1, 1, -1),
36168
+ /* @__PURE__ */ new Vector3(1, 1, -1),
36169
+ /* @__PURE__ */ new Vector3(-1, 1, 1),
36170
+ /* @__PURE__ */ new Vector3(1, 1, 1)
36171
36171
  ];
36172
36172
  class PMREMGenerator {
36173
36173
  constructor(renderer) {
@@ -36568,7 +36568,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
36568
36568
  }
36569
36569
  function _getBlurShader(lodMax, width, height) {
36570
36570
  const weights = new Float32Array(MAX_SAMPLES);
36571
- const poleAxis = new Vector3$1(0, 1, 0);
36571
+ const poleAxis = new Vector3(0, 1, 0);
36572
36572
  const shaderMaterial = new ShaderMaterial({
36573
36573
  name: "SphericalGaussianBlur",
36574
36574
  defines: {
@@ -37160,7 +37160,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
37160
37160
  entry = {
37161
37161
  count: morphTargetsCount,
37162
37162
  texture,
37163
- size: new Vector2$1(width, height)
37163
+ size: new Vector2(width, height)
37164
37164
  };
37165
37165
  morphTextures.set(geometry, entry);
37166
37166
  geometry.addEventListener("dispose", disposeTexture);
@@ -37971,7 +37971,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
37971
37971
  }
37972
37972
  return "vec3 " + functionName2 + "( vec3 color ) { return " + toneMappingName + "ToneMapping( color ); }";
37973
37973
  }
37974
- const _v0 = /* @__PURE__ */ new Vector3$1();
37974
+ const _v0 = /* @__PURE__ */ new Vector3();
37975
37975
  function getLuminanceFunction() {
37976
37976
  ColorManagement.getLuminanceCoefficients(_v0);
37977
37977
  const r = _v0.x.toFixed(4);
@@ -39227,14 +39227,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39227
39227
  switch (light.type) {
39228
39228
  case "DirectionalLight":
39229
39229
  uniforms = {
39230
- direction: new Vector3$1(),
39230
+ direction: new Vector3(),
39231
39231
  color: new Color()
39232
39232
  };
39233
39233
  break;
39234
39234
  case "SpotLight":
39235
39235
  uniforms = {
39236
- position: new Vector3$1(),
39237
- direction: new Vector3$1(),
39236
+ position: new Vector3(),
39237
+ direction: new Vector3(),
39238
39238
  color: new Color(),
39239
39239
  distance: 0,
39240
39240
  coneCos: 0,
@@ -39244,7 +39244,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39244
39244
  break;
39245
39245
  case "PointLight":
39246
39246
  uniforms = {
39247
- position: new Vector3$1(),
39247
+ position: new Vector3(),
39248
39248
  color: new Color(),
39249
39249
  distance: 0,
39250
39250
  decay: 0
@@ -39252,7 +39252,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39252
39252
  break;
39253
39253
  case "HemisphereLight":
39254
39254
  uniforms = {
39255
- direction: new Vector3$1(),
39255
+ direction: new Vector3(),
39256
39256
  skyColor: new Color(),
39257
39257
  groundColor: new Color()
39258
39258
  };
@@ -39260,9 +39260,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39260
39260
  case "RectAreaLight":
39261
39261
  uniforms = {
39262
39262
  color: new Color(),
39263
- position: new Vector3$1(),
39264
- halfWidth: new Vector3$1(),
39265
- halfHeight: new Vector3$1()
39263
+ position: new Vector3(),
39264
+ halfWidth: new Vector3(),
39265
+ halfHeight: new Vector3()
39266
39266
  };
39267
39267
  break;
39268
39268
  }
@@ -39286,7 +39286,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39286
39286
  shadowBias: 0,
39287
39287
  shadowNormalBias: 0,
39288
39288
  shadowRadius: 1,
39289
- shadowMapSize: new Vector2$1()
39289
+ shadowMapSize: new Vector2()
39290
39290
  };
39291
39291
  break;
39292
39292
  case "SpotLight":
@@ -39295,7 +39295,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39295
39295
  shadowBias: 0,
39296
39296
  shadowNormalBias: 0,
39297
39297
  shadowRadius: 1,
39298
- shadowMapSize: new Vector2$1()
39298
+ shadowMapSize: new Vector2()
39299
39299
  };
39300
39300
  break;
39301
39301
  case "PointLight":
@@ -39304,7 +39304,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39304
39304
  shadowBias: 0,
39305
39305
  shadowNormalBias: 0,
39306
39306
  shadowRadius: 1,
39307
- shadowMapSize: new Vector2$1(),
39307
+ shadowMapSize: new Vector2(),
39308
39308
  shadowCameraNear: 1,
39309
39309
  shadowCameraFar: 1e3
39310
39310
  };
@@ -39358,8 +39358,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39358
39358
  numSpotLightShadowsWithMaps: 0,
39359
39359
  numLightProbes: 0
39360
39360
  };
39361
- for (let i2 = 0; i2 < 9; i2++) state.probe.push(new Vector3$1());
39362
- const vector3 = new Vector3$1();
39361
+ for (let i2 = 0; i2 < 9; i2++) state.probe.push(new Vector3());
39362
+ const vector3 = new Vector3();
39363
39363
  const matrix4 = new Matrix4();
39364
39364
  const matrix42 = new Matrix4();
39365
39365
  function setup(lights) {
@@ -39644,7 +39644,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39644
39644
  const fragment = "uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n const float samples = float( VSM_SAMPLES );\n float mean = 0.0;\n float squared_mean = 0.0;\n float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n float uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n for ( float i = 0.0; i < samples; i ++ ) {\n float uvOffset = uvStart + i * uvStride;\n #ifdef HORIZONTAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean / samples;\n squared_mean = squared_mean / samples;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";
39645
39645
  function WebGLShadowMap(renderer, objects, capabilities) {
39646
39646
  let _frustum2 = new Frustum();
39647
- const _shadowMapSize = new Vector2$1(), _viewportSize = new Vector2$1(), _viewport = new Vector4(), _depthMaterial = new MeshDepthMaterial({ depthPacking: RGBADepthPacking }), _distanceMaterial = new MeshDistanceMaterial(), _materialCache = {}, _maxTextureSize = capabilities.maxTextureSize;
39647
+ const _shadowMapSize = new Vector2(), _viewportSize = new Vector2(), _viewport = new Vector4(), _depthMaterial = new MeshDepthMaterial({ depthPacking: RGBADepthPacking }), _distanceMaterial = new MeshDistanceMaterial(), _materialCache = {}, _maxTextureSize = capabilities.maxTextureSize;
39648
39648
  const shadowSide = { [FrontSide]: BackSide, [BackSide]: FrontSide, [DoubleSide]: DoubleSide };
39649
39649
  const shadowMaterialVertical = new ShaderMaterial({
39650
39650
  defines: {
@@ -39652,7 +39652,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
39652
39652
  },
39653
39653
  uniforms: {
39654
39654
  shadow_pass: { value: null },
39655
- resolution: { value: new Vector2$1() },
39655
+ resolution: { value: new Vector2() },
39656
39656
  radius: { value: 4 }
39657
39657
  },
39658
39658
  vertexShader: vertex,
@@ -40628,7 +40628,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
40628
40628
  function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, info) {
40629
40629
  const multisampledRTTExt = extensions.has("WEBGL_multisampled_render_to_texture") ? extensions.get("WEBGL_multisampled_render_to_texture") : null;
40630
40630
  const supportsInvalidateFramebuffer = typeof navigator === "undefined" ? false : /OculusBrowser/g.test(navigator.userAgent);
40631
- const _imageDimensions = new Vector2$1();
40631
+ const _imageDimensions = new Vector2();
40632
40632
  const _videoTextures = /* @__PURE__ */ new WeakMap();
40633
40633
  let _canvas2;
40634
40634
  const _sources = /* @__PURE__ */ new WeakMap();
@@ -41902,9 +41902,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
41902
41902
  this._targetRay.matrixAutoUpdate = false;
41903
41903
  this._targetRay.visible = false;
41904
41904
  this._targetRay.hasLinearVelocity = false;
41905
- this._targetRay.linearVelocity = new Vector3$1();
41905
+ this._targetRay.linearVelocity = new Vector3();
41906
41906
  this._targetRay.hasAngularVelocity = false;
41907
- this._targetRay.angularVelocity = new Vector3$1();
41907
+ this._targetRay.angularVelocity = new Vector3();
41908
41908
  }
41909
41909
  return this._targetRay;
41910
41910
  }
@@ -41914,9 +41914,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
41914
41914
  this._grip.matrixAutoUpdate = false;
41915
41915
  this._grip.visible = false;
41916
41916
  this._grip.hasLinearVelocity = false;
41917
- this._grip.linearVelocity = new Vector3$1();
41917
+ this._grip.linearVelocity = new Vector3();
41918
41918
  this._grip.hasAngularVelocity = false;
41919
- this._grip.angularVelocity = new Vector3$1();
41919
+ this._grip.angularVelocity = new Vector3();
41920
41920
  }
41921
41921
  return this._grip;
41922
41922
  }
@@ -42160,7 +42160,7 @@ void main() {
42160
42160
  let newRenderTarget = null;
42161
42161
  const controllers = [];
42162
42162
  const controllerInputSources = [];
42163
- const currentSize = new Vector2$1();
42163
+ const currentSize = new Vector2();
42164
42164
  let currentPixelRatio = null;
42165
42165
  const cameraL = new PerspectiveCamera();
42166
42166
  cameraL.viewport = new Vector4();
@@ -42390,8 +42390,8 @@ void main() {
42390
42390
  }
42391
42391
  }
42392
42392
  }
42393
- const cameraLPos = new Vector3$1();
42394
- const cameraRPos = new Vector3$1();
42393
+ const cameraLPos = new Vector3();
42394
+ const cameraRPos = new Vector3();
42395
42395
  function setProjectionFromUnion(camera2, cameraL2, cameraR2) {
42396
42396
  cameraLPos.setFromMatrixPosition(cameraL2.matrixWorld);
42397
42397
  cameraRPos.setFromMatrixPosition(cameraR2.matrixWorld);
@@ -43184,7 +43184,7 @@ void main() {
43184
43184
  let _localClippingEnabled = false;
43185
43185
  const _currentProjectionMatrix = new Matrix4();
43186
43186
  const _projScreenMatrix2 = new Matrix4();
43187
- const _vector32 = new Vector3$1();
43187
+ const _vector32 = new Vector3();
43188
43188
  const _vector4 = new Vector4();
43189
43189
  const _emptyScene = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: true };
43190
43190
  let _renderBackground = false;
@@ -44658,7 +44658,7 @@ void main() {
44658
44658
  Bone,
44659
44659
  BooleanKeyframeTrack,
44660
44660
  Box2,
44661
- Box3: Box3$1,
44661
+ Box3,
44662
44662
  Box3Helper,
44663
44663
  BoxGeometry,
44664
44664
  BoxHelper,
@@ -45018,8 +45018,8 @@ void main() {
45018
45018
  UnsignedShort5551Type,
45019
45019
  UnsignedShortType,
45020
45020
  VSMShadowMap,
45021
- Vector2: Vector2$1,
45022
- Vector3: Vector3$1,
45021
+ Vector2,
45022
+ Vector3,
45023
45023
  Vector4,
45024
45024
  VectorKeyframeTrack,
45025
45025
  VideoTexture,
@@ -45194,7 +45194,7 @@ void main() {
45194
45194
  let vertex2 = 0;
45195
45195
  let offset = 0;
45196
45196
  const matrix = new Matrix4();
45197
- const vector = new Vector3$1();
45197
+ const vector = new Vector3();
45198
45198
  for (let i2 = 0; i2 < info.instances.length; i2++) {
45199
45199
  const instance = info.instances[i2];
45200
45200
  const mesh = g3d2.getInstanceMesh(instance);
@@ -45225,7 +45225,7 @@ void main() {
45225
45225
  vector.applyMatrix4(matrix);
45226
45226
  vector.toArray(buffer.vertices, vertex2);
45227
45227
  vertex2 += distExports$2.G3d.POSITION_SIZE;
45228
- buffer.boxes[i2] = new Box3$1(vector.clone(), vector.clone());
45228
+ buffer.boxes[i2] = new Box3(vector.clone(), vector.clone());
45229
45229
  }
45230
45230
  for (let p = vertexStart + 1; p < vertexEnd; p++) {
45231
45231
  vector.fromArray(g3d2.positions, p * distExports$2.G3d.POSITION_SIZE);
@@ -45297,8 +45297,8 @@ void main() {
45297
45297
  Geometry2.MergeResult = MergeResult;
45298
45298
  })(Geometry || (Geometry = {}));
45299
45299
  const defaultConfig = {
45300
- position: new Vector3$1(),
45301
- rotation: new Vector3$1(),
45300
+ position: new Vector3(),
45301
+ rotation: new Vector3(),
45302
45302
  scale: 1,
45303
45303
  matrix: void 0,
45304
45304
  transparency: "all",
@@ -45320,7 +45320,7 @@ void main() {
45320
45320
  merge.rotation.z * Math.PI / 180
45321
45321
  )
45322
45322
  ),
45323
- new Vector3$1(merge.scale, merge.scale, merge.scale)
45323
+ new Vector3(merge.scale, merge.scale, merge.scale)
45324
45324
  );
45325
45325
  return merge;
45326
45326
  }
@@ -45781,7 +45781,7 @@ void main() {
45781
45781
  * A new instance is created if none is provided.
45782
45782
  * @returns {THREE.Vector3 | undefined} The center position of the object, or undefined if the object has no geometry.
45783
45783
  */
45784
- getCenter(target = new Vector3$1()) {
45784
+ getCenter(target = new Vector3()) {
45785
45785
  var _a2;
45786
45786
  return (_a2 = this.getBoundingBox()) == null ? void 0 : _a2.getCenter(target);
45787
45787
  }
@@ -47324,12 +47324,12 @@ void main() {
47324
47324
  }
47325
47325
  function getAverageBoundingBox(positions, thresholdSpan = 1e3, framingDistanceMultiplier = 2) {
47326
47326
  if (positions.length === 0) {
47327
- return new Box3$1();
47327
+ return new Box3();
47328
47328
  }
47329
47329
  const { centroid, aabb } = calculateCentroidAndBoundingBox(positions);
47330
- const span = aabb.getSize(new Vector3$1()).length();
47331
- const center = span > thresholdSpan ? centroid : aabb.getCenter(new Vector3$1());
47332
- const avgDist = new Vector3$1();
47330
+ const span = aabb.getSize(new Vector3()).length();
47331
+ const center = span > thresholdSpan ? centroid : aabb.getCenter(new Vector3());
47332
+ const avgDist = new Vector3();
47333
47333
  for (const pos of positions) {
47334
47334
  avgDist.set(
47335
47335
  avgDist.x + Math.abs(pos.x - center.x),
@@ -47338,14 +47338,14 @@ void main() {
47338
47338
  );
47339
47339
  }
47340
47340
  const scaledDist = avgDist.multiplyScalar(framingDistanceMultiplier / positions.length);
47341
- return new Box3$1(
47341
+ return new Box3(
47342
47342
  center.clone().sub(scaledDist),
47343
47343
  center.clone().add(scaledDist)
47344
47344
  );
47345
47345
  }
47346
47346
  function calculateCentroidAndBoundingBox(positions) {
47347
- const sum = new Vector3$1();
47348
- const aabb = new Box3$1();
47347
+ const sum = new Vector3();
47348
+ const aabb = new Box3();
47349
47349
  for (const pos of positions) {
47350
47350
  sum.add(pos);
47351
47351
  aabb.expandByPoint(pos);
@@ -47390,7 +47390,7 @@ void main() {
47390
47390
  /**
47391
47391
  * Returns the scene bounding box. Returns undefined if scene is empty.
47392
47392
  */
47393
- getBoundingBox(target = new Box3$1()) {
47393
+ getBoundingBox(target = new Box3()) {
47394
47394
  return this._boundingBox ? target.copy(this._boundingBox) : void 0;
47395
47395
  }
47396
47396
  /**
@@ -47405,7 +47405,7 @@ void main() {
47405
47405
  this.meshes.forEach((m) => {
47406
47406
  const subs = m.getSubmeshes();
47407
47407
  subs.forEach((s) => {
47408
- const p = s.boundingBox.getCenter(new Vector3$1());
47408
+ const p = s.boundingBox.getCenter(new Vector3());
47409
47409
  p.applyMatrix4(this._matrix);
47410
47410
  points.push(p);
47411
47411
  });
@@ -47581,11 +47581,11 @@ void main() {
47581
47581
  __publicField(this, "instance");
47582
47582
  __publicField(this, "start");
47583
47583
  __publicField(this, "end");
47584
- __publicField(this, "boundingBox", new Box3$1());
47584
+ __publicField(this, "boundingBox", new Box3());
47585
47585
  }
47586
47586
  expandBox(point) {
47587
47587
  var _a2;
47588
- this.boundingBox = ((_a2 = this.boundingBox) == null ? void 0 : _a2.expandByPoint(point)) ?? new Box3$1().set(point, point);
47588
+ this.boundingBox = ((_a2 = this.boundingBox) == null ? void 0 : _a2.expandByPoint(point)) ?? new Box3().set(point, point);
47589
47589
  }
47590
47590
  }
47591
47591
  class InsertableGeometry {
@@ -47645,7 +47645,7 @@ void main() {
47645
47645
  return added;
47646
47646
  }
47647
47647
  const matrix = new Matrix4();
47648
- const vector = new Vector3$1();
47648
+ const vector = new Vector3();
47649
47649
  const vertexStart = mesh.getVertexStart(section);
47650
47650
  const vertexEnd = mesh.getVertexEnd(section);
47651
47651
  const vertexCount = vertexEnd - vertexStart;
@@ -47719,7 +47719,7 @@ void main() {
47719
47719
  return added;
47720
47720
  }
47721
47721
  const matrix = new Matrix4();
47722
- const vector = new Vector3$1();
47722
+ const vector = new Vector3();
47723
47723
  const indexOffset = this.offsets.getIndexOffset(mesh);
47724
47724
  const vertexOffset = this.offsets.getVertexOffset(mesh);
47725
47725
  const vertexStart = g3d2.getMeshVertexStart(meshG3dIndex);
@@ -48091,7 +48091,7 @@ void main() {
48091
48091
  // Uniform controlling the overall transparency of the non-visible objects.
48092
48092
  opacity: { value: 1e-3 },
48093
48093
  // Uniform specifying the fill color for non-visible objects.
48094
- fillColor: { value: new Vector3$1(0, 0, 0) }
48094
+ fillColor: { value: new Vector3(0, 0, 0) }
48095
48095
  },
48096
48096
  // Render only the front side of faces to prevent drawing internal geometry.
48097
48097
  side: FrontSide,
@@ -48158,7 +48158,7 @@ void main() {
48158
48158
  this.material = createOutlineMaterial();
48159
48159
  this._antialias = (options == null ? void 0 : options.antialias) ?? false;
48160
48160
  this._precision = (options == null ? void 0 : options.precision) ?? 1;
48161
- this._resolution = (options == null ? void 0 : options.resolution) ?? new Vector2$1(1, 1);
48161
+ this._resolution = (options == null ? void 0 : options.resolution) ?? new Vector2(1, 1);
48162
48162
  this.resolution = this._resolution;
48163
48163
  if (options == null ? void 0 : options.sceneBuffer) {
48164
48164
  this.sceneBuffer = options.sceneBuffer;
@@ -48599,7 +48599,7 @@ void main() {
48599
48599
 
48600
48600
  void main() {
48601
48601
  // Define the up vector
48602
- vec3 up = vec3(0.0, 1.0, 0.0);
48602
+ vec3 up = vec3(0.0, 0.0, 1.0);
48603
48603
 
48604
48604
  // Calculate the direction from the pixel to the camera
48605
48605
  vec3 directionToCamera = normalize(vCameraPosition - vPosition);
@@ -49115,7 +49115,7 @@ void main() {
49115
49115
  this.bimInstances = g3d2 instanceof distExports$2.G3dMesh ? instances.map((i2) => g3d2.scene.instanceNodes[i2]) : instances;
49116
49116
  this.meshInstances = instances;
49117
49117
  this.boxes = g3d2 instanceof distExports$2.G3dMesh ? this.importBoundingBoxes() : this.computeBoundingBoxes();
49118
- this.size = ((_a2 = this.boxes[0]) == null ? void 0 : _a2.getSize(new Vector3$1()).length()) ?? 0;
49118
+ this.size = ((_a2 = this.boxes[0]) == null ? void 0 : _a2.getSize(new Vector3()).length()) ?? 0;
49119
49119
  this.boundingBox = this.computeBoundingBox(this.boxes);
49120
49120
  this._material = this.mesh.material;
49121
49121
  }
@@ -49163,7 +49163,7 @@ void main() {
49163
49163
  if (this.g3dMesh instanceof distExports$2.G3d) throw new Error("Wrong type");
49164
49164
  const boxes = new Array(this.meshInstances.length);
49165
49165
  for (let i2 = 0; i2 < this.meshInstances.length; i2++) {
49166
- const box = new Box3$1();
49166
+ const box = new Box3();
49167
49167
  const instance = this.meshInstances[i2];
49168
49168
  box.min.fromArray(this.g3dMesh.scene.getInstanceMin(instance));
49169
49169
  box.max.fromArray(this.g3dMesh.scene.getInstanceMax(instance));
@@ -49708,8 +49708,8 @@ void main() {
49708
49708
  if (this._source instanceof distExports$2.G3d) {
49709
49709
  throw new Error("Feature requires a vimx file");
49710
49710
  }
49711
- const min2 = new Vector3$1();
49712
- const max2 = new Vector3$1();
49711
+ const min2 = new Vector3();
49712
+ const max2 = new Vector3();
49713
49713
  const values = new Array(this._instances.length);
49714
49714
  for (let i2 = 0; i2 < this._instances.length; i2++) {
49715
49715
  const instance = this._instances[i2];
@@ -49824,7 +49824,7 @@ void main() {
49824
49824
  getBoundingBox() {
49825
49825
  if (this._instances.length === 0) return;
49826
49826
  if (this._source instanceof distExports$2.G3dScene) {
49827
- const box = new Box3$1();
49827
+ const box = new Box3();
49828
49828
  const first = this._instances[0];
49829
49829
  box.min.fromArray(this._source.getInstanceMin(first));
49830
49830
  box.max.fromArray(this._source.getInstanceMax(first));
@@ -50261,14 +50261,14 @@ void main() {
50261
50261
  },
50262
50262
  camera: {
50263
50263
  orthographic: false,
50264
- allowedMovement: new Vector3$1(1, 1, 1),
50265
- allowedRotation: new Vector2$1(1, 1),
50264
+ allowedMovement: new Vector3(1, 1, 1),
50265
+ allowedRotation: new Vector2(1, 1),
50266
50266
  near: 1e-3,
50267
50267
  far: 15e3,
50268
50268
  fov: 50,
50269
50269
  zoom: 1,
50270
50270
  // 45 deg down looking down z.
50271
- forward: new Vector3$1(1, -1, -1),
50271
+ forward: new Vector3(1, -1, -1),
50272
50272
  controls: {
50273
50273
  orbit: true,
50274
50274
  rotateSpeed: 1,
@@ -50301,13 +50301,13 @@ void main() {
50301
50301
  sunlights: [
50302
50302
  {
50303
50303
  followCamera: true,
50304
- position: new Vector3$1(1e3, 1e3, 1e3),
50304
+ position: new Vector3(1e3, 1e3, 1e3),
50305
50305
  color: new Color(16777215),
50306
50306
  intensity: 0.8
50307
50307
  },
50308
50308
  {
50309
50309
  followCamera: true,
50310
- position: new Vector3$1(-1e3, -1e3, -1e3),
50310
+ position: new Vector3(-1e3, -1e3, -1e3),
50311
50311
  color: new Color(16777215),
50312
50312
  intensity: 0.2
50313
50313
  }
@@ -50380,7 +50380,7 @@ void main() {
50380
50380
  frustrumSizeAt(point) {
50381
50381
  const dist2 = this.camera.position.distanceTo(point);
50382
50382
  const size = 2 * dist2 * Math.tan(this.camera.fov / 2 * (Math.PI / 180));
50383
- return new Vector2$1(size * this.camera.aspect, size);
50383
+ return new Vector2(size * this.camera.aspect, size);
50384
50384
  }
50385
50385
  }
50386
50386
  class OrthographicWrapper {
@@ -50389,7 +50389,7 @@ void main() {
50389
50389
  this.camera = camera2;
50390
50390
  }
50391
50391
  frustrumSizeAt(point) {
50392
- return new Vector2$1(
50392
+ return new Vector2(
50393
50393
  this.camera.right - this.camera.left,
50394
50394
  this.camera.top - this.camera.bottom
50395
50395
  );
@@ -50478,14 +50478,14 @@ void main() {
50478
50478
  /** Sets the position of the marker in the 3d scene */
50479
50479
  set position(value) {
50480
50480
  const m = new Matrix4();
50481
- m.compose(value, new Quaternion(), new Vector3$1(1, 1, 1));
50481
+ m.compose(value, new Quaternion(), new Vector3(1, 1, 1));
50482
50482
  this._submesh.mesh.setMatrixAt(this._submesh.index, m);
50483
50483
  this._submesh.mesh.instanceMatrix.needsUpdate = true;
50484
50484
  }
50485
50485
  get position() {
50486
50486
  const m = new Matrix4();
50487
50487
  this._submesh.mesh.getMatrixAt(0, m);
50488
- return new Vector3$1().setFromMatrixPosition(m);
50488
+ return new Vector3().setFromMatrixPosition(m);
50489
50489
  }
50490
50490
  /**
50491
50491
  * Always false
@@ -50555,7 +50555,7 @@ void main() {
50555
50555
  * @returns {THREE.Box3 | undefined} The bounding box of the object.
50556
50556
  */
50557
50557
  getBoundingBox() {
50558
- return new Box3$1().setFromCenterAndSize(this.position.clone(), new Vector3$1(1, 1, 1));
50558
+ return new Box3().setFromCenterAndSize(this.position.clone(), new Vector3(1, 1, 1));
50559
50559
  }
50560
50560
  }
50561
50561
  class CameraMovement {
@@ -50569,7 +50569,7 @@ void main() {
50569
50569
  * @param {'XY' | 'XZ'} axes - The axes defining the plane of movement ('XY' or 'XZ').
50570
50570
  */
50571
50571
  move2(vector, axes) {
50572
- const direction = axes === "XY" ? new Vector3$1(-vector.x, vector.y, 0) : axes === "XZ" ? new Vector3$1(-vector.x, 0, vector.y) : void 0;
50572
+ const direction = axes === "XY" ? new Vector3(-vector.x, vector.y, 0) : axes === "XZ" ? new Vector3(-vector.x, 0, vector.y) : void 0;
50573
50573
  if (direction) this.move3(direction);
50574
50574
  }
50575
50575
  /**
@@ -50578,7 +50578,7 @@ void main() {
50578
50578
  * @param {'X' | 'Y' | 'Z'} axis - The axis along which to move the camera ('X', 'Y', or 'Z').
50579
50579
  */
50580
50580
  move1(amount, axis) {
50581
- const direction = new Vector3$1(
50581
+ const direction = new Vector3(
50582
50582
  axis === "X" ? -amount : 0,
50583
50583
  axis === "Y" ? amount : 0,
50584
50584
  axis === "Z" ? amount : 0
@@ -50605,7 +50605,7 @@ void main() {
50605
50605
  const angleForward = flatForward.angleTo(forward) * Math.sign(forward.z);
50606
50606
  const angleDirection = flatDirection.angleTo(_direction) * Math.sign(_direction.z);
50607
50607
  const declination = angleForward - angleDirection;
50608
- const angle = new Vector2$1(-declination, azimuth);
50608
+ const angle = new Vector2(-declination, azimuth);
50609
50609
  angle.multiplyScalar(180 / Math.PI);
50610
50610
  this.orbit(angle);
50611
50611
  }
@@ -50624,7 +50624,7 @@ void main() {
50624
50624
  if (target === "all") {
50625
50625
  target = this._camera._scene.getAverageBoundingBox();
50626
50626
  }
50627
- if (target instanceof Box3$1) {
50627
+ if (target instanceof Box3) {
50628
50628
  target = target.getBoundingSphere(new Sphere());
50629
50629
  }
50630
50630
  if (target instanceof Sphere) {
@@ -50691,7 +50691,7 @@ void main() {
50691
50691
  v.applyQuaternion(this._camera.quaternion);
50692
50692
  const start = this._camera.position.clone();
50693
50693
  const end = this._camera.position.clone().add(v);
50694
- const pos = new Vector3$1();
50694
+ const pos = new Vector3();
50695
50695
  this.onProgress = (progress) => {
50696
50696
  pos.copy(start);
50697
50697
  pos.lerp(end, progress);
@@ -50730,7 +50730,7 @@ void main() {
50730
50730
  orbit(angle) {
50731
50731
  const startPos = this._camera.position.clone();
50732
50732
  const startTarget = this._camera.target.clone();
50733
- const a = new Vector2$1();
50733
+ const a = new Vector2();
50734
50734
  this.onProgress = (progress) => {
50735
50735
  a.set(0, 0);
50736
50736
  a.lerp(angle, progress);
@@ -50743,7 +50743,7 @@ void main() {
50743
50743
  const next = pos.clone().sub(this._camera.position);
50744
50744
  const start = this._camera.quaternion.clone();
50745
50745
  const rot = new Quaternion().setFromUnitVectors(
50746
- new Vector3$1(0, 0, -1),
50746
+ new Vector3(0, 0, -1),
50747
50747
  next.normalize()
50748
50748
  );
50749
50749
  this.onProgress = (progress) => {
@@ -50805,26 +50805,26 @@ void main() {
50805
50805
  move3(vector) {
50806
50806
  const v = vector.clone();
50807
50807
  v.applyQuaternion(this._camera.quaternion);
50808
- const locked = this.lockVector(v, new Vector3$1());
50808
+ const locked = this.lockVector(v, new Vector3());
50809
50809
  const pos = this._camera.position.clone().add(locked);
50810
50810
  const target = this._camera.target.clone().add(locked);
50811
50811
  this.set(pos, target);
50812
50812
  }
50813
50813
  set(position, target) {
50814
50814
  target = target ?? this._camera.target;
50815
- const direction = new Vector3$1().subVectors(position, target);
50815
+ const direction = new Vector3().subVectors(position, target);
50816
50816
  const dist2 = direction.length();
50817
50817
  if (dist2 > 1e-6) {
50818
- const up = new Vector3$1(0, 0, 1);
50818
+ const up = new Vector3(0, 0, 1);
50819
50819
  const angle = direction.angleTo(up);
50820
50820
  const minAngle = MathUtils.degToRad(5);
50821
50821
  const maxAngle = MathUtils.degToRad(175);
50822
50822
  if (angle < minAngle) {
50823
- const axis = new Vector3$1().crossVectors(up, direction).normalize();
50823
+ const axis = new Vector3().crossVectors(up, direction).normalize();
50824
50824
  const delta = minAngle - angle;
50825
50825
  direction.applyQuaternion(new Quaternion().setFromAxisAngle(axis, delta));
50826
50826
  } else if (angle > maxAngle) {
50827
- const axis = new Vector3$1().crossVectors(up, direction).normalize();
50827
+ const axis = new Vector3().crossVectors(up, direction).normalize();
50828
50828
  const delta = maxAngle - angle;
50829
50829
  direction.applyQuaternion(new Quaternion().setFromAxisAngle(axis, delta));
50830
50830
  }
@@ -50840,17 +50840,17 @@ void main() {
50840
50840
  const x = this._camera.allowedMovement.x === 0 ? fallback.x : position.x;
50841
50841
  const y = this._camera.allowedMovement.y === 0 ? fallback.y : position.y;
50842
50842
  const z = this._camera.allowedMovement.z === 0 ? fallback.z : position.z;
50843
- return new Vector3$1(x, y, z);
50843
+ return new Vector3(x, y, z);
50844
50844
  }
50845
50845
  predictOrbit(angle) {
50846
50846
  const rotation = this.predictRotate(angle);
50847
- const delta = new Vector3$1(0, 0, 1).applyQuaternion(rotation).multiplyScalar(this._camera.orbitDistance);
50847
+ const delta = new Vector3(0, 0, 1).applyQuaternion(rotation).multiplyScalar(this._camera.orbitDistance);
50848
50848
  const pos = this._camera.target.clone().add(delta);
50849
50849
  return pos;
50850
50850
  }
50851
50851
  predictRotate(angle) {
50852
- const xQuat = new Quaternion().setFromAxisAngle(new Vector3$1(1, 0, 0), angle.x * Math.PI / 180);
50853
- const zQuat = new Quaternion().setFromAxisAngle(new Vector3$1(0, 1, 0), angle.y * Math.PI / 180);
50852
+ const xQuat = new Quaternion().setFromAxisAngle(new Vector3(1, 0, 0), angle.x * Math.PI / 180);
50853
+ const zQuat = new Quaternion().setFromAxisAngle(new Vector3(0, 1, 0), angle.y * Math.PI / 180);
50854
50854
  const rotation = this._camera.quaternion.clone();
50855
50855
  rotation.multiply(xQuat).multiply(zQuat);
50856
50856
  return rotation;
@@ -50866,22 +50866,22 @@ void main() {
50866
50866
  __publicField(this, "_lerp");
50867
50867
  __publicField(this, "_movement");
50868
50868
  // movements
50869
- __publicField(this, "_inputVelocity", new Vector3$1());
50870
- __publicField(this, "_velocity", new Vector3$1());
50869
+ __publicField(this, "_inputVelocity", new Vector3());
50870
+ __publicField(this, "_velocity", new Vector3());
50871
50871
  __publicField(this, "_speed", 0);
50872
50872
  // orbit
50873
50873
  __publicField(this, "_orthographic", false);
50874
- __publicField(this, "_target", new Vector3$1());
50874
+ __publicField(this, "_target", new Vector3());
50875
50875
  // updates
50876
- __publicField(this, "_lastPosition", new Vector3$1());
50876
+ __publicField(this, "_lastPosition", new Vector3());
50877
50877
  __publicField(this, "_lastQuaternion", new Quaternion());
50878
- __publicField(this, "_lastTarget", new Vector3$1());
50878
+ __publicField(this, "_lastTarget", new Vector3());
50879
50879
  // Reuseable vectors for calculations
50880
- __publicField(this, "_tmp1", new Vector3$1());
50881
- __publicField(this, "_tmp2", new Vector3$1());
50880
+ __publicField(this, "_tmp1", new Vector3());
50881
+ __publicField(this, "_tmp2", new Vector3());
50882
50882
  // saves
50883
- __publicField(this, "_savedPosition", new Vector3$1(0, 0, -5));
50884
- __publicField(this, "_savedTarget", new Vector3$1(0, 0, 0));
50883
+ __publicField(this, "_savedPosition", new Vector3(0, 0, -5));
50884
+ __publicField(this, "_savedTarget", new Vector3(0, 0, 0));
50885
50885
  __publicField(this, "_onValueChanged", new distExports$1.SignalDispatcher());
50886
50886
  __publicField(this, "_hasMoved");
50887
50887
  __publicField(this, "_onMoved", new distExports$1.SignalDispatcher());
@@ -50891,18 +50891,18 @@ void main() {
50891
50891
  * Represents allowed movement along each axis using a Vector3 object.
50892
50892
  * Each component of the Vector3 should be either 0 or 1 to enable/disable movement along the corresponding axis.
50893
50893
  */
50894
- __publicField(this, "_allowedMovement", new Vector3$1(1, 1, 1));
50895
- __publicField(this, "_allowedRotation", new Vector2$1(1, 1));
50894
+ __publicField(this, "_allowedMovement", new Vector3(1, 1, 1));
50895
+ __publicField(this, "_allowedRotation", new Vector2(1, 1));
50896
50896
  /**
50897
50897
  * The default forward direction that can be used to initialize the camera.
50898
50898
  */
50899
- __publicField(this, "_defaultForward", new Vector3$1(1, -1, 1).normalize());
50899
+ __publicField(this, "_defaultForward", new Vector3(1, -1, 1).normalize());
50900
50900
  // Settings
50901
50901
  __publicField(this, "_velocityBlendFactor", 1e-4);
50902
50902
  __publicField(this, "_moveSpeed", 1);
50903
50903
  this.camPerspective = new PerspectiveWrapper(new PerspectiveCamera());
50904
- this.camPerspective.camera.up = new Vector3$1(0, 0, 1);
50905
- this.camPerspective.camera.lookAt(new Vector3$1(0, 1, 0));
50904
+ this.camPerspective.camera.up = new Vector3(0, 0, 1);
50905
+ this.camPerspective.camera.lookAt(new Vector3(0, 1, 0));
50906
50906
  this.camOrthographic = new OrthographicWrapper(
50907
50907
  new OrthographicCamera()
50908
50908
  );
@@ -50938,7 +50938,7 @@ void main() {
50938
50938
  return this._onMoved.asEvent();
50939
50939
  }
50940
50940
  get allowedMovement() {
50941
- return this._force ? new Vector3$1(1, 1, 1) : this._allowedMovement;
50941
+ return this._force ? new Vector3(1, 1, 1) : this._allowedMovement;
50942
50942
  }
50943
50943
  set allowedMovement(axes) {
50944
50944
  this._allowedMovement.copy(axes);
@@ -50951,7 +50951,7 @@ void main() {
50951
50951
  * Each component of the Vector2 should be either 0 or 1 to enable/disable rotation around the corresponding axis.
50952
50952
  */
50953
50953
  get allowedRotation() {
50954
- return this._force ? new Vector2$1(1, 1) : this._allowedRotation;
50954
+ return this._force ? new Vector2(1, 1) : this._allowedRotation;
50955
50955
  }
50956
50956
  set allowedRotation(axes) {
50957
50957
  this._allowedRotation.copy(axes);
@@ -51027,7 +51027,7 @@ void main() {
51027
51027
  * The forward direction of the camera.
51028
51028
  */
51029
51029
  get forward() {
51030
- return this.camPerspective.camera.getWorldDirection(new Vector3$1());
51030
+ return this.camPerspective.camera.getWorldDirection(new Vector3());
51031
51031
  }
51032
51032
  /**
51033
51033
  * The camera speed factor.
@@ -51392,7 +51392,7 @@ void main() {
51392
51392
  }
51393
51393
  }
51394
51394
  applyMove() {
51395
- const move = new Vector3$1(
51395
+ const move = new Vector3(
51396
51396
  (this.isRightPressed ? 1 : 0) - (this.isLeftPressed ? 1 : 0),
51397
51397
  (this.isEPressed ? 1 : 0) - (this.isQPressed ? 1 : 0),
51398
51398
  (this.isUpPressed ? 1 : 0) - (this.isDownPressed ? 1 : 0)
@@ -51607,7 +51607,7 @@ void main() {
51607
51607
  const size = this._viewport.getSize();
51608
51608
  const x = position.x / size.x * 2 - 1;
51609
51609
  const y = -(position.y / size.y) * 2 + 1;
51610
- target.setFromCamera(new Vector2$1(x, y), this._camera.three);
51610
+ target.setFromCamera(new Vector2(x, y), this._camera.three);
51611
51611
  return target;
51612
51612
  }
51613
51613
  /**
@@ -51735,7 +51735,7 @@ void main() {
51735
51735
  if (event.touches.length === 1) {
51736
51736
  const pos = this.touchToVector(event.touches[0]);
51737
51737
  const size = this.viewport.getSize();
51738
- const delta = pos.clone().sub(this._touch).multiply(new Vector2$1(1 / size.x, 1 / size.y));
51738
+ const delta = pos.clone().sub(this._touch).multiply(new Vector2(1 / size.x, 1 / size.y));
51739
51739
  this._touch = pos;
51740
51740
  this.onDrag(delta);
51741
51741
  return;
@@ -51748,7 +51748,7 @@ void main() {
51748
51748
  const size = this.viewport.getSize();
51749
51749
  const moveDelta = this._touch.clone().sub(p).multiply(
51750
51750
  // -1 to invert movement
51751
- new Vector2$1(-1 / size.x, -1 / size.y)
51751
+ new Vector2(-1 / size.x, -1 / size.y)
51752
51752
  );
51753
51753
  const zoom2 = p1.distanceTo(p2);
51754
51754
  const prevZoom = this._touch1.distanceTo(this._touch2);
@@ -51790,7 +51790,7 @@ void main() {
51790
51790
  this.reg(canvas, "touchmove", this.onTouchMove);
51791
51791
  }
51792
51792
  toRotation(delta, speed) {
51793
- const rotation = new Vector2$1();
51793
+ const rotation = new Vector2();
51794
51794
  rotation.x = delta.y;
51795
51795
  rotation.y = delta.x;
51796
51796
  rotation.multiplyScalar(-180 * speed);
@@ -51800,7 +51800,7 @@ void main() {
51800
51800
  return this._touch !== void 0 && this._touchStartTime !== void 0 && this._touch1 === void 0 && this._touch2 === void 0;
51801
51801
  }
51802
51802
  touchToVector(touch) {
51803
- return new Vector2$1(touch.pageX, touch.pageY);
51803
+ return new Vector2(touch.pageX, touch.pageY);
51804
51804
  }
51805
51805
  average(p1, p2) {
51806
51806
  return p1.clone().lerp(p2, 0.5);
@@ -51853,7 +51853,7 @@ void main() {
51853
51853
  this.gizmoRect.visible = false;
51854
51854
  });
51855
51855
  __publicField(this, "onMouseMove", (event) => {
51856
- this._lastPosition = new Vector2$1(event.offsetX, event.offsetY);
51856
+ this._lastPosition = new Vector2(event.offsetX, event.offsetY);
51857
51857
  if (!this._idlePosition || this._lastPosition.distanceTo(this._idlePosition) > 5) {
51858
51858
  this.resetIdle();
51859
51859
  }
@@ -51866,7 +51866,7 @@ void main() {
51866
51866
  if (this._buttonDown) return;
51867
51867
  this.inputs.ContextMenu(void 0);
51868
51868
  this._hasCameraMoved = false;
51869
- this._downPosition = new Vector2$1(event.offsetX, event.offsetY);
51869
+ this._downPosition = new Vector2(event.offsetX, event.offsetY);
51870
51870
  this._hasMouseMoved = false;
51871
51871
  this.viewport.canvas.focus();
51872
51872
  this._buttonDown = this.getButton(event);
@@ -51895,12 +51895,12 @@ void main() {
51895
51895
  this.onRectEnd();
51896
51896
  } else if (event.button === 0 && !this._hasMouseMoved) {
51897
51897
  this.onMouseClick(
51898
- new Vector2$1(event.offsetX, event.offsetY),
51898
+ new Vector2(event.offsetX, event.offsetY),
51899
51899
  false,
51900
51900
  this.getModifier(event)
51901
51901
  );
51902
51902
  } else if (event.button === 2 && !this._hasMouseMoved) {
51903
- this.inputs.ContextMenu(new Vector2$1(event.clientX, event.clientY));
51903
+ this.inputs.ContextMenu(new Vector2(event.clientX, event.clientY));
51904
51904
  }
51905
51905
  this._buttonDown = void 0;
51906
51906
  this.inputs.pointerOverride = void 0;
@@ -51908,7 +51908,7 @@ void main() {
51908
51908
  __publicField(this, "onDoubleClick", (event) => {
51909
51909
  event.stopImmediatePropagation();
51910
51910
  this.onMouseClick(
51911
- new Vector2$1(event.offsetX, event.offsetY),
51911
+ new Vector2(event.offsetX, event.offsetY),
51912
51912
  true,
51913
51913
  this.getModifier(event)
51914
51914
  );
@@ -51983,8 +51983,8 @@ void main() {
51983
51983
  const deltaX = event.movementX || event.mozMovementX || event.webkitMovementX || 0;
51984
51984
  const deltaY = event.movementY || event.mozMovementY || event.webkitMovementY || 0;
51985
51985
  const size = this.viewport.getSize();
51986
- const delta = new Vector2$1(deltaX / size.x, deltaY / size.y);
51987
- const position = new Vector2$1(event.offsetX, event.offsetY);
51986
+ const delta = new Vector2(deltaX / size.x, deltaY / size.y);
51987
+ const position = new Vector2(event.offsetX, event.offsetY);
51988
51988
  this._hasMouseMoved = this._hasMouseMoved || this._downPosition && ((_a2 = this._downPosition) == null ? void 0 : _a2.distanceTo(position)) > 4;
51989
51989
  switch (this._buttonDown) {
51990
51990
  case "main":
@@ -52044,8 +52044,8 @@ void main() {
52044
52044
  onRectEnd() {
52045
52045
  const box = this.gizmoRect.getBoundingBox();
52046
52046
  if (!box) return;
52047
- const center = box.getCenter(new Vector3$1());
52048
- const size = box.getSize(new Vector3$1());
52047
+ const center = box.getCenter(new Vector3());
52048
+ const size = box.getSize(new Vector3());
52049
52049
  size.multiplyScalar(0.5);
52050
52050
  box.setFromCenterAndSize(center, size);
52051
52051
  this._viewer.camera.lerp(1).frame(box);
@@ -52475,7 +52475,7 @@ void main() {
52475
52475
  * @param {THREE.Box3} [target] Optional parameter to specify a box to use for the result.
52476
52476
  * @returns {THREE.Box3 | undefined} The bounding box of the selection or `undefined` if no selection exists.
52477
52477
  */
52478
- getBoundingBox(target = new Box3$1()) {
52478
+ getBoundingBox(target = new Box3()) {
52479
52479
  if (this._objects.size === 0) return;
52480
52480
  let initialized = false;
52481
52481
  for (const o of this._objects) {
@@ -52830,7 +52830,7 @@ void main() {
52830
52830
  this.element.style.position = "absolute";
52831
52831
  this.element.style.userSelect = "none";
52832
52832
  this.element.setAttribute("draggable", false);
52833
- this.center = new Vector2$1(0.5, 0.5);
52833
+ this.center = new Vector2(0.5, 0.5);
52834
52834
  this.addEventListener("removed", function() {
52835
52835
  this.traverse(function(object) {
52836
52836
  if (object.element instanceof object.element.ownerDocument.defaultView.Element && object.element.parentNode !== null) {
@@ -52846,11 +52846,11 @@ void main() {
52846
52846
  return this;
52847
52847
  }
52848
52848
  }
52849
- const _vector = new Vector3$1();
52849
+ const _vector = new Vector3();
52850
52850
  const _viewMatrix = new Matrix4();
52851
52851
  const _viewProjectionMatrix = new Matrix4();
52852
- const _a = new Vector3$1();
52853
- const _b = new Vector3$1();
52852
+ const _a = new Vector3();
52853
+ const _b = new Vector3();
52854
52854
  class CSS2DRenderer {
52855
52855
  constructor(parameters = {}) {
52856
52856
  const _this = this;
@@ -52983,8 +52983,8 @@ void main() {
52983
52983
  * Returns the bounding box encompasing all rendererd objects.
52984
52984
  * @param target box in which to copy result, a new instance is created if undefined.
52985
52985
  */
52986
- getBoundingBox(target = new Box3$1()) {
52987
- return this._boundingBox ? target.copy(this._boundingBox) : target.set(new Vector3$1(-1, -1, -1), new Vector3$1(1, 1, 1));
52986
+ getBoundingBox(target = new Box3()) {
52987
+ return this._boundingBox ? target.copy(this._boundingBox) : target.set(new Vector3(-1, -1, -1), new Vector3(1, 1, 1));
52988
52988
  }
52989
52989
  /**
52990
52990
  * Returns the bounding box of the average center of all meshes.
@@ -52992,9 +52992,9 @@ void main() {
52992
52992
  */
52993
52993
  getAverageBoundingBox() {
52994
52994
  if (this._vimScenes.length === 0) {
52995
- return new Box3$1();
52995
+ return new Box3();
52996
52996
  }
52997
- const result = new Box3$1();
52997
+ const result = new Box3();
52998
52998
  result.copy(this._vimScenes[0].getAverageBoundingBox());
52999
52999
  for (let i2 = 1; i2 < this._vimScenes.length; i2++) {
53000
53000
  result.union(this._vimScenes[i2].getAverageBoundingBox());
@@ -53196,7 +53196,7 @@ void main() {
53196
53196
  * @returns {THREE.Vector2} The pixel size of the parent element.
53197
53197
  */
53198
53198
  getParentSize() {
53199
- return new Vector2$1(
53199
+ return new Vector2(
53200
53200
  this.getParentWidth(),
53201
53201
  this.getParentHeight()
53202
53202
  );
@@ -53214,7 +53214,7 @@ void main() {
53214
53214
  * @returns {THREE.Vector2} The pixel size of the canvas.
53215
53215
  */
53216
53216
  getSize() {
53217
- return new Vector2$1(this.canvas.clientWidth, this.canvas.clientHeight);
53217
+ return new Vector2(this.canvas.clientWidth, this.canvas.clientHeight);
53218
53218
  }
53219
53219
  /**
53220
53220
  * Calculates and returns the aspect ratio of the parent element.
@@ -53276,64 +53276,64 @@ void main() {
53276
53276
  return [
53277
53277
  new Axis({
53278
53278
  axis: "x",
53279
- direction: new Vector3$1(1, 0, 0),
53279
+ direction: new Vector3(1, 0, 0),
53280
53280
  size: settings2.bubbleSizePrimary,
53281
53281
  color: settings2.colorX,
53282
53282
  colorSub: settings2.colorXSub,
53283
53283
  line: settings2.lineWidth,
53284
53284
  label: "X",
53285
- position: new Vector3$1(0, 0, 0)
53285
+ position: new Vector3(0, 0, 0)
53286
53286
  }),
53287
53287
  new Axis({
53288
53288
  axis: "y",
53289
- direction: new Vector3$1(0, 1, 0),
53289
+ direction: new Vector3(0, 1, 0),
53290
53290
  size: settings2.bubbleSizePrimary,
53291
53291
  color: settings2.colorY,
53292
53292
  colorSub: settings2.colorYSub,
53293
53293
  line: settings2.lineWidth,
53294
53294
  label: "Y",
53295
- position: new Vector3$1(0, 0, 0)
53295
+ position: new Vector3(0, 0, 0)
53296
53296
  }),
53297
53297
  new Axis({
53298
53298
  axis: "z",
53299
- direction: new Vector3$1(0, 0, 1),
53299
+ direction: new Vector3(0, 0, 1),
53300
53300
  size: settings2.bubbleSizePrimary,
53301
53301
  color: settings2.colorZ,
53302
53302
  colorSub: settings2.colorZSub,
53303
53303
  line: settings2.lineWidth,
53304
53304
  label: "Z",
53305
- position: new Vector3$1(0, 0, 0)
53305
+ position: new Vector3(0, 0, 0)
53306
53306
  }),
53307
53307
  new Axis({
53308
53308
  axis: "-x",
53309
- direction: new Vector3$1(-1, 0, 0),
53309
+ direction: new Vector3(-1, 0, 0),
53310
53310
  size: settings2.bubbleSizeSecondary,
53311
53311
  color: settings2.colorX,
53312
53312
  colorSub: settings2.colorXSub,
53313
53313
  line: void 0,
53314
53314
  label: void 0,
53315
- position: new Vector3$1(0, 0, 0)
53315
+ position: new Vector3(0, 0, 0)
53316
53316
  }),
53317
53317
  new Axis({
53318
53318
  axis: "-y",
53319
- direction: new Vector3$1(0, -1, 0),
53319
+ direction: new Vector3(0, -1, 0),
53320
53320
  size: settings2.bubbleSizeSecondary,
53321
53321
  color: settings2.colorY,
53322
53322
  colorSub: settings2.colorYSub,
53323
53323
  line: void 0,
53324
53324
  label: void 0,
53325
- position: new Vector3$1(0, 0, 0)
53325
+ position: new Vector3(0, 0, 0)
53326
53326
  }),
53327
53327
  new Axis({
53328
53328
  axis: "-z",
53329
53329
  // inverted Z
53330
- direction: new Vector3$1(0, 0, -1),
53330
+ direction: new Vector3(0, 0, -1),
53331
53331
  size: settings2.bubbleSizeSecondary,
53332
53332
  color: settings2.colorZ,
53333
53333
  colorSub: settings2.colorZSub,
53334
53334
  line: void 0,
53335
53335
  label: void 0,
53336
- position: new Vector3$1(0, 0, 0)
53336
+ position: new Vector3(0, 0, 0)
53337
53337
  })
53338
53338
  ];
53339
53339
  }
@@ -53354,9 +53354,9 @@ void main() {
53354
53354
  __publicField(this, "_pointerInside", false);
53355
53355
  __publicField(this, "_isDragging", false);
53356
53356
  __publicField(this, "_isDragSignificant", false);
53357
- __publicField(this, "_dragStart", new Vector2$1());
53358
- __publicField(this, "_dragLast", new Vector2$1());
53359
- __publicField(this, "_pointer", new Vector3$1());
53357
+ __publicField(this, "_dragStart", new Vector2());
53358
+ __publicField(this, "_dragLast", new Vector2());
53359
+ __publicField(this, "_pointer", new Vector3());
53360
53360
  __publicField(this, "_center");
53361
53361
  __publicField(this, "_invRotMat", new Matrix4());
53362
53362
  __publicField(this, "_selectedAxis", null);
@@ -53454,7 +53454,7 @@ void main() {
53454
53454
  const margin = 24 * ratio;
53455
53455
  this._canvas.style.top = `${margin}px`;
53456
53456
  this._canvas.style.right = `${margin}px`;
53457
- this._center = new Vector3$1(size / 2, size / 2, 0);
53457
+ this._center = new Vector3(size / 2, size / 2, 0);
53458
53458
  this._axes = createAxes(this._options);
53459
53459
  }
53460
53460
  createCanvas() {
@@ -53480,14 +53480,14 @@ void main() {
53480
53480
  }
53481
53481
  }
53482
53482
  updateDrag(x, y) {
53483
- if (new Vector2$1(x, y).sub(this._dragStart).length() > 3) {
53483
+ if (new Vector2(x, y).sub(this._dragStart).length() > 3) {
53484
53484
  this._isDragSignificant = true;
53485
53485
  }
53486
- const drag = new Vector2$1(x, y).sub(this._dragLast);
53486
+ const drag = new Vector2(x, y).sub(this._dragLast);
53487
53487
  this._dragLast.set(x, y);
53488
53488
  const rotX = drag.y / this._canvas.height;
53489
53489
  const rotY = drag.x / this._canvas.width;
53490
- this._camera.snap().orbit(new Vector2$1(rotX * -180, rotY * -180));
53490
+ this._camera.snap().orbit(new Vector2(rotX * -180, rotY * -180));
53491
53491
  }
53492
53492
  endDrag() {
53493
53493
  this._isDragging = false;
@@ -53505,8 +53505,8 @@ void main() {
53505
53505
  const axis = this._axes[i2];
53506
53506
  const highlight = this._selectedAxis === axis;
53507
53507
  const color = axis.position.z >= -0.01 ? axis.color : axis.colorSub;
53508
- const center2 = new Vector2$1(this._center.x, this._center.y);
53509
- const pos2 = new Vector2$1(axis.position.x, axis.position.y);
53508
+ const center2 = new Vector2(this._center.x, this._center.y);
53509
+ const pos2 = new Vector2(axis.position.x, axis.position.y);
53510
53510
  if (axis.line) this.drawLine(center2, pos2, axis.line, color);
53511
53511
  const circleColor = new Color(color);
53512
53512
  circleColor.multiplyScalar(highlight ? 1.5 : 1);
@@ -53870,14 +53870,14 @@ void main() {
53870
53870
  const center = A.clone().add(B).multiplyScalar(0.5);
53871
53871
  const [dx, dy] = this.getBoxSize(A, B);
53872
53872
  this.updateRect(center, dx, dy);
53873
- const AB = this.getIntersection(plane, new Vector2$1(posA.x, posB.y));
53874
- const BA = this.getIntersection(plane, new Vector2$1(posB.x, posA.y));
53873
+ const AB = this.getIntersection(plane, new Vector2(posA.x, posB.y));
53874
+ const BA = this.getIntersection(plane, new Vector2(posB.x, posA.y));
53875
53875
  if (!AB || !BA) return;
53876
53876
  this.points = [A, B, AB, BA, center];
53877
53877
  }
53878
53878
  getIntersection(plane, position) {
53879
53879
  const raycaster = this.viewer.raycaster.fromPoint2(position);
53880
- return raycaster.ray.intersectPlane(plane, new Vector3$1()) ?? void 0;
53880
+ return raycaster.ray.intersectPlane(plane, new Vector3()) ?? void 0;
53881
53881
  }
53882
53882
  updateRect(position, dx, dy) {
53883
53883
  this.line.quaternion.copy(this.viewer.camera.quaternion);
@@ -53888,8 +53888,8 @@ void main() {
53888
53888
  }
53889
53889
  getBoxSize(A, B) {
53890
53890
  const cam = this.viewer.camera;
53891
- const up = new Vector3$1(0, 1, 0).applyQuaternion(cam.quaternion);
53892
- const right = new Vector3$1(1, 0, 0).applyQuaternion(cam.quaternion);
53891
+ const up = new Vector3(0, 1, 0).applyQuaternion(cam.quaternion);
53892
+ const right = new Vector3(1, 0, 0).applyQuaternion(cam.quaternion);
53893
53893
  const Ax = A.dot(right);
53894
53894
  const Ay = A.dot(up);
53895
53895
  const Bx = B.dot(right);
@@ -53907,7 +53907,7 @@ void main() {
53907
53907
  * X-----X
53908
53908
  * @returns {THREE.Box3} The bounding box of the selection.
53909
53909
  */
53910
- getBoundingBox(target = new Box3$1()) {
53910
+ getBoundingBox(target = new Box3()) {
53911
53911
  const position = this.getClosestHit();
53912
53912
  const projections = position ? this.projectPoints(position) : this.points;
53913
53913
  if (!projections) return;
@@ -53939,7 +53939,7 @@ void main() {
53939
53939
  this.viewer.camera.forward,
53940
53940
  position
53941
53941
  );
53942
- return (_a2 = this.points) == null ? void 0 : _a2.map((p) => plane.projectPoint(p, new Vector3$1()));
53942
+ return (_a2 = this.points) == null ? void 0 : _a2.map((p) => plane.projectPoint(p, new Vector3()));
53943
53943
  }
53944
53944
  }
53945
53945
  class MeasureFlow {
@@ -54073,7 +54073,7 @@ void main() {
54073
54073
  this.widthCallback = wcb;
54074
54074
  this.positions = [];
54075
54075
  this.counters = [];
54076
- if (points.length && points[0] instanceof Vector3$1) {
54076
+ if (points.length && points[0] instanceof Vector3) {
54077
54077
  for (let j = 0; j < points.length; j++) {
54078
54078
  const p = points[j];
54079
54079
  const c = j / points.length;
@@ -54097,7 +54097,7 @@ void main() {
54097
54097
  const inverseMatrix = new Matrix4();
54098
54098
  const ray = new Ray();
54099
54099
  const sphere = new Sphere();
54100
- const interRay = new Vector3$1();
54100
+ const interRay = new Vector3();
54101
54101
  const geometry = this.geometry;
54102
54102
  if (!geometry.boundingSphere) geometry.computeBoundingSphere();
54103
54103
  sphere.copy(geometry.boundingSphere);
@@ -54107,9 +54107,9 @@ void main() {
54107
54107
  }
54108
54108
  inverseMatrix.copy(this.matrixWorld).invert();
54109
54109
  ray.copy(raycaster.ray).applyMatrix4(inverseMatrix);
54110
- const vStart = new Vector3$1();
54111
- const vEnd = new Vector3$1();
54112
- const interSegment = new Vector3$1();
54110
+ const vStart = new Vector3();
54111
+ const vEnd = new Vector3();
54112
+ const interSegment = new Vector3();
54113
54113
  const step = this instanceof LineSegments ? 2 : 1;
54114
54114
  const index2 = geometry.index;
54115
54115
  const attributes = geometry.attributes;
@@ -54412,7 +54412,7 @@ void main() {
54412
54412
  useAlphaMap: { value: 0 },
54413
54413
  color: { value: new Color(16777215) },
54414
54414
  opacity: { value: 1 },
54415
- resolution: { value: new Vector2$1(1, 1) },
54415
+ resolution: { value: new Vector2(1, 1) },
54416
54416
  sizeAttenuation: { value: 1 },
54417
54417
  dashArray: { value: 0 },
54418
54418
  dashOffset: { value: 0 },
@@ -54420,7 +54420,7 @@ void main() {
54420
54420
  useDash: { value: 0 },
54421
54421
  visibility: { value: 1 },
54422
54422
  alphaTest: { value: 0 },
54423
- repeat: { value: new Vector2$1(1, 1) }
54423
+ repeat: { value: new Vector2(1, 1) }
54424
54424
  }),
54425
54425
  vertexShader: ShaderChunk.meshline_vert,
54426
54426
  fragmentShader: ShaderChunk.meshline_frag
@@ -55078,7 +55078,7 @@ void main() {
55078
55078
  /** The currently hovered/dragged handle, if any. */
55079
55079
  __publicField(this, "_handle");
55080
55080
  /** The origin point for dragging, updated on pointer down. */
55081
- __publicField(this, "_dragOrigin", new Vector3$1());
55081
+ __publicField(this, "_dragOrigin", new Vector3());
55082
55082
  /** The plane used for drag intersection (perpendicular to the camera direction). */
55083
55083
  __publicField(this, "_dragPlane", new Plane());
55084
55084
  /** Whether a pointer is currently down on a handle. */
@@ -55086,7 +55086,7 @@ void main() {
55086
55086
  /** A reusable Raycaster for picking and plane intersection. */
55087
55087
  __publicField(this, "_raycaster", new Raycaster$1());
55088
55088
  /** The box state before the current drag. */
55089
- __publicField(this, "_lastBox", new Box3$1());
55089
+ __publicField(this, "_lastBox", new Box3());
55090
55090
  /** A collection of unregister callbacks for event listeners. */
55091
55091
  __publicField(this, "_unregisters", []);
55092
55092
  /** The ID of the pointer that is captured, if any. */
@@ -55171,7 +55171,7 @@ void main() {
55171
55171
  onPointerLeave(event) {
55172
55172
  var _a2, _b2;
55173
55173
  if (!this.pointerCaptured) {
55174
- (_b2 = this.onFaceEnter) == null ? void 0 : _b2.call(this, ((_a2 = this._handle) == null ? void 0 : _a2.forward) ?? new Vector3$1());
55174
+ (_b2 = this.onFaceEnter) == null ? void 0 : _b2.call(this, ((_a2 = this._handle) == null ? void 0 : _a2.forward) ?? new Vector3());
55175
55175
  }
55176
55176
  }
55177
55177
  /**
@@ -55206,13 +55206,13 @@ void main() {
55206
55206
  this.onDrag(event);
55207
55207
  return;
55208
55208
  }
55209
- const hits = this.raycast(new Vector2$1(event.offsetX, event.offsetY));
55209
+ const hits = this.raycast(new Vector2(event.offsetX, event.offsetY));
55210
55210
  const handle = (_b2 = (_a2 = hits == null ? void 0 : hits[0]) == null ? void 0 : _a2.object) == null ? void 0 : _b2.userData.handle;
55211
55211
  if (handle !== this._handle) {
55212
55212
  (_c = this._handle) == null ? void 0 : _c.highlight(false);
55213
55213
  handle == null ? void 0 : handle.highlight(true);
55214
55214
  this._handle = handle;
55215
- (_d = this.onFaceEnter) == null ? void 0 : _d.call(this, (handle == null ? void 0 : handle.forward) ?? new Vector3$1());
55215
+ (_d = this.onFaceEnter) == null ? void 0 : _d.call(this, (handle == null ? void 0 : handle.forward) ?? new Vector3());
55216
55216
  }
55217
55217
  }
55218
55218
  /**
@@ -55230,7 +55230,7 @@ void main() {
55230
55230
  this.onMouseMove(event);
55231
55231
  } else {
55232
55232
  this._handle = void 0;
55233
- (_a2 = this.onFaceEnter) == null ? void 0 : _a2.call(this, new Vector3$1());
55233
+ (_a2 = this.onFaceEnter) == null ? void 0 : _a2.call(this, new Vector3());
55234
55234
  }
55235
55235
  (_b2 = this.onBoxConfirm) == null ? void 0 : _b2.call(this, this._sharedBox);
55236
55236
  }
@@ -55242,7 +55242,7 @@ void main() {
55242
55242
  */
55243
55243
  onMouseDown(event) {
55244
55244
  var _a2, _b2, _c, _d;
55245
- const hits = this.raycast(new Vector2$1(event.offsetX, event.offsetY));
55245
+ const hits = this.raycast(new Vector2(event.offsetX, event.offsetY));
55246
55246
  const handle = (_c = (_b2 = (_a2 = hits == null ? void 0 : hits[0]) == null ? void 0 : _a2.object) == null ? void 0 : _b2.userData) == null ? void 0 : _c.handle;
55247
55247
  if (!handle) return;
55248
55248
  this._handle = handle;
@@ -55264,7 +55264,7 @@ void main() {
55264
55264
  onDrag(event) {
55265
55265
  var _a2;
55266
55266
  if (!this._handle) return;
55267
- const point = this.raycastPlane(new Vector2$1(event.offsetX, event.offsetY)) ?? this._dragOrigin.clone();
55267
+ const point = this.raycastPlane(new Vector2(event.offsetX, event.offsetY)) ?? this._dragOrigin.clone();
55268
55268
  const delta = point.sub(this._dragOrigin);
55269
55269
  const amount = delta.dot(this._handle.forward);
55270
55270
  const box = this.stretch(this._handle.axis, this._handle.sign, amount);
@@ -55318,7 +55318,7 @@ void main() {
55318
55318
  raycastPlane(position) {
55319
55319
  return this.getRaycaster(position).ray.intersectPlane(
55320
55320
  this._dragPlane,
55321
- new Vector3$1()
55321
+ new Vector3()
55322
55322
  );
55323
55323
  }
55324
55324
  }
@@ -55466,15 +55466,24 @@ void main() {
55466
55466
  __publicField(this, "_color");
55467
55467
  __publicField(this, "_highlightColor");
55468
55468
  __publicField(this, "_materials");
55469
+ __publicField(this, "_camSub");
55469
55470
  this._materials = [matAlways, matBehind];
55470
- this._forward = new Vector3$1();
55471
+ this._forward = new Vector3();
55471
55472
  this.forward[axes] = sign2;
55472
55473
  this.axis = axes;
55473
55474
  this.sign = sign2;
55474
55475
  this._color = color ?? new Color(0);
55475
55476
  this._highlightColor = this._color.clone().lerp(new Color(13421772), 0.8);
55476
55477
  this.userData.handle = this;
55477
- this.quaternion.setFromUnitVectors(new Vector3$1(0, -1, 0), this._forward);
55478
+ this.quaternion.setFromUnitVectors(new Vector3(0, -1, 0), this._forward);
55479
+ }
55480
+ trackCamera(camera2) {
55481
+ const rescale = () => {
55482
+ const size = camera2.frustrumSizeAt(this.position);
55483
+ this.scale.set(size.x * 5e-3, size.x * 5e-3, size.x * 5e-3);
55484
+ };
55485
+ this._camSub = camera2.onMoved.subscribe(() => rescale());
55486
+ rescale();
55478
55487
  }
55479
55488
  setPosition(position) {
55480
55489
  this.position.copy(position);
@@ -55487,8 +55496,10 @@ void main() {
55487
55496
  this.material[1].color.set(value ? this._highlightColor : this._color);
55488
55497
  }
55489
55498
  dispose() {
55499
+ var _a2;
55490
55500
  this.geometry.dispose();
55491
55501
  this._materials.forEach((m) => m.dispose());
55502
+ (_a2 = this._camSub) == null ? void 0 : _a2.call(this);
55492
55503
  }
55493
55504
  }
55494
55505
  function createDoubleCone(size) {
@@ -55504,7 +55515,7 @@ void main() {
55504
55515
  return mergedGeo;
55505
55516
  }
55506
55517
  class SectionBoxHandles {
55507
- constructor() {
55518
+ constructor(camera2) {
55508
55519
  __publicField(this, "up");
55509
55520
  __publicField(this, "down");
55510
55521
  __publicField(this, "left");
@@ -55519,6 +55530,12 @@ void main() {
55519
55530
  this.right = new SectionBoxHandle("x", 1, size, new Color(16711680));
55520
55531
  this.front = new SectionBoxHandle("z", 1, size, new Color(255));
55521
55532
  this.back = new SectionBoxHandle("z", -1, size, new Color(255));
55533
+ this.up.trackCamera(camera2);
55534
+ this.down.trackCamera(camera2);
55535
+ this.left.trackCamera(camera2);
55536
+ this.right.trackCamera(camera2);
55537
+ this.front.trackCamera(camera2);
55538
+ this.back.trackCamera(camera2);
55522
55539
  this.meshes = new Group();
55523
55540
  this.meshes.add(this.up);
55524
55541
  this.meshes.add(this.down);
@@ -55534,13 +55551,13 @@ void main() {
55534
55551
  this.meshes.visible = value;
55535
55552
  }
55536
55553
  fitBox(box) {
55537
- const center = box.getCenter(new Vector3$1());
55538
- this.up.setPosition(new Vector3$1(center.x, box.max.y, center.z));
55539
- this.down.setPosition(new Vector3$1(center.x, box.min.y, center.z));
55540
- this.left.setPosition(new Vector3$1(box.min.x, center.y, center.z));
55541
- this.right.setPosition(new Vector3$1(box.max.x, center.y, center.z));
55542
- this.front.setPosition(new Vector3$1(center.x, center.y, box.max.z));
55543
- this.back.setPosition(new Vector3$1(center.x, center.y, box.min.z));
55554
+ const center = box.getCenter(new Vector3());
55555
+ this.up.setPosition(new Vector3(center.x, box.max.y, center.z));
55556
+ this.down.setPosition(new Vector3(center.x, box.min.y, center.z));
55557
+ this.left.setPosition(new Vector3(box.min.x, center.y, center.z));
55558
+ this.right.setPosition(new Vector3(box.max.x, center.y, center.z));
55559
+ this.front.setPosition(new Vector3(center.x, center.y, box.max.z));
55560
+ this.back.setPosition(new Vector3(center.x, center.y, box.min.z));
55544
55561
  }
55545
55562
  dispose() {
55546
55563
  this.up.dispose();
@@ -55552,7 +55569,7 @@ void main() {
55552
55569
  }
55553
55570
  }
55554
55571
  class SectionBoxGizmo {
55555
- constructor(renderer) {
55572
+ constructor(renderer, camera2) {
55556
55573
  __publicField(this, "_renderer");
55557
55574
  __publicField(this, "cube");
55558
55575
  __publicField(this, "outline");
@@ -55561,7 +55578,7 @@ void main() {
55561
55578
  this._renderer = renderer;
55562
55579
  this.cube = new SectionBoxMesh();
55563
55580
  this.outline = new SectionBoxOutline(new Color(8882833));
55564
- this.handles = new SectionBoxHandles();
55581
+ this.handles = new SectionBoxHandles(camera2);
55565
55582
  this._renderer.add(this.outline);
55566
55583
  this._renderer.add(this.handles.meshes);
55567
55584
  this.visible = false;
@@ -55612,7 +55629,7 @@ void main() {
55612
55629
  __publicField(this, "_onBoxConfirm", new distExports.SimpleEventDispatcher());
55613
55630
  __publicField(this, "_onHover", new distExports.SimpleEventDispatcher());
55614
55631
  this._viewer = viewer;
55615
- this._gizmos = new SectionBoxGizmo(viewer.renderer);
55632
+ this._gizmos = new SectionBoxGizmo(viewer.renderer, viewer.camera);
55616
55633
  this._inputs = new BoxInputs(
55617
55634
  viewer,
55618
55635
  this._gizmos.handles,
@@ -55847,16 +55864,16 @@ void main() {
55847
55864
  /**
55848
55865
  * Current section box. To update the box use fitbox.
55849
55866
  */
55850
- __publicField(this, "box", new Box3$1(
55851
- new Vector3$1(-100, -100, -100),
55852
- new Vector3$1(100, 100, 100)
55867
+ __publicField(this, "box", new Box3(
55868
+ new Vector3(-100, -100, -100),
55869
+ new Vector3(100, 100, 100)
55853
55870
  ));
55854
- __publicField(this, "maxX", new Plane(new Vector3$1(-1, 0, 0)));
55855
- __publicField(this, "minX", new Plane(new Vector3$1(1, 0, 0)));
55856
- __publicField(this, "maxY", new Plane(new Vector3$1(0, -1, 0)));
55857
- __publicField(this, "minY", new Plane(new Vector3$1(0, 1, 0)));
55858
- __publicField(this, "maxZ", new Plane(new Vector3$1(0, 0, -1)));
55859
- __publicField(this, "minZ", new Plane(new Vector3$1(0, 0, 1)));
55871
+ __publicField(this, "maxX", new Plane(new Vector3(-1, 0, 0)));
55872
+ __publicField(this, "minX", new Plane(new Vector3(1, 0, 0)));
55873
+ __publicField(this, "maxY", new Plane(new Vector3(0, -1, 0)));
55874
+ __publicField(this, "minY", new Plane(new Vector3(0, 1, 0)));
55875
+ __publicField(this, "maxZ", new Plane(new Vector3(0, 0, -1)));
55876
+ __publicField(this, "minZ", new Plane(new Vector3(0, 0, 1)));
55860
55877
  __publicField(this, "planes", [
55861
55878
  this.maxX,
55862
55879
  this.minX,
@@ -56073,7 +56090,7 @@ void main() {
56073
56090
  this.renderer = renderer;
56074
56091
  this._pixelRatio = renderer.getPixelRatio();
56075
56092
  if (renderTarget === void 0) {
56076
- const size = renderer.getSize(new Vector2$1());
56093
+ const size = renderer.getSize(new Vector2());
56077
56094
  this._width = size.width;
56078
56095
  this._height = size.height;
56079
56096
  renderTarget = new WebGLRenderTarget(this._width * this._pixelRatio, this._height * this._pixelRatio, { type: HalfFloatType });
@@ -56153,7 +56170,7 @@ void main() {
56153
56170
  }
56154
56171
  reset(renderTarget) {
56155
56172
  if (renderTarget === void 0) {
56156
- const size = this.renderer.getSize(new Vector2$1());
56173
+ const size = this.renderer.getSize(new Vector2());
56157
56174
  this._pixelRatio = this.renderer.getPixelRatio();
56158
56175
  this._width = size.width;
56159
56176
  this._height = size.height;
@@ -56241,7 +56258,7 @@ void main() {
56241
56258
  name: "FXAAShader",
56242
56259
  uniforms: {
56243
56260
  "tDiffuse": { value: null },
56244
- "resolution": { value: new Vector2$1(1 / 1024, 1 / 512) }
56261
+ "resolution": { value: new Vector2(1 / 1024, 1 / 512) }
56245
56262
  },
56246
56263
  vertexShader: (
56247
56264
  /* glsl */
@@ -56528,7 +56545,7 @@ void main() {
56528
56545
  this.needsSwap = true;
56529
56546
  }
56530
56547
  setSize(width, height) {
56531
- this.material.resolution = new Vector2$1(width, height);
56548
+ this.material.resolution = new Vector2(width, height);
56532
56549
  }
56533
56550
  get camera() {
56534
56551
  return this.material.camera;
@@ -56768,7 +56785,7 @@ void main() {
56768
56785
  * @param height - New height in pixels
56769
56786
  */
56770
56787
  setSize(width, height) {
56771
- this._size = new Vector2$1(width, height);
56788
+ this._size = new Vector2(width, height);
56772
56789
  this._sceneTarget.setSize(width, height);
56773
56790
  this._renderPass.setSize(width, height);
56774
56791
  this._composer.setSize(width, height);
@@ -56961,7 +56978,7 @@ void main() {
56961
56978
  * @param target - Box in which to copy the result. A new instance is created if undefined.
56962
56979
  * @returns The bounding box encompassing all rendered objects.
56963
56980
  */
56964
- getBoundingBox(target = new Box3$1()) {
56981
+ getBoundingBox(target = new Box3()) {
56965
56982
  return this._scene.getBoundingBox(target);
56966
56983
  }
56967
56984
  /**
@@ -57324,7 +57341,7 @@ void main() {
57324
57341
  const x = Number.parseFloat(split2[0]);
57325
57342
  const y = Number.parseFloat(split2[1]);
57326
57343
  const z = Number.parseFloat(split2[2]);
57327
- return new Vector3$1(x, y, z);
57344
+ return new Vector3(x, y, z);
57328
57345
  } catch {
57329
57346
  }
57330
57347
  }
@@ -57336,7 +57353,7 @@ void main() {
57336
57353
  try {
57337
57354
  const x = Number.parseFloat(split2[0]);
57338
57355
  const y = Number.parseFloat(split2[1]);
57339
- return new Vector2$1(x, y);
57356
+ return new Vector2(x, y);
57340
57357
  } catch {
57341
57358
  }
57342
57359
  }
@@ -57369,8 +57386,8 @@ void main() {
57369
57386
  return result;
57370
57387
  }
57371
57388
  function createBoxes(boxes) {
57372
- const center = new Vector3$1();
57373
- const size = new Vector3$1();
57389
+ const center = new Vector3();
57390
+ const size = new Vector3();
57374
57391
  const quaternion = new Quaternion();
57375
57392
  const matrices = boxes.map((b) => {
57376
57393
  b.getCenter(center);
@@ -57446,131 +57463,8 @@ void main() {
57446
57463
  });
57447
57464
  }
57448
57465
  }
57449
- class Vector3 {
57450
- constructor(x = 0, y = 0, z = 0) {
57451
- __publicField(this, "x");
57452
- __publicField(this, "y");
57453
- __publicField(this, "z");
57454
- this.x = x;
57455
- this.y = y;
57456
- this.z = z;
57457
- }
57458
- set(x, y, z) {
57459
- this.x = x;
57460
- this.y = y;
57461
- this.z = z;
57462
- return this;
57463
- }
57464
- copy(v) {
57465
- this.x = v.x;
57466
- this.y = v.y;
57467
- this.z = v.z;
57468
- return this;
57469
- }
57470
- add(v) {
57471
- this.x += v.x;
57472
- this.y += v.y;
57473
- this.z += v.z;
57474
- return this;
57475
- }
57476
- sub(v) {
57477
- this.x -= v.x;
57478
- this.y -= v.y;
57479
- this.z -= v.z;
57480
- return this;
57481
- }
57482
- multiplyScalar(scalar) {
57483
- this.x *= scalar;
57484
- this.y *= scalar;
57485
- this.z *= scalar;
57486
- return this;
57487
- }
57488
- min(v) {
57489
- this.x = Math.min(this.x, v.x);
57490
- this.y = Math.min(this.y, v.y);
57491
- this.z = Math.min(this.z, v.z);
57492
- return this;
57493
- }
57494
- max(v) {
57495
- this.x = Math.max(this.x, v.x);
57496
- this.y = Math.max(this.y, v.y);
57497
- this.z = Math.max(this.z, v.z);
57498
- return this;
57499
- }
57500
- isValid() {
57501
- return Number.isFinite(this.x) && Number.isFinite(this.y) && Number.isFinite(this.z);
57502
- }
57503
- equals(v) {
57504
- return this.x === v.x && this.y === v.y && this.z === v.z;
57505
- }
57506
- toArray() {
57507
- return [this.x, this.y, this.z];
57508
- }
57509
- }
57510
- class Vector2 {
57511
- constructor(x = 0, y = 0) {
57512
- __publicField(this, "x");
57513
- __publicField(this, "y");
57514
- this.x = x;
57515
- this.y = y;
57516
- }
57517
- set(x, y) {
57518
- this.x = x;
57519
- this.y = y;
57520
- return this;
57521
- }
57522
- copy(v) {
57523
- this.x = v.x;
57524
- this.y = v.y;
57525
- return this;
57526
- }
57527
- add(v) {
57528
- this.x += v.x;
57529
- this.y += v.y;
57530
- return this;
57531
- }
57532
- sub(v) {
57533
- this.x -= v.x;
57534
- this.y -= v.y;
57535
- return this;
57536
- }
57537
- multiplyScalar(scalar) {
57538
- this.x *= scalar;
57539
- this.y *= scalar;
57540
- return this;
57541
- }
57542
- min(v) {
57543
- this.x = Math.min(this.x, v.x);
57544
- this.y = Math.min(this.y, v.y);
57545
- return this;
57546
- }
57547
- max(v) {
57548
- this.x = Math.max(this.x, v.x);
57549
- this.y = Math.max(this.y, v.y);
57550
- return this;
57551
- }
57552
- equals(v) {
57553
- return this.x === v.x && this.y === v.y;
57554
- }
57555
- isValid() {
57556
- return Number.isFinite(this.x) && Number.isFinite(this.y);
57557
- }
57558
- almostEquals(v, tolerance = Number.EPSILON) {
57559
- return Math.abs(this.x - v.x) < tolerance && Math.abs(this.y - v.y) < tolerance;
57560
- }
57561
- toArray() {
57562
- return [this.x, this.y];
57563
- }
57564
- distanceTo(v) {
57565
- const dx = this.x - v.x;
57566
- const dy = this.y - v.y;
57567
- return Math.sqrt(dx * dx + dy * dy);
57568
- }
57569
- clamp01() {
57570
- this.x = clamp$1(this.x, 0, 1);
57571
- this.y = clamp$1(this.y, 0, 1);
57572
- return this;
57573
- }
57466
+ function almostEqual(v1, v2, epsilon = 1e-6) {
57467
+ return Math.abs(v1.x - v2.x) < epsilon && Math.abs(v1.y - v2.y) < epsilon;
57574
57468
  }
57575
57469
  class Segment {
57576
57470
  constructor(origin = new Vector3(), target = new Vector3()) {
@@ -57595,62 +57489,6 @@ void main() {
57595
57489
  return this.origin.equals(segment.origin) && this.target.equals(segment.target);
57596
57490
  }
57597
57491
  }
57598
- class Box3 {
57599
- constructor(min2 = new Vector3(Infinity, Infinity, Infinity), max2 = new Vector3(-Infinity, -Infinity, -Infinity)) {
57600
- __publicField(this, "min");
57601
- __publicField(this, "max");
57602
- this.min = min2;
57603
- this.max = max2;
57604
- }
57605
- static fromArray(array) {
57606
- return new Box3().set(
57607
- new Vector3(array[0], array[1], array[2]),
57608
- new Vector3(array[3], array[4], array[5])
57609
- );
57610
- }
57611
- isValid() {
57612
- return this.min.x <= this.max.x && this.min.y <= this.max.y && this.min.z <= this.max.z;
57613
- }
57614
- set(min2, max2) {
57615
- this.min.copy(min2);
57616
- this.max.copy(max2);
57617
- return this;
57618
- }
57619
- setFromPoints(points) {
57620
- this.min.set(Infinity, Infinity, Infinity);
57621
- this.max.set(-Infinity, -Infinity, -Infinity);
57622
- points.forEach((point) => {
57623
- this.min.min(point);
57624
- this.max.max(point);
57625
- });
57626
- return this;
57627
- }
57628
- getCenter(target = new Vector3()) {
57629
- return target.copy(this.min).add(this.max).multiplyScalar(0.5);
57630
- }
57631
- getSize(target = new Vector3()) {
57632
- return target.copy(this.max).sub(this.min);
57633
- }
57634
- containsPoint(point) {
57635
- return point.x >= this.min.x && point.x <= this.max.x && point.y >= this.min.y && point.y <= this.max.y && point.z >= this.min.z && point.z <= this.max.z;
57636
- }
57637
- intersectsBox(box) {
57638
- return !(box.max.x < this.min.x || box.min.x > this.max.x || box.max.y < this.min.y || box.min.y > this.max.y || box.max.z < this.min.z || box.min.z > this.max.z);
57639
- }
57640
- expandByPoint(point) {
57641
- this.min.min(point);
57642
- this.max.max(point);
57643
- return this;
57644
- }
57645
- union(box) {
57646
- this.min.min(box.min);
57647
- this.max.max(box.max);
57648
- return this;
57649
- }
57650
- toArray() {
57651
- return [this.min.x, this.min.y, this.min.z, this.max.x, this.max.y, this.max.z];
57652
- }
57653
- }
57654
57492
  class RGBA {
57655
57493
  constructor(r, g, b, a = 1) {
57656
57494
  __publicField(this, "r");
@@ -57835,7 +57673,7 @@ void main() {
57835
57673
  async handleMouseClick(event) {
57836
57674
  if (event.pointerType !== "mouse") return;
57837
57675
  const pos = this.relativePosition(event);
57838
- if (!this._lastMouseDownPosition.almostEquals(pos, 0.01)) {
57676
+ if (!almostEqual(this._lastMouseDownPosition, pos, 0.01)) {
57839
57677
  return;
57840
57678
  }
57841
57679
  const hit = await this._selection.hitTest(pos);
@@ -58885,17 +58723,14 @@ void main() {
58885
58723
  // VECTOR AND GEOMETRY VALIDATIONS
58886
58724
  //= ===========================================================================
58887
58725
  static isValidVector2(value) {
58888
- if (!value.isValid()) {
58726
+ if (!Number.isFinite(value.x) || !Number.isFinite(value.y)) {
58889
58727
  console.warn("Invalid value: must be a valid Vector2. Aborting operation.");
58890
58728
  return false;
58891
58729
  }
58892
58730
  return true;
58893
58731
  }
58894
58732
  static isRelativeVector2(value) {
58895
- if (!value.isValid()) {
58896
- console.warn("Invalid value: must be a valid Vector2. Aborting operation.");
58897
- return false;
58898
- }
58733
+ if (!this.isValidVector2(value)) return false;
58899
58734
  if (value.x < 0 || value.x > 1 || value.y < 0 || value.y > 1) {
58900
58735
  console.warn("Invalid value: must be a relative Vector2 (0-1, 0-1). Aborting operation.");
58901
58736
  return false;
@@ -58903,14 +58738,14 @@ void main() {
58903
58738
  return true;
58904
58739
  }
58905
58740
  static isValidVector3(value) {
58906
- if (!value.isValid()) {
58741
+ if (!Number.isFinite(value.x) || !Number.isFinite(value.y) || !Number.isFinite(value.z)) {
58907
58742
  console.warn("Invalid Vector3. Aborting operation.");
58908
58743
  return false;
58909
58744
  }
58910
58745
  return true;
58911
58746
  }
58912
58747
  static isValidBox(box) {
58913
- if (!box.isValid()) {
58748
+ if (box.isEmpty()) {
58914
58749
  console.warn("Box is invalid. Min values must be less than max values");
58915
58750
  return false;
58916
58751
  }
@@ -59158,6 +58993,12 @@ void main() {
59158
58993
  RPCLockIblRotation(lock) {
59159
58994
  this.rpc.RPCLockIblRotation(lock);
59160
58995
  }
58996
+ RPCGetSceneAABB() {
58997
+ return this.safeCall(
58998
+ () => this.rpc.RPCGetSceneAABB(),
58999
+ void 0
59000
+ );
59001
+ }
59161
59002
  /*******************************************************************************
59162
59003
  * NODE VISIBILITY METHODS
59163
59004
  * Methods for controlling node visibility, including show/hide, ghosting,
@@ -61826,6 +61667,9 @@ Averrage Date/Second ${avgDataRatePS} kb
61826
61667
  this._updateLighting = true;
61827
61668
  this.requestSettingsUpdate();
61828
61669
  }
61670
+ getBoundingBox() {
61671
+ return this._rpc.RPCGetSceneAABB();
61672
+ }
61829
61673
  /**
61830
61674
  * Requests an update to be performed on the next animation frame.
61831
61675
  * Multiple setting changes will be batched into a single update.
@@ -62207,6 +62051,7 @@ Averrage Date/Second ${avgDataRatePS} kb
62207
62051
  Vector3,
62208
62052
  Viewer,
62209
62053
  Vim,
62054
+ almostEqual,
62210
62055
  clamp: clamp$1,
62211
62056
  remap,
62212
62057
  utils: promise