@osamash/floor-planner 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floor-planner.es.js +124 -120
- package/dist/floor-planner.umd.js +11 -11
- package/package.json +1 -1
package/dist/floor-planner.es.js
CHANGED
|
@@ -409,7 +409,7 @@ function Uu(n) {
|
|
|
409
409
|
return Ht(n) || Xn(n);
|
|
410
410
|
}
|
|
411
411
|
var Tn = function(e) {
|
|
412
|
-
return rr(e) ? e :
|
|
412
|
+
return rr(e) ? e : yn(e);
|
|
413
413
|
}, qr = /* @__PURE__ */ (function(n) {
|
|
414
414
|
function e(t) {
|
|
415
415
|
return Ht(t) ? t : Cs(t);
|
|
@@ -510,7 +510,7 @@ function gp(n) {
|
|
|
510
510
|
n.hasOwnProperty(n.length - 1)
|
|
511
511
|
));
|
|
512
512
|
}
|
|
513
|
-
var
|
|
513
|
+
var yn = /* @__PURE__ */ (function(n) {
|
|
514
514
|
function e(t) {
|
|
515
515
|
return t == null ? vp() : Dr(t) ? t.toSeq() : my(t);
|
|
516
516
|
}
|
|
@@ -551,7 +551,7 @@ var xn = /* @__PURE__ */ (function(n) {
|
|
|
551
551
|
return n && (e.__proto__ = n), e.prototype = Object.create(n && n.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
|
|
552
552
|
return this;
|
|
553
553
|
}, e;
|
|
554
|
-
})(
|
|
554
|
+
})(yn), Nr = /* @__PURE__ */ (function(n) {
|
|
555
555
|
function e(t) {
|
|
556
556
|
return t == null ? vp() : rr(t) ? Ht(t) ? t.entrySeq() : t.toIndexedSeq() : Rs(t) ? t.toSeq().entrySeq() : K_(t);
|
|
557
557
|
}
|
|
@@ -562,7 +562,7 @@ var xn = /* @__PURE__ */ (function(n) {
|
|
|
562
562
|
}, e.prototype.toString = function() {
|
|
563
563
|
return this.__toString("Seq [", "]");
|
|
564
564
|
}, e;
|
|
565
|
-
})(
|
|
565
|
+
})(yn), Sa = /* @__PURE__ */ (function(n) {
|
|
566
566
|
function e(t) {
|
|
567
567
|
return (rr(t) && !Uu(t) ? t : Nr(t)).toSetSeq();
|
|
568
568
|
}
|
|
@@ -571,12 +571,12 @@ var xn = /* @__PURE__ */ (function(n) {
|
|
|
571
571
|
}, e.prototype.toSetSeq = function() {
|
|
572
572
|
return this;
|
|
573
573
|
}, e;
|
|
574
|
-
})(
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
574
|
+
})(yn);
|
|
575
|
+
yn.isSeq = Fu;
|
|
576
|
+
yn.Keyed = Cs;
|
|
577
|
+
yn.Set = Sa;
|
|
578
|
+
yn.Indexed = Nr;
|
|
579
|
+
yn.prototype[X_] = !0;
|
|
580
580
|
var Zo = /* @__PURE__ */ (function(n) {
|
|
581
581
|
function e(t) {
|
|
582
582
|
this._array = t, this.size = t.length;
|
|
@@ -1268,7 +1268,7 @@ var Cy = /* @__PURE__ */ (function(n) {
|
|
|
1268
1268
|
return l;
|
|
1269
1269
|
});
|
|
1270
1270
|
}, e;
|
|
1271
|
-
})(
|
|
1271
|
+
})(yn);
|
|
1272
1272
|
function Py(n, e) {
|
|
1273
1273
|
var t = Ht(n), r = [n].concat(e).map(function(s) {
|
|
1274
1274
|
return rr(s) ? t && (s = qr(s)) : s = t ? xp(s) : K_(Array.isArray(s) ? s : [s]), s;
|
|
@@ -1423,7 +1423,7 @@ function Ci(n) {
|
|
|
1423
1423
|
);
|
|
1424
1424
|
}
|
|
1425
1425
|
function wp() {
|
|
1426
|
-
return this._iter.cacheResult ? (this._iter.cacheResult(), this.size = this._iter.size, this) :
|
|
1426
|
+
return this._iter.cacheResult ? (this._iter.cacheResult(), this.size = this._iter.size, this) : yn.prototype.cacheResult.call(this);
|
|
1427
1427
|
}
|
|
1428
1428
|
function av(n, e) {
|
|
1429
1429
|
return n === void 0 && e === void 0 ? 0 : n === void 0 ? 1 : e === void 0 ? -1 : n > e ? 1 : n < e ? -1 : 0;
|
|
@@ -1660,7 +1660,7 @@ function Fy(n) {
|
|
|
1660
1660
|
return e;
|
|
1661
1661
|
}
|
|
1662
1662
|
function zy(n, e) {
|
|
1663
|
-
var t =
|
|
1663
|
+
var t = yn(n), r = yn(e);
|
|
1664
1664
|
return Xn(t) === Xn(r) && Ht(t) === Ht(r);
|
|
1665
1665
|
}
|
|
1666
1666
|
function vv() {
|
|
@@ -2615,7 +2615,7 @@ function hu(n) {
|
|
|
2615
2615
|
if (!rr(n)) {
|
|
2616
2616
|
if (!Ms(n))
|
|
2617
2617
|
return n;
|
|
2618
|
-
n =
|
|
2618
|
+
n = yn(n);
|
|
2619
2619
|
}
|
|
2620
2620
|
if (Ht(n)) {
|
|
2621
2621
|
var e = {};
|
|
@@ -3583,7 +3583,7 @@ function Lv(n, e, t, r, i, s) {
|
|
|
3583
3583
|
var o = e.call(
|
|
3584
3584
|
s,
|
|
3585
3585
|
r,
|
|
3586
|
-
|
|
3586
|
+
yn(t).map(
|
|
3587
3587
|
function(a, l) {
|
|
3588
3588
|
return Lv(n, e, a, l, i, t);
|
|
3589
3589
|
}
|
|
@@ -3610,7 +3610,7 @@ const l3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3610
3610
|
Range: Av,
|
|
3611
3611
|
Record: gt,
|
|
3612
3612
|
Repeat: i3,
|
|
3613
|
-
Seq:
|
|
3613
|
+
Seq: yn,
|
|
3614
3614
|
Set: kl,
|
|
3615
3615
|
Stack: Gu,
|
|
3616
3616
|
fromJS: Ct,
|
|
@@ -8128,7 +8128,7 @@ let vn = class Xv {
|
|
|
8128
8128
|
e = at.unselectAll(e, s).updatedState;
|
|
8129
8129
|
let a = o.get("lines"), l = o.get("holes"), c = o.get("items"), h = o.get("areas");
|
|
8130
8130
|
a && a.forEach((f) => {
|
|
8131
|
-
e =
|
|
8131
|
+
e = wn.select(e, s, f).updatedState;
|
|
8132
8132
|
}), l && l.forEach((f) => {
|
|
8133
8133
|
e = pn.select(e, s, f).updatedState;
|
|
8134
8134
|
}), c && c.forEach((f) => {
|
|
@@ -8295,7 +8295,7 @@ let vn = class Xv {
|
|
|
8295
8295
|
e = at.unselectAll(e, i).updatedState;
|
|
8296
8296
|
let o = s.get("lines"), a = s.get("holes"), l = s.get("items");
|
|
8297
8297
|
s.get("areas"), o && o.forEach((c) => {
|
|
8298
|
-
e =
|
|
8298
|
+
e = wn.remove(e, i, c).updatedState, e = at.detectAndUpdateAreas(
|
|
8299
8299
|
e,
|
|
8300
8300
|
i
|
|
8301
8301
|
).updatedState;
|
|
@@ -8440,7 +8440,7 @@ let vn = class Xv {
|
|
|
8440
8440
|
}, e)), e = at.detectAndUpdateAreas(e, c).updatedState;
|
|
8441
8441
|
}), e = Jc.select(e, t).updatedState, { updatedState: e };
|
|
8442
8442
|
}
|
|
8443
|
-
},
|
|
8443
|
+
}, wn = class wr {
|
|
8444
8444
|
static create(e, t, r, i, s, o, a, l) {
|
|
8445
8445
|
let c = Ti.acquireID(), { updatedState: h, vertex: f } = cn.add(
|
|
8446
8446
|
e,
|
|
@@ -9215,8 +9215,8 @@ let vn = class Xv {
|
|
|
9215
9215
|
o,
|
|
9216
9216
|
r,
|
|
9217
9217
|
i
|
|
9218
|
-
).updatedState, o =
|
|
9219
|
-
let b =
|
|
9218
|
+
).updatedState, o = wn.remove(o, r, a).updatedState, !Hr(f, p)) {
|
|
9219
|
+
let b = wn.createAvoidingIntersections(
|
|
9220
9220
|
o,
|
|
9221
9221
|
r,
|
|
9222
9222
|
x,
|
|
@@ -9360,7 +9360,7 @@ let at = class {
|
|
|
9360
9360
|
t
|
|
9361
9361
|
]);
|
|
9362
9362
|
return r && r.forEach((a) => {
|
|
9363
|
-
e =
|
|
9363
|
+
e = wn.unselect(e, t, a.id).updatedState;
|
|
9364
9364
|
}), i && i.forEach((a) => {
|
|
9365
9365
|
e = pn.unselect(e, t, a.id).updatedState;
|
|
9366
9366
|
}), s && s.forEach((a) => {
|
|
@@ -9516,7 +9516,7 @@ let at = class {
|
|
|
9516
9516
|
"vertices",
|
|
9517
9517
|
a
|
|
9518
9518
|
]);
|
|
9519
|
-
return ju(l, c) === 0 && (i =
|
|
9519
|
+
return ju(l, c) === 0 && (i = wn.remove(i, t, s.id).updatedState), i;
|
|
9520
9520
|
}, e) };
|
|
9521
9521
|
}
|
|
9522
9522
|
static mergeEqualsVertices(e, t, r) {
|
|
@@ -9576,7 +9576,7 @@ let at = class {
|
|
|
9576
9576
|
static setPropertiesOnSelected(e, t, r) {
|
|
9577
9577
|
let i = e.getIn(["scene", "layers", t, "selected"]);
|
|
9578
9578
|
return i.lines.forEach(
|
|
9579
|
-
(s) => e =
|
|
9579
|
+
(s) => e = wn.setProperties(
|
|
9580
9580
|
e,
|
|
9581
9581
|
t,
|
|
9582
9582
|
s,
|
|
@@ -9608,7 +9608,7 @@ let at = class {
|
|
|
9608
9608
|
static updatePropertiesOnSelected(e, t, r) {
|
|
9609
9609
|
let i = e.getIn(["scene", "layers", t, "selected"]);
|
|
9610
9610
|
return i.lines.forEach(
|
|
9611
|
-
(s) => e =
|
|
9611
|
+
(s) => e = wn.updateProperties(
|
|
9612
9612
|
e,
|
|
9613
9613
|
t,
|
|
9614
9614
|
s,
|
|
@@ -9640,7 +9640,7 @@ let at = class {
|
|
|
9640
9640
|
static setAttributesOnSelected(e, t, r) {
|
|
9641
9641
|
let i = e.getIn(["scene", "layers", t, "selected"]);
|
|
9642
9642
|
return i.lines.forEach(
|
|
9643
|
-
(s) => e =
|
|
9643
|
+
(s) => e = wn.setAttributes(
|
|
9644
9644
|
e,
|
|
9645
9645
|
t,
|
|
9646
9646
|
s,
|
|
@@ -9752,7 +9752,7 @@ class Dt {
|
|
|
9752
9752
|
items: s
|
|
9753
9753
|
} = e.getIn(["scene", "layers", t, "selected"]);
|
|
9754
9754
|
return e = at.unselectAll(e, t).updatedState, r.forEach((o) => {
|
|
9755
|
-
e =
|
|
9755
|
+
e = wn.remove(e, t, o).updatedState;
|
|
9756
9756
|
}), i.forEach((o) => {
|
|
9757
9757
|
e = pn.remove(e, t, o).updatedState;
|
|
9758
9758
|
}), s.forEach((o) => {
|
|
@@ -13090,7 +13090,7 @@ const Wt = hy((n) => ({
|
|
|
13090
13090
|
},
|
|
13091
13091
|
selectLine: (e, t) => {
|
|
13092
13092
|
n((r) => {
|
|
13093
|
-
const i =
|
|
13093
|
+
const i = wn.select(r.planner, e, t).updatedState;
|
|
13094
13094
|
return {
|
|
13095
13095
|
...r,
|
|
13096
13096
|
planner: i
|
|
@@ -13268,7 +13268,7 @@ const Wt = hy((n) => ({
|
|
|
13268
13268
|
updateDrawingLine: (e, t) => {
|
|
13269
13269
|
n((r) => ({
|
|
13270
13270
|
...r,
|
|
13271
|
-
planner:
|
|
13271
|
+
planner: wn.updateDrawingLine(r.planner, e, t).updatedState
|
|
13272
13272
|
}));
|
|
13273
13273
|
},
|
|
13274
13274
|
updateMouseCoord: (e) => {
|
|
@@ -13319,7 +13319,7 @@ const Wt = hy((n) => ({
|
|
|
13319
13319
|
updateDraggingLine: (e, t) => {
|
|
13320
13320
|
n((r) => ({
|
|
13321
13321
|
...r,
|
|
13322
|
-
planner:
|
|
13322
|
+
planner: wn.updateDraggingLine(r.planner, e, t).updatedState
|
|
13323
13323
|
}));
|
|
13324
13324
|
},
|
|
13325
13325
|
updateDraggingVertex: (e, t) => {
|
|
@@ -13350,7 +13350,7 @@ const Wt = hy((n) => ({
|
|
|
13350
13350
|
});
|
|
13351
13351
|
return {
|
|
13352
13352
|
...s,
|
|
13353
|
-
planner:
|
|
13353
|
+
planner: wn.beginDraggingLine(o, e, t, r, i).updatedState
|
|
13354
13354
|
};
|
|
13355
13355
|
});
|
|
13356
13356
|
},
|
|
@@ -13364,7 +13364,7 @@ const Wt = hy((n) => ({
|
|
|
13364
13364
|
});
|
|
13365
13365
|
return {
|
|
13366
13366
|
...r,
|
|
13367
|
-
planner:
|
|
13367
|
+
planner: wn.endDraggingLine(i, e, t).updatedState
|
|
13368
13368
|
};
|
|
13369
13369
|
});
|
|
13370
13370
|
},
|
|
@@ -13474,7 +13474,7 @@ const Wt = hy((n) => ({
|
|
|
13474
13474
|
});
|
|
13475
13475
|
return {
|
|
13476
13476
|
...i,
|
|
13477
|
-
planner:
|
|
13477
|
+
planner: wn.beginDrawingLine(s, e, t, r).updatedState
|
|
13478
13478
|
};
|
|
13479
13479
|
});
|
|
13480
13480
|
},
|
|
@@ -13488,7 +13488,7 @@ const Wt = hy((n) => ({
|
|
|
13488
13488
|
});
|
|
13489
13489
|
return {
|
|
13490
13490
|
...r,
|
|
13491
|
-
planner:
|
|
13491
|
+
planner: wn.endDrawingLine(i, e, t).updatedState
|
|
13492
13492
|
};
|
|
13493
13493
|
});
|
|
13494
13494
|
},
|
|
@@ -13550,7 +13550,7 @@ const Wt = hy((n) => ({
|
|
|
13550
13550
|
selectToolDrawingLine: (e) => {
|
|
13551
13551
|
n((t) => ({
|
|
13552
13552
|
...t,
|
|
13553
|
-
planner:
|
|
13553
|
+
planner: wn.selectToolDrawingLine(t.planner, e).updatedState
|
|
13554
13554
|
}));
|
|
13555
13555
|
},
|
|
13556
13556
|
selectToolDrawingItem: (e) => {
|
|
@@ -22039,7 +22039,7 @@ class jn extends Or {
|
|
|
22039
22039
|
}
|
|
22040
22040
|
}
|
|
22041
22041
|
let UM = 0;
|
|
22042
|
-
const br = /* @__PURE__ */ new Gt(), Sf = /* @__PURE__ */ new Nt(), Co = /* @__PURE__ */ new G(), lr = /* @__PURE__ */ new Pi(), Xa = /* @__PURE__ */ new Pi(),
|
|
22042
|
+
const br = /* @__PURE__ */ new Gt(), Sf = /* @__PURE__ */ new Nt(), Co = /* @__PURE__ */ new G(), lr = /* @__PURE__ */ new Pi(), Xa = /* @__PURE__ */ new Pi(), Mn = /* @__PURE__ */ new G();
|
|
22043
22043
|
class ir extends ao {
|
|
22044
22044
|
/**
|
|
22045
22045
|
* Constructs a new geometry.
|
|
@@ -22303,7 +22303,7 @@ class ir extends ao {
|
|
|
22303
22303
|
if (this.boundingBox.setFromBufferAttribute(e), t)
|
|
22304
22304
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
22305
22305
|
const s = t[r];
|
|
22306
|
-
lr.setFromBufferAttribute(s), this.morphTargetsRelative ? (
|
|
22306
|
+
lr.setFromBufferAttribute(s), this.morphTargetsRelative ? (Mn.addVectors(this.boundingBox.min, lr.min), this.boundingBox.expandByPoint(Mn), Mn.addVectors(this.boundingBox.max, lr.max), this.boundingBox.expandByPoint(Mn)) : (this.boundingBox.expandByPoint(lr.min), this.boundingBox.expandByPoint(lr.max));
|
|
22307
22307
|
}
|
|
22308
22308
|
} else
|
|
22309
22309
|
this.boundingBox.makeEmpty();
|
|
@@ -22326,17 +22326,17 @@ class ir extends ao {
|
|
|
22326
22326
|
if (lr.setFromBufferAttribute(e), t)
|
|
22327
22327
|
for (let s = 0, o = t.length; s < o; s++) {
|
|
22328
22328
|
const a = t[s];
|
|
22329
|
-
Xa.setFromBufferAttribute(a), this.morphTargetsRelative ? (
|
|
22329
|
+
Xa.setFromBufferAttribute(a), this.morphTargetsRelative ? (Mn.addVectors(lr.min, Xa.min), lr.expandByPoint(Mn), Mn.addVectors(lr.max, Xa.max), lr.expandByPoint(Mn)) : (lr.expandByPoint(Xa.min), lr.expandByPoint(Xa.max));
|
|
22330
22330
|
}
|
|
22331
22331
|
lr.getCenter(r);
|
|
22332
22332
|
let i = 0;
|
|
22333
22333
|
for (let s = 0, o = e.count; s < o; s++)
|
|
22334
|
-
|
|
22334
|
+
Mn.fromBufferAttribute(e, s), i = Math.max(i, r.distanceToSquared(Mn));
|
|
22335
22335
|
if (t)
|
|
22336
22336
|
for (let s = 0, o = t.length; s < o; s++) {
|
|
22337
22337
|
const a = t[s], l = this.morphTargetsRelative;
|
|
22338
22338
|
for (let c = 0, h = a.count; c < h; c++)
|
|
22339
|
-
|
|
22339
|
+
Mn.fromBufferAttribute(a, c), l && (Co.fromBufferAttribute(e, c), Mn.add(Co)), i = Math.max(i, r.distanceToSquared(Mn));
|
|
22340
22340
|
}
|
|
22341
22341
|
this.boundingSphere.radius = Math.sqrt(i), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
|
|
22342
22342
|
}
|
|
@@ -22427,7 +22427,7 @@ class ir extends ao {
|
|
|
22427
22427
|
normalizeNormals() {
|
|
22428
22428
|
const e = this.attributes.normal;
|
|
22429
22429
|
for (let t = 0, r = e.count; t < r; t++)
|
|
22430
|
-
|
|
22430
|
+
Mn.fromBufferAttribute(e, t), Mn.normalize(), e.setXYZ(t, Mn.x, Mn.y, Mn.z);
|
|
22431
22431
|
}
|
|
22432
22432
|
/**
|
|
22433
22433
|
* Return a new non-index version of this indexed geometry. If the geometry
|
|
@@ -22570,7 +22570,7 @@ class ir extends ao {
|
|
|
22570
22570
|
}
|
|
22571
22571
|
}
|
|
22572
22572
|
const s1 = /* @__PURE__ */ new Gt(), Os = /* @__PURE__ */ new nh(), Tc = /* @__PURE__ */ new th(), o1 = /* @__PURE__ */ new G(), Ac = /* @__PURE__ */ new G(), Rc = /* @__PURE__ */ new G(), Cc = /* @__PURE__ */ new G(), Ef = /* @__PURE__ */ new G(), Pc = /* @__PURE__ */ new G(), a1 = /* @__PURE__ */ new G(), Ic = /* @__PURE__ */ new G();
|
|
22573
|
-
class
|
|
22573
|
+
class xn extends Nt {
|
|
22574
22574
|
/**
|
|
22575
22575
|
* Constructs a new mesh.
|
|
22576
22576
|
*
|
|
@@ -23224,7 +23224,7 @@ class GM extends Zs {
|
|
|
23224
23224
|
blending: ys
|
|
23225
23225
|
});
|
|
23226
23226
|
s.uniforms.tEquirect.value = t;
|
|
23227
|
-
const o = new
|
|
23227
|
+
const o = new xn(i, s), a = t.minFilter;
|
|
23228
23228
|
return t.minFilter === Ws && (t.minFilter = xi), new HM(1, 10, this).update(e, o), t.minFilter = a, o.geometry.dispose(), o.material.dispose(), this;
|
|
23229
23229
|
}
|
|
23230
23230
|
/**
|
|
@@ -31170,7 +31170,7 @@ function CT(n, e, t, r, i, s, o) {
|
|
|
31170
31170
|
}
|
|
31171
31171
|
function v(M, E) {
|
|
31172
31172
|
const S = m(E);
|
|
31173
|
-
S && (S.isCubeTexture || S.mapping === eh) ? (h === void 0 && (h = new
|
|
31173
|
+
S && (S.isCubeTexture || S.mapping === eh) ? (h === void 0 && (h = new xn(
|
|
31174
31174
|
new Js(1, 1, 1),
|
|
31175
31175
|
new As({
|
|
31176
31176
|
name: "BackgroundCubeMaterial",
|
|
@@ -31189,7 +31189,7 @@ function CT(n, e, t, r, i, s, o) {
|
|
|
31189
31189
|
get: function() {
|
|
31190
31190
|
return this.uniforms.envMap.value;
|
|
31191
31191
|
}
|
|
31192
|
-
}), i.update(h)), Ds.copy(E.backgroundRotation), Ds.x *= -1, Ds.y *= -1, Ds.z *= -1, S.isCubeTexture && S.isRenderTargetTexture === !1 && (Ds.y *= -1, Ds.z *= -1), h.material.uniforms.envMap.value = S, h.material.uniforms.flipEnvMap.value = S.isCubeTexture && S.isRenderTargetTexture === !1 ? -1 : 1, h.material.uniforms.backgroundBlurriness.value = E.backgroundBlurriness, h.material.uniforms.backgroundIntensity.value = E.backgroundIntensity, h.material.uniforms.backgroundRotation.value.setFromMatrix4(RT.makeRotationFromEuler(Ds)), h.material.toneMapped = Rt.getTransfer(S.colorSpace) !== Ut, (f !== S || p !== S.version || d !== n.toneMapping) && (h.material.needsUpdate = !0, f = S, p = S.version, d = n.toneMapping), h.layers.enableAll(), M.unshift(h, h.geometry, h.material, 0, 0, null)) : S && S.isTexture && (c === void 0 && (c = new
|
|
31192
|
+
}), i.update(h)), Ds.copy(E.backgroundRotation), Ds.x *= -1, Ds.y *= -1, Ds.z *= -1, S.isCubeTexture && S.isRenderTargetTexture === !1 && (Ds.y *= -1, Ds.z *= -1), h.material.uniforms.envMap.value = S, h.material.uniforms.flipEnvMap.value = S.isCubeTexture && S.isRenderTargetTexture === !1 ? -1 : 1, h.material.uniforms.backgroundBlurriness.value = E.backgroundBlurriness, h.material.uniforms.backgroundIntensity.value = E.backgroundIntensity, h.material.uniforms.backgroundRotation.value.setFromMatrix4(RT.makeRotationFromEuler(Ds)), h.material.toneMapped = Rt.getTransfer(S.colorSpace) !== Ut, (f !== S || p !== S.version || d !== n.toneMapping) && (h.material.needsUpdate = !0, f = S, p = S.version, d = n.toneMapping), h.layers.enableAll(), M.unshift(h, h.geometry, h.material, 0, 0, null)) : S && S.isTexture && (c === void 0 && (c = new xn(
|
|
31193
31193
|
new sh(2, 2),
|
|
31194
31194
|
new As({
|
|
31195
31195
|
name: "BackgroundMaterial",
|
|
@@ -31744,7 +31744,7 @@ class P1 {
|
|
|
31744
31744
|
return i;
|
|
31745
31745
|
}
|
|
31746
31746
|
_compileMaterial(e) {
|
|
31747
|
-
const t = new
|
|
31747
|
+
const t = new xn(this._lodPlanes[0], e);
|
|
31748
31748
|
this._renderer.compile(t, Pf);
|
|
31749
31749
|
}
|
|
31750
31750
|
_sceneToCubeUV(e, t, r, i, s) {
|
|
@@ -31755,7 +31755,7 @@ class P1 {
|
|
|
31755
31755
|
side: nr,
|
|
31756
31756
|
depthWrite: !1,
|
|
31757
31757
|
depthTest: !1
|
|
31758
|
-
}), v = new
|
|
31758
|
+
}), v = new xn(new Js(), x);
|
|
31759
31759
|
let _ = !1;
|
|
31760
31760
|
const b = e.background;
|
|
31761
31761
|
b ? b.isColor && (x.color.copy(b), e.background = null, _ = !0) : (x.color.copy(R1), _ = !0);
|
|
@@ -31770,7 +31770,7 @@ class P1 {
|
|
|
31770
31770
|
_textureToCubeUV(e, t) {
|
|
31771
31771
|
const r = this._renderer, i = e.mapping === ua || e.mapping === ha;
|
|
31772
31772
|
i ? (this._cubemapMaterial === null && (this._cubemapMaterial = O1()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = L1());
|
|
31773
|
-
const s = i ? this._cubemapMaterial : this._equirectMaterial, o = new
|
|
31773
|
+
const s = i ? this._cubemapMaterial : this._equirectMaterial, o = new xn(this._lodPlanes[0], s), a = s.uniforms;
|
|
31774
31774
|
a.envMap.value = e;
|
|
31775
31775
|
const l = this._cubeSize;
|
|
31776
31776
|
Vc(t, 0, 0, 3 * l, 2 * l), r.setRenderTarget(t), r.render(o, Pf);
|
|
@@ -31824,7 +31824,7 @@ class P1 {
|
|
|
31824
31824
|
o !== "latitudinal" && o !== "longitudinal" && console.error(
|
|
31825
31825
|
"blur direction must be either latitudinal or longitudinal!"
|
|
31826
31826
|
);
|
|
31827
|
-
const h = 3, f = new
|
|
31827
|
+
const h = 3, f = new xn(this._lodPlanes[i], c), p = c.uniforms, d = this._sizeLods[r] - 1, m = isFinite(s) ? Math.PI / (2 * d) : 2 * Math.PI / (2 * Hs - 1), x = s / m, v = isFinite(s) ? 1 + Math.floor(h * x) : Hs;
|
|
31828
31828
|
v > Hs && console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${v} samples when the maximum is set to ${Hs}`);
|
|
31829
31829
|
const _ = [];
|
|
31830
31830
|
let b = 0;
|
|
@@ -32407,13 +32407,13 @@ function Ra(n, e, t) {
|
|
|
32407
32407
|
}
|
|
32408
32408
|
return s;
|
|
32409
32409
|
}
|
|
32410
|
-
function
|
|
32410
|
+
function Sn(n, e) {
|
|
32411
32411
|
if (n.length !== e.length) return !1;
|
|
32412
32412
|
for (let t = 0, r = n.length; t < r; t++)
|
|
32413
32413
|
if (n[t] !== e[t]) return !1;
|
|
32414
32414
|
return !0;
|
|
32415
32415
|
}
|
|
32416
|
-
function
|
|
32416
|
+
function En(n, e) {
|
|
32417
32417
|
for (let t = 0, r = e.length; t < r; t++)
|
|
32418
32418
|
n[t] = e[t];
|
|
32419
32419
|
}
|
|
@@ -32433,8 +32433,8 @@ function jT(n, e) {
|
|
|
32433
32433
|
if (e.x !== void 0)
|
|
32434
32434
|
(t[0] !== e.x || t[1] !== e.y) && (n.uniform2f(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
32435
32435
|
else {
|
|
32436
|
-
if (
|
|
32437
|
-
n.uniform2fv(this.addr, e),
|
|
32436
|
+
if (Sn(t, e)) return;
|
|
32437
|
+
n.uniform2fv(this.addr, e), En(t, e);
|
|
32438
32438
|
}
|
|
32439
32439
|
}
|
|
32440
32440
|
function XT(n, e) {
|
|
@@ -32444,8 +32444,8 @@ function XT(n, e) {
|
|
|
32444
32444
|
else if (e.r !== void 0)
|
|
32445
32445
|
(t[0] !== e.r || t[1] !== e.g || t[2] !== e.b) && (n.uniform3f(this.addr, e.r, e.g, e.b), t[0] = e.r, t[1] = e.g, t[2] = e.b);
|
|
32446
32446
|
else {
|
|
32447
|
-
if (
|
|
32448
|
-
n.uniform3fv(this.addr, e),
|
|
32447
|
+
if (Sn(t, e)) return;
|
|
32448
|
+
n.uniform3fv(this.addr, e), En(t, e);
|
|
32449
32449
|
}
|
|
32450
32450
|
}
|
|
32451
32451
|
function YT(n, e) {
|
|
@@ -32453,38 +32453,38 @@ function YT(n, e) {
|
|
|
32453
32453
|
if (e.x !== void 0)
|
|
32454
32454
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (n.uniform4f(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w);
|
|
32455
32455
|
else {
|
|
32456
|
-
if (
|
|
32457
|
-
n.uniform4fv(this.addr, e),
|
|
32456
|
+
if (Sn(t, e)) return;
|
|
32457
|
+
n.uniform4fv(this.addr, e), En(t, e);
|
|
32458
32458
|
}
|
|
32459
32459
|
}
|
|
32460
32460
|
function $T(n, e) {
|
|
32461
32461
|
const t = this.cache, r = e.elements;
|
|
32462
32462
|
if (r === void 0) {
|
|
32463
|
-
if (
|
|
32464
|
-
n.uniformMatrix2fv(this.addr, !1, e),
|
|
32463
|
+
if (Sn(t, e)) return;
|
|
32464
|
+
n.uniformMatrix2fv(this.addr, !1, e), En(t, e);
|
|
32465
32465
|
} else {
|
|
32466
|
-
if (
|
|
32467
|
-
z1.set(r), n.uniformMatrix2fv(this.addr, !1, z1),
|
|
32466
|
+
if (Sn(t, r)) return;
|
|
32467
|
+
z1.set(r), n.uniformMatrix2fv(this.addr, !1, z1), En(t, r);
|
|
32468
32468
|
}
|
|
32469
32469
|
}
|
|
32470
32470
|
function KT(n, e) {
|
|
32471
32471
|
const t = this.cache, r = e.elements;
|
|
32472
32472
|
if (r === void 0) {
|
|
32473
|
-
if (
|
|
32474
|
-
n.uniformMatrix3fv(this.addr, !1, e),
|
|
32473
|
+
if (Sn(t, e)) return;
|
|
32474
|
+
n.uniformMatrix3fv(this.addr, !1, e), En(t, e);
|
|
32475
32475
|
} else {
|
|
32476
|
-
if (
|
|
32477
|
-
F1.set(r), n.uniformMatrix3fv(this.addr, !1, F1),
|
|
32476
|
+
if (Sn(t, r)) return;
|
|
32477
|
+
F1.set(r), n.uniformMatrix3fv(this.addr, !1, F1), En(t, r);
|
|
32478
32478
|
}
|
|
32479
32479
|
}
|
|
32480
32480
|
function ZT(n, e) {
|
|
32481
32481
|
const t = this.cache, r = e.elements;
|
|
32482
32482
|
if (r === void 0) {
|
|
32483
|
-
if (
|
|
32484
|
-
n.uniformMatrix4fv(this.addr, !1, e),
|
|
32483
|
+
if (Sn(t, e)) return;
|
|
32484
|
+
n.uniformMatrix4fv(this.addr, !1, e), En(t, e);
|
|
32485
32485
|
} else {
|
|
32486
|
-
if (
|
|
32487
|
-
U1.set(r), n.uniformMatrix4fv(this.addr, !1, U1),
|
|
32486
|
+
if (Sn(t, r)) return;
|
|
32487
|
+
U1.set(r), n.uniformMatrix4fv(this.addr, !1, U1), En(t, r);
|
|
32488
32488
|
}
|
|
32489
32489
|
}
|
|
32490
32490
|
function JT(n, e) {
|
|
@@ -32496,8 +32496,8 @@ function QT(n, e) {
|
|
|
32496
32496
|
if (e.x !== void 0)
|
|
32497
32497
|
(t[0] !== e.x || t[1] !== e.y) && (n.uniform2i(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
32498
32498
|
else {
|
|
32499
|
-
if (
|
|
32500
|
-
n.uniform2iv(this.addr, e),
|
|
32499
|
+
if (Sn(t, e)) return;
|
|
32500
|
+
n.uniform2iv(this.addr, e), En(t, e);
|
|
32501
32501
|
}
|
|
32502
32502
|
}
|
|
32503
32503
|
function e6(n, e) {
|
|
@@ -32505,8 +32505,8 @@ function e6(n, e) {
|
|
|
32505
32505
|
if (e.x !== void 0)
|
|
32506
32506
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z) && (n.uniform3i(this.addr, e.x, e.y, e.z), t[0] = e.x, t[1] = e.y, t[2] = e.z);
|
|
32507
32507
|
else {
|
|
32508
|
-
if (
|
|
32509
|
-
n.uniform3iv(this.addr, e),
|
|
32508
|
+
if (Sn(t, e)) return;
|
|
32509
|
+
n.uniform3iv(this.addr, e), En(t, e);
|
|
32510
32510
|
}
|
|
32511
32511
|
}
|
|
32512
32512
|
function t6(n, e) {
|
|
@@ -32514,8 +32514,8 @@ function t6(n, e) {
|
|
|
32514
32514
|
if (e.x !== void 0)
|
|
32515
32515
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (n.uniform4i(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w);
|
|
32516
32516
|
else {
|
|
32517
|
-
if (
|
|
32518
|
-
n.uniform4iv(this.addr, e),
|
|
32517
|
+
if (Sn(t, e)) return;
|
|
32518
|
+
n.uniform4iv(this.addr, e), En(t, e);
|
|
32519
32519
|
}
|
|
32520
32520
|
}
|
|
32521
32521
|
function n6(n, e) {
|
|
@@ -32527,8 +32527,8 @@ function r6(n, e) {
|
|
|
32527
32527
|
if (e.x !== void 0)
|
|
32528
32528
|
(t[0] !== e.x || t[1] !== e.y) && (n.uniform2ui(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
32529
32529
|
else {
|
|
32530
|
-
if (
|
|
32531
|
-
n.uniform2uiv(this.addr, e),
|
|
32530
|
+
if (Sn(t, e)) return;
|
|
32531
|
+
n.uniform2uiv(this.addr, e), En(t, e);
|
|
32532
32532
|
}
|
|
32533
32533
|
}
|
|
32534
32534
|
function i6(n, e) {
|
|
@@ -32536,8 +32536,8 @@ function i6(n, e) {
|
|
|
32536
32536
|
if (e.x !== void 0)
|
|
32537
32537
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z) && (n.uniform3ui(this.addr, e.x, e.y, e.z), t[0] = e.x, t[1] = e.y, t[2] = e.z);
|
|
32538
32538
|
else {
|
|
32539
|
-
if (
|
|
32540
|
-
n.uniform3uiv(this.addr, e),
|
|
32539
|
+
if (Sn(t, e)) return;
|
|
32540
|
+
n.uniform3uiv(this.addr, e), En(t, e);
|
|
32541
32541
|
}
|
|
32542
32542
|
}
|
|
32543
32543
|
function s6(n, e) {
|
|
@@ -32545,8 +32545,8 @@ function s6(n, e) {
|
|
|
32545
32545
|
if (e.x !== void 0)
|
|
32546
32546
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (n.uniform4ui(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w);
|
|
32547
32547
|
else {
|
|
32548
|
-
if (
|
|
32549
|
-
n.uniform4uiv(this.addr, e),
|
|
32548
|
+
if (Sn(t, e)) return;
|
|
32549
|
+
n.uniform4uiv(this.addr, e), En(t, e);
|
|
32550
32550
|
}
|
|
32551
32551
|
}
|
|
32552
32552
|
function o6(n, e, t) {
|
|
@@ -32705,25 +32705,25 @@ function w6(n, e) {
|
|
|
32705
32705
|
}
|
|
32706
32706
|
function T6(n, e, t) {
|
|
32707
32707
|
const r = this.cache, i = e.length, s = oh(t, i);
|
|
32708
|
-
|
|
32708
|
+
Sn(r, s) || (n.uniform1iv(this.addr, s), En(r, s));
|
|
32709
32709
|
for (let o = 0; o !== i; ++o)
|
|
32710
32710
|
t.setTexture2D(e[o] || r2, s[o]);
|
|
32711
32711
|
}
|
|
32712
32712
|
function A6(n, e, t) {
|
|
32713
32713
|
const r = this.cache, i = e.length, s = oh(t, i);
|
|
32714
|
-
|
|
32714
|
+
Sn(r, s) || (n.uniform1iv(this.addr, s), En(r, s));
|
|
32715
32715
|
for (let o = 0; o !== i; ++o)
|
|
32716
32716
|
t.setTexture3D(e[o] || s2, s[o]);
|
|
32717
32717
|
}
|
|
32718
32718
|
function R6(n, e, t) {
|
|
32719
32719
|
const r = this.cache, i = e.length, s = oh(t, i);
|
|
32720
|
-
|
|
32720
|
+
Sn(r, s) || (n.uniform1iv(this.addr, s), En(r, s));
|
|
32721
32721
|
for (let o = 0; o !== i; ++o)
|
|
32722
32722
|
t.setTextureCube(e[o] || o2, s[o]);
|
|
32723
32723
|
}
|
|
32724
32724
|
function C6(n, e, t) {
|
|
32725
32725
|
const r = this.cache, i = e.length, s = oh(t, i);
|
|
32726
|
-
|
|
32726
|
+
Sn(r, s) || (n.uniform1iv(this.addr, s), En(r, s));
|
|
32727
32727
|
for (let o = 0; o !== i; ++o)
|
|
32728
32728
|
t.setTexture2DArray(e[o] || i2, s[o]);
|
|
32729
32729
|
}
|
|
@@ -34111,7 +34111,7 @@ function _8(n, e, t) {
|
|
|
34111
34111
|
3
|
|
34112
34112
|
)
|
|
34113
34113
|
);
|
|
34114
|
-
const x = new
|
|
34114
|
+
const x = new xn(m, p), v = this;
|
|
34115
34115
|
this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = wx;
|
|
34116
34116
|
let _ = this.type;
|
|
34117
34117
|
this.render = function(T, q, O) {
|
|
@@ -35350,7 +35350,7 @@ class M8 {
|
|
|
35350
35350
|
depthHeight: { value: t.w }
|
|
35351
35351
|
}
|
|
35352
35352
|
});
|
|
35353
|
-
this.mesh = new
|
|
35353
|
+
this.mesh = new xn(new sh(20, 20), r);
|
|
35354
35354
|
}
|
|
35355
35355
|
return this.mesh;
|
|
35356
35356
|
}
|
|
@@ -37832,7 +37832,7 @@ function l2(n) {
|
|
|
37832
37832
|
}
|
|
37833
37833
|
}
|
|
37834
37834
|
function c2(n) {
|
|
37835
|
-
(n instanceof
|
|
37835
|
+
(n instanceof xn || n instanceof G4 || n instanceof wl) && (F8(n.geometry), l2(n.material), n.geometry = null, n.material = null);
|
|
37836
37836
|
}
|
|
37837
37837
|
function k8(n) {
|
|
37838
37838
|
n.traverse((e) => {
|
|
@@ -38503,12 +38503,16 @@ function $8(n, e, t, r, i, s, o, a, l, c) {
|
|
|
38503
38503
|
}
|
|
38504
38504
|
function lh(n, e) {
|
|
38505
38505
|
n.traverse((t) => {
|
|
38506
|
-
|
|
38506
|
+
console.log({
|
|
38507
|
+
child: t,
|
|
38508
|
+
instance: t instanceof xn,
|
|
38509
|
+
an: t.isMesh
|
|
38510
|
+
}), t instanceof xn && (t.interact = e);
|
|
38507
38511
|
});
|
|
38508
38512
|
}
|
|
38509
38513
|
function ch(n, e) {
|
|
38510
38514
|
n.traverse((t) => {
|
|
38511
|
-
t instanceof
|
|
38515
|
+
t instanceof xn && (t.material instanceof Array ? t.material.forEach((r) => {
|
|
38512
38516
|
r.transparent = !0, r.maxOpacity ? r.opacity = Math.min(r.maxOpacity, e) : r.opacity && r.opacity > e && (r.maxOpacity = r.opacity, r.opacity = e);
|
|
38513
38517
|
}) : (t.material.transparent = !0, t.material.maxOpacity ? t.material.opacity = Math.min(t.material.maxOpacity, e) : t.material.opacity && t.material.opacity > e && (t.material.maxOpacity = t.material.opacity, t.material.opacity = e)));
|
|
38514
38518
|
});
|
|
@@ -39333,7 +39337,7 @@ function d2(n) {
|
|
|
39333
39337
|
key: t
|
|
39334
39338
|
}, e.attr), d2(e.child)));
|
|
39335
39339
|
}
|
|
39336
|
-
function
|
|
39340
|
+
function bn(n) {
|
|
39337
39341
|
return (e) => /* @__PURE__ */ Ce.createElement(qA, Ou({
|
|
39338
39342
|
attr: qu({}, n.attr)
|
|
39339
39343
|
}, e), d2(n.child));
|
|
@@ -39362,22 +39366,22 @@ function qA(n) {
|
|
|
39362
39366
|
return Q1 !== void 0 ? /* @__PURE__ */ Ce.createElement(Q1.Consumer, null, (t) => e(t)) : e(f2);
|
|
39363
39367
|
}
|
|
39364
39368
|
function DA(n) {
|
|
39365
|
-
return
|
|
39369
|
+
return bn({ attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }, child: [] }] })(n);
|
|
39366
39370
|
}
|
|
39367
39371
|
function NA(n) {
|
|
39368
|
-
return
|
|
39372
|
+
return bn({ attr: { viewBox: "0 0 192 512" }, child: [{ tag: "path", attr: { d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }, child: [] }] })(n);
|
|
39369
39373
|
}
|
|
39370
39374
|
function UA(n) {
|
|
39371
|
-
return
|
|
39375
|
+
return bn({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z" }, child: [] }] })(n);
|
|
39372
39376
|
}
|
|
39373
39377
|
function FA(n) {
|
|
39374
|
-
return
|
|
39378
|
+
return bn({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z" }, child: [] }] })(n);
|
|
39375
39379
|
}
|
|
39376
39380
|
function zA(n) {
|
|
39377
|
-
return
|
|
39381
|
+
return bn({ attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z" }, child: [] }] })(n);
|
|
39378
39382
|
}
|
|
39379
39383
|
function kA(n) {
|
|
39380
|
-
return
|
|
39384
|
+
return bn({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z" }, child: [] }] })(n);
|
|
39381
39385
|
}
|
|
39382
39386
|
const p2 = {
|
|
39383
39387
|
width: "14em",
|
|
@@ -39503,22 +39507,22 @@ const p2 = {
|
|
|
39503
39507
|
);
|
|
39504
39508
|
};
|
|
39505
39509
|
function $A(n) {
|
|
39506
|
-
return
|
|
39510
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z" }, child: [] }] })(n);
|
|
39507
39511
|
}
|
|
39508
39512
|
function KA(n) {
|
|
39509
|
-
return
|
|
39513
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z" }, child: [] }] })(n);
|
|
39510
39514
|
}
|
|
39511
39515
|
function ZA(n) {
|
|
39512
|
-
return
|
|
39516
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" }, child: [] }] })(n);
|
|
39513
39517
|
}
|
|
39514
39518
|
function JA(n) {
|
|
39515
|
-
return
|
|
39519
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z" }, child: [] }] })(n);
|
|
39516
39520
|
}
|
|
39517
39521
|
function _2(n) {
|
|
39518
|
-
return
|
|
39522
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" }, child: [] }] })(n);
|
|
39519
39523
|
}
|
|
39520
39524
|
function QA(n) {
|
|
39521
|
-
return
|
|
39525
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 8h-6V5h6v6zm-8-6v6H5V5h6zm-6 8h6v6H5v-6zm8 6v-6h6v6h-6z" }, child: [] }] })(n);
|
|
39522
39526
|
}
|
|
39523
39527
|
const e7 = {
|
|
39524
39528
|
margin: "1.5em",
|
|
@@ -39857,10 +39861,10 @@ function g7({ width: n, height: e, catalog: t }) {
|
|
|
39857
39861
|
) : s === ba ? /* @__PURE__ */ C.jsx(C.Fragment, {}) : s === Yp ? /* @__PURE__ */ C.jsx(p7, { width: n, height: e, catalog: t }) : m7[s] ? /* @__PURE__ */ C.jsx(Pb, { width: n, height: e, catalog: t }) : s === Ov ? /* @__PURE__ */ C.jsx(C.Fragment, {}) : null;
|
|
39858
39862
|
}
|
|
39859
39863
|
function _7(n) {
|
|
39860
|
-
return
|
|
39864
|
+
return bn({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6" }, child: [] }] })(n);
|
|
39861
39865
|
}
|
|
39862
39866
|
function v7(n) {
|
|
39863
|
-
return
|
|
39867
|
+
return bn({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6" }, child: [] }] })(n);
|
|
39864
39868
|
}
|
|
39865
39869
|
const x7 = (n, e, t, r, i) => r + (i - r) * (n - e) / (t - e), y7 = ({ sidebarWidth: n }) => {
|
|
39866
39870
|
const { planner: e, viewer: t } = Wt(), { mode: r, mouse: i, zoom: s } = e, o = (a) => {
|
|
@@ -44946,9 +44950,9 @@ const dp = ({
|
|
|
44946
44950
|
], fC = ({ catalog: n }) => {
|
|
44947
44951
|
const { planner: e } = Wt(), { scene: t, mode: r } = e;
|
|
44948
44952
|
return hC.includes(r) ? t.layers.valueSeq().flatMap(
|
|
44949
|
-
(s) =>
|
|
44953
|
+
(s) => yn().concat(s.lines, s.holes, s.areas, s.items).filter((o) => o.selected).map((o) => ({ element: o, layer: s }))
|
|
44950
44954
|
).toArray().length === 0 ? /* @__PURE__ */ C.jsx(uC, {}) : /* @__PURE__ */ C.jsx("div", { children: t.layers.valueSeq().map(
|
|
44951
|
-
(s) =>
|
|
44955
|
+
(s) => yn().concat(s.lines, s.holes, s.areas, s.items).filter((o) => o.selected).map((o) => /* @__PURE__ */ C.jsx(
|
|
44952
44956
|
O2,
|
|
44953
44957
|
{
|
|
44954
44958
|
name: "Properties",
|
|
@@ -45223,7 +45227,7 @@ const dp = ({
|
|
|
45223
45227
|
};
|
|
45224
45228
|
});
|
|
45225
45229
|
function c_(n) {
|
|
45226
|
-
return
|
|
45230
|
+
return bn({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M7 19a2 2 0 0 1 -2 -2" }, child: [] }, { tag: "path", attr: { d: "M5 13v-2" }, child: [] }, { tag: "path", attr: { d: "M5 7a2 2 0 0 1 2 -2" }, child: [] }, { tag: "path", attr: { d: "M11 5h2" }, child: [] }, { tag: "path", attr: { d: "M17 5a2 2 0 0 1 2 2" }, child: [] }, { tag: "path", attr: { d: "M19 11v2" }, child: [] }, { tag: "path", attr: { d: "M19 17v4" }, child: [] }, { tag: "path", attr: { d: "M21 19h-4" }, child: [] }, { tag: "path", attr: { d: "M13 19h-2" }, child: [] }] })(n);
|
|
45227
45231
|
}
|
|
45228
45232
|
const u_ = (n) => {
|
|
45229
45233
|
let e = document.createElement("a"), t = "output" + Date.now() + ".png";
|
|
@@ -45270,7 +45274,7 @@ function xC({ mode: n }) {
|
|
|
45270
45274
|
) : null;
|
|
45271
45275
|
}
|
|
45272
45276
|
function yC(n) {
|
|
45273
|
-
return
|
|
45277
|
+
return bn({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "rect", attr: { width: "18", height: "18", x: "3", y: "3", rx: "2" }, child: [] }, { tag: "path", attr: { d: "M12 9v6" }, child: [] }, { tag: "path", attr: { d: "M16 15v6" }, child: [] }, { tag: "path", attr: { d: "M16 3v6" }, child: [] }, { tag: "path", attr: { d: "M3 15h18" }, child: [] }, { tag: "path", attr: { d: "M3 9h18" }, child: [] }, { tag: "path", attr: { d: "M8 15v6" }, child: [] }, { tag: "path", attr: { d: "M8 3v6" }, child: [] }] })(n);
|
|
45274
45278
|
}
|
|
45275
45279
|
const SC = /^.*$/;
|
|
45276
45280
|
function EC({
|
|
@@ -45356,7 +45360,7 @@ function f_({
|
|
|
45356
45360
|
{
|
|
45357
45361
|
value: n,
|
|
45358
45362
|
onChange: (a) => o(a.target.value),
|
|
45359
|
-
children:
|
|
45363
|
+
children: yn(t.values).entrySeq().map(([a, l]) => /* @__PURE__ */ C.jsx("option", { value: a, children: l }, a))
|
|
45360
45364
|
}
|
|
45361
45365
|
)
|
|
45362
45366
|
] });
|
|
@@ -45664,7 +45668,7 @@ class C9 {
|
|
|
45664
45668
|
}
|
|
45665
45669
|
}
|
|
45666
45670
|
function TC(n) {
|
|
45667
|
-
return
|
|
45671
|
+
return bn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z" }, child: [] }] })(n);
|
|
45668
45672
|
}
|
|
45669
45673
|
const AC = ({
|
|
45670
45674
|
term: n = "",
|
|
@@ -45893,10 +45897,10 @@ const AC = ({
|
|
|
45893
45897
|
] });
|
|
45894
45898
|
};
|
|
45895
45899
|
function PC(n) {
|
|
45896
|
-
return
|
|
45900
|
+
return bn({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M320 32c0-9.9-4.5-19.2-12.3-25.2S289.8-1.4 280.2 1l-179.9 45C79 51.3 64 70.5 64 92.5L64 448l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 192 0 32 0 0-32 0-448zM256 256c0 17.7-10.7 32-24 32s-24-14.3-24-32s10.7-32 24-32s24 14.3 24 32zm96-128l96 0 0 352c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0 0-320c0-35.3-28.7-64-64-64l-96 0 0 64z" }, child: [] }] })(n);
|
|
45897
45901
|
}
|
|
45898
45902
|
function IC(n) {
|
|
45899
|
-
return
|
|
45903
|
+
return bn({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M112 73c-13.75 0-24.214 4.87-33.047 13.271-8.832 8.402-15.755 20.6-20.414 34.575-5.887 17.661-7.953 38.064-6.887 56.111a57.246 57.246 0 0 1 2.461-.187c8.38-.405 16.317 1.094 23.494 4.234 14.355 6.28 25.436 18.27 34.057 32.28 15.104 24.543 23.187 55.746 24.96 80.585 114.097-14.223 124.655-14.223 238.753 0 1.772-24.84 9.855-56.042 24.959-80.586 8.62-14.009 19.702-25.999 34.057-32.28 7.875-3.444 16.67-4.898 25.955-4.046 1.066-18.047-1-38.45-6.887-56.111-4.659-13.976-11.582-26.173-20.414-34.575C424.214 77.87 413.75 73 400 73zM56.969 194.502c-.686-.008-1.38.006-2.082.04-5.621.284-11.8 1.978-18.862 5.509-23.413 11.707-26.349 65.687 14.82 79.41l4.505 1.502L86.79 391h338.42l31.44-110.037 4.504-1.502c41.17-13.723 38.234-67.703 14.82-79.41-14.121-7.061-24.722-6.775-34.367-2.555-9.645 4.22-18.564 13.23-25.943 25.22C400.906 246.7 393 282 393 304v10.195l-10.117-1.265c-128-16-125.766-16-253.766 0L119 314.195V304c0-22-7.906-57.3-22.664-81.283-7.38-11.991-16.298-21.001-25.943-25.22-4.22-1.847-8.624-2.94-13.424-2.995zM83.727 409l-23.272 23.271c11.994 3.239 33.75 3.763 42.545-1.666 3.272-4.695 6.903-14.536 10.438-21.605zm314.836 0c1.494 6.017 6.952 19.12 10.437 21.605 13.2 5.463 29.904 5.774 42.545 1.666L428.273 409z" }, child: [] }] })(n);
|
|
45900
45904
|
}
|
|
45901
45905
|
const N2 = {
|
|
45902
45906
|
fontSize: "19px",
|
|
@@ -45916,7 +45920,7 @@ function qC({ catalog: n, has3dView: e }) {
|
|
|
45916
45920
|
selectToolDrawingLine: a
|
|
45917
45921
|
} = Wt(), { mode: l, alterate: c } = t, [h, f] = un(null);
|
|
45918
45922
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
45919
|
-
/* @__PURE__ */ C.jsxs("aside", { className: "floor_planner-toolbar -mt-[
|
|
45923
|
+
/* @__PURE__ */ C.jsxs("aside", { className: "floor_planner-toolbar -mt-[20px] absolute left-2 !pt-3 top-1/2 -translate-y-1/2 z-[1] rounded max-h-full max-w-[50px] p-2.5 space-y-4 bg-[#2b2b2b]", children: [
|
|
45920
45924
|
/* @__PURE__ */ C.jsx(
|
|
45921
45925
|
Ar,
|
|
45922
45926
|
{
|
|
@@ -47273,7 +47277,7 @@ class $s {
|
|
|
47273
47277
|
ut(this, "Node");
|
|
47274
47278
|
ut(this, "matrix");
|
|
47275
47279
|
ut(this, "tree");
|
|
47276
|
-
if (this.Polygon = $o, this.Vertex = Nu, this.Node = Wi, e instanceof
|
|
47280
|
+
if (this.Polygon = $o, this.Vertex = Nu, this.Node = Wi, e instanceof xn)
|
|
47277
47281
|
e.updateMatrixWorld(), this.matrix = e.matrixWorld.clone(), e = e.geometry;
|
|
47278
47282
|
else if (e instanceof ir)
|
|
47279
47283
|
this.matrix = new Gt();
|
|
@@ -47324,7 +47328,7 @@ class $s {
|
|
|
47324
47328
|
), s.setAttribute("uv", new jn(r, 2)), s.computeVertexNormals(), s;
|
|
47325
47329
|
}
|
|
47326
47330
|
toMesh(e) {
|
|
47327
|
-
const t = this.toGeometry(), r = new
|
|
47331
|
+
const t = this.toGeometry(), r = new xn(t, e), i = new G(), s = new Ts(), o = new G();
|
|
47328
47332
|
return this.matrix.decompose(i, s, o), r.position.copy(i), r.quaternion.copy(s), r.scale.copy(o), r;
|
|
47329
47333
|
}
|
|
47330
47334
|
}
|
|
@@ -47517,13 +47521,13 @@ function i9(n, e, t, r) {
|
|
|
47517
47521
|
const a = n.properties.getIn(["height", "length"]), l = n.properties.getIn(["thickness", "length"]), c = 0.2, h = 1, f = ju(i, s), p = f / 2, d = l / 2, m = new Xs({
|
|
47518
47522
|
color: n.selected ? zt.MESH_SELECTED : 13882323
|
|
47519
47523
|
});
|
|
47520
|
-
let x = new
|
|
47524
|
+
let x = new xn(
|
|
47521
47525
|
new Js(f, a, l),
|
|
47522
47526
|
m
|
|
47523
47527
|
);
|
|
47524
47528
|
const v = Math.asin((s.y - i.y) / f), _ = Math.sin(v), b = Math.cos(v);
|
|
47525
47529
|
x.position.y += a / 2, x.position.x += p * b, x.position.z -= p * _, x.rotation.y = v, n.holes.forEach((L) => {
|
|
47526
|
-
const N = e.holes.get(L), Z = N.properties.getIn(["width", "length"]), K = N.properties.getIn(["height", "length"]), ne = N.properties.getIn(["altitude", "length"]), J = (o ? 1 - N.offset : N.offset) * f, se = new Js(Z, K, l), B = new
|
|
47530
|
+
const N = e.holes.get(L), Z = N.properties.getIn(["width", "length"]), K = N.properties.getIn(["height", "length"]), ne = N.properties.getIn(["altitude", "length"]), J = (o ? 1 - N.offset : N.offset) * f, se = new Js(Z, K, l), B = new xn(se);
|
|
47527
47531
|
B.position.y += K / 2 + ne, B.position.x += J * b, B.position.z -= J * _, B.rotation.y = v;
|
|
47528
47532
|
const ve = new $s(x), U = new $s(B);
|
|
47529
47533
|
x = ve.subtract(U).toMesh(m);
|
|
@@ -47721,10 +47725,10 @@ function u9(n, e, t, r) {
|
|
|
47721
47725
|
const c = new Mm(a);
|
|
47722
47726
|
c9(c);
|
|
47723
47727
|
const h = new Pi().setFromObject(
|
|
47724
|
-
new
|
|
47728
|
+
new xn(c, new Xs())
|
|
47725
47729
|
), f = h.max.x - h.min.x, p = h.max.y - h.min.y, d = r[o];
|
|
47726
47730
|
l9(l, d, f, p);
|
|
47727
|
-
const m = new
|
|
47731
|
+
const m = new xn(c, l);
|
|
47728
47732
|
return m.rotation.x -= Math.PI / 2, m.name = "floor", Promise.resolve(m);
|
|
47729
47733
|
}
|
|
47730
47734
|
async function h9(n, e, t, r, i, s, o, a, l) {
|