@osamash/floor-planner 1.1.9 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floor-planner.es.js +250 -247
- package/dist/floor-planner.umd.js +11 -11
- package/package.json +1 -1
package/dist/floor-planner.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ay = Object.defineProperty;
|
|
2
2
|
var ly = (n, e, t) => e in n ? ay(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var ht = (n, e, t) => ly(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import Pe, { useRef as gr, useEffect as
|
|
4
|
+
import Pe, { useRef as gr, useEffect as Fr, useState as on, useMemo as gp, useLayoutEffect as cy, useCallback as uy } from "react";
|
|
5
5
|
import { createPortal as hy } from "react-dom";
|
|
6
6
|
function ql(n) {
|
|
7
7
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
@@ -411,14 +411,14 @@ function ku(n) {
|
|
|
411
411
|
}
|
|
412
412
|
var Tn = function(e) {
|
|
413
413
|
return sr(e) ? e : Sn(e);
|
|
414
|
-
},
|
|
414
|
+
}, kr = /* @__PURE__ */ (function(n) {
|
|
415
415
|
function e(t) {
|
|
416
416
|
return Ht(t) ? t : Ps(t);
|
|
417
417
|
}
|
|
418
418
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e;
|
|
419
419
|
})(Tn), no = /* @__PURE__ */ (function(n) {
|
|
420
420
|
function e(t) {
|
|
421
|
-
return Xn(t) ? t :
|
|
421
|
+
return Xn(t) ? t : Vr(t);
|
|
422
422
|
}
|
|
423
423
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e;
|
|
424
424
|
})(Tn), Sa = /* @__PURE__ */ (function(n) {
|
|
@@ -427,7 +427,7 @@ var Tn = function(e) {
|
|
|
427
427
|
}
|
|
428
428
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e;
|
|
429
429
|
})(Tn);
|
|
430
|
-
Tn.Keyed =
|
|
430
|
+
Tn.Keyed = kr;
|
|
431
431
|
Tn.Indexed = no;
|
|
432
432
|
Tn.Set = Sa;
|
|
433
433
|
var Z_ = "@@__IMMUTABLE_SEQ__@@";
|
|
@@ -440,11 +440,11 @@ function Cs(n) {
|
|
|
440
440
|
return !!(n && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
|
|
441
441
|
n[J_]);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Br(n) {
|
|
444
444
|
return sr(n) || Cs(n);
|
|
445
445
|
}
|
|
446
446
|
var Ms = "@@__IMMUTABLE_ORDERED__@@";
|
|
447
|
-
function
|
|
447
|
+
function Qr(n) {
|
|
448
448
|
return !!(n && // @ts-expect-error: maybeOrdered is typed as `{}`, need to change in 6.0 to `maybeOrdered && typeof maybeOrdered === 'object' && IS_ORDERED_SYMBOL in maybeOrdered`
|
|
449
449
|
n[Ms]);
|
|
450
450
|
}
|
|
@@ -513,7 +513,7 @@ function xp(n) {
|
|
|
513
513
|
}
|
|
514
514
|
var Sn = /* @__PURE__ */ (function(n) {
|
|
515
515
|
function e(t) {
|
|
516
|
-
return t == null ? Sp() :
|
|
516
|
+
return t == null ? Sp() : Br(t) ? t.toSeq() : Ey(t);
|
|
517
517
|
}
|
|
518
518
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
|
|
519
519
|
return this;
|
|
@@ -552,7 +552,7 @@ var Sn = /* @__PURE__ */ (function(n) {
|
|
|
552
552
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
|
|
553
553
|
return this;
|
|
554
554
|
}, e;
|
|
555
|
-
})(Sn),
|
|
555
|
+
})(Sn), Vr = /* @__PURE__ */ (function(n) {
|
|
556
556
|
function e(t) {
|
|
557
557
|
return t == null ? Sp() : sr(t) ? Ht(t) ? t.entrySeq() : t.toIndexedSeq() : Cs(t) ? t.toSeq().entrySeq() : ev(t);
|
|
558
558
|
}
|
|
@@ -565,7 +565,7 @@ var Sn = /* @__PURE__ */ (function(n) {
|
|
|
565
565
|
}, e;
|
|
566
566
|
})(Sn), Ma = /* @__PURE__ */ (function(n) {
|
|
567
567
|
function e(t) {
|
|
568
|
-
return (sr(t) && !ku(t) ? t :
|
|
568
|
+
return (sr(t) && !ku(t) ? t : Vr(t)).toSetSeq();
|
|
569
569
|
}
|
|
570
570
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e.of = function() {
|
|
571
571
|
return e(arguments);
|
|
@@ -576,7 +576,7 @@ var Sn = /* @__PURE__ */ (function(n) {
|
|
|
576
576
|
Sn.isSeq = Bu;
|
|
577
577
|
Sn.Keyed = Ps;
|
|
578
578
|
Sn.Set = Ma;
|
|
579
|
-
Sn.Indexed =
|
|
579
|
+
Sn.Indexed = Vr;
|
|
580
580
|
Sn.prototype[Z_] = !0;
|
|
581
581
|
var ea = /* @__PURE__ */ (function(n) {
|
|
582
582
|
function e(t) {
|
|
@@ -600,7 +600,7 @@ var ea = /* @__PURE__ */ (function(n) {
|
|
|
600
600
|
return en(r, l, s[l]);
|
|
601
601
|
});
|
|
602
602
|
}, e;
|
|
603
|
-
})(
|
|
603
|
+
})(Vr), yp = /* @__PURE__ */ (function(n) {
|
|
604
604
|
function e(t) {
|
|
605
605
|
var r = Object.keys(t).concat(
|
|
606
606
|
Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t) : []
|
|
@@ -653,7 +653,7 @@ var Sy = /* @__PURE__ */ (function(n) {
|
|
|
653
653
|
return l.done ? l : en(r, a++, l.value);
|
|
654
654
|
});
|
|
655
655
|
}, e;
|
|
656
|
-
})(
|
|
656
|
+
})(Vr), x0;
|
|
657
657
|
function Sp() {
|
|
658
658
|
return x0 || (x0 = new ea([]));
|
|
659
659
|
}
|
|
@@ -694,7 +694,7 @@ function Gu(n) {
|
|
|
694
694
|
n[tv]);
|
|
695
695
|
}
|
|
696
696
|
function Mp(n) {
|
|
697
|
-
return Gu(n) &&
|
|
697
|
+
return Gu(n) && Qr(n);
|
|
698
698
|
}
|
|
699
699
|
function od(n) {
|
|
700
700
|
return !!(n && // @ts-expect-error: maybeValue is typed as `{}`
|
|
@@ -889,7 +889,7 @@ var rv = /* @__PURE__ */ (function(n) {
|
|
|
889
889
|
);
|
|
890
890
|
});
|
|
891
891
|
}, e;
|
|
892
|
-
})(
|
|
892
|
+
})(Vr), iv = /* @__PURE__ */ (function(n) {
|
|
893
893
|
function e(t) {
|
|
894
894
|
this._iter = t, this.size = t.size;
|
|
895
895
|
}
|
|
@@ -1094,7 +1094,7 @@ function Ly(n, e, t) {
|
|
|
1094
1094
|
}), r.asImmutable();
|
|
1095
1095
|
}
|
|
1096
1096
|
function Oy(n, e, t) {
|
|
1097
|
-
var r = Ht(n), i = (
|
|
1097
|
+
var r = Ht(n), i = (Qr(n) ? Ci() : Ie()).asMutable();
|
|
1098
1098
|
n.__iterate(function(o, a) {
|
|
1099
1099
|
i.update(
|
|
1100
1100
|
e.call(t, o, a, n),
|
|
@@ -1272,7 +1272,7 @@ var Ny = /* @__PURE__ */ (function(n) {
|
|
|
1272
1272
|
})(Sn);
|
|
1273
1273
|
function Uy(n, e) {
|
|
1274
1274
|
var t = Ht(n), r = [n].concat(e).map(function(s) {
|
|
1275
|
-
return sr(s) ? t && (s =
|
|
1275
|
+
return sr(s) ? t && (s = kr(s)) : s = t ? Ep(s) : ev(Array.isArray(s) ? s : [s]), s;
|
|
1276
1276
|
}).filter(function(s) {
|
|
1277
1277
|
return s.size !== 0;
|
|
1278
1278
|
});
|
|
@@ -1354,7 +1354,7 @@ function ta(n, e, t) {
|
|
|
1354
1354
|
} : function(o, a) {
|
|
1355
1355
|
s[a] = o[1];
|
|
1356
1356
|
}
|
|
1357
|
-
), r ? Ps(s) : Xn(n) ?
|
|
1357
|
+
), r ? Ps(s) : Xn(n) ? Vr(s) : Ma(s);
|
|
1358
1358
|
}
|
|
1359
1359
|
function cc(n, e, t) {
|
|
1360
1360
|
if (e || (e = hv), t) {
|
|
@@ -1416,11 +1416,11 @@ function w0(n) {
|
|
|
1416
1416
|
throw new TypeError("Expected [K, V] tuple: " + n);
|
|
1417
1417
|
}
|
|
1418
1418
|
function Ap(n) {
|
|
1419
|
-
return Ht(n) ?
|
|
1419
|
+
return Ht(n) ? kr : Xn(n) ? no : Sa;
|
|
1420
1420
|
}
|
|
1421
1421
|
function Oi(n) {
|
|
1422
1422
|
return Object.create(
|
|
1423
|
-
(Ht(n) ? Ps : Xn(n) ?
|
|
1423
|
+
(Ht(n) ? Ps : Xn(n) ? Vr : Ma).prototype
|
|
1424
1424
|
);
|
|
1425
1425
|
}
|
|
1426
1426
|
function Rp() {
|
|
@@ -1445,7 +1445,7 @@ function pr(n) {
|
|
|
1445
1445
|
function fv(n) {
|
|
1446
1446
|
if (xp(n) && typeof n != "string")
|
|
1447
1447
|
return n;
|
|
1448
|
-
if (
|
|
1448
|
+
if (Qr(n))
|
|
1449
1449
|
return n.toArray();
|
|
1450
1450
|
throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + n);
|
|
1451
1451
|
}
|
|
@@ -1461,7 +1461,7 @@ function Cp(n) {
|
|
|
1461
1461
|
return t === e;
|
|
1462
1462
|
}
|
|
1463
1463
|
function ws(n) {
|
|
1464
|
-
return typeof n == "object" && (
|
|
1464
|
+
return typeof n == "object" && (Br(n) || Array.isArray(n) || Cp(n));
|
|
1465
1465
|
}
|
|
1466
1466
|
function vl(n) {
|
|
1467
1467
|
try {
|
|
@@ -1471,7 +1471,7 @@ function vl(n) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
function dv(n, e) {
|
|
1474
|
-
return
|
|
1474
|
+
return Br(n) ? (
|
|
1475
1475
|
// @ts-expect-error key might be a number or symbol, which is not handled be Record key type
|
|
1476
1476
|
n.has(e)
|
|
1477
1477
|
) : (
|
|
@@ -1480,7 +1480,7 @@ function dv(n, e) {
|
|
|
1480
1480
|
);
|
|
1481
1481
|
}
|
|
1482
1482
|
function Pp(n, e, t) {
|
|
1483
|
-
return
|
|
1483
|
+
return Br(n) ? n.get(e, t) : dv(n, e) ? (
|
|
1484
1484
|
// @ts-expect-error weird "get" here,
|
|
1485
1485
|
typeof n.get == "function" ? (
|
|
1486
1486
|
// @ts-expect-error weird "get" here,
|
|
@@ -1502,7 +1502,7 @@ function fu(n) {
|
|
|
1502
1502
|
function pv(n, e) {
|
|
1503
1503
|
if (!ws(n))
|
|
1504
1504
|
throw new TypeError("Cannot update non-data-structure value: " + n);
|
|
1505
|
-
if (
|
|
1505
|
+
if (Br(n)) {
|
|
1506
1506
|
if (!n.remove)
|
|
1507
1507
|
throw new TypeError("Cannot update immutable value without .remove() method: " + n);
|
|
1508
1508
|
return n.remove(e);
|
|
@@ -1515,7 +1515,7 @@ function pv(n, e) {
|
|
|
1515
1515
|
function mv(n, e, t) {
|
|
1516
1516
|
if (!ws(n))
|
|
1517
1517
|
throw new TypeError("Cannot update non-data-structure value: " + n);
|
|
1518
|
-
if (
|
|
1518
|
+
if (Br(n)) {
|
|
1519
1519
|
if (!n.set)
|
|
1520
1520
|
throw new TypeError("Cannot update immutable value without .set() method: " + n);
|
|
1521
1521
|
return n.set(e, t);
|
|
@@ -1528,7 +1528,7 @@ function mv(n, e, t) {
|
|
|
1528
1528
|
function ro(n, e, t, r) {
|
|
1529
1529
|
r || (r = t, t = void 0);
|
|
1530
1530
|
var i = gv(
|
|
1531
|
-
|
|
1531
|
+
Br(n),
|
|
1532
1532
|
// @ts-expect-error type issues with Record and mixed types
|
|
1533
1533
|
n,
|
|
1534
1534
|
fv(e),
|
|
@@ -1547,7 +1547,7 @@ function gv(n, e, t, r, i, s) {
|
|
|
1547
1547
|
if (!o && !ws(e))
|
|
1548
1548
|
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(t).slice(0, r).map(vl) + "]: " + e);
|
|
1549
1549
|
var c = t[r], h = o ? wt : Pp(e, c, wt), f = gv(
|
|
1550
|
-
h === wt ? n :
|
|
1550
|
+
h === wt ? n : Br(h),
|
|
1551
1551
|
// @ts-expect-error mixed type
|
|
1552
1552
|
h,
|
|
1553
1553
|
t,
|
|
@@ -1600,7 +1600,7 @@ function yv(n) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
function Sv(n, e, t) {
|
|
1602
1602
|
for (var r = [], i = 0; i < e.length; i++) {
|
|
1603
|
-
var s =
|
|
1603
|
+
var s = kr(e[i]);
|
|
1604
1604
|
s.size !== 0 && r.push(s);
|
|
1605
1605
|
}
|
|
1606
1606
|
return r.length === 0 ? n : n.toSeq().size === 0 && !n.__ownerID && r.length === 1 ? Cs(n) ? n : n.constructor(r[0]) : n.withMutations(function(o) {
|
|
@@ -1643,9 +1643,9 @@ function zl(n, e, t) {
|
|
|
1643
1643
|
throw new TypeError(
|
|
1644
1644
|
"Cannot merge into non-data-structure value: " + n
|
|
1645
1645
|
);
|
|
1646
|
-
if (
|
|
1646
|
+
if (Br(n))
|
|
1647
1647
|
return typeof t == "function" && n.mergeWith ? n.mergeWith.apply(n, [t].concat(e)) : n.merge ? n.merge.apply(n, e) : n.concat.apply(n, e);
|
|
1648
|
-
for (var r = Array.isArray(n), i = n, s = r ? no :
|
|
1648
|
+
for (var r = Array.isArray(n), i = n, s = r ? no : kr, o = r ? function(l) {
|
|
1649
1649
|
i === n && (i = fu(i)), i.push(l);
|
|
1650
1650
|
} : function(l, c) {
|
|
1651
1651
|
var h = ba.call(i, c), f = h && t ? t(i[c], l, c) : l;
|
|
@@ -1704,7 +1704,7 @@ function Fp() {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
var Ie = /* @__PURE__ */ (function(n) {
|
|
1706
1706
|
function e(t) {
|
|
1707
|
-
return t == null ? Si() : Gu(t) && !
|
|
1707
|
+
return t == null ? Si() : Gu(t) && !Qr(t) ? t : Si().withMutations(function(r) {
|
|
1708
1708
|
var i = n(t);
|
|
1709
1709
|
pr(i.size), i.forEach(function(s, o) {
|
|
1710
1710
|
return r.set(o, s);
|
|
@@ -1749,7 +1749,7 @@ var Ie = /* @__PURE__ */ (function(n) {
|
|
|
1749
1749
|
}, e.prototype.__ensureOwner = function(r) {
|
|
1750
1750
|
return r === this.__ownerID ? this : r ? zp(this.size, this._root, r, this.__hash) : this.size === 0 ? Si() : (this.__ownerID = r, this.__altered = !1, this);
|
|
1751
1751
|
}, e;
|
|
1752
|
-
})(
|
|
1752
|
+
})(kr);
|
|
1753
1753
|
Ie.isMap = Gu;
|
|
1754
1754
|
var tn = Ie.prototype;
|
|
1755
1755
|
tn[tv] = !0;
|
|
@@ -2372,7 +2372,7 @@ function El(n) {
|
|
|
2372
2372
|
var Ci = /* @__PURE__ */ (function(n) {
|
|
2373
2373
|
function e(t) {
|
|
2374
2374
|
return t == null ? il() : Mp(t) ? t : il().withMutations(function(r) {
|
|
2375
|
-
var i =
|
|
2375
|
+
var i = kr(t);
|
|
2376
2376
|
pr(i.size), i.forEach(function(s, o) {
|
|
2377
2377
|
return r.set(o, s);
|
|
2378
2378
|
});
|
|
@@ -2554,7 +2554,7 @@ function Yu(n) {
|
|
|
2554
2554
|
n[Cv]);
|
|
2555
2555
|
}
|
|
2556
2556
|
function Gp(n) {
|
|
2557
|
-
return Yu(n) &&
|
|
2557
|
+
return Yu(n) && Qr(n);
|
|
2558
2558
|
}
|
|
2559
2559
|
function Wp(n, e) {
|
|
2560
2560
|
if (n === e)
|
|
@@ -2564,12 +2564,12 @@ function Wp(n, e) {
|
|
|
2564
2564
|
n.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
|
|
2565
2565
|
e.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
|
|
2566
2566
|
n.__hash !== e.__hash || Ht(n) !== Ht(e) || Xn(n) !== Xn(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
|
|
2567
|
-
|
|
2567
|
+
Qr(n) !== Qr(e))
|
|
2568
2568
|
return !1;
|
|
2569
2569
|
if (n.size === 0 && e.size === 0)
|
|
2570
2570
|
return !0;
|
|
2571
2571
|
var t = !ku(n);
|
|
2572
|
-
if (
|
|
2572
|
+
if (Qr(n)) {
|
|
2573
2573
|
var r = n.entries();
|
|
2574
2574
|
return e.every(function(l, c) {
|
|
2575
2575
|
var h = r.next().value;
|
|
@@ -2631,7 +2631,7 @@ function pu(n) {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
var wa = /* @__PURE__ */ (function(n) {
|
|
2633
2633
|
function e(t) {
|
|
2634
|
-
return t == null ? ol() : Yu(t) && !
|
|
2634
|
+
return t == null ? ol() : Yu(t) && !Qr(t) ? t : ol().withMutations(function(r) {
|
|
2635
2635
|
var i = n(t);
|
|
2636
2636
|
pr(i.size), i.forEach(function(s) {
|
|
2637
2637
|
return r.add(s);
|
|
@@ -2641,7 +2641,7 @@ var wa = /* @__PURE__ */ (function(n) {
|
|
|
2641
2641
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e.of = function() {
|
|
2642
2642
|
return this(arguments);
|
|
2643
2643
|
}, e.fromKeys = function(r) {
|
|
2644
|
-
return this(
|
|
2644
|
+
return this(kr(r).keySeq());
|
|
2645
2645
|
}, e.intersect = function(r) {
|
|
2646
2646
|
return r = Tn(r).toArray(), r.length ? Cn.intersect.apply(e(r.pop()), r) : ol();
|
|
2647
2647
|
}, e.union = function(r) {
|
|
@@ -2810,7 +2810,7 @@ var Iv = /* @__PURE__ */ (function(n) {
|
|
|
2810
2810
|
}, e.prototype.equals = function(r) {
|
|
2811
2811
|
return r instanceof e ? this._start === r._start && this._end === r._end && this._step === r._step : Wp(this, r);
|
|
2812
2812
|
}, e;
|
|
2813
|
-
})(
|
|
2813
|
+
})(Vr), Ch;
|
|
2814
2814
|
function jp(n, e, t) {
|
|
2815
2815
|
for (var r = fv(e), i = 0; i !== r.length; )
|
|
2816
2816
|
if (n = Pp(n, r[i++], wt), n === wt)
|
|
@@ -3143,7 +3143,7 @@ zn.inspect = zn.toSource = function() {
|
|
|
3143
3143
|
};
|
|
3144
3144
|
zn.chain = zn.flatMap;
|
|
3145
3145
|
zn.contains = zn.includes;
|
|
3146
|
-
io(
|
|
3146
|
+
io(kr, {
|
|
3147
3147
|
// ### More sequential methods
|
|
3148
3148
|
flip: function() {
|
|
3149
3149
|
return Bt(this, ov(this));
|
|
@@ -3167,7 +3167,7 @@ io(zr, {
|
|
|
3167
3167
|
);
|
|
3168
3168
|
}
|
|
3169
3169
|
});
|
|
3170
|
-
var Hl =
|
|
3170
|
+
var Hl = kr.prototype;
|
|
3171
3171
|
Hl[uu] = !0;
|
|
3172
3172
|
Hl[Vu] = zn.entries;
|
|
3173
3173
|
Hl.toJSON = qv;
|
|
@@ -3235,7 +3235,7 @@ io(no, {
|
|
|
3235
3235
|
return Bt(this, zy(this, e));
|
|
3236
3236
|
},
|
|
3237
3237
|
interleave: function() {
|
|
3238
|
-
var e = [this].concat(vi(arguments)), t = uc(this.toSeq(),
|
|
3238
|
+
var e = [this].concat(vi(arguments)), t = uc(this.toSeq(), Vr.of, e), r = t.flatten(!0);
|
|
3239
3239
|
return t.size && (r.size = t.size * e.length), Bt(this, r);
|
|
3240
3240
|
},
|
|
3241
3241
|
keySeq: function() {
|
|
@@ -3281,7 +3281,7 @@ sa.has = zn.includes;
|
|
|
3281
3281
|
sa.contains = sa.includes;
|
|
3282
3282
|
sa.keys = sa.values;
|
|
3283
3283
|
io(Ps, Hl);
|
|
3284
|
-
io(
|
|
3284
|
+
io(Vr, Ta);
|
|
3285
3285
|
io(Ma, sa);
|
|
3286
3286
|
function D0(n, e, t, r, i, s) {
|
|
3287
3287
|
return pr(n.size), n.__iterate(function(o, a, l) {
|
|
@@ -3313,7 +3313,7 @@ function F0(n, e) {
|
|
|
3313
3313
|
function o3(n) {
|
|
3314
3314
|
if (n.size === 1 / 0)
|
|
3315
3315
|
return 0;
|
|
3316
|
-
var e =
|
|
3316
|
+
var e = Qr(n), t = Ht(n), r = e ? 1 : 0;
|
|
3317
3317
|
return n.__iterate(
|
|
3318
3318
|
t ? e ? function(i, s) {
|
|
3319
3319
|
r = 31 * r + z0(tr(i), tr(s)) | 0;
|
|
@@ -3344,7 +3344,7 @@ var oa = /* @__PURE__ */ (function(n) {
|
|
|
3344
3344
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e.of = function() {
|
|
3345
3345
|
return this(arguments);
|
|
3346
3346
|
}, e.fromKeys = function(r) {
|
|
3347
|
-
return this(
|
|
3347
|
+
return this(kr(r).keySeq());
|
|
3348
3348
|
}, e.prototype.toString = function() {
|
|
3349
3349
|
return this.__toString("OrderedSet {", "}");
|
|
3350
3350
|
}, e;
|
|
@@ -3374,7 +3374,7 @@ function c3(n) {
|
|
|
3374
3374
|
throw new Error(
|
|
3375
3375
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
3376
3376
|
);
|
|
3377
|
-
if (
|
|
3377
|
+
if (Br(n))
|
|
3378
3378
|
throw new Error(
|
|
3379
3379
|
"Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead."
|
|
3380
3380
|
);
|
|
@@ -3404,7 +3404,7 @@ var _t = function(e, t) {
|
|
|
3404
3404
|
}
|
|
3405
3405
|
}
|
|
3406
3406
|
return this.__ownerID = void 0, this._values = We().withMutations(function(d) {
|
|
3407
|
-
d.setSize(l._keys.length),
|
|
3407
|
+
d.setSize(l._keys.length), kr(a).forEach(function(m, x) {
|
|
3408
3408
|
d.set(l._indices[x], m === l._defaultValues[x] ? void 0 : m);
|
|
3409
3409
|
});
|
|
3410
3410
|
}), this;
|
|
@@ -3565,7 +3565,7 @@ var h3 = /* @__PURE__ */ (function(n) {
|
|
|
3565
3565
|
}, e.prototype.equals = function(r) {
|
|
3566
3566
|
return r instanceof e ? Qt(this._value, r._value) : Wp(this, r);
|
|
3567
3567
|
}, e;
|
|
3568
|
-
})(
|
|
3568
|
+
})(Vr), Ih;
|
|
3569
3569
|
function Ct(n, e) {
|
|
3570
3570
|
return Nv(
|
|
3571
3571
|
[],
|
|
@@ -3577,7 +3577,7 @@ function Ct(n, e) {
|
|
|
3577
3577
|
);
|
|
3578
3578
|
}
|
|
3579
3579
|
function Nv(n, e, t, r, i, s) {
|
|
3580
|
-
if (typeof t != "string" && !
|
|
3580
|
+
if (typeof t != "string" && !Br(t) && (xp(t) || vp(t) || Cp(t))) {
|
|
3581
3581
|
if (~n.indexOf(t))
|
|
3582
3582
|
throw new TypeError("Cannot convert circular structure to Immutable");
|
|
3583
3583
|
n.push(t), i && r !== "" && i.push(r);
|
|
@@ -3623,12 +3623,12 @@ const m3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3623
3623
|
is: Qt,
|
|
3624
3624
|
isAssociative: ku,
|
|
3625
3625
|
isCollection: sr,
|
|
3626
|
-
isImmutable:
|
|
3626
|
+
isImmutable: Br,
|
|
3627
3627
|
isIndexed: Xn,
|
|
3628
3628
|
isKeyed: Ht,
|
|
3629
3629
|
isList: Vp,
|
|
3630
3630
|
isMap: Gu,
|
|
3631
|
-
isOrdered:
|
|
3631
|
+
isOrdered: Qr,
|
|
3632
3632
|
isOrderedMap: Mp,
|
|
3633
3633
|
isOrderedSet: Gp,
|
|
3634
3634
|
isPlainObject: Cp,
|
|
@@ -3648,15 +3648,15 @@ const m3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3648
3648
|
update: Op,
|
|
3649
3649
|
updateIn: ro,
|
|
3650
3650
|
version: d3
|
|
3651
|
-
}, Symbol.toStringTag, { value: "Module" })), ln = "MODE_IDLE", oo = "MODE_2D_ZOOM_IN", ao = "MODE_2D_ZOOM_OUT", lo = "MODE_2D_PAN",
|
|
3651
|
+
}, Symbol.toStringTag, { value: "Module" })), ln = "MODE_IDLE", oo = "MODE_2D_ZOOM_IN", ao = "MODE_2D_ZOOM_OUT", lo = "MODE_2D_PAN", Ir = "MODE_3D_VIEW", Aa = "MODE_3D_FIRST_PERSON", zr = "MODE_WAITING_DRAWING_LINE", Zs = "MODE_WAITING_DRAWING_SURFACE", ti = "MODE_DRAGGING_LINE", ni = "MODE_DRAGGING_VERTEX", ri = "MODE_DRAGGING_ITEM", ii = "MODE_DRAGGING_HOLE", rr = "MODE_DRAWING_LINE", _r = "MODE_DRAWING_HOLE", Lr = "MODE_DRAWING_ITEM", Ai = "MODE_DRAWING_SURFACE", es = "MODE_ROTATING_ITEM", $p = "MODE_UPLOADING_IMAGE", Kp = "MODE_FITTING_IMAGE", Zp = "MODE_VIEWING_CATALOG", Uv = "MODE_CONFIGURING_PROJECT", fd = [
|
|
3652
3652
|
ln,
|
|
3653
3653
|
oo,
|
|
3654
3654
|
ao,
|
|
3655
3655
|
lo,
|
|
3656
|
-
|
|
3656
|
+
zr,
|
|
3657
3657
|
rr,
|
|
3658
3658
|
_r,
|
|
3659
|
-
|
|
3659
|
+
Lr,
|
|
3660
3660
|
ti,
|
|
3661
3661
|
ni,
|
|
3662
3662
|
ri,
|
|
@@ -3664,9 +3664,9 @@ const m3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3664
3664
|
Kp,
|
|
3665
3665
|
$p,
|
|
3666
3666
|
es
|
|
3667
|
-
], g3 = "mm",
|
|
3667
|
+
], g3 = "mm", Or = "cm", _3 = "m", v3 = "in", Fv = "ft", x3 = "mi", zv = [
|
|
3668
3668
|
g3,
|
|
3669
|
-
|
|
3669
|
+
Or,
|
|
3670
3670
|
_3,
|
|
3671
3671
|
v3,
|
|
3672
3672
|
Fv,
|
|
@@ -3778,7 +3778,7 @@ function pd(n, e, t, r) {
|
|
|
3778
3778
|
function A3(n, e, t, r) {
|
|
3779
3779
|
return Math.atan2(Math.abs(r - e), Math.abs(t - n));
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3781
|
+
function $r({ x: n, y: e }, { x: t, y: r }) {
|
|
3782
3782
|
return Go(n - t) <= mi && Go(e - r) <= mi;
|
|
3783
3783
|
}
|
|
3784
3784
|
function Ku(n, e, t, r, i, s = 6) {
|
|
@@ -5087,7 +5087,7 @@ function im() {
|
|
|
5087
5087
|
return Pt(y);
|
|
5088
5088
|
}
|
|
5089
5089
|
if (g === "string")
|
|
5090
|
-
return u.length > Zl ?
|
|
5090
|
+
return u.length > Zl ? Hr(u) : Kn(u);
|
|
5091
5091
|
if (typeof u.hashCode == "function")
|
|
5092
5092
|
return u.hashCode();
|
|
5093
5093
|
if (g === "object")
|
|
@@ -5096,7 +5096,7 @@ function im() {
|
|
|
5096
5096
|
return Kn(u.toString());
|
|
5097
5097
|
throw new Error("Value type " + g + " cannot be hashed.");
|
|
5098
5098
|
}
|
|
5099
|
-
function
|
|
5099
|
+
function Hr(u) {
|
|
5100
5100
|
var g = Na[u];
|
|
5101
5101
|
return g === void 0 && (g = Kn(u), Da === Jl && (Da = 0, Na = {}), Da++, Na[u] = g), g;
|
|
5102
5102
|
}
|
|
@@ -5305,8 +5305,8 @@ function im() {
|
|
|
5305
5305
|
return et[Ve ^ 1];
|
|
5306
5306
|
if (ge && St && et.length === 1 && $t(St))
|
|
5307
5307
|
return St;
|
|
5308
|
-
var rn = u && u === this.ownerID,
|
|
5309
|
-
return rn ? (this.bitmap =
|
|
5308
|
+
var rn = u && u === this.ownerID, Gr = ge ? St ? ce : ce ^ le : ce | le, pi = ge ? St ? Bn(et, Ve, St, rn) : An(et, Ve, rn) : Zn(et, Ve, St, rn);
|
|
5309
|
+
return rn ? (this.bitmap = Gr, this.nodes = pi, this) : new re(u, Gr, pi);
|
|
5310
5310
|
};
|
|
5311
5311
|
function se(u, g, y) {
|
|
5312
5312
|
this.ownerID = u, this.count = g, this.nodes = y;
|
|
@@ -5697,9 +5697,9 @@ function im() {
|
|
|
5697
5697
|
return rn > E && (rn = E), function() {
|
|
5698
5698
|
do {
|
|
5699
5699
|
if (et) {
|
|
5700
|
-
var
|
|
5701
|
-
if (
|
|
5702
|
-
return
|
|
5700
|
+
var Gr = et();
|
|
5701
|
+
if (Gr !== za)
|
|
5702
|
+
return Gr;
|
|
5703
5703
|
et = null;
|
|
5704
5704
|
}
|
|
5705
5705
|
if (St === rn)
|
|
@@ -5771,8 +5771,8 @@ function im() {
|
|
|
5771
5771
|
var pt = u._tail, St = et < Ve ? Fm(u, Y - 1) : et > Ve ? new ss([], M) : pt;
|
|
5772
5772
|
if (pt && et > Ve && k < D && pt.array.length) {
|
|
5773
5773
|
ce = mo(ce, M);
|
|
5774
|
-
for (var rn = ce,
|
|
5775
|
-
var pi = Ve >>>
|
|
5774
|
+
for (var rn = ce, Gr = le; Gr > w; Gr -= w) {
|
|
5775
|
+
var pi = Ve >>> Gr & S;
|
|
5776
5776
|
rn = rn.array[pi] = mo(rn.array[pi], M);
|
|
5777
5777
|
}
|
|
5778
5778
|
rn.array[Ve >>> w & S] = pt;
|
|
@@ -6149,9 +6149,9 @@ function im() {
|
|
|
6149
6149
|
if (Ve)
|
|
6150
6150
|
return this.cacheResult().__iterate(ge, Ve);
|
|
6151
6151
|
var pt = 0, St = !0, rn = 0;
|
|
6152
|
-
return u.__iterate(function(
|
|
6152
|
+
return u.__iterate(function(Gr, pi) {
|
|
6153
6153
|
if (!(St && (St = pt++ < D)))
|
|
6154
|
-
return rn++, ge(
|
|
6154
|
+
return rn++, ge(Gr, M ? pi : rn - 1, et) !== !1 && rn !== le;
|
|
6155
6155
|
}), rn;
|
|
6156
6156
|
}, ce.__iteratorUncached = function(ge, Ve) {
|
|
6157
6157
|
if (le !== 0 && Ve)
|
|
@@ -8002,7 +8002,7 @@ let yn = class Jv {
|
|
|
8002
8002
|
}
|
|
8003
8003
|
static selectToolDrawingItem(e, t) {
|
|
8004
8004
|
return e = e.merge({
|
|
8005
|
-
mode:
|
|
8005
|
+
mode: Lr,
|
|
8006
8006
|
drawingSupport: Ie({
|
|
8007
8007
|
type: t
|
|
8008
8008
|
})
|
|
@@ -8662,7 +8662,7 @@ let yn = class Jv {
|
|
|
8662
8662
|
var E, S;
|
|
8663
8663
|
let [x, v] = m.vertices.map(
|
|
8664
8664
|
(b) => d.getIn(["scene", "layers", t, "vertices"]).get(b)
|
|
8665
|
-
).toArray(), _ =
|
|
8665
|
+
).toArray(), _ = $r(x, h[0]) || $r(x, h[1]) || $r(v, h[0]) || $r(v, h[1]), w = E3(
|
|
8666
8666
|
h[0],
|
|
8667
8667
|
h[1],
|
|
8668
8668
|
x,
|
|
@@ -8683,7 +8683,7 @@ let yn = class Jv {
|
|
|
8683
8683
|
x.y,
|
|
8684
8684
|
v.x,
|
|
8685
8685
|
v.y
|
|
8686
|
-
), T =
|
|
8686
|
+
), T = $r(
|
|
8687
8687
|
b[1],
|
|
8688
8688
|
m.vertices.get(1)
|
|
8689
8689
|
) ? 1 - q.offset : q.offset, I = Ku(
|
|
@@ -8757,7 +8757,7 @@ let yn = class Jv {
|
|
|
8757
8757
|
}
|
|
8758
8758
|
static selectToolDrawingLine(e, t) {
|
|
8759
8759
|
return e = e.merge({
|
|
8760
|
-
mode:
|
|
8760
|
+
mode: zr,
|
|
8761
8761
|
drawingSupport: Ie({
|
|
8762
8762
|
type: t
|
|
8763
8763
|
})
|
|
@@ -8824,7 +8824,7 @@ let yn = class Jv {
|
|
|
8824
8824
|
t,
|
|
8825
8825
|
r
|
|
8826
8826
|
).updatedState, e = ot.detectAndUpdateAreas(e, i).updatedState, e = e.merge({
|
|
8827
|
-
mode:
|
|
8827
|
+
mode: zr,
|
|
8828
8828
|
snapElements: We(),
|
|
8829
8829
|
activeSnapElement: null
|
|
8830
8830
|
}), { updatedState: e };
|
|
@@ -8917,7 +8917,7 @@ let yn = class Jv {
|
|
|
8917
8917
|
e,
|
|
8918
8918
|
s,
|
|
8919
8919
|
l.vertices.get(1)
|
|
8920
|
-
).updatedState, e = Ar.remove(e, s, a).updatedState,
|
|
8920
|
+
).updatedState, e = Ar.remove(e, s, a).updatedState, !$r(
|
|
8921
8921
|
{ x: w, y: E },
|
|
8922
8922
|
{ x: S, y: b }
|
|
8923
8923
|
)) {
|
|
@@ -9016,7 +9016,7 @@ let yn = class Jv {
|
|
|
9016
9016
|
}
|
|
9017
9017
|
}, hn = class {
|
|
9018
9018
|
static add(e, t, r, i, s, o) {
|
|
9019
|
-
let a = e.getIn(["scene", "layers", t, "vertices"]).find((l) =>
|
|
9019
|
+
let a = e.getIn(["scene", "layers", t, "vertices"]).find((l) => $r(l, { x: r, y: i }));
|
|
9020
9020
|
return a ? a = a.update(
|
|
9021
9021
|
s,
|
|
9022
9022
|
(l) => l.push(o)
|
|
@@ -9175,7 +9175,7 @@ let yn = class Jv {
|
|
|
9175
9175
|
f.y,
|
|
9176
9176
|
p.x,
|
|
9177
9177
|
p.y
|
|
9178
|
-
), b =
|
|
9178
|
+
), b = $r(
|
|
9179
9179
|
m[1],
|
|
9180
9180
|
o.getIn([
|
|
9181
9181
|
"scene",
|
|
@@ -9220,7 +9220,7 @@ let yn = class Jv {
|
|
|
9220
9220
|
o,
|
|
9221
9221
|
r,
|
|
9222
9222
|
i
|
|
9223
|
-
).updatedState, o = Jt.remove(o, r, a).updatedState,
|
|
9223
|
+
).updatedState, o = Jt.remove(o, r, a).updatedState, !$r(f, p)) {
|
|
9224
9224
|
let w = Jt.createAvoidingIntersections(
|
|
9225
9225
|
o,
|
|
9226
9226
|
r,
|
|
@@ -9543,7 +9543,7 @@ let ot = class {
|
|
|
9543
9543
|
t,
|
|
9544
9544
|
"vertices",
|
|
9545
9545
|
r
|
|
9546
|
-
]), s = e.getIn(["scene", "layers", t, "vertices"]).filter((o) => o.id !== r &&
|
|
9546
|
+
]), s = e.getIn(["scene", "layers", t, "vertices"]).filter((o) => o.id !== r && $r(i, o));
|
|
9547
9547
|
return s.isEmpty() ? { updatedState: e } : (s.forEach((o) => {
|
|
9548
9548
|
let a = o.lines.reduce(
|
|
9549
9549
|
(c, h) => (c = c.updateIn(
|
|
@@ -10826,7 +10826,7 @@ Qu.buildMessage = function(n, e) {
|
|
|
10826
10826
|
}
|
|
10827
10827
|
return "Expected " + a(n) + " but " + l(e) + " found.";
|
|
10828
10828
|
};
|
|
10829
|
-
const Er = "idle", si = "panning", oi = "zooming", Pr = "auto", Ri = "none",
|
|
10829
|
+
const Er = "idle", si = "panning", oi = "zooming", Pr = "auto", Ri = "none", qr = "pan", ai = "zoom-in", Ii = "zoom-out", bu = "none", Ei = "top", xr = "right", bi = "bottom", $n = "left", eh = "zoom", Wl = "pan", la = "center", ca = "left", om = "right", ua = "top", am = "bottom", Sg = "cover";
|
|
10830
10830
|
function Eg(n, e) {
|
|
10831
10831
|
var t = Object.keys(n);
|
|
10832
10832
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -10899,7 +10899,7 @@ function Yt(n, e) {
|
|
|
10899
10899
|
function BS(n) {
|
|
10900
10900
|
return n !== null && typeof n == "object" && n.hasOwnProperty("version") && n.version === ox;
|
|
10901
10901
|
}
|
|
10902
|
-
function
|
|
10902
|
+
function Dr(n, e, t) {
|
|
10903
10903
|
let r = Gl(n), i = sx(r);
|
|
10904
10904
|
return nx(i, {
|
|
10905
10905
|
x: e,
|
|
@@ -11072,7 +11072,7 @@ function JS(n, e, t, r) {
|
|
|
11072
11072
|
let {
|
|
11073
11073
|
endX: i,
|
|
11074
11074
|
endY: s
|
|
11075
|
-
} = n, o =
|
|
11075
|
+
} = n, o = Dr(n, i, s), a = Dr(n, e, t), l = a.x - o.x, c = a.y - o.y, h = lm(n, l, c, r);
|
|
11076
11076
|
return Yt(h, {
|
|
11077
11077
|
mode: si,
|
|
11078
11078
|
endX: e,
|
|
@@ -11283,7 +11283,7 @@ function rE(n, e) {
|
|
|
11283
11283
|
let {
|
|
11284
11284
|
viewerWidth: t,
|
|
11285
11285
|
viewerHeight: r
|
|
11286
|
-
} = n, i =
|
|
11286
|
+
} = n, i = Dr(n, t / 2, r / 2);
|
|
11287
11287
|
return Ca(n, i.x, i.y, e);
|
|
11288
11288
|
}
|
|
11289
11289
|
function iE(n, e, t) {
|
|
@@ -11306,12 +11306,12 @@ function yd(n, e, t, r) {
|
|
|
11306
11306
|
let {
|
|
11307
11307
|
startX: s,
|
|
11308
11308
|
startY: o
|
|
11309
|
-
} = n, a =
|
|
11309
|
+
} = n, a = Dr(n, s, o), l = Dr(n, e, t);
|
|
11310
11310
|
if (Math.abs(s - e) > 7 && Math.abs(o - t) > 7) {
|
|
11311
11311
|
let c = hx(a, l);
|
|
11312
11312
|
return fx(n, c.x, c.y, c.width, c.height);
|
|
11313
11313
|
} else {
|
|
11314
|
-
let c =
|
|
11314
|
+
let c = Dr(n, e, t);
|
|
11315
11315
|
return Ca(n, c.x, c.y, r);
|
|
11316
11316
|
}
|
|
11317
11317
|
}
|
|
@@ -11337,14 +11337,14 @@ function px(n, e, t, r, i) {
|
|
|
11337
11337
|
let l = r;
|
|
11338
11338
|
switch (t) {
|
|
11339
11339
|
case Ii:
|
|
11340
|
-
let c =
|
|
11340
|
+
let c = Dr(r, o, a);
|
|
11341
11341
|
l = Ca(r, c.x, c.y, 1 / i.scaleFactor);
|
|
11342
11342
|
break;
|
|
11343
11343
|
case ai:
|
|
11344
11344
|
l = iE(r, o, a);
|
|
11345
11345
|
break;
|
|
11346
11346
|
case Pr:
|
|
11347
|
-
case
|
|
11347
|
+
case qr:
|
|
11348
11348
|
l = ZS(r, o, a);
|
|
11349
11349
|
break;
|
|
11350
11350
|
default:
|
|
@@ -11364,7 +11364,7 @@ function mx(n, e, t, r, i) {
|
|
|
11364
11364
|
r.mode === oi && (c = l ? yd(r, o, a, i.scaleFactor) : sE(r, o, a));
|
|
11365
11365
|
break;
|
|
11366
11366
|
case Pr:
|
|
11367
|
-
case
|
|
11367
|
+
case qr:
|
|
11368
11368
|
r.mode === si && (c = l ? ux(r) : JS(r, o, a, i.preventPanOutside ? 20 : void 0));
|
|
11369
11369
|
break;
|
|
11370
11370
|
default:
|
|
@@ -11387,7 +11387,7 @@ function gx(n, e, t, r, i) {
|
|
|
11387
11387
|
r.mode === oi && (l = yd(r, o, a, i.scaleFactor));
|
|
11388
11388
|
break;
|
|
11389
11389
|
case Pr:
|
|
11390
|
-
case
|
|
11390
|
+
case qr:
|
|
11391
11391
|
r.mode === si && (l = ux(r));
|
|
11392
11392
|
break;
|
|
11393
11393
|
default:
|
|
@@ -11406,7 +11406,7 @@ function aE(n, e, t, r, i) {
|
|
|
11406
11406
|
const {
|
|
11407
11407
|
modifierKeys: c = []
|
|
11408
11408
|
} = i;
|
|
11409
|
-
let h =
|
|
11409
|
+
let h = Dr(r, o, a), f = (m, x) => m || n.getModifierState(x), d = c.reduce(f, !1) ? 1 / i.scaleFactor : i.scaleFactor;
|
|
11410
11410
|
l = Ca(r, h.x, h.y, d);
|
|
11411
11411
|
}
|
|
11412
11412
|
return n.preventDefault(), l;
|
|
@@ -11418,7 +11418,7 @@ function lE(n, e, t, r, i) {
|
|
|
11418
11418
|
y: a
|
|
11419
11419
|
} = s || Pa(n, e);
|
|
11420
11420
|
if (!i.detectWheel) return r;
|
|
11421
|
-
let l = Math.max(-1, Math.min(1, n.deltaY)), c = oE(l, -1, 1, i.scaleFactorOnWheel, 1 / i.scaleFactorOnWheel), h =
|
|
11421
|
+
let l = Math.max(-1, Math.min(1, n.deltaY)), c = oE(l, -1, 1, i.scaleFactorOnWheel, 1 / i.scaleFactorOnWheel), h = Dr(r, o, a), f = Ca(r, h.x, h.y, c);
|
|
11422
11422
|
return n.preventDefault(), f;
|
|
11423
11423
|
}
|
|
11424
11424
|
function Ag(n, e, t, r, i) {
|
|
@@ -11440,7 +11440,7 @@ class uE extends cx {
|
|
|
11440
11440
|
SVGViewer: t,
|
|
11441
11441
|
value: r
|
|
11442
11442
|
} = this, i = Pa(e, t);
|
|
11443
|
-
this._cachePoint =
|
|
11443
|
+
this._cachePoint = Dr(r, i.x, i.y);
|
|
11444
11444
|
}
|
|
11445
11445
|
return this._cachePoint;
|
|
11446
11446
|
}
|
|
@@ -11499,7 +11499,7 @@ class wu extends cx {
|
|
|
11499
11499
|
static touchesToPoints(e, t, r) {
|
|
11500
11500
|
let i = [];
|
|
11501
11501
|
for (let s = 0; s < e.length; s++) {
|
|
11502
|
-
let o = e[s], a = t.getBoundingClientRect(), l = o.clientX - Math.round(a.left), c = o.clientY - Math.round(a.top), h =
|
|
11502
|
+
let o = e[s], a = t.getBoundingClientRect(), l = o.clientX - Math.round(a.left), c = o.clientY - Math.round(a.top), h = Dr(r, l, c);
|
|
11503
11503
|
i.push(Cg(Cg({}, h), {}, {
|
|
11504
11504
|
identifier: o.identifier
|
|
11505
11505
|
}));
|
|
@@ -11619,7 +11619,7 @@ function um(n, e, t, r, i, s) {
|
|
|
11619
11619
|
case Ii:
|
|
11620
11620
|
case ai:
|
|
11621
11621
|
case Pr:
|
|
11622
|
-
case
|
|
11622
|
+
case qr:
|
|
11623
11623
|
return n.stopPropagation(), n.preventDefault(), s(n, e, t, o, i, l);
|
|
11624
11624
|
default:
|
|
11625
11625
|
return o;
|
|
@@ -11629,7 +11629,7 @@ function xx(n, e, t, r, i) {
|
|
|
11629
11629
|
const {
|
|
11630
11630
|
left: s,
|
|
11631
11631
|
top: o
|
|
11632
|
-
} = e.getBoundingClientRect(), a = n.touches[0].clientX - Math.round(s), l = n.touches[0].clientY - Math.round(o), c = n.touches[1].clientX - Math.round(s), h = n.touches[1].clientY - Math.round(o), f = Math.sqrt(Math.pow(c - a, 2) + Math.pow(h - l, 2)), p = _x(r) ? r.pinchPointDistance : f, d =
|
|
11632
|
+
} = e.getBoundingClientRect(), a = n.touches[0].clientX - Math.round(s), l = n.touches[0].clientY - Math.round(o), c = n.touches[1].clientX - Math.round(s), h = n.touches[1].clientY - Math.round(o), f = Math.sqrt(Math.pow(c - a, 2) + Math.pow(h - l, 2)), p = _x(r) ? r.pinchPointDistance : f, d = Dr(r, (a + c) / 2, (l + h) / 2);
|
|
11633
11633
|
let m = f / p;
|
|
11634
11634
|
if (th(r, m))
|
|
11635
11635
|
return r;
|
|
@@ -11949,11 +11949,11 @@ function Tx(n) {
|
|
|
11949
11949
|
onClick: (d) => c(d, Ri)
|
|
11950
11950
|
}, /* @__PURE__ */ Pe.createElement(PE, null)), /* @__PURE__ */ Pe.createElement(Uo, {
|
|
11951
11951
|
toolbarPosition: o,
|
|
11952
|
-
active: e ===
|
|
11952
|
+
active: e === qr,
|
|
11953
11953
|
activeColor: s,
|
|
11954
11954
|
name: "select-tool-pan",
|
|
11955
11955
|
title: "Pan",
|
|
11956
|
-
onClick: (d) => c(d,
|
|
11956
|
+
onClick: (d) => c(d, qr)
|
|
11957
11957
|
}, /* @__PURE__ */ Pe.createElement(IE, null)), /* @__PURE__ */ Pe.createElement(Uo, {
|
|
11958
11958
|
toolbarPosition: o,
|
|
11959
11959
|
active: e === ai,
|
|
@@ -12403,10 +12403,10 @@ class nh extends Pe.Component {
|
|
|
12403
12403
|
customToolbar: o = Tx,
|
|
12404
12404
|
customMiniature: a = Px
|
|
12405
12405
|
} = e, l = i === Pr && s.mode === si && s.startX !== s.endX && s.startY !== s.endY, c;
|
|
12406
|
-
i ===
|
|
12407
|
-
let h = [
|
|
12406
|
+
i === qr && (c = _c(s.mode === si ? "grabbing" : "grab")), i === ai && (c = _c("zoom-in")), i === Ii && (c = _c("zoom-out")), l && (c = _c("grabbing"));
|
|
12407
|
+
let h = [qr, ai, Ii].indexOf(i) >= 0;
|
|
12408
12408
|
h = h || l;
|
|
12409
|
-
const f = this.props.detectPinchGesture || [
|
|
12409
|
+
const f = this.props.detectPinchGesture || [qr, Pr].indexOf(this.getTool()) !== -1 ? "none" : void 0, p = {
|
|
12410
12410
|
display: "block",
|
|
12411
12411
|
cursor: c,
|
|
12412
12412
|
touchAction: f
|
|
@@ -12578,7 +12578,7 @@ nh.propTypes = {
|
|
|
12578
12578
|
/**
|
|
12579
12579
|
* current active tool (TOOL_NONE, TOOL_PAN, TOOL_ZOOM_IN, TOOL_ZOOM_OUT)
|
|
12580
12580
|
*/
|
|
12581
|
-
tool: _e.oneOf([Pr, Ri,
|
|
12581
|
+
tool: _e.oneOf([Pr, Ri, qr, ai, Ii]).isRequired,
|
|
12582
12582
|
/**
|
|
12583
12583
|
* handler tool changed
|
|
12584
12584
|
*/
|
|
@@ -12870,10 +12870,11 @@ const Wt = vy((n) => ({
|
|
|
12870
12870
|
},
|
|
12871
12871
|
selectTool3DView: () => {
|
|
12872
12872
|
n((e) => {
|
|
12873
|
-
const r = Nt.unselectAll(e.planner).updatedState.set("mode",
|
|
12873
|
+
const r = Nt.unselectAll(e.planner).updatedState.set("mode", Ir);
|
|
12874
12874
|
return {
|
|
12875
12875
|
...e,
|
|
12876
|
-
planner: r
|
|
12876
|
+
planner: r,
|
|
12877
|
+
showDimensions: !1
|
|
12877
12878
|
};
|
|
12878
12879
|
});
|
|
12879
12880
|
},
|
|
@@ -15841,7 +15842,7 @@ const tf = {
|
|
|
15841
15842
|
userSelect: "none"
|
|
15842
15843
|
};
|
|
15843
15844
|
function EM({ length: n, unit: e, transform: t }) {
|
|
15844
|
-
let r = `${e !==
|
|
15845
|
+
let r = `${e !== Or ? xi(n).from(Or).to(e).toFixed(2) : n.toFixed(2)} ${e}`;
|
|
15845
15846
|
return /* @__PURE__ */ C.jsxs("g", { transform: t, children: [
|
|
15846
15847
|
/* @__PURE__ */ C.jsx(
|
|
15847
15848
|
"text",
|
|
@@ -15867,7 +15868,7 @@ const bM = ({
|
|
|
15867
15868
|
showDimensions: s
|
|
15868
15869
|
}) => {
|
|
15869
15870
|
let o = e.vertices.get(n.vertices.get(0)), a = e.vertices.get(n.vertices.get(1));
|
|
15870
|
-
if (o.id === a.id ||
|
|
15871
|
+
if (o.id === a.id || $r(o, a))
|
|
15871
15872
|
return null;
|
|
15872
15873
|
let { x: l, y: c } = o, { x: h, y: f } = a;
|
|
15873
15874
|
l > h && ({ x: l, y: c } = a, { x: h, y: f } = o);
|
|
@@ -16069,7 +16070,7 @@ function Hg(n) {
|
|
|
16069
16070
|
function IM(n) {
|
|
16070
16071
|
switch (n) {
|
|
16071
16072
|
case lo:
|
|
16072
|
-
return
|
|
16073
|
+
return qr;
|
|
16073
16074
|
case oo:
|
|
16074
16075
|
return ai;
|
|
16075
16076
|
case ao:
|
|
@@ -16085,7 +16086,7 @@ function LM(n) {
|
|
|
16085
16086
|
case rr:
|
|
16086
16087
|
case Ai:
|
|
16087
16088
|
case _r:
|
|
16088
|
-
case
|
|
16089
|
+
case Lr:
|
|
16089
16090
|
case ii:
|
|
16090
16091
|
case ri:
|
|
16091
16092
|
case ti:
|
|
@@ -16104,7 +16105,7 @@ function OM(n) {
|
|
|
16104
16105
|
return { cursor: "move" };
|
|
16105
16106
|
case es:
|
|
16106
16107
|
return { cursor: "ew-resize" };
|
|
16107
|
-
case
|
|
16108
|
+
case zr:
|
|
16108
16109
|
case rr:
|
|
16109
16110
|
case Zs:
|
|
16110
16111
|
case Ai:
|
|
@@ -16122,7 +16123,7 @@ function qM(n) {
|
|
|
16122
16123
|
case ii:
|
|
16123
16124
|
case ri:
|
|
16124
16125
|
case _r:
|
|
16125
|
-
case
|
|
16126
|
+
case Lr:
|
|
16126
16127
|
return !0;
|
|
16127
16128
|
default:
|
|
16128
16129
|
return !1;
|
|
@@ -16182,7 +16183,7 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16182
16183
|
rollback: ne,
|
|
16183
16184
|
setViewer: Z
|
|
16184
16185
|
} = Wt(), { viewer2D: ue, scene: ve, mode: ee } = i, Ce = ve.selectedLayer ?? "";
|
|
16185
|
-
|
|
16186
|
+
Fr(() => {
|
|
16186
16187
|
r.current && (Z(r.current), r.current.setPointOnViewerCenter(
|
|
16187
16188
|
ve.width / 2,
|
|
16188
16189
|
ve.height / 2,
|
|
@@ -16203,7 +16204,7 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16203
16204
|
case _r:
|
|
16204
16205
|
m(Ce, lt, Ye);
|
|
16205
16206
|
break;
|
|
16206
|
-
case
|
|
16207
|
+
case Lr:
|
|
16207
16208
|
x(Ce, lt, Ye);
|
|
16208
16209
|
break;
|
|
16209
16210
|
case ii:
|
|
@@ -16290,7 +16291,7 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16290
16291
|
case Ai:
|
|
16291
16292
|
N(Ye, U, i.snapMask), I(Ce, Ye, U, i.snapMask);
|
|
16292
16293
|
break;
|
|
16293
|
-
case
|
|
16294
|
+
case zr:
|
|
16294
16295
|
Q(Ce, Ye, U, i.snapMask);
|
|
16295
16296
|
break;
|
|
16296
16297
|
case rr:
|
|
@@ -16299,7 +16300,7 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16299
16300
|
case _r:
|
|
16300
16301
|
J(Ce, Ye, U);
|
|
16301
16302
|
break;
|
|
16302
|
-
case
|
|
16303
|
+
case Lr:
|
|
16303
16304
|
ie(Ce, Ye, U);
|
|
16304
16305
|
break;
|
|
16305
16306
|
case ti:
|
|
@@ -16323,10 +16324,10 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16323
16324
|
[
|
|
16324
16325
|
Zs,
|
|
16325
16326
|
Ai,
|
|
16326
|
-
|
|
16327
|
+
zr,
|
|
16327
16328
|
rr,
|
|
16328
16329
|
_r,
|
|
16329
|
-
|
|
16330
|
+
Lr
|
|
16330
16331
|
].includes(ee) && ne();
|
|
16331
16332
|
}, ze = (Ee) => {
|
|
16332
16333
|
h(Ee.a), c(Ee);
|
|
@@ -16335,7 +16336,7 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16335
16336
|
case Ri:
|
|
16336
16337
|
l();
|
|
16337
16338
|
break;
|
|
16338
|
-
case
|
|
16339
|
+
case qr:
|
|
16339
16340
|
a();
|
|
16340
16341
|
break;
|
|
16341
16342
|
case ai:
|
|
@@ -16402,7 +16403,7 @@ const DM = ({ width: n, height: e, catalog: t }) => {
|
|
|
16402
16403
|
* Copyright 2010-2025 Three.js Authors
|
|
16403
16404
|
* SPDX-License-Identifier: MIT
|
|
16404
16405
|
*/
|
|
16405
|
-
const dm = "179", Wo = { ROTATE: 0, DOLLY: 1, PAN: 2 }, zo = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, NM = 0, Wg = 1, UM = 2, Ix = 1, FM = 2, Wi = 3, Ts = 0, ir = 1, yi = 2, Ss = 0, jo = 1, jg = 2, Xg = 3, Yg = 4, zM = 5, Hs = 100, kM = 101, BM = 102, VM = 103, HM = 104, GM = 200, WM = 201, jM = 202, XM = 203, bd = 204, Md = 205, YM = 206, $M = 207, KM = 208, ZM = 209, JM = 210, QM = 211, e4 = 212, t4 = 213, n4 = 214, wd = 0, Td = 1, Ad = 2, fa = 3, Rd = 4, Cd = 5, Pd = 6, Id = 7, pm = 0, r4 = 1, i4 = 2, Es = 0, s4 = 1, o4 = 2, a4 = 3, l4 = 4, c4 = 5, u4 = 6, h4 = 7, Lx = 300, da = 301, pa = 302, Ld = 303, Od = 304, rh = 306,
|
|
16406
|
+
const dm = "179", Wo = { ROTATE: 0, DOLLY: 1, PAN: 2 }, zo = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, NM = 0, Wg = 1, UM = 2, Ix = 1, FM = 2, Wi = 3, Ts = 0, ir = 1, yi = 2, Ss = 0, jo = 1, jg = 2, Xg = 3, Yg = 4, zM = 5, Hs = 100, kM = 101, BM = 102, VM = 103, HM = 104, GM = 200, WM = 201, jM = 202, XM = 203, bd = 204, Md = 205, YM = 206, $M = 207, KM = 208, ZM = 209, JM = 210, QM = 211, e4 = 212, t4 = 213, n4 = 214, wd = 0, Td = 1, Ad = 2, fa = 3, Rd = 4, Cd = 5, Pd = 6, Id = 7, pm = 0, r4 = 1, i4 = 2, Es = 0, s4 = 1, o4 = 2, a4 = 3, l4 = 4, c4 = 5, u4 = 6, h4 = 7, Lx = 300, da = 301, pa = 302, Ld = 303, Od = 304, rh = 306, Zr = 1e3, Ws = 1001, qd = 1002, ei = 1003, f4 = 1004, xc = 1005, Mi = 1006, rf = 1007, js = 1008, Li = 1009, Ox = 1010, qx = 1011, bl = 1012, mm = 1013, Js = 1014, Ki = 1015, jl = 1016, gm = 1017, _m = 1018, Ml = 1020, Dx = 35902, Nx = 1021, Ux = 1022, Jr = 1023, wl = 1026, Tl = 1027, Fx = 1028, vm = 1029, zx = 1030, xm = 1031, ym = 1033, ru = 33776, iu = 33777, su = 33778, ou = 33779, Dd = 35840, Nd = 35841, Ud = 35842, Fd = 35843, zd = 36196, kd = 37492, Bd = 37496, Vd = 37808, Hd = 37809, Gd = 37810, Wd = 37811, jd = 37812, Xd = 37813, Yd = 37814, $d = 37815, Kd = 37816, Zd = 37817, Jd = 37818, Qd = 37819, ep = 37820, tp = 37821, au = 36492, np = 36494, rp = 36495, kx = 36283, ip = 36284, sp = 36285, op = 36286, d4 = 3200, p4 = 3201, Sm = 0, m4 = 1, _s = "", hr = "srgb", ma = "srgb-linear", Cu = "linear", Ft = "srgb", So = 7680, $g = 519, g4 = 512, _4 = 513, v4 = 514, Bx = 515, x4 = 516, y4 = 517, S4 = 518, E4 = 519, Kg = 35044, Zg = "300 es", wi = 2e3, Pu = 2001;
|
|
16406
16407
|
class co {
|
|
16407
16408
|
/**
|
|
16408
16409
|
* Adds the given event listener to the given event type.
|
|
@@ -18917,7 +18918,7 @@ class Un extends co {
|
|
|
18917
18918
|
* @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
|
|
18918
18919
|
* @param {string} [colorSpace=NoColorSpace] - The color space.
|
|
18919
18920
|
*/
|
|
18920
|
-
constructor(e = Un.DEFAULT_IMAGE, t = Un.DEFAULT_MAPPING, r = Ws, i = Ws, s = Mi, o = js, a =
|
|
18921
|
+
constructor(e = Un.DEFAULT_IMAGE, t = Un.DEFAULT_MAPPING, r = Ws, i = Ws, s = Mi, o = js, a = Jr, l = Li, c = Un.DEFAULT_ANISOTROPY, h = _s) {
|
|
18921
18922
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: P4++ }), this.uuid = Ia(), this.name = "", this.source = new Em(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = r, this.wrapT = i, this.magFilter = s, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new Ne(0, 0), this.repeat = new Ne(1, 1), this.center = new Ne(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new mt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
|
|
18922
18923
|
}
|
|
18923
18924
|
/**
|
|
@@ -19067,7 +19068,7 @@ class Un extends co {
|
|
|
19067
19068
|
if (this.mapping !== Lx) return e;
|
|
19068
19069
|
if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
|
|
19069
19070
|
switch (this.wrapS) {
|
|
19070
|
-
case
|
|
19071
|
+
case Zr:
|
|
19071
19072
|
e.x = e.x - Math.floor(e.x);
|
|
19072
19073
|
break;
|
|
19073
19074
|
case Ws:
|
|
@@ -19079,7 +19080,7 @@ class Un extends co {
|
|
|
19079
19080
|
}
|
|
19080
19081
|
if (e.y < 0 || e.y > 1)
|
|
19081
19082
|
switch (this.wrapT) {
|
|
19082
|
-
case
|
|
19083
|
+
case Zr:
|
|
19083
19084
|
e.y = e.y - Math.floor(e.y);
|
|
19084
19085
|
break;
|
|
19085
19086
|
case Ws:
|
|
@@ -19826,7 +19827,7 @@ class Hx extends Un {
|
|
|
19826
19827
|
* @param {number} [depth=1] - The depth of the texture.
|
|
19827
19828
|
*/
|
|
19828
19829
|
constructor(e = null, t = 1, r = 1, i = 1) {
|
|
19829
|
-
super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter =
|
|
19830
|
+
super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter = ei, this.minFilter = ei, this.wrapR = Ws, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
|
|
19830
19831
|
}
|
|
19831
19832
|
/**
|
|
19832
19833
|
* Describes that a specific layer of the texture needs to be updated.
|
|
@@ -19857,7 +19858,7 @@ class L4 extends Un {
|
|
|
19857
19858
|
* @param {number} [depth=1] - The depth of the texture.
|
|
19858
19859
|
*/
|
|
19859
19860
|
constructor(e = null, t = 1, r = 1, i = 1) {
|
|
19860
|
-
super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter =
|
|
19861
|
+
super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter = ei, this.minFilter = ei, this.wrapR = Ws, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
19861
19862
|
}
|
|
19862
19863
|
}
|
|
19863
19864
|
class qi {
|
|
@@ -19891,7 +19892,7 @@ class qi {
|
|
|
19891
19892
|
setFromArray(e) {
|
|
19892
19893
|
this.makeEmpty();
|
|
19893
19894
|
for (let t = 0, r = e.length; t < r; t += 3)
|
|
19894
|
-
this.expandByPoint(
|
|
19895
|
+
this.expandByPoint(Wr.fromArray(e, t));
|
|
19895
19896
|
return this;
|
|
19896
19897
|
}
|
|
19897
19898
|
/**
|
|
@@ -19904,7 +19905,7 @@ class qi {
|
|
|
19904
19905
|
setFromBufferAttribute(e) {
|
|
19905
19906
|
this.makeEmpty();
|
|
19906
19907
|
for (let t = 0, r = e.count; t < r; t++)
|
|
19907
|
-
this.expandByPoint(
|
|
19908
|
+
this.expandByPoint(Wr.fromBufferAttribute(e, t));
|
|
19908
19909
|
return this;
|
|
19909
19910
|
}
|
|
19910
19911
|
/**
|
|
@@ -19929,7 +19930,7 @@ class qi {
|
|
|
19929
19930
|
* @return {Box3} A reference to this bounding box.
|
|
19930
19931
|
*/
|
|
19931
19932
|
setFromCenterAndSize(e, t) {
|
|
19932
|
-
const r =
|
|
19933
|
+
const r = Wr.copy(t).multiplyScalar(0.5);
|
|
19933
19934
|
return this.min.copy(e).sub(r), this.max.copy(e).add(r), this;
|
|
19934
19935
|
}
|
|
19935
19936
|
/**
|
|
@@ -20048,7 +20049,7 @@ class qi {
|
|
|
20048
20049
|
const s = r.getAttribute("position");
|
|
20049
20050
|
if (t === !0 && s !== void 0 && e.isInstancedMesh !== !0)
|
|
20050
20051
|
for (let o = 0, a = s.count; o < a; o++)
|
|
20051
|
-
e.isMesh === !0 ? e.getVertexPosition(o,
|
|
20052
|
+
e.isMesh === !0 ? e.getVertexPosition(o, Wr) : Wr.fromBufferAttribute(s, o), Wr.applyMatrix4(e.matrixWorld), this.expandByPoint(Wr);
|
|
20052
20053
|
else
|
|
20053
20054
|
e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), yc.copy(e.boundingBox)) : (r.boundingBox === null && r.computeBoundingBox(), yc.copy(r.boundingBox)), yc.applyMatrix4(e.matrixWorld), this.union(yc);
|
|
20054
20055
|
}
|
|
@@ -20106,7 +20107,7 @@ class qi {
|
|
|
20106
20107
|
* @return {boolean} Whether the given bounding sphere intersects with this bounding box.
|
|
20107
20108
|
*/
|
|
20108
20109
|
intersectsSphere(e) {
|
|
20109
|
-
return this.clampPoint(e.center,
|
|
20110
|
+
return this.clampPoint(e.center, Wr), Wr.distanceToSquared(e.center) <= e.radius * e.radius;
|
|
20110
20111
|
}
|
|
20111
20112
|
/**
|
|
20112
20113
|
* Returns `true` if the given plane intersects with this bounding box.
|
|
@@ -20177,7 +20178,7 @@ class qi {
|
|
|
20177
20178
|
* @return {number} The euclidean distance.
|
|
20178
20179
|
*/
|
|
20179
20180
|
distanceToPoint(e) {
|
|
20180
|
-
return this.clampPoint(e,
|
|
20181
|
+
return this.clampPoint(e, Wr).distanceTo(e);
|
|
20181
20182
|
}
|
|
20182
20183
|
/**
|
|
20183
20184
|
* Returns a bounding sphere that encloses this bounding box.
|
|
@@ -20186,7 +20187,7 @@ class qi {
|
|
|
20186
20187
|
* @return {Sphere} The bounding sphere that encloses this bounding box.
|
|
20187
20188
|
*/
|
|
20188
20189
|
getBoundingSphere(e) {
|
|
20189
|
-
return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(
|
|
20190
|
+
return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(Wr).length() * 0.5), e;
|
|
20190
20191
|
}
|
|
20191
20192
|
/**
|
|
20192
20193
|
* Computes the intersection of this bounding box and the given one, setting the upper
|
|
@@ -20269,7 +20270,7 @@ const Fi = [
|
|
|
20269
20270
|
/* @__PURE__ */ new j(),
|
|
20270
20271
|
/* @__PURE__ */ new j(),
|
|
20271
20272
|
/* @__PURE__ */ new j()
|
|
20272
|
-
],
|
|
20273
|
+
], Wr = /* @__PURE__ */ new j(), yc = /* @__PURE__ */ new qi(), bo = /* @__PURE__ */ new j(), Mo = /* @__PURE__ */ new j(), wo = /* @__PURE__ */ new j(), ls = /* @__PURE__ */ new j(), cs = /* @__PURE__ */ new j(), Ls = /* @__PURE__ */ new j(), $a = /* @__PURE__ */ new j(), Sc = /* @__PURE__ */ new j(), Ec = /* @__PURE__ */ new j(), Os = /* @__PURE__ */ new j();
|
|
20273
20274
|
function uf(n, e, t, r, i) {
|
|
20274
20275
|
for (let s = 0, o = n.length - 3; s <= o; s += 3) {
|
|
20275
20276
|
Os.fromArray(n, s);
|
|
@@ -21372,9 +21373,9 @@ class Gt {
|
|
|
21372
21373
|
const i = this.elements;
|
|
21373
21374
|
let s = To.set(i[0], i[1], i[2]).length();
|
|
21374
21375
|
const o = To.set(i[4], i[5], i[6]).length(), a = To.set(i[8], i[9], i[10]).length();
|
|
21375
|
-
this.determinant() < 0 && (s = -s), e.x = i[12], e.y = i[13], e.z = i[14],
|
|
21376
|
+
this.determinant() < 0 && (s = -s), e.x = i[12], e.y = i[13], e.z = i[14], jr.copy(this);
|
|
21376
21377
|
const c = 1 / s, h = 1 / o, f = 1 / a;
|
|
21377
|
-
return
|
|
21378
|
+
return jr.elements[0] *= c, jr.elements[1] *= c, jr.elements[2] *= c, jr.elements[4] *= h, jr.elements[5] *= h, jr.elements[6] *= h, jr.elements[8] *= f, jr.elements[9] *= f, jr.elements[10] *= f, t.setFromRotationMatrix(jr), r.x = s, r.y = o, r.z = a, this;
|
|
21378
21379
|
}
|
|
21379
21380
|
/**
|
|
21380
21381
|
* Creates a perspective projection matrix. This is used internally by
|
|
@@ -21467,7 +21468,7 @@ class Gt {
|
|
|
21467
21468
|
return e[t] = r[0], e[t + 1] = r[1], e[t + 2] = r[2], e[t + 3] = r[3], e[t + 4] = r[4], e[t + 5] = r[5], e[t + 6] = r[6], e[t + 7] = r[7], e[t + 8] = r[8], e[t + 9] = r[9], e[t + 10] = r[10], e[t + 11] = r[11], e[t + 12] = r[12], e[t + 13] = r[13], e[t + 14] = r[14], e[t + 15] = r[15], e;
|
|
21468
21469
|
}
|
|
21469
21470
|
}
|
|
21470
|
-
const To = /* @__PURE__ */ new j(),
|
|
21471
|
+
const To = /* @__PURE__ */ new j(), jr = /* @__PURE__ */ new Gt(), q4 = /* @__PURE__ */ new j(0, 0, 0), D4 = /* @__PURE__ */ new j(1, 1, 1), hs = /* @__PURE__ */ new j(), wc = /* @__PURE__ */ new j(), cr = /* @__PURE__ */ new j(), n1 = /* @__PURE__ */ new Gt(), r1 = /* @__PURE__ */ new As();
|
|
21471
21472
|
class li {
|
|
21472
21473
|
/**
|
|
21473
21474
|
* Constructs a new euler instance.
|
|
@@ -22397,8 +22398,8 @@ class Ut extends co {
|
|
|
22397
22398
|
Ut.DEFAULT_UP = /* @__PURE__ */ new j(0, 1, 0);
|
|
22398
22399
|
Ut.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
22399
22400
|
Ut.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
22400
|
-
const
|
|
22401
|
-
class
|
|
22401
|
+
const Xr = /* @__PURE__ */ new j(), Bi = /* @__PURE__ */ new j(), gf = /* @__PURE__ */ new j(), Vi = /* @__PURE__ */ new j(), Co = /* @__PURE__ */ new j(), Po = /* @__PURE__ */ new j(), c1 = /* @__PURE__ */ new j(), _f = /* @__PURE__ */ new j(), vf = /* @__PURE__ */ new j(), xf = /* @__PURE__ */ new j(), yf = /* @__PURE__ */ new cn(), Sf = /* @__PURE__ */ new cn(), Ef = /* @__PURE__ */ new cn();
|
|
22402
|
+
class Kr {
|
|
22402
22403
|
/**
|
|
22403
22404
|
* Constructs a new triangle.
|
|
22404
22405
|
*
|
|
@@ -22419,7 +22420,7 @@ class $r {
|
|
|
22419
22420
|
* @return {Vector3} The triangle's normal.
|
|
22420
22421
|
*/
|
|
22421
22422
|
static getNormal(e, t, r, i) {
|
|
22422
|
-
i.subVectors(r, t),
|
|
22423
|
+
i.subVectors(r, t), Xr.subVectors(e, t), i.cross(Xr);
|
|
22423
22424
|
const s = i.lengthSq();
|
|
22424
22425
|
return s > 0 ? i.multiplyScalar(1 / Math.sqrt(s)) : i.set(0, 0, 0);
|
|
22425
22426
|
}
|
|
@@ -22435,8 +22436,8 @@ class $r {
|
|
|
22435
22436
|
* @return {?Vector3} The barycentric coordinates for the given point
|
|
22436
22437
|
*/
|
|
22437
22438
|
static getBarycoord(e, t, r, i, s) {
|
|
22438
|
-
|
|
22439
|
-
const o =
|
|
22439
|
+
Xr.subVectors(i, t), Bi.subVectors(r, t), gf.subVectors(e, t);
|
|
22440
|
+
const o = Xr.dot(Xr), a = Xr.dot(Bi), l = Xr.dot(gf), c = Bi.dot(Bi), h = Bi.dot(gf), f = o * c - a * a;
|
|
22440
22441
|
if (f === 0)
|
|
22441
22442
|
return s.set(0, 0, 0), null;
|
|
22442
22443
|
const p = 1 / f, d = (c * l - a * h) * p, m = (o * h - a * l) * p;
|
|
@@ -22497,7 +22498,7 @@ class $r {
|
|
|
22497
22498
|
* @return {boolean} Whether the triangle is oriented towards the given direction or not.
|
|
22498
22499
|
*/
|
|
22499
22500
|
static isFrontFacing(e, t, r, i) {
|
|
22500
|
-
return
|
|
22501
|
+
return Xr.subVectors(r, t), Bi.subVectors(e, t), Xr.cross(Bi).dot(i) < 0;
|
|
22501
22502
|
}
|
|
22502
22503
|
/**
|
|
22503
22504
|
* Sets the triangle's vertices by copying the given values.
|
|
@@ -22557,7 +22558,7 @@ class $r {
|
|
|
22557
22558
|
* @return {number} The triangle's area.
|
|
22558
22559
|
*/
|
|
22559
22560
|
getArea() {
|
|
22560
|
-
return
|
|
22561
|
+
return Xr.subVectors(this.c, this.b), Bi.subVectors(this.a, this.b), Xr.cross(Bi).length() * 0.5;
|
|
22561
22562
|
}
|
|
22562
22563
|
/**
|
|
22563
22564
|
* Computes the midpoint of the triangle.
|
|
@@ -22575,7 +22576,7 @@ class $r {
|
|
|
22575
22576
|
* @return {Vector3} The triangle's normal.
|
|
22576
22577
|
*/
|
|
22577
22578
|
getNormal(e) {
|
|
22578
|
-
return
|
|
22579
|
+
return Kr.getNormal(this.a, this.b, this.c, e);
|
|
22579
22580
|
}
|
|
22580
22581
|
/**
|
|
22581
22582
|
* Computes a plane the triangle lies within.
|
|
@@ -22595,7 +22596,7 @@ class $r {
|
|
|
22595
22596
|
* @return {?Vector3} The barycentric coordinates for the given point
|
|
22596
22597
|
*/
|
|
22597
22598
|
getBarycoord(e, t) {
|
|
22598
|
-
return
|
|
22599
|
+
return Kr.getBarycoord(e, this.a, this.b, this.c, t);
|
|
22599
22600
|
}
|
|
22600
22601
|
/**
|
|
22601
22602
|
* Computes the value barycentrically interpolated for the given point on the
|
|
@@ -22609,7 +22610,7 @@ class $r {
|
|
|
22609
22610
|
* @return {?Vector3} The interpolated value.
|
|
22610
22611
|
*/
|
|
22611
22612
|
getInterpolation(e, t, r, i, s) {
|
|
22612
|
-
return
|
|
22613
|
+
return Kr.getInterpolation(e, this.a, this.b, this.c, t, r, i, s);
|
|
22613
22614
|
}
|
|
22614
22615
|
/**
|
|
22615
22616
|
* Returns `true` if the given point, when projected onto the plane of the
|
|
@@ -22620,7 +22621,7 @@ class $r {
|
|
|
22620
22621
|
* triangle, lies within the triangle or not.
|
|
22621
22622
|
*/
|
|
22622
22623
|
containsPoint(e) {
|
|
22623
|
-
return
|
|
22624
|
+
return Kr.containsPoint(e, this.a, this.b, this.c);
|
|
22624
22625
|
}
|
|
22625
22626
|
/**
|
|
22626
22627
|
* Returns `true` if the triangle is oriented towards the given direction.
|
|
@@ -22629,7 +22630,7 @@ class $r {
|
|
|
22629
22630
|
* @return {boolean} Whether the triangle is oriented towards the given direction or not.
|
|
22630
22631
|
*/
|
|
22631
22632
|
isFrontFacing(e) {
|
|
22632
|
-
return
|
|
22633
|
+
return Kr.isFrontFacing(this.a, this.b, this.c, e);
|
|
22633
22634
|
}
|
|
22634
22635
|
/**
|
|
22635
22636
|
* Returns `true` if this triangle intersects with the given box.
|
|
@@ -23493,7 +23494,7 @@ class Ys extends uo {
|
|
|
23493
23494
|
}
|
|
23494
23495
|
const pn = /* @__PURE__ */ new j(), Rc = /* @__PURE__ */ new Ne();
|
|
23495
23496
|
let B4 = 0;
|
|
23496
|
-
class
|
|
23497
|
+
class Nr {
|
|
23497
23498
|
/**
|
|
23498
23499
|
* Constructs a new buffer attribute.
|
|
23499
23500
|
*
|
|
@@ -23815,7 +23816,7 @@ class Dr {
|
|
|
23815
23816
|
return this.name !== "" && (e.name = this.name), this.usage !== Kg && (e.usage = this.usage), e;
|
|
23816
23817
|
}
|
|
23817
23818
|
}
|
|
23818
|
-
class Wx extends
|
|
23819
|
+
class Wx extends Nr {
|
|
23819
23820
|
/**
|
|
23820
23821
|
* Constructs a new buffer attribute.
|
|
23821
23822
|
*
|
|
@@ -23827,7 +23828,7 @@ class Wx extends Dr {
|
|
|
23827
23828
|
super(new Uint16Array(e), t, r);
|
|
23828
23829
|
}
|
|
23829
23830
|
}
|
|
23830
|
-
class jx extends
|
|
23831
|
+
class jx extends Nr {
|
|
23831
23832
|
/**
|
|
23832
23833
|
* Constructs a new buffer attribute.
|
|
23833
23834
|
*
|
|
@@ -23839,7 +23840,7 @@ class jx extends Dr {
|
|
|
23839
23840
|
super(new Uint32Array(e), t, r);
|
|
23840
23841
|
}
|
|
23841
23842
|
}
|
|
23842
|
-
class jn extends
|
|
23843
|
+
class jn extends Nr {
|
|
23843
23844
|
/**
|
|
23844
23845
|
* Constructs a new buffer attribute.
|
|
23845
23846
|
*
|
|
@@ -24168,7 +24169,7 @@ class or extends co {
|
|
|
24168
24169
|
return;
|
|
24169
24170
|
}
|
|
24170
24171
|
const r = t.position, i = t.normal, s = t.uv;
|
|
24171
|
-
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new
|
|
24172
|
+
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new Nr(new Float32Array(4 * r.count), 4));
|
|
24172
24173
|
const o = this.getAttribute("tangent"), a = [], l = [];
|
|
24173
24174
|
for (let O = 0; O < r.count; O++)
|
|
24174
24175
|
a[O] = new j(), l[O] = new j();
|
|
@@ -24217,7 +24218,7 @@ class or extends co {
|
|
|
24217
24218
|
if (t !== void 0) {
|
|
24218
24219
|
let r = this.getAttribute("normal");
|
|
24219
24220
|
if (r === void 0)
|
|
24220
|
-
r = new
|
|
24221
|
+
r = new Nr(new Float32Array(t.count * 3), 3), this.setAttribute("normal", r);
|
|
24221
24222
|
else
|
|
24222
24223
|
for (let p = 0, d = r.count; p < d; p++)
|
|
24223
24224
|
r.setXYZ(p, 0, 0, 0);
|
|
@@ -24257,7 +24258,7 @@ class or extends co {
|
|
|
24257
24258
|
for (let _ = 0; _ < h; _++)
|
|
24258
24259
|
p[m++] = c[d++];
|
|
24259
24260
|
}
|
|
24260
|
-
return new
|
|
24261
|
+
return new Nr(p, h, f);
|
|
24261
24262
|
}
|
|
24262
24263
|
if (this.index === null)
|
|
24263
24264
|
return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
|
|
@@ -24498,7 +24499,7 @@ function Dc(n, e, t, r, i, s, o, a, l, c) {
|
|
|
24498
24499
|
const h = H4(n, e, t, r, Pc, Ic, Lc, f1);
|
|
24499
24500
|
if (h) {
|
|
24500
24501
|
const f = new j();
|
|
24501
|
-
|
|
24502
|
+
Kr.getBarycoord(f1, Pc, Ic, Lc, f), i && (h.uv = Kr.getInterpolatedAttribute(i, a, l, c, f, new Ne())), s && (h.uv1 = Kr.getInterpolatedAttribute(s, a, l, c, f, new Ne())), o && (h.normal = Kr.getInterpolatedAttribute(o, a, l, c, f, new j()), h.normal.dot(r.direction) > 0 && h.normal.multiplyScalar(-1));
|
|
24502
24503
|
const p = {
|
|
24503
24504
|
a,
|
|
24504
24505
|
b: l,
|
|
@@ -24506,7 +24507,7 @@ function Dc(n, e, t, r, i, s, o, a, l, c) {
|
|
|
24506
24507
|
normal: new j(),
|
|
24507
24508
|
materialIndex: 0
|
|
24508
24509
|
};
|
|
24509
|
-
|
|
24510
|
+
Kr.getNormal(Pc, Ic, Lc, p.normal), h.face = p, h.barycoord = f;
|
|
24510
24511
|
}
|
|
24511
24512
|
return h;
|
|
24512
24513
|
}
|
|
@@ -25842,7 +25843,7 @@ class Kx extends Un {
|
|
|
25842
25843
|
* @param {number} [format=DepthFormat] - The texture format.
|
|
25843
25844
|
* @param {number} [depth=1] - The depth of the texture.
|
|
25844
25845
|
*/
|
|
25845
|
-
constructor(e, t, r = Js, i, s, o, a =
|
|
25846
|
+
constructor(e, t, r = Js, i, s, o, a = ei, l = ei, c, h = wl, f = 1) {
|
|
25846
25847
|
if (h !== wl && h !== Tl)
|
|
25847
25848
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
25848
25849
|
const p = { width: e, height: t, depth: f };
|
|
@@ -28396,7 +28397,7 @@ class $w extends Rl {
|
|
|
28396
28397
|
*/
|
|
28397
28398
|
constructor(e, t = 16776960) {
|
|
28398
28399
|
const r = 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]), i = new Float32Array(24), s = new or();
|
|
28399
|
-
s.setIndex(new
|
|
28400
|
+
s.setIndex(new Nr(r, 1)), s.setAttribute("position", new Nr(i, 3)), super(s, new ah({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
|
|
28400
28401
|
}
|
|
28401
28402
|
/**
|
|
28402
28403
|
* Updates the helper's geometry to match the dimensions of the object,
|
|
@@ -28629,7 +28630,7 @@ function I1(n, e, t, r) {
|
|
|
28629
28630
|
return n * e * 2 / i.components * i.byteLength;
|
|
28630
28631
|
case Ux:
|
|
28631
28632
|
return n * e * 3 / i.components * i.byteLength;
|
|
28632
|
-
case
|
|
28633
|
+
case Jr:
|
|
28633
28634
|
return n * e * 4 / i.components * i.byteLength;
|
|
28634
28635
|
case ym:
|
|
28635
28636
|
return n * e * 4 / i.components * i.byteLength;
|
|
@@ -33305,7 +33306,7 @@ function UT(n, e, t, r) {
|
|
|
33305
33306
|
return i;
|
|
33306
33307
|
}
|
|
33307
33308
|
function o(q) {
|
|
33308
|
-
return !(q !==
|
|
33309
|
+
return !(q !== Jr && r.convert(q) !== n.getParameter(n.IMPLEMENTATION_COLOR_READ_FORMAT));
|
|
33309
33310
|
}
|
|
33310
33311
|
function a(q) {
|
|
33311
33312
|
const O = q === jl && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
|
|
@@ -33545,7 +33546,7 @@ class D1 {
|
|
|
33545
33546
|
minFilter: Mi,
|
|
33546
33547
|
generateMipmaps: !1,
|
|
33547
33548
|
type: jl,
|
|
33548
|
-
format:
|
|
33549
|
+
format: Jr,
|
|
33549
33550
|
colorSpace: ma,
|
|
33550
33551
|
depthBuffer: !1
|
|
33551
33552
|
}, i = N1(e, t, r);
|
|
@@ -33690,7 +33691,7 @@ function BT(n) {
|
|
|
33690
33691
|
S.set(I, _ * m * A);
|
|
33691
33692
|
}
|
|
33692
33693
|
const b = new or();
|
|
33693
|
-
b.setAttribute("position", new
|
|
33694
|
+
b.setAttribute("position", new Nr(w, x)), b.setAttribute("uv", new Nr(E, v)), b.setAttribute("faceIndex", new Nr(S, _)), e.push(b), i > Bo && i--;
|
|
33694
33695
|
}
|
|
33695
33696
|
return { lodPlanes: e, sizeLods: t, sigmas: r };
|
|
33696
33697
|
}
|
|
@@ -35919,7 +35920,7 @@ function EA(n, e, t) {
|
|
|
35919
35920
|
const m = new or();
|
|
35920
35921
|
m.setAttribute(
|
|
35921
35922
|
"position",
|
|
35922
|
-
new
|
|
35923
|
+
new Nr(
|
|
35923
35924
|
new Float32Array([-1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5]),
|
|
35924
35925
|
3
|
|
35925
35926
|
)
|
|
@@ -35942,7 +35943,7 @@ function EA(n, e, t) {
|
|
|
35942
35943
|
i.copy(B.mapSize);
|
|
35943
35944
|
const me = B.getFrameExtents();
|
|
35944
35945
|
if (i.multiply(me), s.copy(B.mapSize), (i.x > h || i.y > h) && (i.x > h && (s.x = Math.floor(h / me.x), i.x = s.x * me.x, B.mapSize.x = s.x), i.y > h && (s.y = Math.floor(h / me.y), i.y = s.y * me.y, B.mapSize.y = s.y)), B.map === null || W === !0 || Q === !0) {
|
|
35945
|
-
const X = this.type !== Wi ? { minFilter:
|
|
35946
|
+
const X = this.type !== Wi ? { minFilter: ei, magFilter: ei } : {};
|
|
35946
35947
|
B.map !== null && B.map.dispose(), B.map = new Qs(i.x, i.y, X), B.map.texture.name = ie.name + ".shadowMap", B.camera.updateProjectionMatrix();
|
|
35947
35948
|
}
|
|
35948
35949
|
n.setRenderTarget(B.map), n.clear();
|
|
@@ -36117,11 +36118,11 @@ function MA(n, e) {
|
|
|
36117
36118
|
setMask: function(dt) {
|
|
36118
36119
|
ye !== dt && !G && (n.stencilMask(dt), ye = dt);
|
|
36119
36120
|
},
|
|
36120
|
-
setFunc: function(dt,
|
|
36121
|
-
(Oe !== dt || ke !==
|
|
36121
|
+
setFunc: function(dt, Hr, Kn) {
|
|
36122
|
+
(Oe !== dt || ke !== Hr || we !== Kn) && (n.stencilFunc(dt, Hr, Kn), Oe = dt, ke = Hr, we = Kn);
|
|
36122
36123
|
},
|
|
36123
|
-
setOp: function(dt,
|
|
36124
|
-
(pe !== dt || Ke !==
|
|
36124
|
+
setOp: function(dt, Hr, Kn) {
|
|
36125
|
+
(pe !== dt || Ke !== Hr || ut !== Kn) && (n.stencilOp(dt, Hr, Kn), pe = dt, Ke = Hr, ut = Kn);
|
|
36125
36126
|
},
|
|
36126
36127
|
setLocked: function(dt) {
|
|
36127
36128
|
G = dt;
|
|
@@ -36464,7 +36465,7 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36464
36465
|
return U ? P === null || P === Js || P === Ml ? te = n.DEPTH24_STENCIL8 : P === Ki ? te = n.DEPTH32F_STENCIL8 : P === bl && (te = n.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : P === null || P === Js || P === Ml ? te = n.DEPTH_COMPONENT24 : P === Ki ? te = n.DEPTH_COMPONENT32F : P === bl && (te = n.DEPTH_COMPONENT16), te;
|
|
36465
36466
|
}
|
|
36466
36467
|
function b(U, P) {
|
|
36467
|
-
return v(U) === !0 || U.isFramebufferTexture && U.minFilter !==
|
|
36468
|
+
return v(U) === !0 || U.isFramebufferTexture && U.minFilter !== ei && U.minFilter !== Mi ? Math.log2(Math.max(P.width, P.height)) + 1 : U.mipmaps !== void 0 && U.mipmaps.length > 0 ? U.mipmaps.length : U.isCompressedTexture && Array.isArray(U.image) ? P.mipmaps.length : 1;
|
|
36468
36469
|
}
|
|
36469
36470
|
function A(U) {
|
|
36470
36471
|
const P = U.target;
|
|
@@ -36569,11 +36570,11 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36569
36570
|
t.bindTexture(n.TEXTURE_CUBE_MAP, te.__webglTexture, n.TEXTURE0 + P);
|
|
36570
36571
|
}
|
|
36571
36572
|
const me = {
|
|
36572
|
-
[
|
|
36573
|
+
[Zr]: n.REPEAT,
|
|
36573
36574
|
[Ws]: n.CLAMP_TO_EDGE,
|
|
36574
36575
|
[qd]: n.MIRRORED_REPEAT
|
|
36575
36576
|
}, F = {
|
|
36576
|
-
[
|
|
36577
|
+
[ei]: n.NEAREST,
|
|
36577
36578
|
[f4]: n.NEAREST_MIPMAP_NEAREST,
|
|
36578
36579
|
[xc]: n.NEAREST_MIPMAP_LINEAR,
|
|
36579
36580
|
[Mi]: n.LINEAR,
|
|
@@ -36591,7 +36592,7 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36591
36592
|
};
|
|
36592
36593
|
function fe(U, P) {
|
|
36593
36594
|
if (P.type === Ki && e.has("OES_texture_float_linear") === !1 && (P.magFilter === Mi || P.magFilter === rf || P.magFilter === xc || P.magFilter === js || P.minFilter === Mi || P.minFilter === rf || P.minFilter === xc || P.minFilter === js) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), n.texParameteri(U, n.TEXTURE_WRAP_S, me[P.wrapS]), n.texParameteri(U, n.TEXTURE_WRAP_T, me[P.wrapT]), (U === n.TEXTURE_3D || U === n.TEXTURE_2D_ARRAY) && n.texParameteri(U, n.TEXTURE_WRAP_R, me[P.wrapR]), n.texParameteri(U, n.TEXTURE_MAG_FILTER, F[P.magFilter]), n.texParameteri(U, n.TEXTURE_MIN_FILTER, F[P.minFilter]), P.compareFunction && (n.texParameteri(U, n.TEXTURE_COMPARE_MODE, n.COMPARE_REF_TO_TEXTURE), n.texParameteri(U, n.TEXTURE_COMPARE_FUNC, X[P.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
36594
|
-
if (P.magFilter ===
|
|
36595
|
+
if (P.magFilter === ei || P.minFilter !== xc && P.minFilter !== js || P.type === Ki && e.has("OES_texture_float_linear") === !1) return;
|
|
36595
36596
|
if (P.anisotropy > 1 || r.get(P).__currentAnisotropy) {
|
|
36596
36597
|
const te = e.get("EXT_texture_filter_anisotropic");
|
|
36597
36598
|
n.texParameterf(U, te.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(P.anisotropy, i.getMaxAnisotropy())), r.get(P).__currentAnisotropy = P.anisotropy;
|
|
@@ -36673,7 +36674,7 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36673
36674
|
if (P.isCompressedArrayTexture) {
|
|
36674
36675
|
G && ye && t.texStorage3D(n.TEXTURE_2D_ARRAY, ke, $e, ft[0].width, ft[0].height, Ae.depth);
|
|
36675
36676
|
for (let we = 0, pe = ft.length; we < pe; we++)
|
|
36676
|
-
if (Re = ft[we], P.format !==
|
|
36677
|
+
if (Re = ft[we], P.format !== Jr)
|
|
36677
36678
|
if (qe !== null)
|
|
36678
36679
|
if (G) {
|
|
36679
36680
|
if (Oe)
|
|
@@ -36698,7 +36699,7 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36698
36699
|
} else {
|
|
36699
36700
|
G && ye && t.texStorage2D(n.TEXTURE_2D, ke, $e, ft[0].width, ft[0].height);
|
|
36700
36701
|
for (let we = 0, pe = ft.length; we < pe; we++)
|
|
36701
|
-
Re = ft[we], P.format !==
|
|
36702
|
+
Re = ft[we], P.format !== Jr ? qe !== null ? G ? Oe && t.compressedTexSubImage2D(n.TEXTURE_2D, we, 0, 0, Re.width, Re.height, qe, Re.data) : t.compressedTexImage2D(n.TEXTURE_2D, we, $e, Re.width, Re.height, 0, Re.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : G ? Oe && t.texSubImage2D(n.TEXTURE_2D, we, 0, 0, Re.width, Re.height, qe, Be, Re.data) : t.texImage2D(n.TEXTURE_2D, we, $e, Re.width, Re.height, 0, qe, Be, Re.data);
|
|
36702
36703
|
}
|
|
36703
36704
|
else if (P.isDataArrayTexture)
|
|
36704
36705
|
if (G) {
|
|
@@ -36770,7 +36771,7 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36770
36771
|
we = qe[pe].mipmaps;
|
|
36771
36772
|
for (let Ke = 0; Ke < we.length; Ke++) {
|
|
36772
36773
|
const ut = we[Ke];
|
|
36773
|
-
P.format !==
|
|
36774
|
+
P.format !== Jr ? $e !== null ? G ? Oe && t.compressedTexSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X + pe, Ke, 0, 0, ut.width, ut.height, $e, ut.data) : t.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X + pe, Ke, ft, ut.width, ut.height, 0, ut.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : G ? Oe && t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X + pe, Ke, 0, 0, ut.width, ut.height, $e, Re, ut.data) : t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X + pe, Ke, ft, ut.width, ut.height, 0, $e, Re, ut.data);
|
|
36774
36775
|
}
|
|
36775
36776
|
}
|
|
36776
36777
|
} else {
|
|
@@ -36993,7 +36994,7 @@ function wA(n, e, t, r, i, s, o) {
|
|
|
36993
36994
|
}
|
|
36994
36995
|
function lt(U, P) {
|
|
36995
36996
|
const te = U.colorSpace, de = U.format, be = U.type;
|
|
36996
|
-
return U.isCompressedTexture === !0 || U.isVideoTexture === !0 || te !== ma && te !== _s && (Rt.getTransfer(te) === Ft ? (de !==
|
|
36997
|
+
return U.isCompressedTexture === !0 || U.isVideoTexture === !0 || te !== ma && te !== _s && (Rt.getTransfer(te) === Ft ? (de !== Jr || be !== Li) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", te)), P;
|
|
36997
36998
|
}
|
|
36998
36999
|
function Ye(U) {
|
|
36999
37000
|
return typeof HTMLImageElement < "u" && U instanceof HTMLImageElement ? (c.width = U.naturalWidth || U.width, c.height = U.naturalHeight || U.height) : typeof VideoFrame < "u" && U instanceof VideoFrame ? (c.width = U.displayWidth, c.height = U.displayHeight) : (c.width = U.width, c.height = U.height), c;
|
|
@@ -37017,7 +37018,7 @@ function TA(n, e) {
|
|
|
37017
37018
|
if (r === jl) return n.HALF_FLOAT;
|
|
37018
37019
|
if (r === Nx) return n.ALPHA;
|
|
37019
37020
|
if (r === Ux) return n.RGB;
|
|
37020
|
-
if (r ===
|
|
37021
|
+
if (r === Jr) return n.RGBA;
|
|
37021
37022
|
if (r === wl) return n.DEPTH_COMPONENT;
|
|
37022
37023
|
if (r === Tl) return n.DEPTH_STENCIL;
|
|
37023
37024
|
if (r === Fx) return n.RED;
|
|
@@ -37261,7 +37262,7 @@ class PA extends co {
|
|
|
37261
37262
|
p.textureWidth,
|
|
37262
37263
|
p.textureHeight,
|
|
37263
37264
|
{
|
|
37264
|
-
format:
|
|
37265
|
+
format: Jr,
|
|
37265
37266
|
type: Li,
|
|
37266
37267
|
depthTexture: new Kx(p.textureWidth, p.textureHeight, ue, void 0, void 0, void 0, void 0, void 0, void 0, Z),
|
|
37267
37268
|
stencilBuffer: _.stencil,
|
|
@@ -37283,7 +37284,7 @@ class PA extends co {
|
|
|
37283
37284
|
d.framebufferWidth,
|
|
37284
37285
|
d.framebufferHeight,
|
|
37285
37286
|
{
|
|
37286
|
-
format:
|
|
37287
|
+
format: Jr,
|
|
37287
37288
|
type: Li,
|
|
37288
37289
|
colorSpace: e.outputColorSpace,
|
|
37289
37290
|
stencilBuffer: _.stencil,
|
|
@@ -37843,7 +37844,7 @@ class qA {
|
|
|
37843
37844
|
});
|
|
37844
37845
|
};
|
|
37845
37846
|
let dt = null;
|
|
37846
|
-
function
|
|
37847
|
+
function Hr(L) {
|
|
37847
37848
|
dt && dt(L);
|
|
37848
37849
|
}
|
|
37849
37850
|
function Kn() {
|
|
@@ -37853,7 +37854,7 @@ class qA {
|
|
|
37853
37854
|
ui.start();
|
|
37854
37855
|
}
|
|
37855
37856
|
const ui = new l2();
|
|
37856
|
-
ui.setAnimationLoop(
|
|
37857
|
+
ui.setAnimationLoop(Hr), typeof self < "u" && ui.setContext(self), this.setAnimationLoop = function(L) {
|
|
37857
37858
|
dt = L, ye.setAnimationLoop(L), L === null ? ui.stop() : ui.start();
|
|
37858
37859
|
}, ye.addEventListener("sessionstart", Kn), ye.addEventListener("sessionend", $l), this.render = function(L, $) {
|
|
37859
37860
|
if ($ !== void 0 && $.isCamera !== !0) {
|
|
@@ -41581,7 +41582,7 @@ const sR = {
|
|
|
41581
41582
|
MODE_2D_ZOOM_IN: oo,
|
|
41582
41583
|
MODE_2D_ZOOM_OUT: ao,
|
|
41583
41584
|
MODE_2D_PAN: lo,
|
|
41584
|
-
MODE_WAITING_DRAWING_LINE:
|
|
41585
|
+
MODE_WAITING_DRAWING_LINE: zr,
|
|
41585
41586
|
MODE_WAITING_DRAWING_SURFACE: Zs,
|
|
41586
41587
|
MODE_DRAGGING_LINE: ti,
|
|
41587
41588
|
MODE_DRAGGING_VERTEX: ni,
|
|
@@ -41589,13 +41590,13 @@ const sR = {
|
|
|
41589
41590
|
MODE_DRAWING_SURFACE: Ai,
|
|
41590
41591
|
MODE_DRAWING_LINE: rr,
|
|
41591
41592
|
MODE_DRAWING_HOLE: _r,
|
|
41592
|
-
MODE_DRAWING_ITEM:
|
|
41593
|
+
MODE_DRAWING_ITEM: Lr,
|
|
41593
41594
|
MODE_DRAGGING_HOLE: ii,
|
|
41594
41595
|
MODE_ROTATING_ITEM: es
|
|
41595
41596
|
};
|
|
41596
41597
|
function SR({ width: n, height: e, catalog: t }) {
|
|
41597
41598
|
const r = Wt(), { planner: i } = r, { mode: s } = i;
|
|
41598
|
-
return s ===
|
|
41599
|
+
return s === Ir ? /* @__PURE__ */ C.jsx(
|
|
41599
41600
|
R7,
|
|
41600
41601
|
{
|
|
41601
41602
|
width: n,
|
|
@@ -44461,7 +44462,7 @@ const xn = (n) => {
|
|
|
44461
44462
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
44462
44463
|
};
|
|
44463
44464
|
}, o9 = /* @__PURE__ */ kR(s9);
|
|
44464
|
-
function
|
|
44465
|
+
function Ur(...n) {
|
|
44465
44466
|
return o9(TR(n));
|
|
44466
44467
|
}
|
|
44467
44468
|
const z2 = ({ children: n, name: e, ...t }) => {
|
|
@@ -44481,7 +44482,7 @@ const z2 = ({ children: n, name: e, ...t }) => {
|
|
|
44481
44482
|
/* @__PURE__ */ C.jsx(
|
|
44482
44483
|
"div",
|
|
44483
44484
|
{
|
|
44484
|
-
className:
|
|
44485
|
+
className: Ur(
|
|
44485
44486
|
"text-[11px] text-[#EBEBEB] border border-[#222222] bg-[#424242]",
|
|
44486
44487
|
r ? "block" : "hidden"
|
|
44487
44488
|
),
|
|
@@ -44499,7 +44500,7 @@ function ci({
|
|
|
44499
44500
|
return /* @__PURE__ */ C.jsx(
|
|
44500
44501
|
"label",
|
|
44501
44502
|
{
|
|
44502
|
-
className:
|
|
44503
|
+
className: Ur(
|
|
44503
44504
|
"mb-1 text-xs capitalize font-bold text-white block",
|
|
44504
44505
|
t
|
|
44505
44506
|
),
|
|
@@ -44522,7 +44523,7 @@ const Ti = ({
|
|
|
44522
44523
|
}) => {
|
|
44523
44524
|
const [c, h] = on(!0), [f, p] = on(n);
|
|
44524
44525
|
let d = new RegExp(`^-?([0-9]+)?\\.?([0-9]{0,${r}})?$`);
|
|
44525
|
-
|
|
44526
|
+
Fr(() => {
|
|
44526
44527
|
e !== void 0 && !isNaN(e) && isFinite(e) && Number(f) < e && p(e), t && !isNaN(t) && isFinite(t) && Number(f) > t && p(t);
|
|
44527
44528
|
}, [e, t, f]);
|
|
44528
44529
|
const m = gp(
|
|
@@ -44617,7 +44618,7 @@ const mp = ({
|
|
|
44617
44618
|
(w) => e(w)
|
|
44618
44619
|
) : e(_);
|
|
44619
44620
|
};
|
|
44620
|
-
if (a !==
|
|
44621
|
+
if (a !== Ir)
|
|
44621
44622
|
return /* @__PURE__ */ C.jsxs("div", { className: "PropertyLengthMeasure w-full mb-2", children: [
|
|
44622
44623
|
/* @__PURE__ */ C.jsx(ci, { children: f }),
|
|
44623
44624
|
/* @__PURE__ */ C.jsxs("div", { className: "w-full flex", children: [
|
|
@@ -44630,7 +44631,7 @@ const mp = ({
|
|
|
44630
44631
|
borderBottomRightRadius: 0,
|
|
44631
44632
|
borderRightWidth: 0
|
|
44632
44633
|
},
|
|
44633
|
-
onChange: (m) => d(m.target.value,
|
|
44634
|
+
onChange: (m) => d(m.target.value, Or),
|
|
44634
44635
|
onValid: t,
|
|
44635
44636
|
...p
|
|
44636
44637
|
}
|
|
@@ -44643,7 +44644,7 @@ const mp = ({
|
|
|
44643
44644
|
borderBottomLeftRadius: "0px"
|
|
44644
44645
|
},
|
|
44645
44646
|
disabled: !0,
|
|
44646
|
-
value:
|
|
44647
|
+
value: Or,
|
|
44647
44648
|
onChange: (m) => {
|
|
44648
44649
|
},
|
|
44649
44650
|
children: zv.map((m) => /* @__PURE__ */ C.jsx("option", { value: m, children: m }, m))
|
|
@@ -44864,7 +44865,7 @@ const mp = ({
|
|
|
44864
44865
|
attributeFormData: r,
|
|
44865
44866
|
...i
|
|
44866
44867
|
}
|
|
44867
|
-
) : null,
|
|
44868
|
+
) : null, Yr = 2, d9 = (n, e, t) => {
|
|
44868
44869
|
switch (n = typeof n.misc == "object" ? n.set("misc", Ie(n.misc)) : n, n.prototype) {
|
|
44869
44870
|
case "items":
|
|
44870
44871
|
return Ie(n);
|
|
@@ -44881,13 +44882,13 @@ const mp = ({
|
|
|
44881
44882
|
return Ie({
|
|
44882
44883
|
offset: n.offset,
|
|
44883
44884
|
offsetA: Ie({
|
|
44884
|
-
length: nr(c,
|
|
44885
|
-
_length: nr(f,
|
|
44885
|
+
length: nr(c, Yr),
|
|
44886
|
+
_length: nr(f, Yr),
|
|
44886
44887
|
_unit: h
|
|
44887
44888
|
}),
|
|
44888
44889
|
offsetB: Ie({
|
|
44889
|
-
length: nr(p,
|
|
44890
|
-
_length: nr(m,
|
|
44890
|
+
length: nr(p, Yr),
|
|
44891
|
+
_length: nr(m, Yr),
|
|
44891
44892
|
_unit: d
|
|
44892
44893
|
})
|
|
44893
44894
|
});
|
|
@@ -44958,7 +44959,7 @@ const mp = ({
|
|
|
44958
44959
|
b.x,
|
|
44959
44960
|
b.y,
|
|
44960
44961
|
v.get("length"),
|
|
44961
|
-
|
|
44962
|
+
Yr
|
|
44962
44963
|
);
|
|
44963
44964
|
_ = l.withMutations((q) => {
|
|
44964
44965
|
q.set(
|
|
@@ -45013,7 +45014,7 @@ const mp = ({
|
|
|
45013
45014
|
Q
|
|
45014
45015
|
), J = nr(
|
|
45015
45016
|
T - T * oe - N,
|
|
45016
|
-
|
|
45017
|
+
Yr
|
|
45017
45018
|
), ie = l.getIn(["offsetB", "_unit"]), B = Ie({
|
|
45018
45019
|
length: J,
|
|
45019
45020
|
_length: xi(J).from(t.unit).to(ie),
|
|
@@ -45021,11 +45022,11 @@ const mp = ({
|
|
|
45021
45022
|
});
|
|
45022
45023
|
_ = l.set("offsetB", B).set("offset", oe);
|
|
45023
45024
|
let me = Ie({
|
|
45024
|
-
length: nr(H,
|
|
45025
|
+
length: nr(H, Yr),
|
|
45025
45026
|
_unit: v.get("_unit"),
|
|
45026
45027
|
_length: nr(
|
|
45027
45028
|
xi(H).from(t.unit).to(v.get("_unit")),
|
|
45028
|
-
|
|
45029
|
+
Yr
|
|
45029
45030
|
)
|
|
45030
45031
|
});
|
|
45031
45032
|
_ = l.set(
|
|
@@ -45049,7 +45050,7 @@ const mp = ({
|
|
|
45049
45050
|
Q
|
|
45050
45051
|
), J = nr(
|
|
45051
45052
|
T * oe - N,
|
|
45052
|
-
|
|
45053
|
+
Yr
|
|
45053
45054
|
), ie = l.getIn(["offsetA", "_unit"]), B = Ie({
|
|
45054
45055
|
length: J,
|
|
45055
45056
|
_length: xi(J).from(t.unit).to(ie),
|
|
@@ -45057,11 +45058,11 @@ const mp = ({
|
|
|
45057
45058
|
});
|
|
45058
45059
|
_ = l.set("offsetA", B).set("offset", oe);
|
|
45059
45060
|
let me = Ie({
|
|
45060
|
-
length: nr(H,
|
|
45061
|
+
length: nr(H, Yr),
|
|
45061
45062
|
_unit: v.get("_unit"),
|
|
45062
45063
|
_length: nr(
|
|
45063
45064
|
xi(H).from(t.unit).to(v.get("_unit")),
|
|
45064
|
-
|
|
45065
|
+
Yr
|
|
45065
45066
|
)
|
|
45066
45067
|
});
|
|
45067
45068
|
_ = l.set(
|
|
@@ -45125,12 +45126,12 @@ const mp = ({
|
|
|
45125
45126
|
oo,
|
|
45126
45127
|
ao,
|
|
45127
45128
|
lo,
|
|
45128
|
-
|
|
45129
|
+
Ir,
|
|
45129
45130
|
Aa,
|
|
45130
|
-
|
|
45131
|
+
zr,
|
|
45131
45132
|
rr,
|
|
45132
45133
|
_r,
|
|
45133
|
-
|
|
45134
|
+
Lr,
|
|
45134
45135
|
ti,
|
|
45135
45136
|
ni,
|
|
45136
45137
|
ri,
|
|
@@ -45167,12 +45168,12 @@ const mp = ({
|
|
|
45167
45168
|
MODE_2D_ZOOM_IN: oo,
|
|
45168
45169
|
MODE_2D_ZOOM_OUT: ao,
|
|
45169
45170
|
MODE_2D_PAN: lo,
|
|
45170
|
-
MODE_3D_VIEW:
|
|
45171
|
+
MODE_3D_VIEW: Ir,
|
|
45171
45172
|
MODE_3D_FIRST_PERSON: Aa,
|
|
45172
|
-
MODE_WAITING_DRAWING_LINE:
|
|
45173
|
+
MODE_WAITING_DRAWING_LINE: zr,
|
|
45173
45174
|
MODE_DRAWING_LINE: rr,
|
|
45174
45175
|
MODE_DRAWING_HOLE: _r,
|
|
45175
|
-
MODE_DRAWING_ITEM:
|
|
45176
|
+
MODE_DRAWING_ITEM: Lr,
|
|
45176
45177
|
MODE_DRAGGING_LINE: ti,
|
|
45177
45178
|
MODE_DRAGGING_VERTEX: ni,
|
|
45178
45179
|
MODE_DRAGGING_ITEM: ri,
|
|
@@ -45449,7 +45450,7 @@ const mp = ({
|
|
|
45449
45450
|
"div",
|
|
45450
45451
|
{
|
|
45451
45452
|
ref: l,
|
|
45452
|
-
className:
|
|
45453
|
+
className: Ur(
|
|
45453
45454
|
"w-[30px] h-[30px] flex items-center justify-center text-[25px] cursor-pointer",
|
|
45454
45455
|
s
|
|
45455
45456
|
),
|
|
@@ -45459,7 +45460,7 @@ const mp = ({
|
|
|
45459
45460
|
children: /* @__PURE__ */ C.jsx(
|
|
45460
45461
|
"div",
|
|
45461
45462
|
{
|
|
45462
|
-
className:
|
|
45463
|
+
className: Ur(
|
|
45463
45464
|
"transition-colors",
|
|
45464
45465
|
n ? "text-dark-blue" : "text-[#C2C2C2]"
|
|
45465
45466
|
),
|
|
@@ -45527,7 +45528,7 @@ function T9({ mode: n }) {
|
|
|
45527
45528
|
}, t = async (r) => {
|
|
45528
45529
|
r.preventDefault(), k2().then(d_);
|
|
45529
45530
|
};
|
|
45530
|
-
return [Aa,
|
|
45531
|
+
return [Aa, Ir].includes(n) ? /* @__PURE__ */ C.jsx(
|
|
45531
45532
|
er,
|
|
45532
45533
|
{
|
|
45533
45534
|
active: !1,
|
|
@@ -45540,7 +45541,7 @@ function T9({ mode: n }) {
|
|
|
45540
45541
|
oo,
|
|
45541
45542
|
ao,
|
|
45542
45543
|
lo,
|
|
45543
|
-
|
|
45544
|
+
zr,
|
|
45544
45545
|
Zs,
|
|
45545
45546
|
ti,
|
|
45546
45547
|
ni,
|
|
@@ -45548,7 +45549,7 @@ function T9({ mode: n }) {
|
|
|
45548
45549
|
rr,
|
|
45549
45550
|
Ai,
|
|
45550
45551
|
_r,
|
|
45551
|
-
|
|
45552
|
+
Lr,
|
|
45552
45553
|
ii,
|
|
45553
45554
|
es
|
|
45554
45555
|
].includes(n) ? /* @__PURE__ */ C.jsx(
|
|
@@ -45573,7 +45574,7 @@ function P9({
|
|
|
45573
45574
|
...e
|
|
45574
45575
|
}) {
|
|
45575
45576
|
const [t, r] = on(""), i = gr(null);
|
|
45576
|
-
|
|
45577
|
+
Fr(() => {
|
|
45577
45578
|
r(e.value);
|
|
45578
45579
|
}, [e.value]);
|
|
45579
45580
|
const s = (a) => {
|
|
@@ -45626,7 +45627,7 @@ function p_({
|
|
|
45626
45627
|
internalState: s
|
|
45627
45628
|
}) {
|
|
45628
45629
|
const o = i.toJS(), { planner: a } = Wt(), l = (c) => t.hook ? t.hook(c, i, s, a).then((h) => e(h)) : e(c);
|
|
45629
|
-
return
|
|
45630
|
+
return Fr(() => {
|
|
45630
45631
|
var p;
|
|
45631
45632
|
const c = o.type === "wall", h = r === "colorA" || r === "colorB", f = !((p = o.properties) != null && p[r]);
|
|
45632
45633
|
c && h && f && l(n);
|
|
@@ -45715,9 +45716,9 @@ function v_({
|
|
|
45715
45716
|
sourceElement: i,
|
|
45716
45717
|
internalState: s
|
|
45717
45718
|
}) {
|
|
45718
|
-
const { planner: o } = Wt(), { mode: a } = o, l = n.get("length") || 0, c = n.get("_length") || l, h = n.get("_unit") ||
|
|
45719
|
+
const { planner: o } = Wt(), { mode: a } = o, l = n.get("length") || 0, c = n.get("_length") || l, h = n.get("_unit") || Or, { hook: f, label: p, ...d } = r, m = (x, v) => {
|
|
45719
45720
|
let _ = nr(x), w = n.merge({
|
|
45720
|
-
length: v !==
|
|
45721
|
+
length: v !== Or ? xi(_).from(v).to(Or) : _,
|
|
45721
45722
|
_length: x,
|
|
45722
45723
|
_unit: v
|
|
45723
45724
|
});
|
|
@@ -45725,7 +45726,7 @@ function v_({
|
|
|
45725
45726
|
(E) => e(E)
|
|
45726
45727
|
) : e(w);
|
|
45727
45728
|
};
|
|
45728
|
-
if (a !==
|
|
45729
|
+
if (a !== Ir)
|
|
45729
45730
|
return /* @__PURE__ */ C.jsxs("div", { className: "PropertyLengthMeasure w-full mb-2", children: [
|
|
45730
45731
|
/* @__PURE__ */ C.jsx(ci, { children: p }),
|
|
45731
45732
|
/* @__PURE__ */ C.jsxs("div", { className: "w-full flex", children: [
|
|
@@ -45848,7 +45849,7 @@ function E_({
|
|
|
45848
45849
|
] }) }) });
|
|
45849
45850
|
}
|
|
45850
45851
|
class VC {
|
|
45851
|
-
constructor(e =
|
|
45852
|
+
constructor(e = Or) {
|
|
45852
45853
|
ht(this, "elements");
|
|
45853
45854
|
ht(this, "categories");
|
|
45854
45855
|
ht(this, "propertyTypes");
|
|
@@ -45979,12 +45980,12 @@ const D9 = ({
|
|
|
45979
45980
|
value: l
|
|
45980
45981
|
}) => {
|
|
45981
45982
|
const [c, h] = on("");
|
|
45982
|
-
return
|
|
45983
|
+
return Fr(() => {
|
|
45983
45984
|
l !== void 0 && l !== c && h(l ?? "");
|
|
45984
45985
|
}, [l]), /* @__PURE__ */ C.jsxs(
|
|
45985
45986
|
"div",
|
|
45986
45987
|
{
|
|
45987
|
-
className:
|
|
45988
|
+
className: Ur(
|
|
45988
45989
|
`relative w-full ${t ? "mt-1" : "mt-2"}`,
|
|
45989
45990
|
a
|
|
45990
45991
|
),
|
|
@@ -46074,7 +46075,7 @@ const D9 = ({
|
|
|
46074
46075
|
{
|
|
46075
46076
|
role: "tab",
|
|
46076
46077
|
"aria-selected": o,
|
|
46077
|
-
className:
|
|
46078
|
+
className: Ur(
|
|
46078
46079
|
"h-8 text-sm font-medium capitalize transition-colors",
|
|
46079
46080
|
o ? "text-white" : "text-gray-700 hover:text-black"
|
|
46080
46081
|
),
|
|
@@ -46124,7 +46125,7 @@ const D9 = ({
|
|
|
46124
46125
|
} = Wt(), [l, c] = on([]), [h, f] = on(""), [p, d] = on([]), [m, x] = on(["all"]), [v, _] = on([]), [w, E] = on(""), S = gr(null), b = gr(null), A = () => {
|
|
46125
46126
|
E(""), d([]), c([]), x(["all"]), f("");
|
|
46126
46127
|
};
|
|
46127
|
-
|
|
46128
|
+
Fr(() => {
|
|
46128
46129
|
if (e) {
|
|
46129
46130
|
A();
|
|
46130
46131
|
const W = n.getCategory(e.page).elements.filter(
|
|
@@ -46196,14 +46197,14 @@ const D9 = ({
|
|
|
46196
46197
|
top: e.rect.y + b_,
|
|
46197
46198
|
left: e.rect.x + M_
|
|
46198
46199
|
} : b.current ? b.current : {},
|
|
46199
|
-
className:
|
|
46200
|
+
className: Ur(
|
|
46200
46201
|
"fixed select-none z-10 shadow-md !gap-0 rounded-lg pt-4 fp_side-bar !min-h-[250px] !min-w-[330px] max-w-[330px] !max-h-[510px] transition-all duration-200 ease-out transform",
|
|
46201
46202
|
e ? "opacity-100 scale-100" : "opacity-0 scale-95 pointer-events-none"
|
|
46202
46203
|
),
|
|
46203
46204
|
children: [
|
|
46204
46205
|
/* @__PURE__ */ C.jsxs("header", { className: "px-[18px] sticky top-0 left-0 gap-3 flex flex-col", children: [
|
|
46205
|
-
/* @__PURE__ */ C.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ C.jsx("span", { className:
|
|
46206
|
-
/* @__PURE__ */ C.jsxs("div", { className:
|
|
46206
|
+
/* @__PURE__ */ C.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ C.jsx("span", { className: Ur("flex flex-col gap-0.5"), children: /* @__PURE__ */ C.jsx("span", { className: "fp-sidebar-label capitalize", children: (e == null ? void 0 : e.page) ?? S.current }) }) }),
|
|
46207
|
+
/* @__PURE__ */ C.jsxs("div", { className: Ur("fp-highlight"), children: [
|
|
46207
46208
|
l.length > 1 && /* @__PURE__ */ C.jsx(
|
|
46208
46209
|
N9,
|
|
46209
46210
|
{
|
|
@@ -46315,7 +46316,7 @@ function H9({ catalog: n, has3dView: e }) {
|
|
|
46315
46316
|
/* @__PURE__ */ C.jsx(
|
|
46316
46317
|
er,
|
|
46317
46318
|
{
|
|
46318
|
-
active: [
|
|
46319
|
+
active: [zr, rr].includes(f) && d.get("type") === "wall",
|
|
46319
46320
|
tooltip: "Draw wall",
|
|
46320
46321
|
onClick: () => {
|
|
46321
46322
|
i({ text: "Cancel drawing" }), a("wall");
|
|
@@ -46367,7 +46368,7 @@ function H9({ catalog: n, has3dView: e }) {
|
|
|
46367
46368
|
/* @__PURE__ */ C.jsx(
|
|
46368
46369
|
er,
|
|
46369
46370
|
{
|
|
46370
|
-
active: !!([
|
|
46371
|
+
active: !!([Lr].includes(f) && m && m.page === "objects"),
|
|
46371
46372
|
tooltip: "Place objects",
|
|
46372
46373
|
onClick: (v) => {
|
|
46373
46374
|
x({
|
|
@@ -46378,7 +46379,7 @@ function H9({ catalog: n, has3dView: e }) {
|
|
|
46378
46379
|
children: /* @__PURE__ */ C.jsx(z9, { size: 26 })
|
|
46379
46380
|
}
|
|
46380
46381
|
),
|
|
46381
|
-
e ? [
|
|
46382
|
+
e ? [Ir].includes(f) ? /* @__PURE__ */ C.jsx(
|
|
46382
46383
|
er,
|
|
46383
46384
|
{
|
|
46384
46385
|
active: [ln].includes(f),
|
|
@@ -46393,7 +46394,7 @@ function H9({ catalog: n, has3dView: e }) {
|
|
|
46393
46394
|
) : /* @__PURE__ */ C.jsx(
|
|
46394
46395
|
er,
|
|
46395
46396
|
{
|
|
46396
|
-
active: [
|
|
46397
|
+
active: [Ir].includes(f),
|
|
46397
46398
|
tooltip: "3D View",
|
|
46398
46399
|
onClick: s,
|
|
46399
46400
|
children: /* @__PURE__ */ C.jsx(V9, {})
|
|
@@ -46405,7 +46406,9 @@ function H9({ catalog: n, has3dView: e }) {
|
|
|
46405
46406
|
{
|
|
46406
46407
|
active: c,
|
|
46407
46408
|
tooltip: "Show dimensions",
|
|
46408
|
-
onClick: () =>
|
|
46409
|
+
onClick: () => {
|
|
46410
|
+
[Ir].includes(f) || h(!c);
|
|
46411
|
+
},
|
|
46409
46412
|
children: /* @__PURE__ */ C.jsx(k9, { size: 24 })
|
|
46410
46413
|
}
|
|
46411
46414
|
)
|
|
@@ -46462,7 +46465,7 @@ function j9() {
|
|
|
46462
46465
|
switch (e.keyCode) {
|
|
46463
46466
|
case Rr.BACKSPACE:
|
|
46464
46467
|
case Rr.DELETE: {
|
|
46465
|
-
[ln, Aa,
|
|
46468
|
+
[ln, Aa, Ir].includes(r) && n.remove();
|
|
46466
46469
|
break;
|
|
46467
46470
|
}
|
|
46468
46471
|
case Rr.ESC: {
|
|
@@ -46493,7 +46496,7 @@ function j9() {
|
|
|
46493
46496
|
i,
|
|
46494
46497
|
"selected"
|
|
46495
46498
|
]);
|
|
46496
|
-
if ((r === ln || r ===
|
|
46499
|
+
if ((r === ln || r === Ir) && (s.holes.size || s.areas.size || s.items.size || s.lines.size)) {
|
|
46497
46500
|
if (s.holes.size) {
|
|
46498
46501
|
let o = t.getIn([
|
|
46499
46502
|
"scene",
|
|
@@ -46575,7 +46578,7 @@ const T_ = 38, A_ = -220, nl = ({
|
|
|
46575
46578
|
/* @__PURE__ */ C.jsx("div", { className: "fp__onoffswitch", onClick: o, children: /* @__PURE__ */ C.jsxs(
|
|
46576
46579
|
"div",
|
|
46577
46580
|
{
|
|
46578
|
-
className:
|
|
46581
|
+
className: Ur(
|
|
46579
46582
|
"fp__onoffswitch_label",
|
|
46580
46583
|
i ? "fp__onoffswitch_label-checked" : ""
|
|
46581
46584
|
),
|
|
@@ -46589,7 +46592,7 @@ const T_ = 38, A_ = -220, nl = ({
|
|
|
46589
46592
|
] });
|
|
46590
46593
|
}, X9 = ({ popupEvent: n, onClose: e }) => {
|
|
46591
46594
|
const { planner: t, toggleSnap: r } = Wt(), { snapMask: i } = t, s = gr(null);
|
|
46592
|
-
|
|
46595
|
+
Fr(() => {
|
|
46593
46596
|
if (n) {
|
|
46594
46597
|
const { x: l, y: c } = n.rect;
|
|
46595
46598
|
s.current = {
|
|
@@ -46611,12 +46614,12 @@ const T_ = 38, A_ = -220, nl = ({
|
|
|
46611
46614
|
left: n.rect.x + A_
|
|
46612
46615
|
} : s.current ? s.current : {},
|
|
46613
46616
|
id: "headerbar-popup",
|
|
46614
|
-
className:
|
|
46617
|
+
className: Ur(
|
|
46615
46618
|
"fixed select-none z-10 shadow-md !gap-0 rounded-lg pt-4 fp_side-bar !min-h-[200px] !min-w-[250px] max-w-[250px] !max-h-[300px] transition-all duration-200 ease-out transform",
|
|
46616
46619
|
n ? "opacity-100 scale-100" : "opacity-0 scale-95 pointer-events-none"
|
|
46617
46620
|
),
|
|
46618
46621
|
children: [
|
|
46619
|
-
/* @__PURE__ */ C.jsx("header", { className: "px-[18px] sticky top-0 left-0 gap-3 flex flex-col", children: /* @__PURE__ */ C.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ C.jsx("span", { className:
|
|
46622
|
+
/* @__PURE__ */ C.jsx("header", { className: "px-[18px] sticky top-0 left-0 gap-3 flex flex-col", children: /* @__PURE__ */ C.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ C.jsx("span", { className: Ur("flex flex-col gap-0.5"), children: /* @__PURE__ */ C.jsx("span", { className: "fp-sidebar-label capitalize", children: "Settings" }) }) }) }),
|
|
46620
46623
|
/* @__PURE__ */ C.jsxs("div", { className: "min-h-28 w-full space-y-2.5 px-2 py-4", children: [
|
|
46621
46624
|
/* @__PURE__ */ C.jsx(
|
|
46622
46625
|
nl,
|
|
@@ -47579,7 +47582,7 @@ const cC = ({
|
|
|
47579
47582
|
children: n
|
|
47580
47583
|
}) => {
|
|
47581
47584
|
const [e, t] = on(null), r = gr(null), i = gr(null);
|
|
47582
|
-
return
|
|
47585
|
+
return Fr(() => {
|
|
47583
47586
|
if (!r.current) return;
|
|
47584
47587
|
const s = r.current.parentElement;
|
|
47585
47588
|
if (!s) return;
|
|
@@ -47609,7 +47612,7 @@ function uC(n) {
|
|
|
47609
47612
|
}
|
|
47610
47613
|
}
|
|
47611
47614
|
}, [n]);
|
|
47612
|
-
return
|
|
47615
|
+
return Fr(() => {
|
|
47613
47616
|
const i = (s) => {
|
|
47614
47617
|
if (!e.current)
|
|
47615
47618
|
return r(), s.preventDefault(), s.returnValue = "", "";
|
|
@@ -47621,7 +47624,7 @@ function uC(n) {
|
|
|
47621
47624
|
}
|
|
47622
47625
|
const hC = () => {
|
|
47623
47626
|
const { toast: n, setToast: e } = Wt(), [t, r] = on(!1);
|
|
47624
|
-
return
|
|
47627
|
+
return Fr(() => {
|
|
47625
47628
|
let i;
|
|
47626
47629
|
return n && (r(!0), i = setTimeout(() => {
|
|
47627
47630
|
r(!1), setTimeout(() => e(null), 300);
|
|
@@ -47646,9 +47649,9 @@ const hC = () => {
|
|
|
47646
47649
|
has3dView: i
|
|
47647
47650
|
}) => {
|
|
47648
47651
|
const s = Wt();
|
|
47649
|
-
return
|
|
47652
|
+
return Fr(() => {
|
|
47650
47653
|
s.initCatalog(e), fC.forEach((o) => o(s, n, t));
|
|
47651
|
-
}, []),
|
|
47654
|
+
}, []), Fr(() => {
|
|
47652
47655
|
s.planner.getIn(["catalog", "ready"]) || s.initCatalog(e);
|
|
47653
47656
|
}, [e]), uC((o) => {
|
|
47654
47657
|
t && t({ imageURI: o });
|
|
@@ -47679,13 +47682,13 @@ const hC = () => {
|
|
|
47679
47682
|
] }), dC = (n, e, t, r) => {
|
|
47680
47683
|
if (!e) return;
|
|
47681
47684
|
const i = new s2();
|
|
47682
|
-
n.map = i.load(e.uri), n.needsUpdate = !0, n.map.wrapS =
|
|
47685
|
+
n.map = i.load(e.uri), n.needsUpdate = !0, n.map.wrapS = Zr, n.map.wrapT = Zr, n.map.repeat.set(
|
|
47683
47686
|
t * e.lengthRepeatScale,
|
|
47684
47687
|
r * e.heightRepeatScale
|
|
47685
47688
|
), e.normal && (n.normalMap = i.load(e.normal.uri), n.normalScale = new Ne(
|
|
47686
47689
|
e.normal.normalScaleX,
|
|
47687
47690
|
e.normal.normalScaleY
|
|
47688
|
-
), n.normalMap.wrapS =
|
|
47691
|
+
), n.normalMap.wrapS = Zr, n.normalMap.wrapT = Zr, n.normalMap.repeat.set(
|
|
47689
47692
|
t * e.normal.lengthRepeatScale,
|
|
47690
47693
|
r * e.normal.heightRepeatScale
|
|
47691
47694
|
));
|
|
@@ -47778,7 +47781,7 @@ function WC(n, e, t) {
|
|
|
47778
47781
|
defaultValue: {
|
|
47779
47782
|
length: 0,
|
|
47780
47783
|
_length: 0,
|
|
47781
|
-
_unit:
|
|
47784
|
+
_unit: Or
|
|
47782
47785
|
}
|
|
47783
47786
|
}
|
|
47784
47787
|
},
|
|
@@ -48090,13 +48093,13 @@ const Ho = Math.PI / 2, vC = (n, e) => n.x * e.x + n.y * e.y, H_ = (n) => {
|
|
|
48090
48093
|
}, G_ = (n, e = 16777215) => n && (typeof n == "string" || typeof n == "number") ? n : e, W_ = (n, e, t, r) => {
|
|
48091
48094
|
if (!e) return;
|
|
48092
48095
|
const i = new s2();
|
|
48093
|
-
n.map = i.load(e.uri), n.needsUpdate = !0, n.map.wrapS =
|
|
48096
|
+
n.map = i.load(e.uri), n.needsUpdate = !0, n.map.wrapS = Zr, n.map.wrapT = Zr, n.map.repeat.set(
|
|
48094
48097
|
t * (e.lengthRepeatScale ?? 1),
|
|
48095
48098
|
r * (e.heightRepeatScale ?? 1)
|
|
48096
48099
|
), e.normal && n instanceof qw && (n.normalMap = i.load(e.normal.uri), n.normalScale = new Ne(
|
|
48097
48100
|
e.normal.normalScaleX,
|
|
48098
48101
|
e.normal.normalScaleY
|
|
48099
|
-
), n.normalMap.wrapS =
|
|
48102
|
+
), n.normalMap.wrapS = Zr, n.normalMap.wrapT = Zr, n.normalMap.repeat.set(
|
|
48100
48103
|
t * (e.normal.lengthRepeatScale ?? 1),
|
|
48101
48104
|
r * (e.normal.heightRepeatScale ?? 1)
|
|
48102
48105
|
));
|
|
@@ -48216,7 +48219,7 @@ function jC(n, e, t) {
|
|
|
48216
48219
|
defaultValue: {
|
|
48217
48220
|
length: 10,
|
|
48218
48221
|
_length: 10,
|
|
48219
|
-
_unit:
|
|
48222
|
+
_unit: Or
|
|
48220
48223
|
}
|
|
48221
48224
|
}
|
|
48222
48225
|
},
|
|
@@ -48230,7 +48233,7 @@ function jC(n, e, t) {
|
|
|
48230
48233
|
width: p,
|
|
48231
48234
|
height: d,
|
|
48232
48235
|
style: {
|
|
48233
|
-
fill: i.selected && ![
|
|
48236
|
+
fill: i.selected && ![zr, rr].includes(a) ? Ot.LINE_MESH_COLOR.selected : Ot.COLORS.black,
|
|
48234
48237
|
stroke: "none"
|
|
48235
48238
|
}
|
|
48236
48239
|
}
|