@ridp/threejs 1.1.5 → 1.1.6

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.
@@ -930,8 +930,8 @@ class Fo {
930
930
  h.TRANSLATION && H.fromBufferAttribute(h.TRANSLATION, Y), h.ROTATION && W.fromBufferAttribute(h.ROTATION, Y), h.SCALE && Z.fromBufferAttribute(h.SCALE, Y), ce.setMatrixAt(Y, X.compose(H, W, Z));
931
931
  for (const Y in h)
932
932
  if (Y === "_COLOR_0") {
933
- const Ae = h[Y];
934
- ce.instanceColor = new Mi(Ae.array, Ae.itemSize, Ae.normalized);
933
+ const we = h[Y];
934
+ ce.instanceColor = new Mi(we.array, we.itemSize, we.normalized);
935
935
  } else Y !== "TRANSLATION" && Y !== "ROTATION" && Y !== "SCALE" && q.geometry.setAttribute(Y, h[Y]);
936
936
  Ks.prototype.copy.call(ce, q), this.parser.assignFinalMaterial(ce), L.push(ce);
937
937
  }
@@ -1029,8 +1029,8 @@ class Xs extends no {
1029
1029
  interpolate_(s, i, a, u) {
1030
1030
  const c = this.resultBuffer, l = this.sampleValues, p = this.valueSize, h = p * 2, y = p * 3, E = u - i, _ = (a - i) / E, P = _ * _, L = P * _, q = s * y, X = q - y, H = -2 * L + 3 * P, W = L - P, Z = 1 - H, ce = W - P + _;
1031
1031
  for (let Y = 0; Y !== p; Y++) {
1032
- const Ae = l[X + Y + p], ve = l[X + Y + h] * E, ae = l[q + Y + p], Le = l[q + Y] * E;
1033
- c[Y] = Z * Ae + ce * ve + H * ae + W * Le;
1032
+ const we = l[X + Y + p], ve = l[X + Y + h] * E, ae = l[q + Y + p], Le = l[q + Y] * E;
1033
+ c[Y] = Z * we + ce * ve + H * ae + W * Le;
1034
1034
  }
1035
1035
  return c;
1036
1036
  }
@@ -1464,10 +1464,10 @@ class $o {
1464
1464
  } else
1465
1465
  p === null ? X = new y(u.count * h) : X = new y(p, P, u.count * h), H = new Zt(X, h, q);
1466
1466
  if (u.sparse !== void 0) {
1467
- const W = Sr.SCALAR, Z = Lt[u.sparse.indices.componentType], ce = u.sparse.indices.byteOffset || 0, Y = u.sparse.values.byteOffset || 0, Ae = new Z(l[1], ce, u.sparse.count * W), ve = new y(l[2], Y, u.sparse.count * h);
1467
+ const W = Sr.SCALAR, Z = Lt[u.sparse.indices.componentType], ce = u.sparse.indices.byteOffset || 0, Y = u.sparse.values.byteOffset || 0, we = new Z(l[1], ce, u.sparse.count * W), ve = new y(l[2], Y, u.sparse.count * h);
1468
1468
  p !== null && (H = new Zt(H.array.slice(), H.itemSize, H.normalized)), H.normalized = !1;
1469
- for (let ae = 0, Le = Ae.length; ae < Le; ae++) {
1470
- const Me = Ae[ae];
1469
+ for (let ae = 0, Le = we.length; ae < Le; ae++) {
1470
+ const Me = we[ae];
1471
1471
  if (H.setX(Me, ve[ae * h]), h >= 2 && H.setY(Me, ve[ae * h + 1]), h >= 3 && H.setZ(Me, ve[ae * h + 2]), h >= 4 && H.setW(Me, ve[ae * h + 3]), h >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1472
1472
  }
1473
1473
  H.normalized = q;
@@ -1781,10 +1781,10 @@ class $o {
1781
1781
  ]).then(function(_) {
1782
1782
  const P = _[0], L = _[1], q = _[2], X = _[3], H = _[4], W = [];
1783
1783
  for (let Z = 0, ce = P.length; Z < ce; Z++) {
1784
- const Y = P[Z], Ae = L[Z], ve = q[Z], ae = X[Z], Le = H[Z];
1784
+ const Y = P[Z], we = L[Z], ve = q[Z], ae = X[Z], Le = H[Z];
1785
1785
  if (Y === void 0) continue;
1786
1786
  Y.updateMatrix && Y.updateMatrix();
1787
- const Me = a._createAnimationTracks(Y, Ae, ve, ae, Le);
1787
+ const Me = a._createAnimationTracks(Y, we, ve, ae, Le);
1788
1788
  if (Me)
1789
1789
  for (let Je = 0; Je < Me.length; Je++)
1790
1790
  W.push(Me[Je]);
@@ -2020,7 +2020,7 @@ const se = {
2020
2020
  // basis vectors
2021
2021
  e: []
2022
2022
  // half width
2023
- }, pe = [[], [], []], $ = [[], [], []], he = [], xt = new le(), Tt = new le(), Et = new le(), be = new le(), ks = new le(), Os = new le(), De = new zs(), Ms = new jn(), In = new Dt(), Ps = new Dt(), Cs = new so();
2023
+ }, me = [[], [], []], $ = [[], [], []], he = [], xt = new le(), Tt = new le(), Et = new le(), be = new le(), ks = new le(), Os = new le(), De = new zs(), Ms = new jn(), In = new Dt(), Ps = new Dt(), Cs = new so();
2024
2024
  class Dr {
2025
2025
  /**
2026
2026
  * Constructs a new OBB.
@@ -2124,17 +2124,17 @@ class Dr {
2124
2124
  se.c = this.center, se.e[0] = this.halfSize.x, se.e[1] = this.halfSize.y, se.e[2] = this.halfSize.z, this.rotation.extractBasis(se.u[0], se.u[1], se.u[2]), oe.c = s.center, oe.e[0] = s.halfSize.x, oe.e[1] = s.halfSize.y, oe.e[2] = s.halfSize.z, s.rotation.extractBasis(oe.u[0], oe.u[1], oe.u[2]);
2125
2125
  for (let c = 0; c < 3; c++)
2126
2126
  for (let l = 0; l < 3; l++)
2127
- pe[c][l] = se.u[c].dot(oe.u[l]);
2127
+ me[c][l] = se.u[c].dot(oe.u[l]);
2128
2128
  be.subVectors(oe.c, se.c), he[0] = be.dot(se.u[0]), he[1] = be.dot(se.u[1]), he[2] = be.dot(se.u[2]);
2129
2129
  for (let c = 0; c < 3; c++)
2130
2130
  for (let l = 0; l < 3; l++)
2131
- $[c][l] = Math.abs(pe[c][l]) + i;
2131
+ $[c][l] = Math.abs(me[c][l]) + i;
2132
2132
  let a, u;
2133
2133
  for (let c = 0; c < 3; c++)
2134
2134
  if (a = se.e[c], u = oe.e[0] * $[c][0] + oe.e[1] * $[c][1] + oe.e[2] * $[c][2], Math.abs(he[c]) > a + u) return !1;
2135
2135
  for (let c = 0; c < 3; c++)
2136
- if (a = se.e[0] * $[0][c] + se.e[1] * $[1][c] + se.e[2] * $[2][c], u = oe.e[c], Math.abs(he[0] * pe[0][c] + he[1] * pe[1][c] + he[2] * pe[2][c]) > a + u) return !1;
2137
- return a = se.e[1] * $[2][0] + se.e[2] * $[1][0], u = oe.e[1] * $[0][2] + oe.e[2] * $[0][1], !(Math.abs(he[2] * pe[1][0] - he[1] * pe[2][0]) > a + u || (a = se.e[1] * $[2][1] + se.e[2] * $[1][1], u = oe.e[0] * $[0][2] + oe.e[2] * $[0][0], Math.abs(he[2] * pe[1][1] - he[1] * pe[2][1]) > a + u) || (a = se.e[1] * $[2][2] + se.e[2] * $[1][2], u = oe.e[0] * $[0][1] + oe.e[1] * $[0][0], Math.abs(he[2] * pe[1][2] - he[1] * pe[2][2]) > a + u) || (a = se.e[0] * $[2][0] + se.e[2] * $[0][0], u = oe.e[1] * $[1][2] + oe.e[2] * $[1][1], Math.abs(he[0] * pe[2][0] - he[2] * pe[0][0]) > a + u) || (a = se.e[0] * $[2][1] + se.e[2] * $[0][1], u = oe.e[0] * $[1][2] + oe.e[2] * $[1][0], Math.abs(he[0] * pe[2][1] - he[2] * pe[0][1]) > a + u) || (a = se.e[0] * $[2][2] + se.e[2] * $[0][2], u = oe.e[0] * $[1][1] + oe.e[1] * $[1][0], Math.abs(he[0] * pe[2][2] - he[2] * pe[0][2]) > a + u) || (a = se.e[0] * $[1][0] + se.e[1] * $[0][0], u = oe.e[1] * $[2][2] + oe.e[2] * $[2][1], Math.abs(he[1] * pe[0][0] - he[0] * pe[1][0]) > a + u) || (a = se.e[0] * $[1][1] + se.e[1] * $[0][1], u = oe.e[0] * $[2][2] + oe.e[2] * $[2][0], Math.abs(he[1] * pe[0][1] - he[0] * pe[1][1]) > a + u) || (a = se.e[0] * $[1][2] + se.e[1] * $[0][2], u = oe.e[0] * $[2][1] + oe.e[1] * $[2][0], Math.abs(he[1] * pe[0][2] - he[0] * pe[1][2]) > a + u));
2136
+ if (a = se.e[0] * $[0][c] + se.e[1] * $[1][c] + se.e[2] * $[2][c], u = oe.e[c], Math.abs(he[0] * me[0][c] + he[1] * me[1][c] + he[2] * me[2][c]) > a + u) return !1;
2137
+ return a = se.e[1] * $[2][0] + se.e[2] * $[1][0], u = oe.e[1] * $[0][2] + oe.e[2] * $[0][1], !(Math.abs(he[2] * me[1][0] - he[1] * me[2][0]) > a + u || (a = se.e[1] * $[2][1] + se.e[2] * $[1][1], u = oe.e[0] * $[0][2] + oe.e[2] * $[0][0], Math.abs(he[2] * me[1][1] - he[1] * me[2][1]) > a + u) || (a = se.e[1] * $[2][2] + se.e[2] * $[1][2], u = oe.e[0] * $[0][1] + oe.e[1] * $[0][0], Math.abs(he[2] * me[1][2] - he[1] * me[2][2]) > a + u) || (a = se.e[0] * $[2][0] + se.e[2] * $[0][0], u = oe.e[1] * $[1][2] + oe.e[2] * $[1][1], Math.abs(he[0] * me[2][0] - he[2] * me[0][0]) > a + u) || (a = se.e[0] * $[2][1] + se.e[2] * $[0][1], u = oe.e[0] * $[1][2] + oe.e[2] * $[1][0], Math.abs(he[0] * me[2][1] - he[2] * me[0][1]) > a + u) || (a = se.e[0] * $[2][2] + se.e[2] * $[0][2], u = oe.e[0] * $[1][1] + oe.e[1] * $[1][0], Math.abs(he[0] * me[2][2] - he[2] * me[0][2]) > a + u) || (a = se.e[0] * $[1][0] + se.e[1] * $[0][0], u = oe.e[1] * $[2][2] + oe.e[2] * $[2][1], Math.abs(he[1] * me[0][0] - he[0] * me[1][0]) > a + u) || (a = se.e[0] * $[1][1] + se.e[1] * $[0][1], u = oe.e[0] * $[2][2] + oe.e[2] * $[2][0], Math.abs(he[1] * me[0][1] - he[0] * me[1][1]) > a + u) || (a = se.e[0] * $[1][2] + se.e[1] * $[0][2], u = oe.e[0] * $[2][1] + oe.e[1] * $[2][0], Math.abs(he[1] * me[0][2] - he[0] * me[1][2]) > a + u));
2138
2138
  }
2139
2139
  /**
2140
2140
  * Returns `true` if the given plane intersects this OBB.
@@ -2234,8 +2234,8 @@ function la(C, s) {
2234
2234
  _.setPixelRatio(window.devicePixelRatio);
2235
2235
  function H() {
2236
2236
  p.value = !1;
2237
- const me = Le();
2238
- y.value = me[0], E.value = me[1], L.aspect = y.value / E.value, L.position.set(47, 39, 100), L.fov = 360 / Math.PI * Math.atan(q * (E.value / y.value)), L.lookAt(0, 0, 0), L.updateProjectionMatrix(), _.setSize(y.value, E.value), a.appendChild(_.domElement), i.stats && Me(), i.css3d && tn();
2237
+ const pe = Le();
2238
+ y.value = pe[0], E.value = pe[1], L.aspect = y.value / E.value, L.position.set(47, 39, 100), L.fov = 360 / Math.PI * Math.atan(q * (E.value / y.value)), L.lookAt(0, 0, 0), L.updateProjectionMatrix(), _.setSize(y.value, E.value), a.appendChild(_.domElement), i.stats && Me(), i.css3d && tn();
2239
2239
  let Ne;
2240
2240
  if (i.control && i.control.init) {
2241
2241
  Ne = fo(L, _.domElement);
@@ -2249,30 +2249,30 @@ function la(C, s) {
2249
2249
  }
2250
2250
  return As(() => p.value = !0), Ne;
2251
2251
  }
2252
- function W(me) {
2253
- me.preventDefault(), cancelAnimationFrame(Y);
2252
+ function W(pe) {
2253
+ pe.preventDefault(), cancelAnimationFrame(Y);
2254
2254
  }
2255
- function Z(me) {
2256
- me.preventDefault(), H(), Y();
2255
+ function Z(pe) {
2256
+ pe.preventDefault(), H(), Y();
2257
2257
  }
2258
- function ce(me) {
2259
- l.push(me);
2258
+ function ce(pe) {
2259
+ l.push(pe);
2260
2260
  }
2261
- function Y(me) {
2261
+ function Y(pe) {
2262
2262
  l && l.length && l.forEach((Ne) => {
2263
2263
  typeof Ne == "function" && Ne();
2264
- }), i.renderType === "loop" && Ae(), requestAnimationFrame(Y);
2264
+ }), i.renderType === "loop" && we(), requestAnimationFrame(Y);
2265
2265
  }
2266
- function Ae() {
2266
+ function we() {
2267
2267
  X = !1, u && u.update(), h.value && h.value.update(), _.render(P, L), c && c.render(P, L);
2268
2268
  }
2269
2269
  function ve() {
2270
- X || (X = !0, requestAnimationFrame(Ae));
2270
+ X || (X = !0, requestAnimationFrame(we));
2271
2271
  }
2272
2272
  function ae() {
2273
2273
  As(() => {
2274
- const me = Le();
2275
- y.value = me[0], E.value = me[1], L.aspect = y.value / E.value, L.fov = 360 / Math.PI * Math.atan(q * (E.value / y.value)), L.updateProjectionMatrix(), L.lookAt(P.position), _.setSize(y.value, E.value), _.render(P, L), c && c.setSize(y.value, E.value);
2274
+ const pe = Le();
2275
+ y.value = pe[0], E.value = pe[1], L.aspect = y.value / E.value, console.log(" =====> size:", pe), L.fov = 360 / Math.PI * Math.atan(q * (E.value / y.value)), L.updateProjectionMatrix(), L.lookAt(P.position), _.setSize(y.value, E.value), c && c.setSize(y.value, E.value), we();
2276
2276
  });
2277
2277
  }
2278
2278
  function Le() {
@@ -2281,8 +2281,8 @@ function la(C, s) {
2281
2281
  function Me() {
2282
2282
  u = new po(), u.dom.style.cssText = "position:absolute;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000", a.appendChild(u.dom);
2283
2283
  }
2284
- function Je(me, Ne, Pe, ze, nn) {
2285
- const Fe = new jn().setFromObject(me), Ve = Fe.getSize(new le()).length(), xe = Fe.getCenter(new le());
2284
+ function Je(pe, Ne, Pe, ze, nn) {
2285
+ const Fe = new jn().setFromObject(pe), Ve = Fe.getSize(new le()).length(), xe = Fe.getCenter(new le());
2286
2286
  nn && xe.add(nn);
2287
2287
  const Kn = Ve * Ne * 0.5, Ze = It.degToRad(Pe.fov * 0.5), sn = Kn / Math.tan(Ze), je = new le().subVectors(Pe.position, xe).multiply(new le(1, 1, 1)).normalize().multiplyScalar(sn).add(xe), Ke = {
2288
2288
  x: je.x,
@@ -2305,7 +2305,7 @@ function la(C, s) {
2305
2305
  ho(P);
2306
2306
  }
2307
2307
  return co(() => {
2308
- h.value = H(), _.domElement.addEventListener("resize", ae, !1), _.domElement.addEventListener(
2308
+ h.value = H(), window.addEventListener("resize", ae, !1), _.domElement.addEventListener(
2309
2309
  "webglcontextlost",
2310
2310
  W,
2311
2311
  !1
@@ -2327,7 +2327,7 @@ function la(C, s) {
2327
2327
  }), {
2328
2328
  addAnimate: ce,
2329
2329
  frameArea: Je,
2330
- onRender: Ae,
2330
+ onRender: we,
2331
2331
  css3dRenderer: c,
2332
2332
  scene: P,
2333
2333
  camera: L,
@@ -2463,7 +2463,7 @@ function sa() {
2463
2463
  function Y(e) {
2464
2464
  if (!e) throw new Error("Assertion Failed");
2465
2465
  }
2466
- function Ae(e) {
2466
+ function we(e) {
2467
2467
  c.setImmediate ? setImmediate(e) : setTimeout(e, 0);
2468
2468
  }
2469
2469
  function ve(e, t) {
@@ -2509,7 +2509,7 @@ function sa() {
2509
2509
  }), tn = new Set(ft.map(function(e) {
2510
2510
  return c[e];
2511
2511
  })), ct = null;
2512
- function me(e) {
2512
+ function pe(e) {
2513
2513
  return ct = /* @__PURE__ */ new WeakMap(), e = function t(n) {
2514
2514
  if (!n || typeof n != "object") return n;
2515
2515
  var r = ct.get(n);
@@ -2897,7 +2897,7 @@ function sa() {
2897
2897
  });
2898
2898
  });
2899
2899
  }), ht.withResolvers && (U.withResolvers = ht.withResolvers));
2900
- var we = { awaits: 0, echoes: 0, id: 0 }, ni = 0, fn = [], hn = 0, dn = 0, ri = 0;
2900
+ var _e = { awaits: 0, echoes: 0, id: 0 }, ni = 0, fn = [], hn = 0, dn = 0, ri = 0;
2901
2901
  function tt(e, t, n, r) {
2902
2902
  var o = z, f = Object.create(o);
2903
2903
  return f.parent = o, f.ref = 0, f.global = !1, f.id = ++ri, et.env, f.env = Un ? { Promise: U, PromiseProp: { value: U, configurable: !0, writable: !0 }, all: U.all, race: U.race, allSettled: U.allSettled, any: U.any, resolve: U.resolve, reject: U.reject } : {}, t && h(f, t), ++o.ref, f.finalize = function() {
@@ -2905,13 +2905,13 @@ function sa() {
2905
2905
  }, r = mt(f, e, n, r), f.ref === 0 && f.finalize(), r;
2906
2906
  }
2907
2907
  function kt() {
2908
- return we.id || (we.id = ++ni), ++we.awaits, we.echoes += Br, we.id;
2908
+ return _e.id || (_e.id = ++ni), ++_e.awaits, _e.echoes += Br, _e.id;
2909
2909
  }
2910
2910
  function nt() {
2911
- return !!we.awaits && (--we.awaits == 0 && (we.id = 0), we.echoes = we.awaits * Br, !0);
2911
+ return !!_e.awaits && (--_e.awaits == 0 && (_e.id = 0), _e.echoes = _e.awaits * Br, !0);
2912
2912
  }
2913
2913
  function pn(e) {
2914
- return we.echoes && e && e.constructor === ht ? (kt(), e.then(function(t) {
2914
+ return _e.echoes && e && e.constructor === ht ? (kt(), e.then(function(t) {
2915
2915
  return nt(), t;
2916
2916
  }, function(t) {
2917
2917
  return nt(), ye(t);
@@ -2923,8 +2923,8 @@ function sa() {
2923
2923
  }
2924
2924
  function rt(e, t) {
2925
2925
  var n, r = z;
2926
- (t ? !we.echoes || hn++ && e === z : !hn || --hn && e === z) || queueMicrotask(t ? (function(o) {
2927
- ++dn, we.echoes && --we.echoes != 0 || (we.echoes = we.awaits = we.id = 0), fn.push(z), rt(o, !0);
2926
+ (t ? !_e.echoes || hn++ && e === z : !hn || --hn && e === z) || queueMicrotask(t ? (function(o) {
2927
+ ++dn, _e.echoes && --_e.echoes != 0 || (_e.echoes = _e.awaits = _e.id = 0), fn.push(z), rt(o, !0);
2928
2928
  }).bind(null, e) : si), e !== z && (z = e, r === et && (et.env = Gr()), Un && (n = et.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(c, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
2929
2929
  }
2930
2930
  function Gr() {
@@ -2951,7 +2951,7 @@ function sa() {
2951
2951
  };
2952
2952
  }
2953
2953
  function Wn(e) {
2954
- Promise === ht && we.echoes === 0 ? hn === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
2954
+ Promise === ht && _e.echoes === 0 ? hn === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
2955
2955
  }
2956
2956
  ("" + Ce).indexOf("[native code]") === -1 && (kt = nt = ue);
2957
2957
  var ye = U.reject, yt = "￿", Xe = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", zr = "String expected.", Ot = [], mn = "__dbnames", Yn = "readonly", Qn = "readwrite";
@@ -2965,7 +2965,7 @@ function sa() {
2965
2965
  return typeof e != "string" || /\./.test(e) ? function(t) {
2966
2966
  return t;
2967
2967
  } : function(t) {
2968
- return t[e] === void 0 && e in t && delete (t = me(t))[e], t;
2968
+ return t[e] === void 0 && e in t && delete (t = pe(t))[e], t;
2969
2969
  };
2970
2970
  }
2971
2971
  function Xr() {
@@ -3305,7 +3305,7 @@ function sa() {
3305
3305
  var b = f(g, Ft, function() {
3306
3306
  for (var x = arguments.length, S = new Array(x); x--; ) S[x] = arguments[x];
3307
3307
  b.subscribers.forEach(function(A) {
3308
- Ae(function() {
3308
+ we(function() {
3309
3309
  A.apply(null, S);
3310
3310
  });
3311
3311
  });
@@ -3594,7 +3594,7 @@ function sa() {
3594
3594
  var I = Math.min(T, A.length - M);
3595
3595
  return m.getMany({ trans: r, keys: A.slice(M, M + I), cache: "immutable" }).then(function(D) {
3596
3596
  for (var K = [], N = [], F = v ? [] : null, B = [], j = 0; j < I; ++j) {
3597
- var G = D[j], J = { value: me(G), primKey: A[M + j] };
3597
+ var G = D[j], J = { value: pe(G), primKey: A[M + j] };
3598
3598
  d.call(J, J.value, J) !== !1 && (J.value == null ? B.push(A[M + j]) : v || re(w(G), w(J.value)) === 0 ? (N.push(J.value), v && F.push(A[M + j])) : (B.push(A[M + j]), K.push(J.value)));
3599
3599
  }
3600
3600
  return Promise.resolve(0 < K.length && m.mutate({ trans: r, type: "add", values: K }).then(function(ee) {
@@ -3713,9 +3713,9 @@ function sa() {
3713
3713
  function es(e) {
3714
3714
  return { type: 1, lower: e, upper: e };
3715
3715
  }
3716
- var ts = (Object.defineProperty(_e.prototype, "Collection", { get: function() {
3716
+ var ts = (Object.defineProperty(Ae.prototype, "Collection", { get: function() {
3717
3717
  return this._ctx.table.db.Collection;
3718
- }, enumerable: !1, configurable: !0 }), _e.prototype.between = function(e, t, n, r) {
3718
+ }, enumerable: !1, configurable: !0 }), Ae.prototype.between = function(e, t, n, r) {
3719
3719
  n = n !== !1, r = r === !0;
3720
3720
  try {
3721
3721
  return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || r) && (!n || !r) ? Pt(this) : new this.Collection(this, function() {
@@ -3724,49 +3724,49 @@ function sa() {
3724
3724
  } catch {
3725
3725
  return ke(this, Xe);
3726
3726
  }
3727
- }, _e.prototype.equals = function(e) {
3727
+ }, Ae.prototype.equals = function(e) {
3728
3728
  return e == null ? ke(this, Xe) : new this.Collection(this, function() {
3729
3729
  return es(e);
3730
3730
  });
3731
- }, _e.prototype.above = function(e) {
3731
+ }, Ae.prototype.above = function(e) {
3732
3732
  return e == null ? ke(this, Xe) : new this.Collection(this, function() {
3733
3733
  return st(e, void 0, !0);
3734
3734
  });
3735
- }, _e.prototype.aboveOrEqual = function(e) {
3735
+ }, Ae.prototype.aboveOrEqual = function(e) {
3736
3736
  return e == null ? ke(this, Xe) : new this.Collection(this, function() {
3737
3737
  return st(e, void 0, !1);
3738
3738
  });
3739
- }, _e.prototype.below = function(e) {
3739
+ }, Ae.prototype.below = function(e) {
3740
3740
  return e == null ? ke(this, Xe) : new this.Collection(this, function() {
3741
3741
  return st(void 0, e, !1, !0);
3742
3742
  });
3743
- }, _e.prototype.belowOrEqual = function(e) {
3743
+ }, Ae.prototype.belowOrEqual = function(e) {
3744
3744
  return e == null ? ke(this, Xe) : new this.Collection(this, function() {
3745
3745
  return st(void 0, e);
3746
3746
  });
3747
- }, _e.prototype.startsWith = function(e) {
3747
+ }, Ae.prototype.startsWith = function(e) {
3748
3748
  return typeof e != "string" ? ke(this, zr) : this.between(e, e + yt, !0, !0);
3749
- }, _e.prototype.startsWithIgnoreCase = function(e) {
3749
+ }, Ae.prototype.startsWithIgnoreCase = function(e) {
3750
3750
  return e === "" ? this.startsWith(e) : bn(this, function(t, n) {
3751
3751
  return t.indexOf(n[0]) === 0;
3752
3752
  }, [e], yt);
3753
- }, _e.prototype.equalsIgnoreCase = function(e) {
3753
+ }, Ae.prototype.equalsIgnoreCase = function(e) {
3754
3754
  return bn(this, function(t, n) {
3755
3755
  return t === n[0];
3756
3756
  }, [e], "");
3757
- }, _e.prototype.anyOfIgnoreCase = function() {
3757
+ }, Ae.prototype.anyOfIgnoreCase = function() {
3758
3758
  var e = xe.apply(Ve, arguments);
3759
3759
  return e.length === 0 ? Pt(this) : bn(this, function(t, n) {
3760
3760
  return n.indexOf(t) !== -1;
3761
3761
  }, e, "");
3762
- }, _e.prototype.startsWithAnyOfIgnoreCase = function() {
3762
+ }, Ae.prototype.startsWithAnyOfIgnoreCase = function() {
3763
3763
  var e = xe.apply(Ve, arguments);
3764
3764
  return e.length === 0 ? Pt(this) : bn(this, function(t, n) {
3765
3765
  return n.some(function(r) {
3766
3766
  return t.indexOf(r) === 0;
3767
3767
  });
3768
3768
  }, e, yt);
3769
- }, _e.prototype.anyOf = function() {
3769
+ }, Ae.prototype.anyOf = function() {
3770
3770
  var e = this, t = xe.apply(Ve, arguments), n = this._cmp;
3771
3771
  try {
3772
3772
  t.sort(n);
@@ -3787,9 +3787,9 @@ function sa() {
3787
3787
  f.continue(t[o]);
3788
3788
  }), !1);
3789
3789
  }), r;
3790
- }, _e.prototype.notEqual = function(e) {
3790
+ }, Ae.prototype.notEqual = function(e) {
3791
3791
  return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
3792
- }, _e.prototype.noneOf = function() {
3792
+ }, Ae.prototype.noneOf = function() {
3793
3793
  var e = xe.apply(Ve, arguments);
3794
3794
  if (e.length === 0) return new this.Collection(this);
3795
3795
  try {
@@ -3801,7 +3801,7 @@ function sa() {
3801
3801
  return n ? n.concat([[n[n.length - 1][1], r]]) : [[-1 / 0, r]];
3802
3802
  }, null);
3803
3803
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
3804
- }, _e.prototype.inAnyRange = function(k, t) {
3804
+ }, Ae.prototype.inAnyRange = function(k, t) {
3805
3805
  var n = this, r = this._cmp, o = this._ascending, f = this._descending, d = this._min, m = this._max;
3806
3806
  if (k.length === 0) return Pt(this);
3807
3807
  if (!k.every(function(O) {
@@ -3844,15 +3844,15 @@ function sa() {
3844
3844
  g === o ? O.continue(T[b][0]) : O.continue(T[b][1]);
3845
3845
  }), !1);
3846
3846
  }), k;
3847
- }, _e.prototype.startsWithAnyOf = function() {
3847
+ }, Ae.prototype.startsWithAnyOf = function() {
3848
3848
  var e = xe.apply(Ve, arguments);
3849
3849
  return e.every(function(t) {
3850
3850
  return typeof t == "string";
3851
3851
  }) ? e.length === 0 ? Pt(this) : this.inAnyRange(e.map(function(t) {
3852
3852
  return [t, t + yt];
3853
3853
  })) : ke(this, "startsWithAnyOf() only works with strings");
3854
- }, _e);
3855
- function _e() {
3854
+ }, Ae);
3855
+ function Ae() {
3856
3856
  }
3857
3857
  function Ue(e) {
3858
3858
  return de(function(t) {
@@ -4707,7 +4707,7 @@ function sa() {
4707
4707
  function ls(e, t, n) {
4708
4708
  try {
4709
4709
  if (!t || t.keys.length < e.length) return null;
4710
- for (var r = [], o = 0, f = 0; o < t.keys.length && f < e.length; ++o) re(t.keys[o], e[f]) === 0 && (r.push(n ? me(t.values[o]) : t.values[o]), ++f);
4710
+ for (var r = [], o = 0, f = 0; o < t.keys.length && f < e.length; ++o) re(t.keys[o], e[f]) === 0 && (r.push(n ? pe(t.values[o]) : t.values[o]), ++f);
4711
4711
  return r.length === e.length ? r : null;
4712
4712
  } catch {
4713
4713
  return null;
@@ -4720,7 +4720,7 @@ function sa() {
4720
4720
  if (!r.cache) return n.getMany(r);
4721
4721
  var o = ls(r.keys, r.trans._cache, r.cache === "clone");
4722
4722
  return o ? U.resolve(o) : n.getMany(r).then(function(f) {
4723
- return r.trans._cache = { keys: r.keys, values: r.cache === "clone" ? me(f) : f }, f;
4723
+ return r.trans._cache = { keys: r.keys, values: r.cache === "clone" ? pe(f) : f }, f;
4724
4724
  });
4725
4725
  }, mutate: function(r) {
4726
4726
  return r.type !== "add" && (r.trans._cache = null), n.mutate(r);
@@ -4974,7 +4974,7 @@ function sa() {
4974
4974
  })) : d.then(function(v) {
4975
4975
  var w = ds(0, a(a({}, f), { values: f.values.map(function(T, g) {
4976
4976
  var R;
4977
- return v.failures[g] ? T : (T = (R = o.keyPath) !== null && R !== void 0 && R.includes(".") ? me(T) : a({}, T), ae(T, o.keyPath, v.results[g]), T);
4977
+ return v.failures[g] ? T : (T = (R = o.keyPath) !== null && R !== void 0 && R.includes(".") ? pe(T) : a({}, T), ae(T, o.keyPath, v.results[g]), T);
4978
4978
  }) }), v);
4979
4979
  m.optimisticOps.push(w), queueMicrotask(function() {
4980
4980
  return f.mutatedParts && kn(f.mutatedParts);
@@ -5007,7 +5007,7 @@ function sa() {
5007
5007
  if (T && (T.res = S), d) {
5008
5008
  for (var A = 0, k = S.length; A < k; ++A) Object.freeze(S[A]);
5009
5009
  Object.freeze(S);
5010
- } else x.result = me(S);
5010
+ } else x.result = pe(S);
5011
5011
  return x;
5012
5012
  }).catch(function(x) {
5013
5013
  return b && T && Fe(b, T), Promise.reject(x);
@@ -5379,7 +5379,7 @@ function sa() {
5379
5379
  typeof t == "string" ? ae(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
5380
5380
  ae(e, n, void 0);
5381
5381
  });
5382
- }, shallowClone: Le, deepClone: me, getObjectDiff: yr, cmp: re, asap: Ae, minKey: -1 / 0, addons: [], connections: Ot, errnames: Ke, dependencies: Pn, cache: vt, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
5382
+ }, shallowClone: Le, deepClone: pe, getObjectDiff: yr, cmp: re, asap: we, minKey: -1 / 0, addons: [], connections: Ot, errnames: Ke, dependencies: Pn, cache: vt, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
5383
5383
  return parseInt(e);
5384
5384
  }).reduce(function(e, t, n) {
5385
5385
  return e + t / Math.pow(10, 2 * n);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ridp/threejs",
3
3
  "private": false,
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
5
5
  "type": "module",
6
6
  "main": "dist/threejs.js",
7
7
  "exports": {