@osamash/floor-planner 1.0.9 → 1.1.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
CHANGED
|
@@ -6125,7 +6125,7 @@ function em() {
|
|
|
6125
6125
|
});
|
|
6126
6126
|
var D = jm(u);
|
|
6127
6127
|
return C.map(function(k) {
|
|
6128
|
-
return
|
|
6128
|
+
return kt(u, D(k));
|
|
6129
6129
|
});
|
|
6130
6130
|
}
|
|
6131
6131
|
function ph(u, g, y, w) {
|
|
@@ -6365,7 +6365,7 @@ function em() {
|
|
|
6365
6365
|
});
|
|
6366
6366
|
}, w;
|
|
6367
6367
|
}
|
|
6368
|
-
function
|
|
6368
|
+
function kt(u, g) {
|
|
6369
6369
|
return Mt(u) ? g : u.constructor(g);
|
|
6370
6370
|
}
|
|
6371
6371
|
function Gm(u) {
|
|
@@ -6786,7 +6786,7 @@ function em() {
|
|
|
6786
6786
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
6787
6787
|
concat: function() {
|
|
6788
6788
|
var u = t.call(arguments, 0);
|
|
6789
|
-
return
|
|
6789
|
+
return kt(this, V2(this, u));
|
|
6790
6790
|
},
|
|
6791
6791
|
includes: function(u) {
|
|
6792
6792
|
return this.some(function(g) {
|
|
@@ -6805,7 +6805,7 @@ function em() {
|
|
|
6805
6805
|
}), y;
|
|
6806
6806
|
},
|
|
6807
6807
|
filter: function(u, g) {
|
|
6808
|
-
return
|
|
6808
|
+
return kt(this, km(this, u, g, !0));
|
|
6809
6809
|
},
|
|
6810
6810
|
find: function(u, g, y) {
|
|
6811
6811
|
var w = this.findEntry(u, g);
|
|
@@ -6825,7 +6825,7 @@ function em() {
|
|
|
6825
6825
|
return this.__iterator(ve);
|
|
6826
6826
|
},
|
|
6827
6827
|
map: function(u, g) {
|
|
6828
|
-
return
|
|
6828
|
+
return kt(this, zm(this, u, g));
|
|
6829
6829
|
},
|
|
6830
6830
|
reduce: function(u, g, y) {
|
|
6831
6831
|
kn(this.size);
|
|
@@ -6839,16 +6839,16 @@ function em() {
|
|
|
6839
6839
|
return w.reduce.apply(w, arguments);
|
|
6840
6840
|
},
|
|
6841
6841
|
reverse: function() {
|
|
6842
|
-
return
|
|
6842
|
+
return kt(this, dh(this, !0));
|
|
6843
6843
|
},
|
|
6844
6844
|
slice: function(u, g) {
|
|
6845
|
-
return
|
|
6845
|
+
return kt(this, ph(this, u, g, !0));
|
|
6846
6846
|
},
|
|
6847
6847
|
some: function(u, g) {
|
|
6848
6848
|
return !this.every(ic(u), g);
|
|
6849
6849
|
},
|
|
6850
6850
|
sort: function(u) {
|
|
6851
|
-
return
|
|
6851
|
+
return kt(this, _o(this, u));
|
|
6852
6852
|
},
|
|
6853
6853
|
values: function() {
|
|
6854
6854
|
return this.__iterator(U);
|
|
@@ -6909,10 +6909,10 @@ function em() {
|
|
|
6909
6909
|
return this.find(ne);
|
|
6910
6910
|
},
|
|
6911
6911
|
flatMap: function(u, g) {
|
|
6912
|
-
return
|
|
6912
|
+
return kt(this, H2(this, u, g));
|
|
6913
6913
|
},
|
|
6914
6914
|
flatten: function(u) {
|
|
6915
|
-
return
|
|
6915
|
+
return kt(this, Vm(this, u, !0));
|
|
6916
6916
|
},
|
|
6917
6917
|
fromEntrySeq: function() {
|
|
6918
6918
|
return new go(this);
|
|
@@ -6980,25 +6980,25 @@ function em() {
|
|
|
6980
6980
|
return this.slice(Math.max(0, u));
|
|
6981
6981
|
},
|
|
6982
6982
|
skipLast: function(u) {
|
|
6983
|
-
return
|
|
6983
|
+
return kt(this, this.toSeq().reverse().skip(u).reverse());
|
|
6984
6984
|
},
|
|
6985
6985
|
skipWhile: function(u, g) {
|
|
6986
|
-
return
|
|
6986
|
+
return kt(this, Bm(this, u, g, !0));
|
|
6987
6987
|
},
|
|
6988
6988
|
skipUntil: function(u, g) {
|
|
6989
6989
|
return this.skipWhile(ic(u), g);
|
|
6990
6990
|
},
|
|
6991
6991
|
sortBy: function(u, g) {
|
|
6992
|
-
return
|
|
6992
|
+
return kt(this, _o(this, g, u));
|
|
6993
6993
|
},
|
|
6994
6994
|
take: function(u) {
|
|
6995
6995
|
return this.slice(0, Math.max(0, u));
|
|
6996
6996
|
},
|
|
6997
6997
|
takeLast: function(u) {
|
|
6998
|
-
return
|
|
6998
|
+
return kt(this, this.toSeq().reverse().take(u).reverse());
|
|
6999
6999
|
},
|
|
7000
7000
|
takeWhile: function(u, g) {
|
|
7001
|
-
return
|
|
7001
|
+
return kt(this, B2(this, u, g));
|
|
7002
7002
|
},
|
|
7003
7003
|
takeUntil: function(u, g) {
|
|
7004
7004
|
return this.takeWhile(ic(u), g);
|
|
@@ -7020,11 +7020,11 @@ function em() {
|
|
|
7020
7020
|
}, Hn.chain = Hn.flatMap, Hn.contains = Hn.includes, ci(s, {
|
|
7021
7021
|
// ### More sequential methods
|
|
7022
7022
|
flip: function() {
|
|
7023
|
-
return
|
|
7023
|
+
return kt(this, Fm(this));
|
|
7024
7024
|
},
|
|
7025
7025
|
mapEntries: function(u, g) {
|
|
7026
7026
|
var y = this, w = 0;
|
|
7027
|
-
return
|
|
7027
|
+
return kt(
|
|
7028
7028
|
this,
|
|
7029
7029
|
this.toSeq().map(
|
|
7030
7030
|
function(C, D) {
|
|
@@ -7035,7 +7035,7 @@ function em() {
|
|
|
7035
7035
|
},
|
|
7036
7036
|
mapKeys: function(u, g) {
|
|
7037
7037
|
var y = this;
|
|
7038
|
-
return
|
|
7038
|
+
return kt(
|
|
7039
7039
|
this,
|
|
7040
7040
|
this.toSeq().flip().map(
|
|
7041
7041
|
function(w, C) {
|
|
@@ -7055,7 +7055,7 @@ function em() {
|
|
|
7055
7055
|
},
|
|
7056
7056
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
7057
7057
|
filter: function(u, g) {
|
|
7058
|
-
return
|
|
7058
|
+
return kt(this, km(this, u, g, !1));
|
|
7059
7059
|
},
|
|
7060
7060
|
findIndex: function(u, g) {
|
|
7061
7061
|
var y = this.findEntry(u, g);
|
|
@@ -7070,10 +7070,10 @@ function em() {
|
|
|
7070
7070
|
return g === void 0 ? -1 : g;
|
|
7071
7071
|
},
|
|
7072
7072
|
reverse: function() {
|
|
7073
|
-
return
|
|
7073
|
+
return kt(this, dh(this, !1));
|
|
7074
7074
|
},
|
|
7075
7075
|
slice: function(u, g) {
|
|
7076
|
-
return
|
|
7076
|
+
return kt(this, ph(this, u, g, !1));
|
|
7077
7077
|
},
|
|
7078
7078
|
splice: function(u, g) {
|
|
7079
7079
|
var y = arguments.length;
|
|
@@ -7081,7 +7081,7 @@ function em() {
|
|
|
7081
7081
|
return this;
|
|
7082
7082
|
u = J(u, u < 0 ? this.count() : this.size);
|
|
7083
7083
|
var w = this.slice(0, u);
|
|
7084
|
-
return
|
|
7084
|
+
return kt(
|
|
7085
7085
|
this,
|
|
7086
7086
|
y === 1 ? w : w.concat(N(arguments, 2), this.slice(u + g))
|
|
7087
7087
|
);
|
|
@@ -7095,7 +7095,7 @@ function em() {
|
|
|
7095
7095
|
return this.get(0);
|
|
7096
7096
|
},
|
|
7097
7097
|
flatten: function(u) {
|
|
7098
|
-
return
|
|
7098
|
+
return kt(this, Vm(this, u, !1));
|
|
7099
7099
|
},
|
|
7100
7100
|
get: function(u, g) {
|
|
7101
7101
|
return u = K(this, u), u < 0 || this.size === 1 / 0 || this.size !== void 0 && u > this.size ? g : this.find(function(y, w) {
|
|
@@ -7106,11 +7106,11 @@ function em() {
|
|
|
7106
7106
|
return u = K(this, u), u >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || u < this.size : this.indexOf(u) !== -1);
|
|
7107
7107
|
},
|
|
7108
7108
|
interpose: function(u) {
|
|
7109
|
-
return
|
|
7109
|
+
return kt(this, G2(this, u));
|
|
7110
7110
|
},
|
|
7111
7111
|
interleave: function() {
|
|
7112
7112
|
var u = [this].concat(N(arguments)), g = mh(this.toSeq(), Ie.of, u), y = g.flatten(!0);
|
|
7113
|
-
return g.size && (y.size = g.size * u.length),
|
|
7113
|
+
return g.size && (y.size = g.size * u.length), kt(this, y);
|
|
7114
7114
|
},
|
|
7115
7115
|
keySeq: function() {
|
|
7116
7116
|
return Se(0, this.size);
|
|
@@ -7119,15 +7119,15 @@ function em() {
|
|
|
7119
7119
|
return this.get(-1);
|
|
7120
7120
|
},
|
|
7121
7121
|
skipWhile: function(u, g) {
|
|
7122
|
-
return
|
|
7122
|
+
return kt(this, Bm(this, u, g, !1));
|
|
7123
7123
|
},
|
|
7124
7124
|
zip: function() {
|
|
7125
7125
|
var u = [this].concat(N(arguments));
|
|
7126
|
-
return
|
|
7126
|
+
return kt(this, mh(this, $2, u));
|
|
7127
7127
|
},
|
|
7128
7128
|
zipWith: function(u) {
|
|
7129
7129
|
var g = N(arguments);
|
|
7130
|
-
return g[0] = this,
|
|
7130
|
+
return g[0] = this, kt(this, mh(this, u, g));
|
|
7131
7131
|
}
|
|
7132
7132
|
}), o.prototype[x] = !0, o.prototype[v] = !0, ci(a, {
|
|
7133
7133
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
@@ -8124,7 +8124,7 @@ let xn = class Wv {
|
|
|
8124
8124
|
}, pn = class Jc {
|
|
8125
8125
|
static select(e, t) {
|
|
8126
8126
|
let r = e.getIn(["scene", "groups", t, "elements"]);
|
|
8127
|
-
e =
|
|
8127
|
+
e = Dt.setAlterate(e).updatedState, r.entrySeq().forEach(([s, o]) => {
|
|
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) => {
|
|
@@ -8136,7 +8136,7 @@ let xn = class Wv {
|
|
|
8136
8136
|
}), h && h.forEach((f) => {
|
|
8137
8137
|
e = Bs.select(e, s, f).updatedState;
|
|
8138
8138
|
});
|
|
8139
|
-
}), e =
|
|
8139
|
+
}), e = Dt.setAlterate(e).updatedState;
|
|
8140
8140
|
let i = e.getIn(["scene", "groups"]).map((s) => s.set("selected", !1));
|
|
8141
8141
|
return e = e.setIn(["scene", "groups"], i).setIn(["scene", "groups", t, "selected"], !0), { updatedState: e };
|
|
8142
8142
|
}
|
|
@@ -9333,7 +9333,7 @@ let at = class {
|
|
|
9333
9333
|
return e = e.setIn(["scene", "selectedLayer"], i), e = e.setIn(["scene", "layers", i], s), { updatedState: e };
|
|
9334
9334
|
}
|
|
9335
9335
|
static select(e, t) {
|
|
9336
|
-
return e.get("alterate") || (e =
|
|
9336
|
+
return e.get("alterate") || (e = Dt.unselectAll(e).updatedState), e = e.setIn(["scene", "selectedLayer"], t), { updatedState: e };
|
|
9337
9337
|
}
|
|
9338
9338
|
static selectElement(e, t, r, i) {
|
|
9339
9339
|
return e = e.setIn(
|
|
@@ -9684,7 +9684,7 @@ class xu {
|
|
|
9684
9684
|
return e = e.deleteIn(["scene", "guides", "vertical", t]), { updatedState: e };
|
|
9685
9685
|
}
|
|
9686
9686
|
}
|
|
9687
|
-
class
|
|
9687
|
+
class Dt {
|
|
9688
9688
|
static setAlterate(e) {
|
|
9689
9689
|
return { updatedState: e.set("alterate", !e.alterate) };
|
|
9690
9690
|
}
|
|
@@ -12778,12 +12778,12 @@ const Yt = cy((n) => ({
|
|
|
12778
12778
|
newProject: () => {
|
|
12779
12779
|
n((e) => ({
|
|
12780
12780
|
...e,
|
|
12781
|
-
planner:
|
|
12781
|
+
planner: Dt.newProject(e.planner).updatedState
|
|
12782
12782
|
}));
|
|
12783
12783
|
},
|
|
12784
12784
|
selectTool3DView: () => {
|
|
12785
12785
|
n((e) => {
|
|
12786
|
-
const r =
|
|
12786
|
+
const r = Dt.unselectAll(e.planner).updatedState.set("mode", Zi);
|
|
12787
12787
|
return {
|
|
12788
12788
|
...e,
|
|
12789
12789
|
planner: r
|
|
@@ -12792,7 +12792,7 @@ const Yt = cy((n) => ({
|
|
|
12792
12792
|
},
|
|
12793
12793
|
selectTool3DFirstPerson: () => {
|
|
12794
12794
|
n((e) => {
|
|
12795
|
-
const r =
|
|
12795
|
+
const r = Dt.rollback(e.planner).updatedState.set("mode", ba);
|
|
12796
12796
|
return {
|
|
12797
12797
|
...e,
|
|
12798
12798
|
planner: r
|
|
@@ -12813,7 +12813,7 @@ const Yt = cy((n) => ({
|
|
|
12813
12813
|
},
|
|
12814
12814
|
undo: () => {
|
|
12815
12815
|
n((e) => {
|
|
12816
|
-
const t =
|
|
12816
|
+
const t = Dt.undo(e.planner).updatedState;
|
|
12817
12817
|
return {
|
|
12818
12818
|
...e,
|
|
12819
12819
|
planner: t
|
|
@@ -12822,7 +12822,7 @@ const Yt = cy((n) => ({
|
|
|
12822
12822
|
},
|
|
12823
12823
|
redo: () => {
|
|
12824
12824
|
n((e) => {
|
|
12825
|
-
const t =
|
|
12825
|
+
const t = Dt.redo(e.planner).updatedState;
|
|
12826
12826
|
return {
|
|
12827
12827
|
...e,
|
|
12828
12828
|
planner: t
|
|
@@ -12983,7 +12983,13 @@ const Yt = cy((n) => ({
|
|
|
12983
12983
|
copyProperties: (e) => {
|
|
12984
12984
|
n((t) => ({
|
|
12985
12985
|
...t,
|
|
12986
|
-
planner:
|
|
12986
|
+
planner: Dt.copyProperties(t.planner, e).updatedState
|
|
12987
|
+
}));
|
|
12988
|
+
},
|
|
12989
|
+
setProjectProperties: (e) => {
|
|
12990
|
+
n((t) => ({
|
|
12991
|
+
...t,
|
|
12992
|
+
planner: Dt.setProjectProperties(t.planner, e).updatedState
|
|
12987
12993
|
}));
|
|
12988
12994
|
},
|
|
12989
12995
|
pasteProperties: () => {
|
|
@@ -12996,7 +13002,7 @@ const Yt = cy((n) => ({
|
|
|
12996
13002
|
});
|
|
12997
13003
|
return {
|
|
12998
13004
|
...e,
|
|
12999
|
-
planner:
|
|
13005
|
+
planner: Dt.pasteProperties(t).updatedState
|
|
13000
13006
|
};
|
|
13001
13007
|
});
|
|
13002
13008
|
},
|
|
@@ -13010,7 +13016,7 @@ const Yt = cy((n) => ({
|
|
|
13010
13016
|
});
|
|
13011
13017
|
return {
|
|
13012
13018
|
...t,
|
|
13013
|
-
planner:
|
|
13019
|
+
planner: Dt.setProperties(
|
|
13014
13020
|
r,
|
|
13015
13021
|
r.getIn(["scene", "selectedLayer"]),
|
|
13016
13022
|
e
|
|
@@ -13031,7 +13037,7 @@ const Yt = cy((n) => ({
|
|
|
13031
13037
|
});
|
|
13032
13038
|
return {
|
|
13033
13039
|
...t,
|
|
13034
|
-
planner:
|
|
13040
|
+
planner: Dt.setHolesAttributes(i, r).updatedState
|
|
13035
13041
|
};
|
|
13036
13042
|
});
|
|
13037
13043
|
},
|
|
@@ -13061,7 +13067,7 @@ const Yt = cy((n) => ({
|
|
|
13061
13067
|
});
|
|
13062
13068
|
return {
|
|
13063
13069
|
...t,
|
|
13064
|
-
planner:
|
|
13070
|
+
planner: Dt.setLinesAttributes(i, r).updatedState
|
|
13065
13071
|
};
|
|
13066
13072
|
});
|
|
13067
13073
|
},
|
|
@@ -13078,7 +13084,7 @@ const Yt = cy((n) => ({
|
|
|
13078
13084
|
});
|
|
13079
13085
|
return {
|
|
13080
13086
|
...t,
|
|
13081
|
-
planner:
|
|
13087
|
+
planner: Dt.setItemsAttributes(i, r).updatedState
|
|
13082
13088
|
};
|
|
13083
13089
|
});
|
|
13084
13090
|
},
|
|
@@ -13181,7 +13187,7 @@ const Yt = cy((n) => ({
|
|
|
13181
13187
|
},
|
|
13182
13188
|
toggleSnap: (e) => {
|
|
13183
13189
|
n((t) => {
|
|
13184
|
-
const r =
|
|
13190
|
+
const r = Dt.toggleSnap(t.planner, e).updatedState;
|
|
13185
13191
|
return {
|
|
13186
13192
|
...t,
|
|
13187
13193
|
planner: r
|
|
@@ -13190,7 +13196,7 @@ const Yt = cy((n) => ({
|
|
|
13190
13196
|
},
|
|
13191
13197
|
openProjectConfigurator: () => {
|
|
13192
13198
|
n((e) => {
|
|
13193
|
-
const t =
|
|
13199
|
+
const t = Dt.openProjectConfigurator(
|
|
13194
13200
|
e.planner
|
|
13195
13201
|
).updatedState;
|
|
13196
13202
|
return {
|
|
@@ -13211,7 +13217,7 @@ const Yt = cy((n) => ({
|
|
|
13211
13217
|
updateZoomScale: (e) => {
|
|
13212
13218
|
n((t) => ({
|
|
13213
13219
|
...t,
|
|
13214
|
-
planner:
|
|
13220
|
+
planner: Dt.updateZoomScale(t.planner, e).updatedState
|
|
13215
13221
|
}));
|
|
13216
13222
|
},
|
|
13217
13223
|
updateCameraView: (e) => {
|
|
@@ -13238,7 +13244,7 @@ const Yt = cy((n) => ({
|
|
|
13238
13244
|
selectToolEdit: () => {
|
|
13239
13245
|
n((e) => ({
|
|
13240
13246
|
...e,
|
|
13241
|
-
planner:
|
|
13247
|
+
planner: Dt.setMode(e.planner, on).updatedState
|
|
13242
13248
|
}));
|
|
13243
13249
|
},
|
|
13244
13250
|
selectToolZoomIn: () => {
|
|
@@ -13268,7 +13274,7 @@ const Yt = cy((n) => ({
|
|
|
13268
13274
|
updateMouseCoord: (e) => {
|
|
13269
13275
|
n((t) => ({
|
|
13270
13276
|
...t,
|
|
13271
|
-
planner:
|
|
13277
|
+
planner: Dt.updateMouseCoord(t.planner, e).updatedState
|
|
13272
13278
|
}));
|
|
13273
13279
|
},
|
|
13274
13280
|
openCatalog: () => {
|
|
@@ -13523,19 +13529,19 @@ const Yt = cy((n) => ({
|
|
|
13523
13529
|
initCatalog: (e) => {
|
|
13524
13530
|
n((t) => ({
|
|
13525
13531
|
...t,
|
|
13526
|
-
planner:
|
|
13532
|
+
planner: Dt.initCatalog(t.planner, e).updatedState
|
|
13527
13533
|
}));
|
|
13528
13534
|
},
|
|
13529
13535
|
goBackToCatalogPage: (e) => {
|
|
13530
13536
|
n((t) => ({
|
|
13531
13537
|
...t,
|
|
13532
|
-
planner:
|
|
13538
|
+
planner: Dt.goBackToCatalogPage(t.planner, e).updatedState
|
|
13533
13539
|
}));
|
|
13534
13540
|
},
|
|
13535
13541
|
pushLastSelectedCatalogElementToHistory: (e) => {
|
|
13536
13542
|
n((t) => ({
|
|
13537
13543
|
...t,
|
|
13538
|
-
planner:
|
|
13544
|
+
planner: Dt.pushLastSelectedCatalogElementToHistory(
|
|
13539
13545
|
t.planner,
|
|
13540
13546
|
e
|
|
13541
13547
|
).updatedState
|
|
@@ -13578,7 +13584,7 @@ const Yt = cy((n) => ({
|
|
|
13578
13584
|
changeCatalogPage: (e, t) => {
|
|
13579
13585
|
n((r) => ({
|
|
13580
13586
|
...r,
|
|
13581
|
-
planner:
|
|
13587
|
+
planner: Dt.changeCatalogPage(r.planner, t, e).updatedState
|
|
13582
13588
|
}));
|
|
13583
13589
|
},
|
|
13584
13590
|
remove: () => {
|
|
@@ -13591,20 +13597,20 @@ const Yt = cy((n) => ({
|
|
|
13591
13597
|
});
|
|
13592
13598
|
return {
|
|
13593
13599
|
...e,
|
|
13594
|
-
planner:
|
|
13600
|
+
planner: Dt.remove(t).updatedState
|
|
13595
13601
|
};
|
|
13596
13602
|
});
|
|
13597
13603
|
},
|
|
13598
13604
|
rollback: () => {
|
|
13599
13605
|
n((e) => ({
|
|
13600
13606
|
...e,
|
|
13601
|
-
planner:
|
|
13607
|
+
planner: Dt.rollback(e.planner).updatedState
|
|
13602
13608
|
}));
|
|
13603
13609
|
},
|
|
13604
13610
|
setAlterateState: () => {
|
|
13605
13611
|
n((e) => ({
|
|
13606
13612
|
...e,
|
|
13607
|
-
planner:
|
|
13613
|
+
planner: Dt.setAlterate(e.planner).updatedState
|
|
13608
13614
|
}));
|
|
13609
13615
|
},
|
|
13610
13616
|
setPlan: (e) => {
|
|
@@ -13616,7 +13622,7 @@ const Yt = cy((n) => ({
|
|
|
13616
13622
|
unselectAll: () => {
|
|
13617
13623
|
n((e) => ({
|
|
13618
13624
|
...e,
|
|
13619
|
-
planner:
|
|
13625
|
+
planner: Dt.unselectAll(e.planner).updatedState
|
|
13620
13626
|
}));
|
|
13621
13627
|
}
|
|
13622
13628
|
})), Va = {
|
|
@@ -13711,7 +13717,7 @@ const Mu = {
|
|
|
13711
13717
|
unselected: "#F5F4F4"
|
|
13712
13718
|
}, YE = {
|
|
13713
13719
|
selected: lm
|
|
13714
|
-
},
|
|
13720
|
+
}, zt = {
|
|
13715
13721
|
COLORS: Mu,
|
|
13716
13722
|
PRIMARY_COLOR: WE,
|
|
13717
13723
|
SECONDARY_COLOR: jE,
|
|
@@ -14123,7 +14129,7 @@ const gb = ({ line: n, layer: e, scene: t, catalog: r }) => {
|
|
|
14123
14129
|
);
|
|
14124
14130
|
}, _b = {
|
|
14125
14131
|
fill: "#0096fd",
|
|
14126
|
-
stroke:
|
|
14132
|
+
stroke: zt.COLORS.white,
|
|
14127
14133
|
cursor: "move"
|
|
14128
14134
|
}, vb = ({ vertex: n, layer: e }) => /* @__PURE__ */ R.jsx(
|
|
14129
14135
|
"g",
|
|
@@ -14200,7 +14206,7 @@ const xb = ({ scene: n, catalog: e }) => {
|
|
|
14200
14206
|
)
|
|
14201
14207
|
] });
|
|
14202
14208
|
}, yb = Ce.memo(xb, (n, e) => n.scene.hashCode() === e.scene.hashCode()), Dg = {
|
|
14203
|
-
stroke:
|
|
14209
|
+
stroke: zt.SECONDARY_COLOR.main,
|
|
14204
14210
|
strokeWidth: "2.5px"
|
|
14205
14211
|
}, Sb = ({ catalog: n }) => {
|
|
14206
14212
|
const { planner: e } = Yt(), { activeSnapElement: t, snapElements: r, scene: i } = e, { width: s, height: o } = i;
|
|
@@ -14212,7 +14218,7 @@ const xb = ({ scene: n, catalog: e }) => {
|
|
|
14212
14218
|
y: "0",
|
|
14213
14219
|
width: s,
|
|
14214
14220
|
height: o,
|
|
14215
|
-
fill:
|
|
14221
|
+
fill: zt.COLORS.white
|
|
14216
14222
|
}
|
|
14217
14223
|
),
|
|
14218
14224
|
/* @__PURE__ */ R.jsxs(
|
|
@@ -14258,7 +14264,7 @@ const xb = ({ scene: n, catalog: e }) => {
|
|
|
14258
14264
|
}
|
|
14259
14265
|
)
|
|
14260
14266
|
] });
|
|
14261
|
-
}, Qh = 0.25, Ng = 5, Eb = 0.
|
|
14267
|
+
}, Qh = 0.25, Ng = 5, Eb = 0.1, bb = 5.25;
|
|
14262
14268
|
function Ug(n) {
|
|
14263
14269
|
return (Math.min(Math.max(n, Qh), Ng) - Qh) / (Ng - Qh) * 100;
|
|
14264
14270
|
}
|
|
@@ -14583,7 +14589,7 @@ const Rb = ({ width: n, height: e, catalog: t }) => {
|
|
|
14583
14589
|
* Copyright 2010-2025 Three.js Authors
|
|
14584
14590
|
* SPDX-License-Identifier: MIT
|
|
14585
14591
|
*/
|
|
14586
|
-
const cm = "179", Vo = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Uo = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cb = 0, zg = 1, Pb = 2, bx = 1, Ib = 2, ki = 3, ws = 0, nr = 1, mi = 2, xs = 0, Ho = 1, kg = 2, Bg = 3, Vg = 4, Lb = 5, Vs = 100, Ob = 101, qb = 102, Db = 103, Nb = 104, Ub = 200, Fb = 201, zb = 202, kb = 203, yd = 204, Sd = 205, Bb = 206, Vb = 207, Hb = 208, Gb = 209, Wb = 210, jb = 211, Xb = 212, Yb = 213, $b = 214, Ed = 0, bd = 1, Md = 2, ca = 3, wd = 4, Td = 5, Ad = 6, Rd = 7, um = 0, Kb = 1, Zb = 2, ys = 0, Jb = 1, Qb = 2, eM = 3, tM = 4, nM = 5, rM = 6, iM = 7, Mx = 300, ua = 301, ha = 302, Cd = 303, Pd = 304, eh = 306, Wr = 1e3, Gs = 1001, Id = 1002, Yr = 1003, sM = 1004, gc = 1005, yi = 1006, ef = 1007, Ws = 1008, Ai = 1009, wx = 1010, Tx = 1011, yl = 1012, hm = 1013, Ks = 1014, Wi = 1015, Gl = 1016, fm = 1017, dm = 1018, Sl = 1020, Ax = 35902, Rx = 1021, Cx = 1022, jr = 1023, El = 1026, bl = 1027, Px = 1028, pm = 1029, Ix = 1030, mm = 1031, gm = 1033, eu = 33776, tu = 33777, nu = 33778, ru = 33779, Ld = 35840, Od = 35841, qd = 35842, Dd = 35843, Nd = 36196, Ud = 37492, Fd = 37496, zd = 37808, kd = 37809, Bd = 37810, Vd = 37811, Hd = 37812, Gd = 37813, Wd = 37814, jd = 37815, Xd = 37816, Yd = 37817, $d = 37818, Kd = 37819, Zd = 37820, Jd = 37821, iu = 36492, Qd = 36494, ep = 36495, Lx = 36283, tp = 36284, np = 36285, rp = 36286, oM = 3200, aM = 3201, _m = 0, lM = 1, ms = "", cr = "srgb", fa = "srgb-linear", Tu = "linear",
|
|
14592
|
+
const cm = "179", Vo = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Uo = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cb = 0, zg = 1, Pb = 2, bx = 1, Ib = 2, ki = 3, ws = 0, nr = 1, mi = 2, xs = 0, Ho = 1, kg = 2, Bg = 3, Vg = 4, Lb = 5, Vs = 100, Ob = 101, qb = 102, Db = 103, Nb = 104, Ub = 200, Fb = 201, zb = 202, kb = 203, yd = 204, Sd = 205, Bb = 206, Vb = 207, Hb = 208, Gb = 209, Wb = 210, jb = 211, Xb = 212, Yb = 213, $b = 214, Ed = 0, bd = 1, Md = 2, ca = 3, wd = 4, Td = 5, Ad = 6, Rd = 7, um = 0, Kb = 1, Zb = 2, ys = 0, Jb = 1, Qb = 2, eM = 3, tM = 4, nM = 5, rM = 6, iM = 7, Mx = 300, ua = 301, ha = 302, Cd = 303, Pd = 304, eh = 306, Wr = 1e3, Gs = 1001, Id = 1002, Yr = 1003, sM = 1004, gc = 1005, yi = 1006, ef = 1007, Ws = 1008, Ai = 1009, wx = 1010, Tx = 1011, yl = 1012, hm = 1013, Ks = 1014, Wi = 1015, Gl = 1016, fm = 1017, dm = 1018, Sl = 1020, Ax = 35902, Rx = 1021, Cx = 1022, jr = 1023, El = 1026, bl = 1027, Px = 1028, pm = 1029, Ix = 1030, mm = 1031, gm = 1033, eu = 33776, tu = 33777, nu = 33778, ru = 33779, Ld = 35840, Od = 35841, qd = 35842, Dd = 35843, Nd = 36196, Ud = 37492, Fd = 37496, zd = 37808, kd = 37809, Bd = 37810, Vd = 37811, Hd = 37812, Gd = 37813, Wd = 37814, jd = 37815, Xd = 37816, Yd = 37817, $d = 37818, Kd = 37819, Zd = 37820, Jd = 37821, iu = 36492, Qd = 36494, ep = 36495, Lx = 36283, tp = 36284, np = 36285, rp = 36286, oM = 3200, aM = 3201, _m = 0, lM = 1, ms = "", cr = "srgb", fa = "srgb-linear", Tu = "linear", Ut = "srgb", xo = 7680, Hg = 519, cM = 512, uM = 513, hM = 514, Ox = 515, fM = 516, dM = 517, pM = 518, mM = 519, Gg = 35044, Wg = "300 es", Si = 2e3, Au = 2001;
|
|
14587
14593
|
class ao {
|
|
14588
14594
|
/**
|
|
14589
14595
|
* Adds the given event listener to the given event type.
|
|
@@ -16895,7 +16901,7 @@ function yM() {
|
|
|
16895
16901
|
*/
|
|
16896
16902
|
spaces: {},
|
|
16897
16903
|
convert: function(i, s, o) {
|
|
16898
|
-
return this.enabled === !1 || s === o || !s || !o || (this.spaces[s].transfer ===
|
|
16904
|
+
return this.enabled === !1 || s === o || !s || !o || (this.spaces[s].transfer === Ut && (i.r = Xi(i.r), i.g = Xi(i.g), i.b = Xi(i.b)), this.spaces[s].primaries !== this.spaces[o].primaries && (i.applyMatrix3(this.spaces[s].toXYZ), i.applyMatrix3(this.spaces[o].fromXYZ)), this.spaces[o].transfer === Ut && (i.r = Wo(i.r), i.g = Wo(i.g), i.b = Wo(i.b))), i;
|
|
16899
16905
|
},
|
|
16900
16906
|
workingToColorSpace: function(i, s) {
|
|
16901
16907
|
return this.convert(i, this.workingColorSpace, s);
|
|
@@ -16947,7 +16953,7 @@ function yM() {
|
|
|
16947
16953
|
[cr]: {
|
|
16948
16954
|
primaries: e,
|
|
16949
16955
|
whitePoint: r,
|
|
16950
|
-
transfer:
|
|
16956
|
+
transfer: Ut,
|
|
16951
16957
|
toXYZ: Yg,
|
|
16952
16958
|
fromXYZ: $g,
|
|
16953
16959
|
luminanceCoefficients: t,
|
|
@@ -19921,12 +19927,12 @@ class xm {
|
|
|
19921
19927
|
}
|
|
19922
19928
|
let CM = 0;
|
|
19923
19929
|
const Jg = /* @__PURE__ */ new G(), wo = /* @__PURE__ */ new Ts(), Di = /* @__PURE__ */ new Gt(), bc = /* @__PURE__ */ new G(), ja = /* @__PURE__ */ new G(), PM = /* @__PURE__ */ new G(), IM = /* @__PURE__ */ new Ts(), Qg = /* @__PURE__ */ new G(1, 0, 0), e1 = /* @__PURE__ */ new G(0, 1, 0), t1 = /* @__PURE__ */ new G(0, 0, 1), n1 = { type: "added" }, LM = { type: "removed" }, To = { type: "childadded", child: null }, ff = { type: "childremoved", child: null };
|
|
19924
|
-
class
|
|
19930
|
+
class Nt extends ao {
|
|
19925
19931
|
/**
|
|
19926
19932
|
* Constructs a new 3D object.
|
|
19927
19933
|
*/
|
|
19928
19934
|
constructor() {
|
|
19929
|
-
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: CM++ }), this.uuid = Aa(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up =
|
|
19935
|
+
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: CM++ }), this.uuid = Aa(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Nt.DEFAULT_UP.clone();
|
|
19930
19936
|
const e = new G(), t = new ii(), r = new Ts(), i = new G(1, 1, 1);
|
|
19931
19937
|
function s() {
|
|
19932
19938
|
r.setFromEuler(t, !1);
|
|
@@ -20000,7 +20006,7 @@ class Dt extends ao {
|
|
|
20000
20006
|
normalMatrix: {
|
|
20001
20007
|
value: new pt()
|
|
20002
20008
|
}
|
|
20003
|
-
}), this.matrix = new Gt(), this.matrixWorld = new Gt(), this.matrixAutoUpdate =
|
|
20009
|
+
}), this.matrix = new Gt(), this.matrixWorld = new Gt(), this.matrixAutoUpdate = Nt.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new xm(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
|
|
20004
20010
|
}
|
|
20005
20011
|
/**
|
|
20006
20012
|
* A callback that is executed immediately before a 3D object is rendered to a shadow map.
|
|
@@ -20575,9 +20581,9 @@ class Dt extends ao {
|
|
|
20575
20581
|
return this;
|
|
20576
20582
|
}
|
|
20577
20583
|
}
|
|
20578
|
-
|
|
20579
|
-
|
|
20580
|
-
|
|
20584
|
+
Nt.DEFAULT_UP = /* @__PURE__ */ new G(0, 1, 0);
|
|
20585
|
+
Nt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
20586
|
+
Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
20581
20587
|
const kr = /* @__PURE__ */ new G(), Ni = /* @__PURE__ */ new G(), df = /* @__PURE__ */ new G(), Ui = /* @__PURE__ */ new G(), Ao = /* @__PURE__ */ new G(), Ro = /* @__PURE__ */ new G(), r1 = /* @__PURE__ */ new G(), pf = /* @__PURE__ */ new G(), mf = /* @__PURE__ */ new G(), gf = /* @__PURE__ */ new G(), _f = /* @__PURE__ */ new an(), vf = /* @__PURE__ */ new an(), xf = /* @__PURE__ */ new an();
|
|
20582
20588
|
class Gr {
|
|
20583
20589
|
/**
|
|
@@ -22033,7 +22039,7 @@ class jn extends Lr {
|
|
|
22033
22039
|
}
|
|
22034
22040
|
}
|
|
22035
22041
|
let DM = 0;
|
|
22036
|
-
const br = /* @__PURE__ */ new Gt(), Sf = /* @__PURE__ */ new
|
|
22042
|
+
const br = /* @__PURE__ */ new Gt(), Sf = /* @__PURE__ */ new Nt(), Co = /* @__PURE__ */ new G(), lr = /* @__PURE__ */ new Ci(), Xa = /* @__PURE__ */ new Ci(), bn = /* @__PURE__ */ new G();
|
|
22037
22043
|
class ir extends ao {
|
|
22038
22044
|
/**
|
|
22039
22045
|
* Constructs a new geometry.
|
|
@@ -22564,7 +22570,7 @@ class ir extends ao {
|
|
|
22564
22570
|
}
|
|
22565
22571
|
}
|
|
22566
22572
|
const i1 = /* @__PURE__ */ new Gt(), Os = /* @__PURE__ */ new nh(), Tc = /* @__PURE__ */ new th(), s1 = /* @__PURE__ */ new G(), Ac = /* @__PURE__ */ new G(), Rc = /* @__PURE__ */ new G(), Cc = /* @__PURE__ */ new G(), Ef = /* @__PURE__ */ new G(), Pc = /* @__PURE__ */ new G(), o1 = /* @__PURE__ */ new G(), Ic = /* @__PURE__ */ new G();
|
|
22567
|
-
class wn extends
|
|
22573
|
+
class wn extends Nt {
|
|
22568
22574
|
/**
|
|
22569
22575
|
* Constructs a new mesh.
|
|
22570
22576
|
*
|
|
@@ -22847,7 +22853,7 @@ class As extends lo {
|
|
|
22847
22853
|
return Object.keys(r).length > 0 && (t.extensions = r), t;
|
|
22848
22854
|
}
|
|
22849
22855
|
}
|
|
22850
|
-
class kx extends
|
|
22856
|
+
class kx extends Nt {
|
|
22851
22857
|
/**
|
|
22852
22858
|
* Constructs a new camera.
|
|
22853
22859
|
*/
|
|
@@ -23056,7 +23062,7 @@ class hr extends kx {
|
|
|
23056
23062
|
}
|
|
23057
23063
|
}
|
|
23058
23064
|
const Po = -90, Io = 1;
|
|
23059
|
-
class BM extends
|
|
23065
|
+
class BM extends Nt {
|
|
23060
23066
|
/**
|
|
23061
23067
|
* Constructs a new cube camera.
|
|
23062
23068
|
*
|
|
@@ -23236,7 +23242,7 @@ class VM extends Zs {
|
|
|
23236
23242
|
e.setRenderTarget(s);
|
|
23237
23243
|
}
|
|
23238
23244
|
}
|
|
23239
|
-
class il extends
|
|
23245
|
+
class il extends Nt {
|
|
23240
23246
|
constructor() {
|
|
23241
23247
|
super(), this.isGroup = !0, this.type = "Group";
|
|
23242
23248
|
}
|
|
@@ -23359,7 +23365,7 @@ class bf {
|
|
|
23359
23365
|
return e.joints[t.jointName];
|
|
23360
23366
|
}
|
|
23361
23367
|
}
|
|
23362
|
-
class GM extends
|
|
23368
|
+
class GM extends Nt {
|
|
23363
23369
|
/**
|
|
23364
23370
|
* Constructs a new scene.
|
|
23365
23371
|
*/
|
|
@@ -23375,7 +23381,7 @@ class GM extends Dt {
|
|
|
23375
23381
|
}
|
|
23376
23382
|
}
|
|
23377
23383
|
const Oc = /* @__PURE__ */ new G(), c1 = /* @__PURE__ */ new G();
|
|
23378
|
-
class rh extends
|
|
23384
|
+
class rh extends Nt {
|
|
23379
23385
|
/**
|
|
23380
23386
|
* Constructs a new LOD.
|
|
23381
23387
|
*/
|
|
@@ -23884,7 +23890,7 @@ class ih extends lo {
|
|
|
23884
23890
|
}
|
|
23885
23891
|
}
|
|
23886
23892
|
const Cu = /* @__PURE__ */ new G(), Pu = /* @__PURE__ */ new G(), u1 = /* @__PURE__ */ new Gt(), Ya = /* @__PURE__ */ new nh(), Dc = /* @__PURE__ */ new th(), wf = /* @__PURE__ */ new G(), h1 = /* @__PURE__ */ new G();
|
|
23887
|
-
class YM extends
|
|
23893
|
+
class YM extends Nt {
|
|
23888
23894
|
/**
|
|
23889
23895
|
* Constructs a new line.
|
|
23890
23896
|
*
|
|
@@ -26079,7 +26085,7 @@ class Zx extends Wl {
|
|
|
26079
26085
|
}, r, i), s;
|
|
26080
26086
|
}
|
|
26081
26087
|
}
|
|
26082
|
-
class Mm extends
|
|
26088
|
+
class Mm extends Nt {
|
|
26083
26089
|
/**
|
|
26084
26090
|
* Constructs a new light.
|
|
26085
26091
|
*
|
|
@@ -26254,7 +26260,7 @@ class U4 extends Mm {
|
|
|
26254
26260
|
* @param {number} [decay=2] - The amount the light dims along the distance of the light.
|
|
26255
26261
|
*/
|
|
26256
26262
|
constructor(e, t, r = 0, i = Math.PI / 3, s = 0, o = 2) {
|
|
26257
|
-
super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(
|
|
26263
|
+
super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(Nt.DEFAULT_UP), this.updateMatrix(), this.target = new Nt(), this.distance = r, this.angle = i, this.penumbra = s, this.decay = o, this.map = null, this.shadow = new N4();
|
|
26258
26264
|
}
|
|
26259
26265
|
/**
|
|
26260
26266
|
* The light's power. Power is the luminous power of the light measured in lumens (lm).
|
|
@@ -26355,7 +26361,7 @@ class z4 extends Mm {
|
|
|
26355
26361
|
* @param {number} [intensity=1] - The light's strength/intensity.
|
|
26356
26362
|
*/
|
|
26357
26363
|
constructor(e, t) {
|
|
26358
|
-
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(
|
|
26364
|
+
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(Nt.DEFAULT_UP), this.updateMatrix(), this.target = new Nt(), this.shadow = new F4();
|
|
26359
26365
|
}
|
|
26360
26366
|
dispose() {
|
|
26361
26367
|
this.shadow.dispose();
|
|
@@ -31183,7 +31189,7 @@ function AT(n, e, t, r, i, s, o) {
|
|
|
31183
31189
|
get: function() {
|
|
31184
31190
|
return this.uniforms.envMap.value;
|
|
31185
31191
|
}
|
|
31186
|
-
}), 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(TT.makeRotationFromEuler(Ds)), h.material.toneMapped = Rt.getTransfer(S.colorSpace) !==
|
|
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(TT.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 wn(
|
|
31187
31193
|
new sh(2, 2),
|
|
31188
31194
|
new As({
|
|
31189
31195
|
name: "BackgroundMaterial",
|
|
@@ -31200,7 +31206,7 @@ function AT(n, e, t, r, i, s, o) {
|
|
|
31200
31206
|
get: function() {
|
|
31201
31207
|
return this.uniforms.t2D.value;
|
|
31202
31208
|
}
|
|
31203
|
-
}), i.update(c)), c.material.uniforms.t2D.value = S, c.material.uniforms.backgroundIntensity.value = E.backgroundIntensity, c.material.toneMapped = Rt.getTransfer(S.colorSpace) !==
|
|
31209
|
+
}), i.update(c)), c.material.uniforms.t2D.value = S, c.material.uniforms.backgroundIntensity.value = E.backgroundIntensity, c.material.toneMapped = Rt.getTransfer(S.colorSpace) !== Ut, S.matrixAutoUpdate === !0 && S.updateMatrix(), c.material.uniforms.uvTransform.value.copy(S.matrix), (f !== S || p !== S.version || d !== n.toneMapping) && (c.material.needsUpdate = !0, f = S, p = S.version, d = n.toneMapping), c.layers.enableAll(), M.unshift(c, c.geometry, c.material, 0, 0, null));
|
|
31204
31210
|
}
|
|
31205
31211
|
function _(M, E) {
|
|
31206
31212
|
M.getRGB(Bc, zx(n)), r.buffers.color.setClear(Bc.r, Bc.g, Bc.b, E, o);
|
|
@@ -32902,7 +32908,7 @@ function N6(n) {
|
|
|
32902
32908
|
switch (Rt.getTransfer(n)) {
|
|
32903
32909
|
case Tu:
|
|
32904
32910
|
return [e, "LinearTransferOETF"];
|
|
32905
|
-
case
|
|
32911
|
+
case Ut:
|
|
32906
32912
|
return [e, "sRGBTransferOETF"];
|
|
32907
32913
|
default:
|
|
32908
32914
|
return console.warn("THREE.WebGLProgram: Unsupported color space: ", n), [e, "LinearTransferOETF"];
|
|
@@ -33621,8 +33627,8 @@ function r8(n, e, t, r, i, s, o) {
|
|
|
33621
33627
|
shadowMapEnabled: n.shadowMap.enabled && N.length > 0,
|
|
33622
33628
|
shadowMapType: n.shadowMap.type,
|
|
33623
33629
|
toneMapping: ct,
|
|
33624
|
-
decodeVideoTexture: Le && A.map.isVideoTexture === !0 && Rt.getTransfer(A.map.colorSpace) ===
|
|
33625
|
-
decodeVideoTextureEmissive: _e && A.emissiveMap.isVideoTexture === !0 && Rt.getTransfer(A.emissiveMap.colorSpace) ===
|
|
33630
|
+
decodeVideoTexture: Le && A.map.isVideoTexture === !0 && Rt.getTransfer(A.map.colorSpace) === Ut,
|
|
33631
|
+
decodeVideoTextureEmissive: _e && A.emissiveMap.isVideoTexture === !0 && Rt.getTransfer(A.emissiveMap.colorSpace) === Ut,
|
|
33626
33632
|
premultipliedAlpha: A.premultipliedAlpha,
|
|
33627
33633
|
doubleSided: A.side === mi,
|
|
33628
33634
|
flipSided: A.side === nr,
|
|
@@ -34636,7 +34642,7 @@ function v8(n, e, t, r, i, s, o) {
|
|
|
34636
34642
|
let he = I;
|
|
34637
34643
|
if (I === n.RED && (ee === n.FLOAT && (he = n.R32F), ee === n.HALF_FLOAT && (he = n.R16F), ee === n.UNSIGNED_BYTE && (he = n.R8)), I === n.RED_INTEGER && (ee === n.UNSIGNED_BYTE && (he = n.R8UI), ee === n.UNSIGNED_SHORT && (he = n.R16UI), ee === n.UNSIGNED_INT && (he = n.R32UI), ee === n.BYTE && (he = n.R8I), ee === n.SHORT && (he = n.R16I), ee === n.INT && (he = n.R32I)), I === n.RG && (ee === n.FLOAT && (he = n.RG32F), ee === n.HALF_FLOAT && (he = n.RG16F), ee === n.UNSIGNED_BYTE && (he = n.RG8)), I === n.RG_INTEGER && (ee === n.UNSIGNED_BYTE && (he = n.RG8UI), ee === n.UNSIGNED_SHORT && (he = n.RG16UI), ee === n.UNSIGNED_INT && (he = n.RG32UI), ee === n.BYTE && (he = n.RG8I), ee === n.SHORT && (he = n.RG16I), ee === n.INT && (he = n.RG32I)), I === n.RGB_INTEGER && (ee === n.UNSIGNED_BYTE && (he = n.RGB8UI), ee === n.UNSIGNED_SHORT && (he = n.RGB16UI), ee === n.UNSIGNED_INT && (he = n.RGB32UI), ee === n.BYTE && (he = n.RGB8I), ee === n.SHORT && (he = n.RGB16I), ee === n.INT && (he = n.RGB32I)), I === n.RGBA_INTEGER && (ee === n.UNSIGNED_BYTE && (he = n.RGBA8UI), ee === n.UNSIGNED_SHORT && (he = n.RGBA16UI), ee === n.UNSIGNED_INT && (he = n.RGBA32UI), ee === n.BYTE && (he = n.RGBA8I), ee === n.SHORT && (he = n.RGBA16I), ee === n.INT && (he = n.RGBA32I)), I === n.RGB && ee === n.UNSIGNED_INT_5_9_9_9_REV && (he = n.RGB9_E5), I === n.RGBA) {
|
|
34638
34644
|
const Ue = be ? Tu : Rt.getTransfer(fe);
|
|
34639
|
-
ee === n.FLOAT && (he = n.RGBA32F), ee === n.HALF_FLOAT && (he = n.RGBA16F), ee === n.UNSIGNED_BYTE && (he = Ue ===
|
|
34645
|
+
ee === n.FLOAT && (he = n.RGBA32F), ee === n.HALF_FLOAT && (he = n.RGBA16F), ee === n.UNSIGNED_BYTE && (he = Ue === Ut ? n.SRGB8_ALPHA8 : n.RGBA8), ee === n.UNSIGNED_SHORT_4_4_4_4 && (he = n.RGBA4), ee === n.UNSIGNED_SHORT_5_5_5_1 && (he = n.RGB5_A1);
|
|
34640
34646
|
}
|
|
34641
34647
|
return (he === n.R16F || he === n.R32F || he === n.RG16F || he === n.RG32F || he === n.RGBA16F || he === n.RGBA32F) && e.get("EXT_color_buffer_float"), he;
|
|
34642
34648
|
}
|
|
@@ -35174,7 +35180,7 @@ function v8(n, e, t, r, i, s, o) {
|
|
|
35174
35180
|
}
|
|
35175
35181
|
function rt(F, I) {
|
|
35176
35182
|
const ee = F.colorSpace, fe = F.format, be = F.type;
|
|
35177
|
-
return F.isCompressedTexture === !0 || F.isVideoTexture === !0 || ee !== fa && ee !== ms && (Rt.getTransfer(ee) ===
|
|
35183
|
+
return F.isCompressedTexture === !0 || F.isVideoTexture === !0 || ee !== fa && ee !== ms && (Rt.getTransfer(ee) === Ut ? (fe !== jr || be !== Ai) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", ee)), I;
|
|
35178
35184
|
}
|
|
35179
35185
|
function Mt(F) {
|
|
35180
35186
|
return typeof HTMLImageElement < "u" && F instanceof HTMLImageElement ? (c.width = F.naturalWidth || F.width, c.height = F.naturalHeight || F.height) : typeof VideoFrame < "u" && F instanceof VideoFrame ? (c.width = F.displayWidth, c.height = F.displayHeight) : (c.width = F.width, c.height = F.height), c;
|
|
@@ -35207,7 +35213,7 @@ function x8(n, e) {
|
|
|
35207
35213
|
if (r === mm) return n.RG_INTEGER;
|
|
35208
35214
|
if (r === gm) return n.RGBA_INTEGER;
|
|
35209
35215
|
if (r === eu || r === tu || r === nu || r === ru)
|
|
35210
|
-
if (o ===
|
|
35216
|
+
if (o === Ut)
|
|
35211
35217
|
if (s = e.get("WEBGL_compressed_texture_s3tc_srgb"), s !== null) {
|
|
35212
35218
|
if (r === eu) return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;
|
|
35213
35219
|
if (r === tu) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
|
|
@@ -35232,31 +35238,31 @@ function x8(n, e) {
|
|
|
35232
35238
|
return null;
|
|
35233
35239
|
if (r === Nd || r === Ud || r === Fd)
|
|
35234
35240
|
if (s = e.get("WEBGL_compressed_texture_etc"), s !== null) {
|
|
35235
|
-
if (r === Nd || r === Ud) return o ===
|
|
35236
|
-
if (r === Fd) return o ===
|
|
35241
|
+
if (r === Nd || r === Ud) return o === Ut ? s.COMPRESSED_SRGB8_ETC2 : s.COMPRESSED_RGB8_ETC2;
|
|
35242
|
+
if (r === Fd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : s.COMPRESSED_RGBA8_ETC2_EAC;
|
|
35237
35243
|
} else
|
|
35238
35244
|
return null;
|
|
35239
35245
|
if (r === zd || r === kd || r === Bd || r === Vd || r === Hd || r === Gd || r === Wd || r === jd || r === Xd || r === Yd || r === $d || r === Kd || r === Zd || r === Jd)
|
|
35240
35246
|
if (s = e.get("WEBGL_compressed_texture_astc"), s !== null) {
|
|
35241
|
-
if (r === zd) return o ===
|
|
35242
|
-
if (r === kd) return o ===
|
|
35243
|
-
if (r === Bd) return o ===
|
|
35244
|
-
if (r === Vd) return o ===
|
|
35245
|
-
if (r === Hd) return o ===
|
|
35246
|
-
if (r === Gd) return o ===
|
|
35247
|
-
if (r === Wd) return o ===
|
|
35248
|
-
if (r === jd) return o ===
|
|
35249
|
-
if (r === Xd) return o ===
|
|
35250
|
-
if (r === Yd) return o ===
|
|
35251
|
-
if (r === $d) return o ===
|
|
35252
|
-
if (r === Kd) return o ===
|
|
35253
|
-
if (r === Zd) return o ===
|
|
35254
|
-
if (r === Jd) return o ===
|
|
35247
|
+
if (r === zd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : s.COMPRESSED_RGBA_ASTC_4x4_KHR;
|
|
35248
|
+
if (r === kd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : s.COMPRESSED_RGBA_ASTC_5x4_KHR;
|
|
35249
|
+
if (r === Bd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : s.COMPRESSED_RGBA_ASTC_5x5_KHR;
|
|
35250
|
+
if (r === Vd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : s.COMPRESSED_RGBA_ASTC_6x5_KHR;
|
|
35251
|
+
if (r === Hd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : s.COMPRESSED_RGBA_ASTC_6x6_KHR;
|
|
35252
|
+
if (r === Gd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : s.COMPRESSED_RGBA_ASTC_8x5_KHR;
|
|
35253
|
+
if (r === Wd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : s.COMPRESSED_RGBA_ASTC_8x6_KHR;
|
|
35254
|
+
if (r === jd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : s.COMPRESSED_RGBA_ASTC_8x8_KHR;
|
|
35255
|
+
if (r === Xd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : s.COMPRESSED_RGBA_ASTC_10x5_KHR;
|
|
35256
|
+
if (r === Yd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : s.COMPRESSED_RGBA_ASTC_10x6_KHR;
|
|
35257
|
+
if (r === $d) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : s.COMPRESSED_RGBA_ASTC_10x8_KHR;
|
|
35258
|
+
if (r === Kd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : s.COMPRESSED_RGBA_ASTC_10x10_KHR;
|
|
35259
|
+
if (r === Zd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : s.COMPRESSED_RGBA_ASTC_12x10_KHR;
|
|
35260
|
+
if (r === Jd) return o === Ut ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : s.COMPRESSED_RGBA_ASTC_12x12_KHR;
|
|
35255
35261
|
} else
|
|
35256
35262
|
return null;
|
|
35257
35263
|
if (r === iu || r === Qd || r === ep)
|
|
35258
35264
|
if (s = e.get("EXT_texture_compression_bptc"), s !== null) {
|
|
35259
|
-
if (r === iu) return o ===
|
|
35265
|
+
if (r === iu) return o === Ut ? s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : s.COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
35260
35266
|
if (r === Qd) return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
|
|
35261
35267
|
if (r === ep) return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
|
|
35262
35268
|
} else
|
|
@@ -37766,7 +37772,7 @@ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
37766
37772
|
underlineThickness: 50
|
|
37767
37773
|
};
|
|
37768
37774
|
function O8(n, e, t, r) {
|
|
37769
|
-
const i = t.properties.get("step"), s = t.properties.has("color") ? $e([t.properties.get("color")]) : t.properties.get("colors"), o = new
|
|
37775
|
+
const i = t.properties.get("step"), s = t.properties.has("color") ? $e([t.properties.get("color")]) : t.properties.get("colors"), o = new Nt();
|
|
37770
37776
|
o.name = "streak";
|
|
37771
37777
|
let a = 0;
|
|
37772
37778
|
for (let l = 0; l <= e; l += i) {
|
|
@@ -37779,7 +37785,7 @@ function O8(n, e, t, r) {
|
|
|
37779
37785
|
return o;
|
|
37780
37786
|
}
|
|
37781
37787
|
function q8(n, e, t, r) {
|
|
37782
|
-
const i = t.properties.get("step"), s = t.properties.has("color") ? $e([t.properties.get("color")]) : t.properties.get("colors"), o = new
|
|
37788
|
+
const i = t.properties.get("step"), s = t.properties.has("color") ? $e([t.properties.get("color")]) : t.properties.get("colors"), o = new Nt();
|
|
37783
37789
|
o.name = "streak";
|
|
37784
37790
|
let a = 0;
|
|
37785
37791
|
for (let l = 0; l <= n; l += i) {
|
|
@@ -37792,7 +37798,7 @@ function q8(n, e, t, r) {
|
|
|
37792
37798
|
return o;
|
|
37793
37799
|
}
|
|
37794
37800
|
function D8(n) {
|
|
37795
|
-
const e = new
|
|
37801
|
+
const e = new Nt();
|
|
37796
37802
|
e.name = "grid", new R8().parse(L8);
|
|
37797
37803
|
const { grids: r, width: i, height: s } = n;
|
|
37798
37804
|
return r.forEach((o) => {
|
|
@@ -37848,7 +37854,7 @@ function z8(n, e, t) {
|
|
|
37848
37854
|
height: n.height,
|
|
37849
37855
|
LODs: {}
|
|
37850
37856
|
},
|
|
37851
|
-
plan: new
|
|
37857
|
+
plan: new Nt(),
|
|
37852
37858
|
grid: D8(n),
|
|
37853
37859
|
boundingBox: new Ci()
|
|
37854
37860
|
};
|
|
@@ -38362,7 +38368,7 @@ function Yo(n, e, t, r, i, s) {
|
|
|
38362
38368
|
const o = t.getIn(["holes", r]);
|
|
38363
38369
|
return i.getElement(o.type).render3D(o, t, n).then((a) => {
|
|
38364
38370
|
a instanceof rh && (e.sceneGraph.LODs[r] = a);
|
|
38365
|
-
const l = new
|
|
38371
|
+
const l = new Nt();
|
|
38366
38372
|
l.name = "pivot", l.add(a);
|
|
38367
38373
|
const c = t.getIn(["lines", o.line]);
|
|
38368
38374
|
let h = t.vertices.get(
|
|
@@ -38420,7 +38426,7 @@ function Ys(n, e, t, r, i, s) {
|
|
|
38420
38426
|
}
|
|
38421
38427
|
return i.getElement(o.type).render3D(o, t, n).then((c) => {
|
|
38422
38428
|
c instanceof rh && (e.sceneGraph.LODs[o.id] = c);
|
|
38423
|
-
let h = new
|
|
38429
|
+
let h = new Nt();
|
|
38424
38430
|
h.name = "pivot", h.add(c), h.position.x = a.x, h.position.y = t.altitude, h.position.z = -a.y, e.plan.add(h), e.sceneGraph.layers[t.id].lines[r] = h, lh(h, () => s.selectLine(t.id, o.id));
|
|
38425
38431
|
let f = t.opacity;
|
|
38426
38432
|
o.selected && (f = 1), ch(h, f), e.sceneGraph.busyResources.layers[t.id].lines[r] = !1;
|
|
@@ -38451,7 +38457,7 @@ function Cl(n, e, t, r, i, s) {
|
|
|
38451
38457
|
const o = t.getIn(["areas", r]), a = () => s.selectArea(t.id, r);
|
|
38452
38458
|
return i.getElement(o.type).render3D(o, t, n).then((l) => {
|
|
38453
38459
|
l instanceof rh && (e.sceneGraph.LODs[r] = l);
|
|
38454
|
-
let c = new
|
|
38460
|
+
let c = new Nt();
|
|
38455
38461
|
c.name = "pivot", c.add(l), c.position.y = t.altitude, e.plan.add(c), e.sceneGraph.layers[t.id].areas[r] = c, lh(c, a);
|
|
38456
38462
|
let h = t.opacity;
|
|
38457
38463
|
o.selected && (h = 1), ch(c, h), e.sceneGraph.busyResources.layers[t.id].areas[r] = !1;
|
|
@@ -38474,7 +38480,7 @@ function Lu(n, e, t, r, i, s) {
|
|
|
38474
38480
|
const o = t.getIn(["items", r]);
|
|
38475
38481
|
return i.getElement(o.type).render3D(o, t, n).then((a) => {
|
|
38476
38482
|
a instanceof rh && (e.sceneGraph.LODs[r] = a);
|
|
38477
|
-
const l = new
|
|
38483
|
+
const l = new Nt();
|
|
38478
38484
|
l.name = "pivot", l.add(a), l.rotation.y = o.rotation * Math.PI / 180, l.position.x = o.x, l.position.y = t.altitude, l.position.z = -o.y, lh(a, () => {
|
|
38479
38485
|
s.selectItem(t.id, o.id);
|
|
38480
38486
|
});
|
|
@@ -38543,7 +38549,7 @@ function Z8(n, e, t) {
|
|
|
38543
38549
|
const r = {};
|
|
38544
38550
|
return n.filter(({ path: i }) => i[5] === "properties" ? r[i[4]] ? !1 : r[i[4]] = !0 : i[5] !== "misc");
|
|
38545
38551
|
}
|
|
38546
|
-
const K1 = { type: "change" }, Tm = { type: "start" }, l2 = { type: "end" }, Gc = new nh(), Z1 = new ps(), J8 = Math.cos(70 * _M.DEG2RAD), _n = new G(), Qn = 2 * Math.PI,
|
|
38552
|
+
const K1 = { type: "change" }, Tm = { type: "start" }, l2 = { type: "end" }, Gc = new nh(), Z1 = new ps(), J8 = Math.cos(70 * _M.DEG2RAD), _n = new G(), Qn = 2 * Math.PI, Ft = {
|
|
38547
38553
|
NONE: -1,
|
|
38548
38554
|
ROTATE: 0,
|
|
38549
38555
|
DOLLY: 1,
|
|
@@ -38561,7 +38567,7 @@ class Q8 extends G4 {
|
|
|
38561
38567
|
* @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
|
|
38562
38568
|
*/
|
|
38563
38569
|
constructor(e, t = null) {
|
|
38564
|
-
super(e, t), this.state =
|
|
38570
|
+
super(e, t), this.state = Ft.NONE, this.target = new G(), this.cursor = new G(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Vo.ROTATE, MIDDLE: Vo.DOLLY, RIGHT: Vo.PAN }, this.touches = { ONE: Uo.ROTATE, TWO: Uo.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new G(), this._lastQuaternion = new Ts(), this._lastTargetPosition = new G(), this._quat = new Ts().setFromUnitVectors(e.up, new G(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new M1(), this._sphericalDelta = new M1(), this._scale = 1, this._panOffset = new G(), this._rotateStart = new Fe(), this._rotateEnd = new Fe(), this._rotateDelta = new Fe(), this._panStart = new Fe(), this._panEnd = new Fe(), this._panDelta = new Fe(), this._dollyStart = new Fe(), this._dollyEnd = new Fe(), this._dollyDelta = new Fe(), this._dollyDirection = new G(), this._mouse = new Fe(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = tA.bind(this), this._onPointerDown = eA.bind(this), this._onPointerUp = nA.bind(this), this._onContextMenu = cA.bind(this), this._onMouseWheel = sA.bind(this), this._onKeyDown = oA.bind(this), this._onTouchStart = aA.bind(this), this._onTouchMove = lA.bind(this), this._onMouseDown = rA.bind(this), this._onMouseMove = iA.bind(this), this._interceptControlDown = uA.bind(this), this._interceptControlUp = hA.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
38565
38571
|
}
|
|
38566
38572
|
connect(e) {
|
|
38567
38573
|
super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -38622,11 +38628,11 @@ class Q8 extends G4 {
|
|
|
38622
38628
|
* was called, or the initial state.
|
|
38623
38629
|
*/
|
|
38624
38630
|
reset() {
|
|
38625
|
-
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(K1), this.update(), this.state =
|
|
38631
|
+
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(K1), this.update(), this.state = Ft.NONE;
|
|
38626
38632
|
}
|
|
38627
38633
|
update(e = null) {
|
|
38628
38634
|
const t = this.object.position;
|
|
38629
|
-
_n.copy(t).sub(this.target), _n.applyQuaternion(this._quat), this._spherical.setFromVector3(_n), this.autoRotate && this.state ===
|
|
38635
|
+
_n.copy(t).sub(this.target), _n.applyQuaternion(this._quat), this._spherical.setFromVector3(_n), this.autoRotate && this.state === Ft.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
|
|
38630
38636
|
let r = this.minAzimuthAngle, i = this.maxAzimuthAngle;
|
|
38631
38637
|
isFinite(r) && isFinite(i) && (r < -Math.PI ? r += Qn : r > Math.PI && (r -= Qn), i < -Math.PI ? i += Qn : i > Math.PI && (i -= Qn), r <= i ? this._spherical.theta = Math.max(r, Math.min(i, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (r + i) / 2 ? Math.max(r, this._spherical.theta) : Math.min(i, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
|
|
38632
38638
|
let s = !1;
|
|
@@ -38858,7 +38864,7 @@ function tA(n) {
|
|
|
38858
38864
|
function nA(n) {
|
|
38859
38865
|
switch (this._removePointer(n), this._pointers.length) {
|
|
38860
38866
|
case 0:
|
|
38861
|
-
this.domElement.releasePointerCapture(n.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(l2), this.state =
|
|
38867
|
+
this.domElement.releasePointerCapture(n.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(l2), this.state = Ft.NONE;
|
|
38862
38868
|
break;
|
|
38863
38869
|
case 1:
|
|
38864
38870
|
const e = this._pointers[0], t = this._pointerPositions[e];
|
|
@@ -38884,49 +38890,49 @@ function rA(n) {
|
|
|
38884
38890
|
switch (e) {
|
|
38885
38891
|
case Vo.DOLLY:
|
|
38886
38892
|
if (this.enableZoom === !1) return;
|
|
38887
|
-
this._handleMouseDownDolly(n), this.state =
|
|
38893
|
+
this._handleMouseDownDolly(n), this.state = Ft.DOLLY;
|
|
38888
38894
|
break;
|
|
38889
38895
|
case Vo.ROTATE:
|
|
38890
38896
|
if (n.ctrlKey || n.metaKey || n.shiftKey) {
|
|
38891
38897
|
if (this.enablePan === !1) return;
|
|
38892
|
-
this._handleMouseDownPan(n), this.state =
|
|
38898
|
+
this._handleMouseDownPan(n), this.state = Ft.PAN;
|
|
38893
38899
|
} else {
|
|
38894
38900
|
if (this.enableRotate === !1) return;
|
|
38895
|
-
this._handleMouseDownRotate(n), this.state =
|
|
38901
|
+
this._handleMouseDownRotate(n), this.state = Ft.ROTATE;
|
|
38896
38902
|
}
|
|
38897
38903
|
break;
|
|
38898
38904
|
case Vo.PAN:
|
|
38899
38905
|
if (n.ctrlKey || n.metaKey || n.shiftKey) {
|
|
38900
38906
|
if (this.enableRotate === !1) return;
|
|
38901
|
-
this._handleMouseDownRotate(n), this.state =
|
|
38907
|
+
this._handleMouseDownRotate(n), this.state = Ft.ROTATE;
|
|
38902
38908
|
} else {
|
|
38903
38909
|
if (this.enablePan === !1) return;
|
|
38904
|
-
this._handleMouseDownPan(n), this.state =
|
|
38910
|
+
this._handleMouseDownPan(n), this.state = Ft.PAN;
|
|
38905
38911
|
}
|
|
38906
38912
|
break;
|
|
38907
38913
|
default:
|
|
38908
|
-
this.state =
|
|
38914
|
+
this.state = Ft.NONE;
|
|
38909
38915
|
}
|
|
38910
|
-
this.state !==
|
|
38916
|
+
this.state !== Ft.NONE && this.dispatchEvent(Tm);
|
|
38911
38917
|
}
|
|
38912
38918
|
function iA(n) {
|
|
38913
38919
|
switch (this.state) {
|
|
38914
|
-
case
|
|
38920
|
+
case Ft.ROTATE:
|
|
38915
38921
|
if (this.enableRotate === !1) return;
|
|
38916
38922
|
this._handleMouseMoveRotate(n);
|
|
38917
38923
|
break;
|
|
38918
|
-
case
|
|
38924
|
+
case Ft.DOLLY:
|
|
38919
38925
|
if (this.enableZoom === !1) return;
|
|
38920
38926
|
this._handleMouseMoveDolly(n);
|
|
38921
38927
|
break;
|
|
38922
|
-
case
|
|
38928
|
+
case Ft.PAN:
|
|
38923
38929
|
if (this.enablePan === !1) return;
|
|
38924
38930
|
this._handleMouseMovePan(n);
|
|
38925
38931
|
break;
|
|
38926
38932
|
}
|
|
38927
38933
|
}
|
|
38928
38934
|
function sA(n) {
|
|
38929
|
-
this.enabled === !1 || this.enableZoom === !1 || this.state !==
|
|
38935
|
+
this.enabled === !1 || this.enableZoom === !1 || this.state !== Ft.NONE || (n.preventDefault(), this.dispatchEvent(Tm), this._handleMouseWheel(this._customWheelEvent(n)), this.dispatchEvent(l2));
|
|
38930
38936
|
}
|
|
38931
38937
|
function oA(n) {
|
|
38932
38938
|
this.enabled !== !1 && this._handleKeyDown(n);
|
|
@@ -38937,55 +38943,55 @@ function aA(n) {
|
|
|
38937
38943
|
switch (this.touches.ONE) {
|
|
38938
38944
|
case Uo.ROTATE:
|
|
38939
38945
|
if (this.enableRotate === !1) return;
|
|
38940
|
-
this._handleTouchStartRotate(n), this.state =
|
|
38946
|
+
this._handleTouchStartRotate(n), this.state = Ft.TOUCH_ROTATE;
|
|
38941
38947
|
break;
|
|
38942
38948
|
case Uo.PAN:
|
|
38943
38949
|
if (this.enablePan === !1) return;
|
|
38944
|
-
this._handleTouchStartPan(n), this.state =
|
|
38950
|
+
this._handleTouchStartPan(n), this.state = Ft.TOUCH_PAN;
|
|
38945
38951
|
break;
|
|
38946
38952
|
default:
|
|
38947
|
-
this.state =
|
|
38953
|
+
this.state = Ft.NONE;
|
|
38948
38954
|
}
|
|
38949
38955
|
break;
|
|
38950
38956
|
case 2:
|
|
38951
38957
|
switch (this.touches.TWO) {
|
|
38952
38958
|
case Uo.DOLLY_PAN:
|
|
38953
38959
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
38954
|
-
this._handleTouchStartDollyPan(n), this.state =
|
|
38960
|
+
this._handleTouchStartDollyPan(n), this.state = Ft.TOUCH_DOLLY_PAN;
|
|
38955
38961
|
break;
|
|
38956
38962
|
case Uo.DOLLY_ROTATE:
|
|
38957
38963
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
38958
|
-
this._handleTouchStartDollyRotate(n), this.state =
|
|
38964
|
+
this._handleTouchStartDollyRotate(n), this.state = Ft.TOUCH_DOLLY_ROTATE;
|
|
38959
38965
|
break;
|
|
38960
38966
|
default:
|
|
38961
|
-
this.state =
|
|
38967
|
+
this.state = Ft.NONE;
|
|
38962
38968
|
}
|
|
38963
38969
|
break;
|
|
38964
38970
|
default:
|
|
38965
|
-
this.state =
|
|
38971
|
+
this.state = Ft.NONE;
|
|
38966
38972
|
}
|
|
38967
|
-
this.state !==
|
|
38973
|
+
this.state !== Ft.NONE && this.dispatchEvent(Tm);
|
|
38968
38974
|
}
|
|
38969
38975
|
function lA(n) {
|
|
38970
38976
|
switch (this._trackPointer(n), this.state) {
|
|
38971
|
-
case
|
|
38977
|
+
case Ft.TOUCH_ROTATE:
|
|
38972
38978
|
if (this.enableRotate === !1) return;
|
|
38973
38979
|
this._handleTouchMoveRotate(n), this.update();
|
|
38974
38980
|
break;
|
|
38975
|
-
case
|
|
38981
|
+
case Ft.TOUCH_PAN:
|
|
38976
38982
|
if (this.enablePan === !1) return;
|
|
38977
38983
|
this._handleTouchMovePan(n), this.update();
|
|
38978
38984
|
break;
|
|
38979
|
-
case
|
|
38985
|
+
case Ft.TOUCH_DOLLY_PAN:
|
|
38980
38986
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
38981
38987
|
this._handleTouchMoveDollyPan(n), this.update();
|
|
38982
38988
|
break;
|
|
38983
|
-
case
|
|
38989
|
+
case Ft.TOUCH_DOLLY_ROTATE:
|
|
38984
38990
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
38985
38991
|
this._handleTouchMoveDollyRotate(n), this.update();
|
|
38986
38992
|
break;
|
|
38987
38993
|
default:
|
|
38988
|
-
this.state =
|
|
38994
|
+
this.state = Ft.NONE;
|
|
38989
38995
|
}
|
|
38990
38996
|
}
|
|
38991
38997
|
function cA(n) {
|
|
@@ -39173,7 +39179,7 @@ class SA extends Ce.Component {
|
|
|
39173
39179
|
A.length > 0 && !isNaN(A[0].distance) ? A[0].object.interact && A[0].object.interact() : this.props.actions.projectActions.unselectAll();
|
|
39174
39180
|
}
|
|
39175
39181
|
}, this.renderer.domElement.addEventListener("mousedown", this.mouseDownEvent), this.renderer.domElement.addEventListener("mouseup", this.mouseUpEvent), this.renderer.domElement.style.display = "block", o && o.appendChild(this.renderer.domElement);
|
|
39176
|
-
const S = new Q8(h, this.renderer.domElement), T = new
|
|
39182
|
+
const S = new Q8(h, this.renderer.domElement), T = new Nt();
|
|
39177
39183
|
T.name = "spotLightTarget", T.position.set(
|
|
39178
39184
|
S.target.x,
|
|
39179
39185
|
S.target.y,
|
|
@@ -39227,7 +39233,7 @@ class SA extends Ce.Component {
|
|
|
39227
39233
|
}
|
|
39228
39234
|
}
|
|
39229
39235
|
const EA = {
|
|
39230
|
-
color:
|
|
39236
|
+
color: zt.PRIMARY_COLOR.alt,
|
|
39231
39237
|
fontWeight: 300
|
|
39232
39238
|
};
|
|
39233
39239
|
function bA({
|
|
@@ -39398,7 +39404,7 @@ const f2 = {
|
|
|
39398
39404
|
justifySelf: "center"
|
|
39399
39405
|
}, zA = {
|
|
39400
39406
|
...f2,
|
|
39401
|
-
background:
|
|
39407
|
+
background: zt.SECONDARY_COLOR.main
|
|
39402
39408
|
}, d2 = {
|
|
39403
39409
|
width: "100%",
|
|
39404
39410
|
textAlign: "center",
|
|
@@ -39407,7 +39413,7 @@ const f2 = {
|
|
|
39407
39413
|
textTransform: "capitalize"
|
|
39408
39414
|
}, kA = {
|
|
39409
39415
|
...d2,
|
|
39410
|
-
color:
|
|
39416
|
+
color: zt.COLORS.white
|
|
39411
39417
|
}, BA = {
|
|
39412
39418
|
width: "100%",
|
|
39413
39419
|
height: "8em",
|
|
@@ -39424,7 +39430,7 @@ const f2 = {
|
|
|
39424
39430
|
height: "100%",
|
|
39425
39431
|
backgroundSize: "contain",
|
|
39426
39432
|
backgroundPosition: "50% 50%",
|
|
39427
|
-
backgroundColor:
|
|
39433
|
+
backgroundColor: zt.COLORS.white,
|
|
39428
39434
|
backgroundRepeat: "no-repeat",
|
|
39429
39435
|
transition: "all .2s ease-in-out"
|
|
39430
39436
|
}, VA = {
|
|
@@ -39432,7 +39438,7 @@ const f2 = {
|
|
|
39432
39438
|
transform: "scale(1.2)"
|
|
39433
39439
|
}, HA = {
|
|
39434
39440
|
marginTop: "1.5em",
|
|
39435
|
-
color:
|
|
39441
|
+
color: zt.SECONDARY_COLOR.main,
|
|
39436
39442
|
fontSize: "2em",
|
|
39437
39443
|
opacity: "0.7",
|
|
39438
39444
|
width: "100%"
|
|
@@ -39456,7 +39462,7 @@ const f2 = {
|
|
|
39456
39462
|
}, jA = {
|
|
39457
39463
|
display: "inline-block",
|
|
39458
39464
|
background: "#337ab7",
|
|
39459
|
-
color:
|
|
39465
|
+
color: zt.COLORS.white,
|
|
39460
39466
|
padding: "1px 4px",
|
|
39461
39467
|
marginRight: "3px",
|
|
39462
39468
|
borderRadius: "3px"
|
|
@@ -39538,9 +39544,9 @@ const e7 = {
|
|
|
39538
39544
|
}, t7 = {
|
|
39539
39545
|
...g2,
|
|
39540
39546
|
fontWeight: "bolder",
|
|
39541
|
-
color:
|
|
39547
|
+
color: zt.SECONDARY_COLOR.main
|
|
39542
39548
|
}, n7 = {
|
|
39543
|
-
fill:
|
|
39549
|
+
fill: zt.COLORS.black,
|
|
39544
39550
|
fontSize: "24px",
|
|
39545
39551
|
marginLeft: "10px",
|
|
39546
39552
|
marginRight: "10px"
|
|
@@ -39575,17 +39581,17 @@ const e7 = {
|
|
|
39575
39581
|
WebkitTransition: "all .2s ease-in-out"
|
|
39576
39582
|
}, i7 = {
|
|
39577
39583
|
..._2,
|
|
39578
|
-
background:
|
|
39584
|
+
background: zt.SECONDARY_COLOR.main
|
|
39579
39585
|
}, v2 = {
|
|
39580
39586
|
position: "absolute",
|
|
39581
|
-
color:
|
|
39587
|
+
color: zt.COLORS.black,
|
|
39582
39588
|
fontSize: "5em",
|
|
39583
39589
|
width: "100%"
|
|
39584
39590
|
}, s7 = {
|
|
39585
39591
|
...v2,
|
|
39586
|
-
color:
|
|
39592
|
+
color: zt.SECONDARY_COLOR.main
|
|
39587
39593
|
}, o7 = {
|
|
39588
|
-
background:
|
|
39594
|
+
background: zt.COLORS.white,
|
|
39589
39595
|
marginBottom: "5px",
|
|
39590
39596
|
border: "solid 1px #e6e6e6",
|
|
39591
39597
|
width: "100%",
|
|
@@ -39655,8 +39661,8 @@ const e7 = {
|
|
|
39655
39661
|
borderRadius: "1em",
|
|
39656
39662
|
display: "inline-block",
|
|
39657
39663
|
cursor: "pointer",
|
|
39658
|
-
backgroundColor:
|
|
39659
|
-
color:
|
|
39664
|
+
backgroundColor: zt.PRIMARY_COLOR.alt,
|
|
39665
|
+
color: zt.PRIMARY_COLOR.text_main,
|
|
39660
39666
|
textTransform: "capitalize",
|
|
39661
39667
|
margin: "0.25em",
|
|
39662
39668
|
padding: "0 1em"
|
|
@@ -46149,18 +46155,19 @@ function qC({ catalog: n, has3dView: e }) {
|
|
|
46149
46155
|
setMode: r,
|
|
46150
46156
|
setToast: i,
|
|
46151
46157
|
selectTool3DView: s,
|
|
46158
|
+
unselectAll: o,
|
|
46152
46159
|
// selectTool3DFirstPerson,
|
|
46153
|
-
selectToolDrawingLine:
|
|
46154
|
-
} = Yt(), { mode:
|
|
46160
|
+
selectToolDrawingLine: a
|
|
46161
|
+
} = Yt(), { mode: l, alterate: c } = t, [h, f] = sn(null);
|
|
46155
46162
|
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
46156
46163
|
/* @__PURE__ */ R.jsxs("aside", { className: "floor_planner-toolbar max-h-full max-w-[50px] p-2.5 space-y-4 bg-[#2b2b2b]", children: [
|
|
46157
46164
|
/* @__PURE__ */ R.jsx(
|
|
46158
46165
|
Hr,
|
|
46159
46166
|
{
|
|
46160
|
-
active: [Kr, pr].includes(
|
|
46167
|
+
active: [Kr, pr].includes(l),
|
|
46161
46168
|
tooltip: "Draw wall",
|
|
46162
46169
|
onClick: () => {
|
|
46163
|
-
i({ text: "Cancel drawing" }),
|
|
46170
|
+
i({ text: "Cancel drawing" }), a("wall");
|
|
46164
46171
|
},
|
|
46165
46172
|
children: /* @__PURE__ */ R.jsx(yC, {})
|
|
46166
46173
|
}
|
|
@@ -46168,11 +46175,11 @@ function qC({ catalog: n, has3dView: e }) {
|
|
|
46168
46175
|
/* @__PURE__ */ R.jsx(
|
|
46169
46176
|
Hr,
|
|
46170
46177
|
{
|
|
46171
|
-
active: !!([mr].includes(
|
|
46178
|
+
active: !!([mr].includes(l) && h && h.page === "windows"),
|
|
46172
46179
|
tooltip: "Place windows",
|
|
46173
|
-
onClick: (
|
|
46174
|
-
|
|
46175
|
-
rect:
|
|
46180
|
+
onClick: (p) => {
|
|
46181
|
+
f({
|
|
46182
|
+
rect: p.currentTarget.getBoundingClientRect(),
|
|
46176
46183
|
page: "windows"
|
|
46177
46184
|
});
|
|
46178
46185
|
},
|
|
@@ -46182,11 +46189,11 @@ function qC({ catalog: n, has3dView: e }) {
|
|
|
46182
46189
|
/* @__PURE__ */ R.jsx(
|
|
46183
46190
|
Hr,
|
|
46184
46191
|
{
|
|
46185
|
-
active: !!([mr].includes(
|
|
46192
|
+
active: !!([mr].includes(l) && h && h.page === "doors"),
|
|
46186
46193
|
tooltip: "Place doors",
|
|
46187
|
-
onClick: (
|
|
46188
|
-
|
|
46189
|
-
rect:
|
|
46194
|
+
onClick: (p) => {
|
|
46195
|
+
f({
|
|
46196
|
+
rect: p.currentTarget.getBoundingClientRect(),
|
|
46190
46197
|
page: "doors"
|
|
46191
46198
|
});
|
|
46192
46199
|
},
|
|
@@ -46196,42 +46203,46 @@ function qC({ catalog: n, has3dView: e }) {
|
|
|
46196
46203
|
/* @__PURE__ */ R.jsx(
|
|
46197
46204
|
Hr,
|
|
46198
46205
|
{
|
|
46199
|
-
active: !!([Cr].includes(
|
|
46206
|
+
active: !!([Cr].includes(l) && h && h.page === "objects"),
|
|
46200
46207
|
tooltip: "Place objects",
|
|
46201
|
-
onClick: (
|
|
46202
|
-
|
|
46203
|
-
rect:
|
|
46208
|
+
onClick: (p) => {
|
|
46209
|
+
f({
|
|
46210
|
+
rect: p.currentTarget.getBoundingClientRect(),
|
|
46204
46211
|
page: "objects"
|
|
46205
46212
|
});
|
|
46206
46213
|
},
|
|
46207
46214
|
children: /* @__PURE__ */ R.jsx(IC, { size: 26 })
|
|
46208
46215
|
}
|
|
46209
46216
|
),
|
|
46210
|
-
e ? [Zi].includes(
|
|
46217
|
+
e ? [Zi].includes(l) ? /* @__PURE__ */ R.jsx(
|
|
46211
46218
|
Hr,
|
|
46212
46219
|
{
|
|
46213
|
-
active: [on].includes(
|
|
46220
|
+
active: [on].includes(l),
|
|
46214
46221
|
tooltip: "2D View",
|
|
46215
|
-
onClick: () =>
|
|
46216
|
-
|
|
46222
|
+
onClick: () => {
|
|
46223
|
+
o(), setTimeout(() => {
|
|
46224
|
+
r(on);
|
|
46225
|
+
}, 0);
|
|
46226
|
+
},
|
|
46227
|
+
children: /* @__PURE__ */ R.jsx(LC, { style: { color: c ? "#FF9800" : "" } })
|
|
46217
46228
|
}
|
|
46218
46229
|
) : /* @__PURE__ */ R.jsx(
|
|
46219
46230
|
Hr,
|
|
46220
46231
|
{
|
|
46221
|
-
active: [Zi].includes(
|
|
46232
|
+
active: [Zi].includes(l),
|
|
46222
46233
|
tooltip: "3D View",
|
|
46223
46234
|
onClick: s,
|
|
46224
46235
|
children: /* @__PURE__ */ R.jsx(OC, {})
|
|
46225
46236
|
}
|
|
46226
46237
|
) : null,
|
|
46227
|
-
/* @__PURE__ */ R.jsx(xC, { mode:
|
|
46238
|
+
/* @__PURE__ */ R.jsx(xC, { mode: l })
|
|
46228
46239
|
] }),
|
|
46229
46240
|
/* @__PURE__ */ R.jsx(
|
|
46230
46241
|
CC,
|
|
46231
46242
|
{
|
|
46232
46243
|
catalog: n,
|
|
46233
|
-
popupEvent:
|
|
46234
|
-
onClose: () =>
|
|
46244
|
+
popupEvent: h,
|
|
46245
|
+
onClose: () => f(null)
|
|
46235
46246
|
}
|
|
46236
46247
|
)
|
|
46237
46248
|
] });
|
|
@@ -46252,16 +46263,16 @@ function NC(n, e) {
|
|
|
46252
46263
|
}
|
|
46253
46264
|
s && t.loadProject(s), Yt.subscribe((o) => {
|
|
46254
46265
|
kf && clearTimeout(kf), kf = setTimeout(() => {
|
|
46255
|
-
const a = Ja.getItem(n), l =
|
|
46256
|
-
if (a !==
|
|
46266
|
+
const a = Ja.getItem(n), l = Dt.unselectAll(o.planner).updatedState, c = JSON.stringify(l.scene.toJS());
|
|
46267
|
+
if (a !== c && (Ja.setItem(n, c), o.plan))
|
|
46257
46268
|
try {
|
|
46258
|
-
const
|
|
46269
|
+
const h = o.plan.floors[o.activeFloor];
|
|
46259
46270
|
i && i({
|
|
46260
46271
|
floor: {
|
|
46261
|
-
floorID:
|
|
46262
|
-
title:
|
|
46263
|
-
description:
|
|
46264
|
-
design:
|
|
46272
|
+
floorID: h.floorID,
|
|
46273
|
+
title: h.floorTitle,
|
|
46274
|
+
description: h.floorDescription,
|
|
46275
|
+
design: c
|
|
46265
46276
|
}
|
|
46266
46277
|
});
|
|
46267
46278
|
} catch {
|
|
@@ -47626,7 +47637,7 @@ function o9(n, e, t, r) {
|
|
|
47626
47637
|
i = s, s = L, o = !0;
|
|
47627
47638
|
}
|
|
47628
47639
|
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({
|
|
47629
|
-
color: n.selected ?
|
|
47640
|
+
color: n.selected ? zt.MESH_SELECTED : 13882323
|
|
47630
47641
|
});
|
|
47631
47642
|
let x = new wn(
|
|
47632
47643
|
new Js(f, a, l),
|
|
@@ -47662,7 +47673,7 @@ function a9(n, e, t, r, i, s, o, a, l) {
|
|
|
47662
47673
|
let c = () => (a(), l()), h = i.getObjectByName("soul"), f = i.getObjectByName("frontFace"), p = i.getObjectByName("backFace");
|
|
47663
47674
|
if (o[0] == "selected")
|
|
47664
47675
|
h.material = new Xs({
|
|
47665
|
-
color: n.selected ?
|
|
47676
|
+
color: n.selected ? zt.MESH_SELECTED : 13882323
|
|
47666
47677
|
});
|
|
47667
47678
|
else if (o[0] == "properties")
|
|
47668
47679
|
if (o[1] == "thickness") {
|
|
@@ -47677,15 +47688,15 @@ function a9(n, e, t, r, i, s, o, a, l) {
|
|
|
47677
47688
|
return Promise.resolve(i);
|
|
47678
47689
|
}
|
|
47679
47690
|
const F_ = 20, z_ = { textAnchor: "middle" }, l9 = {
|
|
47680
|
-
stroke:
|
|
47691
|
+
stroke: zt.LINE_MESH_COLOR.selected
|
|
47681
47692
|
}, U2 = {
|
|
47682
47693
|
strokeWidth: 1,
|
|
47683
|
-
stroke:
|
|
47694
|
+
stroke: zt.COLORS.black
|
|
47684
47695
|
// stroke: SharedStyle.LINE_MESH_COLOR.unselected,
|
|
47685
47696
|
// fill: "url(#diagonalFill)",
|
|
47686
47697
|
}, c9 = {
|
|
47687
47698
|
...U2,
|
|
47688
|
-
stroke:
|
|
47699
|
+
stroke: zt.LINE_MESH_COLOR.selected
|
|
47689
47700
|
};
|
|
47690
47701
|
function q9(n, e, t) {
|
|
47691
47702
|
let r = {
|
|
@@ -47762,18 +47773,18 @@ function q9(n, e, t) {
|
|
|
47762
47773
|
)
|
|
47763
47774
|
};
|
|
47764
47775
|
if (t && Object.keys(t).length > 0) {
|
|
47765
|
-
|
|
47776
|
+
const i = { none: "None" };
|
|
47766
47777
|
for (let s in t)
|
|
47767
47778
|
i[s] = t[s].name;
|
|
47768
47779
|
r.properties.textureA = {
|
|
47769
47780
|
label: "texture A",
|
|
47770
47781
|
type: "enum",
|
|
47771
|
-
defaultValue: i.
|
|
47782
|
+
defaultValue: i.painted ? "painted" : "none",
|
|
47772
47783
|
values: i
|
|
47773
47784
|
}, r.properties.textureB = {
|
|
47774
47785
|
label: "texture B",
|
|
47775
47786
|
type: "enum",
|
|
47776
|
-
defaultValue: i.
|
|
47787
|
+
defaultValue: i.painted ? "painted" : "none",
|
|
47777
47788
|
values: i
|
|
47778
47789
|
};
|
|
47779
47790
|
}
|
|
@@ -47812,7 +47823,7 @@ function f9(n, e, t, r) {
|
|
|
47812
47823
|
});
|
|
47813
47824
|
let s = n.properties.get("patternColor");
|
|
47814
47825
|
const o = n.properties.get("texture");
|
|
47815
|
-
n.selected ? s =
|
|
47826
|
+
n.selected ? s = zt.AREA_MESH_COLOR.selected : o && o !== "none" && (s = zt.AREA_MESH_COLOR.unselected);
|
|
47816
47827
|
const a = new jo();
|
|
47817
47828
|
a.moveTo(i[0].x, i[0].y);
|
|
47818
47829
|
for (let x = 1; x < i.length; x++)
|
|
@@ -47842,7 +47853,7 @@ async function d9(n, e, t, r, i, s, o, a, l) {
|
|
|
47842
47853
|
const c = async () => (a(), await l()), h = i.getObjectByName("floor");
|
|
47843
47854
|
if (!h) return i;
|
|
47844
47855
|
if (o[0] == "selected") {
|
|
47845
|
-
const f = n.selected ?
|
|
47856
|
+
const f = n.selected ? zt.AREA_MESH_COLOR.selected : n.properties.get("patternColor") || zt.AREA_MESH_COLOR.unselected;
|
|
47846
47857
|
h.material.color.set(f);
|
|
47847
47858
|
} else if (o[0] == "properties") {
|
|
47848
47859
|
if (o[1] === "texture")
|
|
@@ -47873,7 +47884,7 @@ function D9(n, e, t) {
|
|
|
47873
47884
|
patternColor: {
|
|
47874
47885
|
label: "color",
|
|
47875
47886
|
type: "color",
|
|
47876
|
-
defaultValue:
|
|
47887
|
+
defaultValue: zt.AREA_MESH_COLOR.unselected
|
|
47877
47888
|
},
|
|
47878
47889
|
thickness: {
|
|
47879
47890
|
label: "thickness",
|
|
@@ -47899,7 +47910,7 @@ function D9(n, e, t) {
|
|
|
47899
47910
|
});
|
|
47900
47911
|
const f = Math.min(...h.map((M) => M.x)), p = Math.max(...h.map((M) => M.x)), d = Math.min(...h.map((M) => M.y)), m = Math.max(...h.map((M) => M.y)), x = p - f, v = m - d;
|
|
47901
47912
|
i.properties.get("patternColor"), i.selected;
|
|
47902
|
-
const _ = i.selected ?
|
|
47913
|
+
const _ = i.selected ? zt.AREA_MESH_COLOR.selected : i.properties.get("patternColor"), b = `pattern-${i.id}`;
|
|
47903
47914
|
return /* @__PURE__ */ R.jsxs("g", { children: [
|
|
47904
47915
|
/* @__PURE__ */ R.jsx("defs", { children: c && /* @__PURE__ */ R.jsx(
|
|
47905
47916
|
"pattern",
|