@roomle/web-sdk 5.1.0-alpha.8 → 5.1.0-alpha.9
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/lib/{api-CNS40jV7.mjs → api-DBo4bqkV.mjs} +2 -2
- package/lib/{api-CNS40jV7.mjs.map → api-DBo4bqkV.mjs.map} +1 -1
- package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
- package/lib/common-utils-CNGLvAo_.mjs +320 -0
- package/lib/common-utils-CNGLvAo_.mjs.map +1 -0
- package/lib/{component-raycast-helper-CTx3r9Si.mjs → component-raycast-helper-razJrkD8.mjs} +3 -3
- package/lib/{component-raycast-helper-CTx3r9Si.mjs.map → component-raycast-helper-razJrkD8.mjs.map} +1 -1
- package/lib/{configurator-eoTp9VBB.mjs → configurator-Bfbi3q7X.mjs} +4 -4
- package/lib/{configurator-eoTp9VBB.mjs.map → configurator-Bfbi3q7X.mjs.map} +1 -1
- package/lib/configurator-BxIDaIsx.mjs +2 -0
- package/lib/{glb-viewer-BMN5bmtQ.mjs → glb-viewer-CP0TDbjo.mjs} +5 -5
- package/lib/{glb-viewer-BMN5bmtQ.mjs.map → glb-viewer-CP0TDbjo.mjs.map} +1 -1
- package/lib/glb-viewer-DYkOoOv-.mjs +2 -0
- package/lib/{highlight-coordinator-VvPNsuCv.mjs → highlight-coordinator-DwIDs-5n.mjs} +3 -3
- package/lib/{highlight-coordinator-VvPNsuCv.mjs.map → highlight-coordinator-DwIDs-5n.mjs.map} +1 -1
- package/lib/{homag-intelligence-BaZMJh4H.mjs → homag-intelligence-1GdmdIBg.mjs} +3 -3
- package/lib/{homag-intelligence-BaZMJh4H.mjs.map → homag-intelligence-1GdmdIBg.mjs.map} +1 -1
- package/lib/{imos-ix-poc-export-helper-CSuMX4o4.mjs → imos-ix-poc-export-helper-DLaYjLvF.mjs} +2 -2
- package/lib/{imos-ix-poc-export-helper-CSuMX4o4.mjs.map → imos-ix-poc-export-helper-DLaYjLvF.mjs.map} +1 -1
- package/lib/{material-viewer-0urPSGjB.mjs → material-viewer-DJEEvr_2.mjs} +5 -5
- package/lib/{material-viewer-0urPSGjB.mjs.map → material-viewer-DJEEvr_2.mjs.map} +1 -1
- package/lib/{packages-HyyuVpoW.mjs → packages-Da2aAUP6.mjs} +6 -5
- package/lib/{packages-HyyuVpoW.mjs.map → packages-Da2aAUP6.mjs.map} +1 -1
- package/lib/{planner-BAAunRfK.mjs → planner-B3gmGQ5h.mjs} +3 -3
- package/lib/{planner-BAAunRfK.mjs.map → planner-B3gmGQ5h.mjs.map} +1 -1
- package/lib/planner-BpzUs9MN.mjs +2 -0
- package/lib/roomle-headless.d.ts +16 -1
- package/lib/roomle-headless.js +97 -97
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-sdk-gECTnB0n.mjs → roomle-sdk-B7kJPhbu.mjs} +218 -182
- package/lib/roomle-sdk-B7kJPhbu.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +16 -1
- package/lib/roomle-sdk.js +9 -8
- package/lib/{roomle-webgpu-renderer-dKboJY9a.mjs → roomle-webgpu-renderer-C26OAfkn.mjs} +297 -297
- package/lib/{roomle-webgpu-renderer-dKboJY9a.mjs.map → roomle-webgpu-renderer-C26OAfkn.mjs.map} +1 -1
- package/lib/{scene-renderer-CoPV8z_q.mjs → scene-renderer-CHMngNZI.mjs} +3 -3
- package/lib/{scene-renderer-CoPV8z_q.mjs.map → scene-renderer-CHMngNZI.mjs.map} +1 -1
- package/lib/{script-loader-LvvacdJd.mjs → script-loader-Bgt0r8D_.mjs} +2 -2
- package/lib/{script-loader-LvvacdJd.mjs.map → script-loader-Bgt0r8D_.mjs.map} +1 -1
- package/lib/{shading-settings-dogROhBy.mjs → shading-settings-DJ4kY2Cn.mjs} +2 -2
- package/lib/{shading-settings-dogROhBy.mjs.map → shading-settings-DJ4kY2Cn.mjs.map} +1 -1
- package/lib/{stats-helper-CESAA1or.mjs → stats-helper-CuB9x20N.mjs} +2 -2
- package/lib/{stats-helper-CESAA1or.mjs.map → stats-helper-CuB9x20N.mjs.map} +1 -1
- package/lib/{threejs-utils-Dpa_VhZx.mjs → threejs-utils-CrP6G-ow.mjs} +2 -2
- package/lib/{threejs-utils-Dpa_VhZx.mjs.map → threejs-utils-CrP6G-ow.mjs.map} +1 -1
- package/lib/{tools-core-BwoUD8EO.mjs → tools-core-Bo2DwzBG.mjs} +3 -3
- package/lib/{tools-core-BwoUD8EO.mjs.map → tools-core-Bo2DwzBG.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/common-utils-Cn03WfRo.mjs +0 -206
- package/lib/common-utils-Cn03WfRo.mjs.map +0 -1
- package/lib/configurator-DsD-u9YC.mjs +0 -2
- package/lib/glb-viewer-yvDgqhGa.mjs +0 -2
- package/lib/planner-C05yEzOU.mjs +0 -2
- package/lib/roomle-sdk-gECTnB0n.mjs.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./kernel-BWfRHWkW.mjs";
|
|
2
|
-
import { $ as c, A as l, At as u, B as d, C as f, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, H as y, I as b, J as x, K as S, L as C, M as w, Mt as T, N as E, O as ee, Ot as te, P as ne, Q as re, R as ie, S as ae, St as oe, T as se, Tt as ce, U as le, V as ue, W as de, Y as fe, Z as pe, _ as me, a as he, at as ge, b as _e, c as ve, ct as ye, d as be, dt as xe, et as Se, f as Ce, ft as we, g as Te, h as Ee, i as De, it as Oe, jt as ke, kt as Ae, l as je, lt as Me, m as Ne, mt as D, n as Pe, nt as Fe, o as Ie, ot as Le, p as Re, pt as ze, q as Be, r as Ve, rt as He, s as Ue, st as We, t as Ge, tt as Ke, ut as qe, v as Je, w as Ye, wt as Xe, x as Ze, xt as Qe, y as $e, z as et } from "./threejs-utils-
|
|
2
|
+
import { $ as c, A as l, At as u, B as d, C as f, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, H as y, I as b, J as x, K as S, L as C, M as w, Mt as T, N as E, O as ee, Ot as te, P as ne, Q as re, R as ie, S as ae, St as oe, T as se, Tt as ce, U as le, V as ue, W as de, Y as fe, Z as pe, _ as me, a as he, at as ge, b as _e, c as ve, ct as ye, d as be, dt as xe, et as Se, f as Ce, ft as we, g as Te, h as Ee, i as De, it as Oe, jt as ke, kt as Ae, l as je, lt as Me, m as Ne, mt as D, n as Pe, nt as Fe, o as Ie, ot as Le, p as Re, pt as ze, q as Be, r as Ve, rt as He, s as Ue, st as We, t as Ge, tt as Ke, ut as qe, v as Je, w as Ye, wt as Xe, x as Ze, xt as Qe, y as $e, z as et } from "./threejs-utils-CrP6G-ow.mjs";
|
|
3
3
|
import { $t as tt, An as nt, Ar as rt, At as it, Bt as at, C as ot, Cn as st, Di as ct, Dn as lt, Dr as ut, Dt as dt, E as ft, Ei as O, En as pt, Et as mt, Fn as ht, Gt as gt, H as _t, Hr as vt, Ht as yt, It as bt, Jr as xt, Jt as St, Kn as Ct, Kt as wt, Lr as Tt, Lt as Et, M as Dt, Mn as Ot, Nn as kt, Oi as At, On as jt, Or as Mt, Ot as Nt, Pn as Pt, Pr as Ft, Qr as It, Qt as Lt, R as Rt, Rn as zt, S as Bt, Sn as Vt, St as Ht, Ti as k, Tn as Ut, U as Wt, V as Gt, Vt as Kt, Wr as qt, Z as Jt, Zr as Yt, Zt as Xt, _n as Zt, _t as Qt, an as $t, at as en, bn as tn, ci as nn, cn as rn, ct as an, d as on, dt as sn, ei as cn, et as ln, f as A, h as un, hi as dn, ht as fn, ii as pn, in as mn, jn as hn, jt as gn, k as _n, kn as vn, kr as yn, l as bn, li as xn, ln as j, lt as Sn, m as Cn, mt as wn, n as Tn, nn as En, nt as Dn, p as On, qr as kn, qt as An, r as jn, sn as Mn, st as Nn, ti as Pn, tn as Fn, un as In, v as Ln, vn as Rn, w as M, wr as zn, wt as Bn, x as Vn, xn as Hn, zn as Un } from "./three.core-BTUCraWz.mjs";
|
|
4
4
|
import { n as Wn, r as Gn, t as Kn } from "./three.module-DUSFrLM6.mjs";
|
|
5
|
-
import { c as qn, t as Jn } from "./shading-settings-
|
|
6
|
-
import { a as Yn, c as Xn, i as Zn, n as Qn, o as $n, r as er, s as tr, t as N } from "./scene-renderer-
|
|
5
|
+
import { c as qn, t as Jn } from "./shading-settings-DJ4kY2Cn.mjs";
|
|
6
|
+
import { a as Yn, c as Xn, i as Zn, n as Qn, o as $n, r as er, s as tr, t as N } from "./scene-renderer-CHMngNZI.mjs";
|
|
7
7
|
import { i as nr, n as P, r as F, t as I } from "./decorate-CjaqqbUP.mjs";
|
|
8
8
|
import { c as rr, l as ir, s as ar, t as or, u as sr } from "./dimensioning-helper-WQTVJpxQ.mjs";
|
|
9
9
|
import { a as L, c as cr, i as R, n as lr, o as ur, r as dr, s as fr, t as pr } from "./kernel-utils-BwJOfYWh.mjs";
|
|
10
10
|
import { t as z } from "./layer-PJGxbJOI.mjs";
|
|
11
|
-
import { A as mr, B as hr, C as gr,
|
|
11
|
+
import { A as mr, B as hr, C as gr, E as _r, F as vr, I as yr, L as br, M as xr, N as Sr, O as Cr, P as wr, S as Tr, T as Er, U as Dr, V as Or, _ as kr, a as Ar, c as jr, d as Mr, f as Nr, g as Pr, h as Fr, i as Ir, j as Lr, k as Rr, l as zr, m as Br, n as Vr, o as Hr, p as Ur, r as Wr, s as Gr, t as Kr, u as qr, v as Jr, w as Yr, x as Xr, y as Zr, z as Qr } from "./common-utils-CNGLvAo_.mjs";
|
|
12
12
|
import { a as $r, i as ei, n as ti, o as ni, r as ri, t as ii } from "./roomle-renderer-nCUrLU_S.mjs";
|
|
13
13
|
import { t as ai } from "./plugin-system-BSLY3o0a.mjs";
|
|
14
14
|
import { M as oi, c as si, d as ci, f as li, i as ui, j as di, l as fi, o as pi, p as mi, t as hi, u as gi } from "./Object3D-DWcwDaGD.mjs";
|
|
@@ -431,7 +431,7 @@ var ra = {
|
|
|
431
431
|
GET: "GET",
|
|
432
432
|
POST: "POST",
|
|
433
433
|
PUT: "PUT"
|
|
434
|
-
}, va = (e) => e.startsWith("ps_"), ya =
|
|
434
|
+
}, va = (e) => e.startsWith("ps_"), ya = hr(), ba = 6e4, xa = 9, Sa = "demoConfigurator", Ca = /* @__PURE__ */ new Map(), wa = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Ea = /* @__PURE__ */ new Map(), Da = /* @__PURE__ */ new Map(), Oa = /* @__PURE__ */ new Map(), ka = /* @__PURE__ */ new Map(), Aa = /* @__PURE__ */ new Map(), ja = "hsc_configurations_offline_queue_v1", Ma = /* @__PURE__ */ new Map(), Na = (e) => Ca.get(e) || Ca.get(ya + e), Pa = (e) => e && e.tags && e.tags.length, Fa = (e) => !Pa(e) && e.group, Ia = class extends Error {
|
|
435
435
|
constructor(e, t) {
|
|
436
436
|
super(`Cannot load ${e} with id ${t}: offline and no cached data available`), this.code = "OFFLINE", this.name = "RapiOfflineError";
|
|
437
437
|
}
|
|
@@ -609,7 +609,7 @@ var ra = {
|
|
|
609
609
|
t ||= [];
|
|
610
610
|
for (let n = 0, r = t.length; n < r; n++) if (t[n].id === e.id) return;
|
|
611
611
|
t.push(e), wa.set(e.itemId, t);
|
|
612
|
-
}), e(
|
|
612
|
+
}), e(xr(i, [...t, ...r], "itemId"));
|
|
613
613
|
}, a);
|
|
614
614
|
});
|
|
615
615
|
}
|
|
@@ -881,7 +881,7 @@ var ra = {
|
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
883
|
this._getByIdsPackets(o, t, n).then((t) => {
|
|
884
|
-
r(
|
|
884
|
+
r(xr(e, [...t, ...a]));
|
|
885
885
|
}, i);
|
|
886
886
|
});
|
|
887
887
|
}
|
|
@@ -2024,9 +2024,9 @@ var po = class {
|
|
|
2024
2024
|
let n = [];
|
|
2025
2025
|
n.push(this._handleContentWithAssets(Promise.resolve(e), [yo.PERSPECTIVE_IMAGE])), this._rapiAccess.getAdditionalContentsOfItems(e).then((e) => {
|
|
2026
2026
|
let t = e.filter((e) => [
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2027
|
+
Dr.IMAGE,
|
|
2028
|
+
Dr.SKETCH,
|
|
2029
|
+
Dr.DOWNLOAD
|
|
2030
2030
|
].indexOf(e.type) !== -1);
|
|
2031
2031
|
n.push(this._handleContentWithAssets(Promise.resolve(t), [yo.CONTENT]));
|
|
2032
2032
|
}, (e) => this._softReject(t, "getAdditionalContentsOfItems error: \"" + e + "\"")), Promise.all(n).then(t, (e) => this._softReject(t, "AdditionalContent image sync error:\"" + e + "\""));
|
|
@@ -37058,7 +37058,7 @@ var Ks = 16, qs = 6, Js = class {
|
|
|
37058
37058
|
let t = {}, n = Object.keys(e);
|
|
37059
37059
|
for (let r of n) {
|
|
37060
37060
|
let n = e[r];
|
|
37061
|
-
n !== void 0 && (t[r] =
|
|
37061
|
+
n !== void 0 && (t[r] = _r(n) ? n : kr(n));
|
|
37062
37062
|
}
|
|
37063
37063
|
return t;
|
|
37064
37064
|
}, dc = class {
|
|
@@ -37114,7 +37114,7 @@ var Ks = 16, qs = 6, Js = class {
|
|
|
37114
37114
|
}
|
|
37115
37115
|
}, bc = "on", xc = "_isMute", Sc = class e {
|
|
37116
37116
|
_setMute(e) {
|
|
37117
|
-
|
|
37117
|
+
br(this, xc, !0), this._isMute = e, br(this, xc, !1);
|
|
37118
37118
|
}
|
|
37119
37119
|
mute() {
|
|
37120
37120
|
this._setMute(!0);
|
|
@@ -37260,7 +37260,7 @@ var Dc = () => {
|
|
|
37260
37260
|
return t && !e.externalObject && console.warn("External object has correct ID but externalObject flag is not true"), t;
|
|
37261
37261
|
}, Lc = (e) => {
|
|
37262
37262
|
let t = Br(e || {});
|
|
37263
|
-
return t.id ||=
|
|
37263
|
+
return t.id ||= Lr(), t.id = Nc(t.id), t.externalObject = !0, t.externalMeta = t.externalMeta ? t.externalMeta : {}, t;
|
|
37264
37264
|
}, Rc = {
|
|
37265
37265
|
HIDE: "hide",
|
|
37266
37266
|
SHOW_ATTRIBUTES: "attributes",
|
|
@@ -37323,13 +37323,13 @@ var Dc = () => {
|
|
|
37323
37323
|
return e.CONFIGURATOR = "configurator", e.PLANNER = "planner", e.GLB_VIEWER = "glb-viewer", e.MATERIAL_VIEWER = "material-viewer", e.TOOLS_CORE = "tools-core", e;
|
|
37324
37324
|
}({}), Jc = class {
|
|
37325
37325
|
constructor(e) {
|
|
37326
|
-
e ? this._context = e : this._context =
|
|
37326
|
+
e ? this._context = e : this._context = Rx.getContext(this.getContextName()), window.TWEEN || (window.TWEEN = new Se()), qc.start("loadingTime");
|
|
37327
37327
|
}
|
|
37328
37328
|
_setupCommonGlobals() {
|
|
37329
37329
|
window.__RML__DEBUG__ || (window.__RML__DEBUG__ = {}), window.__RML__ENV__ || (window.__RML__ENV__ = {}, window.__RML__ENV__.assetPath || (window.__RML__ENV__.assetPath = ""));
|
|
37330
37330
|
}
|
|
37331
37331
|
_setupCommonDependencies() {
|
|
37332
|
-
|
|
37332
|
+
Rx.setup(Lx);
|
|
37333
37333
|
let e = Vc();
|
|
37334
37334
|
this.lookup("global-init-data").setOverrides(e), this.lookup("init-data", this._context).setOverrides(e);
|
|
37335
37335
|
}
|
|
@@ -37366,7 +37366,7 @@ var Dc = () => {
|
|
|
37366
37366
|
e && this.lookup("dom-helper", this._context).setDomElement(e), this.lookup("life-cycle-manager", this._context).resume();
|
|
37367
37367
|
}
|
|
37368
37368
|
destroy() {
|
|
37369
|
-
this.pause(), this.lookup("life-cycle-manager", this._context).destroy(),
|
|
37369
|
+
this.pause(), this.lookup("life-cycle-manager", this._context).destroy(), Rx.cleanUp(this._context);
|
|
37370
37370
|
}
|
|
37371
37371
|
getRapiAccess() {
|
|
37372
37372
|
return this.lookup("rapi-access", this._context);
|
|
@@ -38334,7 +38334,7 @@ var Dc = () => {
|
|
|
38334
38334
|
console.error("Calculation already in progress for group:", e);
|
|
38335
38335
|
return;
|
|
38336
38336
|
}
|
|
38337
|
-
t.calculationInProgress = !0, await
|
|
38337
|
+
t.calculationInProgress = !0, await Or(0);
|
|
38338
38338
|
let r;
|
|
38339
38339
|
try {
|
|
38340
38340
|
if (r = this._adjustGroup(t.posDataJson, Array.from(this._posArticleMap.values()), n), !r) return;
|
|
@@ -38595,7 +38595,7 @@ var Dc = () => {
|
|
|
38595
38595
|
}), e.calculationInProgress ? e.calculationPromise ?? e.posDataJson : (e.calculationPromise = this._runGroupCalculation(e), e.calculationPromise);
|
|
38596
38596
|
}
|
|
38597
38597
|
async _runGroupCalculation(e) {
|
|
38598
|
-
e.calculationInProgress = !0, e.arrangementMovedGroup = !1, await
|
|
38598
|
+
e.calculationInProgress = !0, e.arrangementMovedGroup = !1, await Or(0);
|
|
38599
38599
|
try {
|
|
38600
38600
|
let t = this._calculate(e.posDataJson);
|
|
38601
38601
|
if (!t) return e.posDataJson;
|
|
@@ -38929,7 +38929,7 @@ var Dc = () => {
|
|
|
38929
38929
|
console.error("Calculation already in progress for group:", r.id);
|
|
38930
38930
|
return;
|
|
38931
38931
|
}
|
|
38932
|
-
n.calculationInProgress = !0, await
|
|
38932
|
+
n.calculationInProgress = !0, await Or(0);
|
|
38933
38933
|
try {
|
|
38934
38934
|
for (let e of i) {
|
|
38935
38935
|
if (!a) break;
|
|
@@ -40892,12 +40892,12 @@ var Ru = /* @__PURE__ */ new Map(), zu = (e) => {
|
|
|
40892
40892
|
objectToWallsMeasurements: p.flatMap((e) => {
|
|
40893
40893
|
let t = {
|
|
40894
40894
|
...u(e.startPoint, e.endPoint, !1, e.length),
|
|
40895
|
-
id:
|
|
40895
|
+
id: Tr(e.angle + "_" + e.length)
|
|
40896
40896
|
}, n = wd(m, L(e.endPoint).sub(L(e.startPoint)).setY(0).normalize(), e.length / 1e3, r);
|
|
40897
40897
|
return n ? [{
|
|
40898
40898
|
...l(n.closestPointOnSelected, n.closestPointOnNeighbor, !1, n.distanceMM),
|
|
40899
40899
|
dashed: !0,
|
|
40900
|
-
id:
|
|
40900
|
+
id: Tr("obj_" + e.angle + "_" + n.neighborId),
|
|
40901
40901
|
moveDirection: n.closestPointOnSelected.clone().sub(n.closestPointOnNeighbor).setY(0).normalize()
|
|
40902
40902
|
}, t] : [t];
|
|
40903
40903
|
})
|
|
@@ -41738,7 +41738,7 @@ var kd = .05, Ad = .02, jd = kd + Ad, Md = class extends pt {
|
|
|
41738
41738
|
}
|
|
41739
41739
|
async loadItemConfigurations(e) {
|
|
41740
41740
|
let t = Array.isArray(e) ? e : [e];
|
|
41741
|
-
if (!t.length || (this._requestedItemIds.push(...t), await
|
|
41741
|
+
if (!t.length || (this._requestedItemIds.push(...t), await Or(0), !this._requestedItemIds.length)) return;
|
|
41742
41742
|
let n = [...this._requestedItemIds];
|
|
41743
41743
|
this._requestedItemIds = [], (await this._rapiAccess.getItems(n)).forEach((e) => {
|
|
41744
41744
|
this._kernelInstance.assetsLoaded({
|
|
@@ -41840,7 +41840,7 @@ var kd = .05, Ad = .02, jd = kd + Ad, Md = class extends pt {
|
|
|
41840
41840
|
}
|
|
41841
41841
|
async requestMaterialProperties(e) {
|
|
41842
41842
|
let t = Array.isArray(e) ? e : [e];
|
|
41843
|
-
if (!t.length || (this._requestedMaterialIds.push(...t), await
|
|
41843
|
+
if (!t.length || (this._requestedMaterialIds.push(...t), await Or(0), !this._requestedMaterialIds.length)) return;
|
|
41844
41844
|
let n = [...this._requestedMaterialIds];
|
|
41845
41845
|
this._requestedMaterialIds = [];
|
|
41846
41846
|
let i = await this._materialProvider.getMaterials(n), a = [];
|
|
@@ -41913,7 +41913,7 @@ var kd = .05, Ad = .02, jd = kd + Ad, Md = class extends pt {
|
|
|
41913
41913
|
e ||= this._kernelInstance.getFullPartList();
|
|
41914
41914
|
let n = !!e && !!e.fullList && !!e.fullList.length;
|
|
41915
41915
|
if (this._initData.useRoomlePrice && n) {
|
|
41916
|
-
let n = e.fullList[0].currencySymbol, r =
|
|
41916
|
+
let n = e.fullList[0].currencySymbol, r = wr(e.fullList.reduce((e, t) => e + (t.count ? t.count : 0) * (t.price ? t.price : 0), 0), 2);
|
|
41917
41917
|
return n !== null && this._configuratorUiCallbacks.onUpdatePrice(n, r), Promise.resolve({
|
|
41918
41918
|
totalSum: r,
|
|
41919
41919
|
partMap: t
|
|
@@ -41926,7 +41926,7 @@ var kd = .05, Ad = .02, jd = kd + Ad, Md = class extends pt {
|
|
|
41926
41926
|
return new Promise((r, i) => {
|
|
41927
41927
|
this._rapiAccess.getPrices(n).then((n) => {
|
|
41928
41928
|
if (!n.length) return i(/* @__PURE__ */ Error("prices are empty"));
|
|
41929
|
-
let a = 0, o =
|
|
41929
|
+
let a = 0, o = Rr(n, "priceId");
|
|
41930
41930
|
for (let t of e.fullList) {
|
|
41931
41931
|
let e = $i(t);
|
|
41932
41932
|
if (!e || !o.has(e)) {
|
|
@@ -41938,7 +41938,7 @@ var kd = .05, Ad = .02, jd = kd + Ad, Md = class extends pt {
|
|
|
41938
41938
|
let { price: r, currencySymbol: i } = n;
|
|
41939
41939
|
t.price = r, t.currencySymbol = i, a += r * t.count;
|
|
41940
41940
|
}
|
|
41941
|
-
return a =
|
|
41941
|
+
return a = wr(a, 2), this._configuratorUiCallbacks.onUpdatePrice(n[0].currencySymbol, a), r({
|
|
41942
41942
|
totalSum: a,
|
|
41943
41943
|
partMap: t
|
|
41944
41944
|
});
|
|
@@ -42192,10 +42192,13 @@ var gf = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
42192
42192
|
exportCanvasScreenshot(e) {
|
|
42193
42193
|
return this._sceneManager.exportCanvasScreenshot(e);
|
|
42194
42194
|
}
|
|
42195
|
+
exportCameraScreenshot(e) {
|
|
42196
|
+
return this._sceneManager.exportCameraScreenshot(e);
|
|
42197
|
+
}
|
|
42195
42198
|
initSceneManager(e) {
|
|
42196
42199
|
if (e) this._sceneManager = e;
|
|
42197
42200
|
else {
|
|
42198
|
-
let e =
|
|
42201
|
+
let e = Rx.lookup("configurator-scene-manager", this._creator_);
|
|
42199
42202
|
if (!e) throw Error("Failed to resolve configurator-scene-manager from DI container");
|
|
42200
42203
|
this._sceneManager = e;
|
|
42201
42204
|
}
|
|
@@ -42927,7 +42930,7 @@ var gf = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
42927
42930
|
return this._sceneManager.getComponent(e);
|
|
42928
42931
|
}
|
|
42929
42932
|
async getTools() {
|
|
42930
|
-
let e =
|
|
42933
|
+
let e = Rx.lookup("roomle-tools-core", this._creator_);
|
|
42931
42934
|
if (!e) throw Error("Failed to resolve roomle-tools-core from DI container");
|
|
42932
42935
|
return await e.init(), e;
|
|
42933
42936
|
}
|
|
@@ -42947,14 +42950,14 @@ var gf = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
42947
42950
|
return this.generateHomagIxExport(i.IMOSiX, e);
|
|
42948
42951
|
}
|
|
42949
42952
|
async generateHOMAGiXExport(e = "", t = {}, n = {}, r = {}) {
|
|
42950
|
-
let a = await this.generateHomagIxExport(i.HOMAGiX, e), { homagIxMockUpData: o } = await import("./imos-ix-poc-export-helper-
|
|
42953
|
+
let a = await this.generateHomagIxExport(i.HOMAGiX, e), { homagIxMockUpData: o } = await import("./imos-ix-poc-export-helper-DLaYjLvF.mjs");
|
|
42951
42954
|
return o(a, t, n, r);
|
|
42952
42955
|
}
|
|
42953
42956
|
async downloadHomagIxExportPoC() {
|
|
42954
42957
|
Pr("IMOSiX.xml", await this.generateHOMAGiXExport());
|
|
42955
42958
|
}
|
|
42956
42959
|
async generateHomagIxExport(e, t = "") {
|
|
42957
|
-
let { generateExportHomagIxConfiguration: n } = await import("./imos-ix-poc-export-helper-
|
|
42960
|
+
let { generateExportHomagIxConfiguration: n } = await import("./imos-ix-poc-export-helper-DLaYjLvF.mjs"), r = this._configuratorContext.configurationRuntimeId;
|
|
42958
42961
|
n(r, e, this._plannerKernelAccess.configurationExporter, this._plannerKernelAccess.kernelInstance, t);
|
|
42959
42962
|
try {
|
|
42960
42963
|
return this._plannerKernelAccess.configurationExporter.setDefaultExportDataDefinition(t), Promise.resolve(JSON.parse(this._plannerKernelAccess.configurationExporter.generateExport(e, r, this._plannerKernelAccess.kernelInstance)));
|
|
@@ -43739,10 +43742,10 @@ function up() {
|
|
|
43739
43742
|
this._selected = !1;
|
|
43740
43743
|
}
|
|
43741
43744
|
hoverOn() {
|
|
43742
|
-
|
|
43745
|
+
vr(Kr.HOVER);
|
|
43743
43746
|
}
|
|
43744
43747
|
hoverOff() {
|
|
43745
|
-
|
|
43748
|
+
vr(Kr.DEFAULT);
|
|
43746
43749
|
}
|
|
43747
43750
|
computeBoundingBox(e, n, r = !1) {
|
|
43748
43751
|
if (this._boundingBoxMesh && this.remove(this._boundingBoxMesh), !r && e && e.size.x === 0 && e.size.y === 0 && e.size.z === 0) return;
|
|
@@ -43833,12 +43836,12 @@ function up() {
|
|
|
43833
43836
|
hoverOn() {
|
|
43834
43837
|
this.remove(this._dockline), this.meshes.forEach(({ material: e }) => {
|
|
43835
43838
|
e.opacity = De, e.roughness = 1, e.metalness = 0, e.color = new M(this._initData.colors.PREVIEW_DOCKING_COLOR);
|
|
43836
|
-
}),
|
|
43839
|
+
}), vr(Kr.HOVER);
|
|
43837
43840
|
}
|
|
43838
43841
|
hoverOff() {
|
|
43839
43842
|
this.add(this._dockline), this.meshes.forEach(({ material: e }) => {
|
|
43840
43843
|
e.opacity = Ve, e.roughness = 1, e.metalness = 0, e.color = new M(this._initData.colors.PREVIEW_DOCKING_COLOR);
|
|
43841
|
-
}),
|
|
43844
|
+
}), vr(Kr.DEFAULT);
|
|
43842
43845
|
}
|
|
43843
43846
|
clonePreview(e) {
|
|
43844
43847
|
let n = new r(this._creator_, this.runtimeId, this.roomlePosition, this.roomleRotation, this.parentObjectId, this.isRootComponent, this.componentType);
|
|
@@ -43896,10 +43899,10 @@ function up() {
|
|
|
43896
43899
|
super.addMesh(e, t), e.visible = !1, e.renderOrder = tr.DOCKLINE_MESH;
|
|
43897
43900
|
}
|
|
43898
43901
|
hoverOn() {
|
|
43899
|
-
this._dockline.visible = !0,
|
|
43902
|
+
this._dockline.visible = !0, vr(Kr.HOVER);
|
|
43900
43903
|
}
|
|
43901
43904
|
hoverOff() {
|
|
43902
|
-
this._dockline.visible = !1,
|
|
43905
|
+
this._dockline.visible = !1, vr(Kr.DEFAULT);
|
|
43903
43906
|
}
|
|
43904
43907
|
preparePreview() {
|
|
43905
43908
|
super.preparePreview(), this._dockline.visible = !1;
|
|
@@ -44411,7 +44414,7 @@ var dp = /* @__PURE__ */ function(e) {
|
|
|
44411
44414
|
return this.getMeshGenerator().materialQueue;
|
|
44412
44415
|
}
|
|
44413
44416
|
_getKernelAccess() {
|
|
44414
|
-
let e =
|
|
44417
|
+
let e = Rx.lookup("planner-kernel-access", this._creator_);
|
|
44415
44418
|
if (!e) throw Error("PlannerKernelAccess not found in dependency injection");
|
|
44416
44419
|
return e;
|
|
44417
44420
|
}
|
|
@@ -46591,7 +46594,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
46591
46594
|
e = this._resolveFenceElement(e, t), !this._isHiddenConstructionElement(e) && (e instanceof Lp && e.showDraggablePointsOnHoverOn(e), !this._isCurrentlyDrawing && (this._plannerSelectionHandler.getSelectionMode() === W.MULTISELECT ? this._hoverOnMultiSelect(e) : this._hoverOnStandard(e)));
|
|
46592
46595
|
}
|
|
46593
46596
|
_hoverOnMultiSelect(e) {
|
|
46594
|
-
vp(this._hoveredObject) || vp(e) ? (this._hoveredObject = null,
|
|
46597
|
+
vp(this._hoveredObject) || vp(e) ? (this._hoveredObject = null, vr(Kr.DEFAULT)) : this._hoverOnStandard(e);
|
|
46595
46598
|
}
|
|
46596
46599
|
_hoverOnStandard(e) {
|
|
46597
46600
|
e.hoverOn(), this._hoveredObject = e, this.dispatchEvent(Q.HOVER_ON, new Rm({ planElementViewModel: e })), this._interaction(), this._setCursor();
|
|
@@ -46624,7 +46627,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
46624
46627
|
return this._hoveredObject instanceof Ud;
|
|
46625
46628
|
}
|
|
46626
46629
|
_setCursor() {
|
|
46627
|
-
this._state === $.MEASURE ?
|
|
46630
|
+
this._state === $.MEASURE ? vr(Kr.NODE_HOVER) : this._state === $.ROTATE && this.hasSelection() ? vr(Kr.ROTATE) : this._state === $.DRAG ? vr(Kr.DRAGGING) : !this._isHoveredObjectNonDraggable && this._plannerSelectionHandler.isSelected(this.hoveredObjectId) ? vr(Kr.MOVE) : this._hoveredObject ? Sv(this._hoveredObject, this._initData) ? vr(Kr.DEFAULT) : vr(Kr.HOVER) : this._state === $.DRAW ? Mm() ? vr(Kr.DRAW_FALLBACK) : vr(Kr.DRAW) : vr(Kr.DEFAULT);
|
|
46628
46631
|
}
|
|
46629
46632
|
setCamera(e) {
|
|
46630
46633
|
this._raycastHelper.setCamera(e);
|
|
@@ -46651,9 +46654,9 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
46651
46654
|
return !!this._draggedObject;
|
|
46652
46655
|
}
|
|
46653
46656
|
_dragStart(e) {
|
|
46654
|
-
this._isMeasurementLineDrawActive || (!this._plannerSelectionHandler.isSelected(e.getId()) && !this._dragIn || this._state !== $.IDLE) && !this._isDrawingEnabled || (this.dispatchEvent(Q.BEFORE_DRAG_START),
|
|
46657
|
+
this._isMeasurementLineDrawActive || (!this._plannerSelectionHandler.isSelected(e.getId()) && !this._dragIn || this._state !== $.IDLE) && !this._isDrawingEnabled || (this.dispatchEvent(Q.BEFORE_DRAG_START), Or(yu.DRAG).then(() => {
|
|
46655
46658
|
if (this._inputManager.isMouseUp()) {
|
|
46656
|
-
this.setState($.IDLE),
|
|
46659
|
+
this.setState($.IDLE), vr(Kr.HOVER), this.dispatchEvent(Q.DRAG_CANCEL);
|
|
46657
46660
|
return;
|
|
46658
46661
|
}
|
|
46659
46662
|
this._draggedObject = e, this.setState($.DRAG), this._roomlePlannerUiCallback?.onDragElementStart(e.getId()), this.dispatchEvent(Q.DRAG_START, new Rm({ planElementViewModel: e }));
|
|
@@ -48567,7 +48570,7 @@ var dg = 3e3, fg = .65, pg = 1.16, mg = class {
|
|
|
48567
48570
|
this._renderLoopFunction = e;
|
|
48568
48571
|
}
|
|
48569
48572
|
whenRenderLoopFunctionApplied() {
|
|
48570
|
-
return this._renderLoopFunctionApplied ||=
|
|
48573
|
+
return this._renderLoopFunctionApplied ||= mr(), this._renderLoopFunctionApplied.promise;
|
|
48571
48574
|
}
|
|
48572
48575
|
onBeforeRender() {}
|
|
48573
48576
|
constructor(e, t, n, r) {
|
|
@@ -48680,7 +48683,7 @@ var dg = 3e3, fg = .65, pg = 1.16, mg = class {
|
|
|
48680
48683
|
}, this._initData.linearAoFilter);
|
|
48681
48684
|
e.setQualityMap(bh), e.setAutoQuality(this._initData.autoQuality), this._initData.debug && e.loadLutImages(Vh), this._roomleRenderer = e;
|
|
48682
48685
|
} else {
|
|
48683
|
-
let { RoomleWebGPURenderer: e } = await import("./roomle-webgpu-renderer-
|
|
48686
|
+
let { RoomleWebGPURenderer: e } = await import("./roomle-webgpu-renderer-C26OAfkn.mjs"), n = new e(this._creator_, this._renderer, !0, {
|
|
48684
48687
|
outlineVisibleEdgeColor: this._initData.colors.SELECTION.getHex(),
|
|
48685
48688
|
outlineHiddenEdgeColor: this._initData.colors.SELECTION.getHex()
|
|
48686
48689
|
});
|
|
@@ -48795,7 +48798,7 @@ var dg = 3e3, fg = .65, pg = 1.16, mg = class {
|
|
|
48795
48798
|
});
|
|
48796
48799
|
}
|
|
48797
48800
|
showWebGLStats() {
|
|
48798
|
-
this._roomleRenderer instanceof Hh && import("./stats-helper-
|
|
48801
|
+
this._roomleRenderer instanceof Hh && import("./stats-helper-CuB9x20N.mjs").then((e) => {
|
|
48799
48802
|
this._statsHelper = new e.default(), this._roomleRenderer.setOnQualityLevelChangeCallback((e) => {
|
|
48800
48803
|
this._statsHelper?.updateQualityInfo(e);
|
|
48801
48804
|
});
|
|
@@ -48935,24 +48938,32 @@ var dg = 3e3, fg = .65, pg = 1.16, mg = class {
|
|
|
48935
48938
|
return new Promise((t, n) => {
|
|
48936
48939
|
this._onAfterRender = () => {
|
|
48937
48940
|
this._onAfterRender = () => void 0;
|
|
48938
|
-
let r = this.getCanvasScreenshotWithDimensions(i)
|
|
48939
|
-
|
|
48940
|
-
Pr(e,
|
|
48941
|
+
let r = this.getCanvasScreenshotWithDimensions(i);
|
|
48942
|
+
this._cropToCameraOffset(r).then((n) => {
|
|
48943
|
+
Pr(e, n), t();
|
|
48944
|
+
}, n);
|
|
48945
|
+
}, this._requestRender();
|
|
48946
|
+
});
|
|
48947
|
+
}
|
|
48948
|
+
async exportCameraScreenshot(e = 1) {
|
|
48949
|
+
let t = await this.exportCanvasScreenshot(e);
|
|
48950
|
+
return this._cropToCameraOffset(t);
|
|
48951
|
+
}
|
|
48952
|
+
_cropToCameraOffset(e) {
|
|
48953
|
+
let { left: t, right: n, top: r, bottom: i } = this.getCameraOffset(), a = n - t, o = r - i;
|
|
48954
|
+
return a === 1 && o === 1 ? Promise.resolve(e) : new Promise((n, i) => {
|
|
48955
|
+
let s = new Image();
|
|
48956
|
+
s.onload = () => {
|
|
48957
|
+
let { naturalWidth: e, naturalHeight: c } = s, l = document.createElement("canvas");
|
|
48958
|
+
l.width = e * a, l.height = c * o;
|
|
48959
|
+
let u = l.getContext("2d");
|
|
48960
|
+
if (!u) {
|
|
48961
|
+
i(/* @__PURE__ */ Error("Failed to get 2D canvas context"));
|
|
48941
48962
|
return;
|
|
48942
48963
|
}
|
|
48943
|
-
let d =
|
|
48944
|
-
|
|
48945
|
-
|
|
48946
|
-
o.width = r * l, o.height = i * u;
|
|
48947
|
-
let c = o.getContext("2d");
|
|
48948
|
-
if (!c) {
|
|
48949
|
-
n(/* @__PURE__ */ Error("Failed to get 2D canvas context"));
|
|
48950
|
-
return;
|
|
48951
|
-
}
|
|
48952
|
-
let f = r * a * -1, p = i * (1 - s) * -1;
|
|
48953
|
-
c.drawImage(d, f, p), c.save(), Pr(e, o.toDataURL("image/jpeg", 1)), t();
|
|
48954
|
-
}, d.onerror = n;
|
|
48955
|
-
}, this._requestRender();
|
|
48964
|
+
let d = e * t * -1, f = c * (1 - r) * -1;
|
|
48965
|
+
u.drawImage(s, d, f), n(l.toDataURL("image/jpeg", 1));
|
|
48966
|
+
}, s.onerror = i, s.src = e;
|
|
48956
48967
|
});
|
|
48957
48968
|
}
|
|
48958
48969
|
getCanvasScreenshotWithDimensions(e) {
|
|
@@ -49138,12 +49149,12 @@ var hg = class extends Wf {
|
|
|
49138
49149
|
let t = new Hh(this._creator_, e, _g, _g);
|
|
49139
49150
|
return t.setQualityMap(bh), t;
|
|
49140
49151
|
}
|
|
49141
|
-
let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-
|
|
49152
|
+
let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-C26OAfkn.mjs");
|
|
49142
49153
|
return new t(this._creator_, e, !1);
|
|
49143
49154
|
}
|
|
49144
|
-
async switchToPlannerSettings() {
|
|
49145
|
-
let
|
|
49146
|
-
|
|
49155
|
+
async switchToPlannerSettings(e) {
|
|
49156
|
+
let t = await this._getRenderer();
|
|
49157
|
+
t instanceof ti && t.switchToPlanner(e);
|
|
49147
49158
|
}
|
|
49148
49159
|
async switchToConfiguratorSettings() {
|
|
49149
49160
|
let e = await this._getRenderer();
|
|
@@ -49307,7 +49318,7 @@ I([F, P("design:type", Object)], vg.prototype, "_globalInitData", void 0), I([F,
|
|
|
49307
49318
|
//#region packages/common-core/src/cameracontrol/camera-behaviour.ts
|
|
49308
49319
|
var yg = class {
|
|
49309
49320
|
constructor(e, t) {
|
|
49310
|
-
return this._state = null, this._cameraChangeListener = null, this._cameraControl = e, this._state = t, window.__RML__DEBUG__?.camera ?
|
|
49321
|
+
return this._state = null, this._cameraChangeListener = null, this._cameraControl = e, this._state = t, window.__RML__DEBUG__?.camera ? Qr(this, "CameraBehaviour") : this;
|
|
49311
49322
|
}
|
|
49312
49323
|
get state() {
|
|
49313
49324
|
return this._state;
|
|
@@ -49412,7 +49423,7 @@ var yg = class {
|
|
|
49412
49423
|
async _initOptionalModules() {
|
|
49413
49424
|
let e = this._initData.transparentHighlighting, t = !!this._initData.externalObjectSettings.transparentHighlighting;
|
|
49414
49425
|
if (e || t) {
|
|
49415
|
-
let { default: n } = await import("./highlight-coordinator-
|
|
49426
|
+
let { default: n } = await import("./highlight-coordinator-DwIDs-5n.mjs");
|
|
49416
49427
|
this._highlightHelper = new n({
|
|
49417
49428
|
transparentHighlighting: e,
|
|
49418
49429
|
externalTransparentHighlighting: t
|
|
@@ -49436,7 +49447,7 @@ var yg = class {
|
|
|
49436
49447
|
}
|
|
49437
49448
|
get viewModel() {
|
|
49438
49449
|
if (!this._viewModel) {
|
|
49439
|
-
let e =
|
|
49450
|
+
let e = Rx.lookup("configurator-view-model", this._creator_);
|
|
49440
49451
|
if (!e) throw Error("ConfiguratorSceneManager: configurator-view-model not found in DI container");
|
|
49441
49452
|
this._viewModel = e, this._viewModel.setRequestRenderCallback(() => this._renderEverything()), this._viewModel.setRequestRenderSceneUpdateCallback(() => this._roomleRenderer?.clearCache()), this._viewModel.setInvalidateRenderCallback(() => this._roomleRenderer?.forceShadowUpdates(!0));
|
|
49442
49453
|
}
|
|
@@ -49456,7 +49467,7 @@ var yg = class {
|
|
|
49456
49467
|
this._cancelDockings(!0, null, !0, !0, !1), this._renderEverything();
|
|
49457
49468
|
}
|
|
49458
49469
|
_cancelDockings(e, t, n, r, i = !0) {
|
|
49459
|
-
this._roomleRenderer?.disableUiInteractionMode(), e && (this._sceneEventHandler.setDragIn(!1), this.viewModel.cancelPreviewDocking(), t && this._scene.remove(t)), this.viewModel.removePreviews(), n && i &&
|
|
49470
|
+
this._roomleRenderer?.disableUiInteractionMode(), e && (this._sceneEventHandler.setDragIn(!1), this.viewModel.cancelPreviewDocking(), t && this._scene.remove(t)), this.viewModel.removePreviews(), n && i && Cr().then(() => {
|
|
49460
49471
|
let e = this.getBounds();
|
|
49461
49472
|
e && this.configuratorCameraBehaviour?.updateBoundsOnCancelDockings(e);
|
|
49462
49473
|
}), r && n && this._configuratorUiCallbacks.onDockingsPreviewRemoved(), this._highlightHelper && this._highlightHelper.cancelDocking(this._scene, () => {
|
|
@@ -50852,8 +50863,8 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
50852
50863
|
}
|
|
50853
50864
|
let m = this._computeLineHeight(e, l, d), h = this._getOtherPlanObjects(new Set([r])), g = [];
|
|
50854
50865
|
for (let e of a) {
|
|
50855
|
-
let t = L(e.startPoint), n = L(e.endPoint), _ =
|
|
50856
|
-
b && b.neighborId !== -1 ? (x = b.closestPointOnSelected, S = b.closestPointOnNeighbor, C = b.distanceMM, w =
|
|
50866
|
+
let t = L(e.startPoint), n = L(e.endPoint), _ = Tr(e.angle + "_" + e.length), v = t.clone().sub(n).normalize(), y = n.clone().sub(t).normalize(), b = this._findNearestObjectAlongDirection(o, s, y, e.length / 1e3, h, i, d, l ? Math.min(c.x, c.z) : 0), x, S, C, w;
|
|
50867
|
+
b && b.neighborId !== -1 ? (x = b.closestPointOnSelected, S = b.closestPointOnNeighbor, C = b.distanceMM, w = Tr("obj_" + b.neighborId + "_" + e.angle)) : (x = t, S = n, C = e.length, w = _, b?.wallDistCorrectionMM && (C -= b.wallDistCorrectionMM)), this._lengthOverride && e.angle === this._lengthOverride.angle && Math.abs(C - this._lengthOverride.targetMM) <= 5 && (C = this._lengthOverride.targetMM), x.y = m, S.y = m;
|
|
50857
50868
|
let T = !!b && b.neighborId !== -1;
|
|
50858
50869
|
if (T) if (d && u) {
|
|
50859
50870
|
let e = o.max.y;
|
|
@@ -50893,7 +50904,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
50893
50904
|
i.add(t), s.add(t);
|
|
50894
50905
|
}
|
|
50895
50906
|
let c = {
|
|
50896
|
-
id:
|
|
50907
|
+
id: Tr("wall_behind_" + e.angle + "_" + e.length),
|
|
50897
50908
|
startPoint: i,
|
|
50898
50909
|
endPoint: s,
|
|
50899
50910
|
lengthMM: e.length,
|
|
@@ -50956,7 +50967,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
50956
50967
|
if (!e || !t || e.dot(t) > .5) continue;
|
|
50957
50968
|
}
|
|
50958
50969
|
let S, C, w, T;
|
|
50959
|
-
x && x.neighborId !== -1 ? (S = x.closestPointOnSelected, C = x.closestPointOnNeighbor, w = x.distanceMM, T =
|
|
50970
|
+
x && x.neighborId !== -1 ? (S = x.closestPointOnSelected, C = x.closestPointOnNeighbor, w = x.distanceMM, T = Tr("multi_obj_" + o + "_" + x.neighborId + "_" + e.angle)) : (S = t, C = v, w = e.length, T = Tr("multi_wall_" + o + "_" + e.angle + "_" + e.length), x?.wallDistCorrectionMM && (w -= x.wallDistCorrectionMM));
|
|
50960
50971
|
let E = !!x && x.neighborId !== -1;
|
|
50961
50972
|
if (S.y = _, C.y = _, m && !p && !E && this._shiftLineToWallSurface(S, C, c, a.getBounds()), m && p && h && (S.addScaledVector(h, .2), C.addScaledVector(h, .2)), w < A_ || f && g && this._isPerpendicularToWall(S, C, g)) continue;
|
|
50962
50973
|
if (m && p && !f && h) {
|
|
@@ -50984,7 +50995,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
50984
50995
|
let n = t.clone(), i = v.clone(), a = l.max.y;
|
|
50985
50996
|
n.y = a, i.y = a, h && (n.addScaledVector(h, .2), i.addScaledVector(h, .2));
|
|
50986
50997
|
let s = {
|
|
50987
|
-
id:
|
|
50998
|
+
id: Tr("multi_wall_behind_" + o + "_" + e.angle + "_" + e.length),
|
|
50988
50999
|
startPoint: n,
|
|
50989
51000
|
endPoint: i,
|
|
50990
51001
|
lengthMM: e.length,
|
|
@@ -51035,7 +51046,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
51035
51046
|
y.pointOnA.addScaledVector(e, .2), y.pointOnB.addScaledVector(e, .2);
|
|
51036
51047
|
} else T ? (y.pointOnA.addScaledVector(T, .2), y.pointOnB.addScaledVector(T, .2)) : E && (y.pointOnA.addScaledVector(E, .2), y.pointOnB.addScaledVector(E, .2));
|
|
51037
51048
|
let ee = {
|
|
51038
|
-
id:
|
|
51049
|
+
id: Tr("gap_" + n.getId() + "_" + o.getId()),
|
|
51039
51050
|
startPoint: y.pointOnA,
|
|
51040
51051
|
endPoint: y.pointOnB,
|
|
51041
51052
|
lengthMM: C,
|
|
@@ -51121,7 +51132,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
51121
51132
|
let e = new O(f.x, .001, f.z), t = new O(f.x, u, f.z);
|
|
51122
51133
|
if (c(e, t) >= N_) {
|
|
51123
51134
|
let r = new k_({
|
|
51124
|
-
id:
|
|
51135
|
+
id: Tr("vert_floor_" + v),
|
|
51125
51136
|
startPoint: t,
|
|
51126
51137
|
endPoint: e,
|
|
51127
51138
|
lengthMM: v,
|
|
@@ -51140,7 +51151,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
51140
51151
|
let e = new O(f.x, d, f.z), t = new O(f.x, p, f.z);
|
|
51141
51152
|
if (c(e, t) >= N_) {
|
|
51142
51153
|
let r = new k_({
|
|
51143
|
-
id:
|
|
51154
|
+
id: Tr("vert_ceiling_" + y),
|
|
51144
51155
|
startPoint: e,
|
|
51145
51156
|
endPoint: t,
|
|
51146
51157
|
lengthMM: y,
|
|
@@ -51172,7 +51183,7 @@ var A_ = 10, j_ = 150, M_ = .08, N_ = .03, P_ = class {
|
|
|
51172
51183
|
let r = new O(t.x, u, t.z), i = new O(t.x, x, t.z);
|
|
51173
51184
|
if (c(r, i) >= N_) {
|
|
51174
51185
|
let t = new k_({
|
|
51175
|
-
id:
|
|
51186
|
+
id: Tr("vert_gap_below_" + S + "_" + n),
|
|
51176
51187
|
startPoint: r,
|
|
51177
51188
|
endPoint: i,
|
|
51178
51189
|
lengthMM: e,
|
|
@@ -53201,7 +53212,7 @@ var Cv = "rml_plans", wv = {
|
|
|
53201
53212
|
wallPoints: new wn(),
|
|
53202
53213
|
constructionElementsPoints: new wn(),
|
|
53203
53214
|
floorPoints: new wn()
|
|
53204
|
-
}, this._stopRendering = !0, this._configureInRoom = this._initData.configureInRoom, this._configuratorContext.baseContext = K.PLANNER, this._roomlePlannerCallback = n, this._initializeMeshGeneratorSettings(), this._plannerSceneEventHandler = new zm(e, this._scene, this.cameraBehaviour.cameraControl.getCamera(), this._getInputManager()), this._imageRenderer.switchToPlannerSettings(), this._planner2dMeasurementsHelper = new xv({
|
|
53215
|
+
}, this._stopRendering = !0, this._configureInRoom = this._initData.configureInRoom, this._configuratorContext.baseContext = K.PLANNER, this._roomlePlannerCallback = n, this._initializeMeshGeneratorSettings(), this._plannerSceneEventHandler = new zm(e, this._scene, this.cameraBehaviour.cameraControl.getCamera(), this._getInputManager()), this._imageRenderer.switchToPlannerSettings(this.cameraBehaviour.cameraControl instanceof gp ? ii.Mode2D : ii.Mode3D), this._planner2dMeasurementsHelper = new xv({
|
|
53205
53216
|
callbacks: {
|
|
53206
53217
|
onAtticKneeHeightCommit: (e, t) => {
|
|
53207
53218
|
this._setAttachedAtticKneeHeight(e, t), this._roomlePlannerUiCallback.onMeasurementEdited("attic");
|
|
@@ -53465,7 +53476,7 @@ var Cv = "rml_plans", wv = {
|
|
|
53465
53476
|
this._configuratorContext.configurationRuntimeId = 0, this._configuratorContext.planElementId = 0, this._configuratorContext.rootComponentId = 0;
|
|
53466
53477
|
}
|
|
53467
53478
|
async _setupScene(e, t) {
|
|
53468
|
-
if (await super._setupScene(e, t, !0), this._roomleRenderer && (this._roomleRenderer
|
|
53479
|
+
if (await super._setupScene(e, t, !0), this._roomleRenderer && (this._roomleRenderer.switchToPlanner(this.cameraBehaviour.cameraControl instanceof gp ? ii.Mode2D : ii.Mode3D), this._planElementHighlighter = new Rg(this._plannerSceneEventHandler, this._roomleRenderer, this.viewModel), this._initData.legacyLight && (this._lightSetting = new Gf(this._scene, this._lightSetting)), t || this._setEnvironment(new $m(this._scene, this._environment, kr(this._initData.colors.DEFAULT_BACKGROUND))), this._initData.debugLines || this._initData.featureFlags.advancedHighlighting)) {
|
|
53469
53480
|
let e = this.viewModel;
|
|
53470
53481
|
C_(this._plannerSceneEventHandler, e, this._roomleRenderer, this._initData);
|
|
53471
53482
|
}
|
|
@@ -53554,7 +53565,9 @@ var Cv = "rml_plans", wv = {
|
|
|
53554
53565
|
if (this._configuratorContext.baseContext === K.PLANNER) return;
|
|
53555
53566
|
this._configuratorContext.baseContext === K.CONFIGURATOR && (this._updateHighlightHelper(!1, null), (this._plannerKernelAccess?.planInteractionManager)?.endConfiguringMode?.(), this._getKernelAccess().kernelInstance.getPlanObject(this.currentSelection?.configurationRuntimeId ?? 0)?.externalObject && this.notifyPlannerOnComponentSelectionCancel(!0, "isolation_mode_cancelled")), this._configuratorContext.baseContext = K.PLANNER;
|
|
53556
53567
|
let e = this.cameraBehaviour.cameraControl.getCurrentCameraParameters(), t = this.viewModel.cameraType;
|
|
53557
|
-
this._changeCameraBehaviour(t === G.CAMERA_3D || t === G.CAMERA_FP ? new Fg(this._getCameraControl3D(e), this._cameraBehaviourState) : new Pg(this._getCameraControl2D(), this._cameraBehaviourState)), (this.lightCache?.activeLights?.size ?? 0) > 0 && this.toggleInteriorLightsSceneSettings(!0), this._resetCameraPosition(e), this.viewModel.showAll(), this.setEventHandlerObject(this._scene), this.enablePlannerEvents(), this.viewModel.setCameraType(this._is3DView() ? G.CAMERA_3D : G.CAMERA_2D), this.disableConfiguratorEvents()
|
|
53568
|
+
this._changeCameraBehaviour(t === G.CAMERA_3D || t === G.CAMERA_FP ? new Fg(this._getCameraControl3D(e), this._cameraBehaviourState) : new Pg(this._getCameraControl2D(), this._cameraBehaviourState)), (this.lightCache?.activeLights?.size ?? 0) > 0 && this.toggleInteriorLightsSceneSettings(!0), this._resetCameraPosition(e), this.viewModel.showAll(), this.setEventHandlerObject(this._scene), this.enablePlannerEvents(), this.viewModel.setCameraType(this._is3DView() ? G.CAMERA_3D : G.CAMERA_2D), this.disableConfiguratorEvents();
|
|
53569
|
+
let n = this.cameraBehaviour.cameraControl instanceof rp ? ii.Mode3D : ii.Mode2D;
|
|
53570
|
+
this._roomleRenderer?.switchToPlanner(n), this._imageRenderer.switchToPlannerSettings(n), this.updateScene();
|
|
53558
53571
|
}
|
|
53559
53572
|
_getYRotationOfObject(e) {
|
|
53560
53573
|
let t = e.getWorldDirection(new O()).clone();
|
|
@@ -53739,7 +53752,7 @@ var Cv = "rml_plans", wv = {
|
|
|
53739
53752
|
switchToFirstPerson() {
|
|
53740
53753
|
this.cameraBehaviour?.cameraControl instanceof Jm || (this._roomleRenderer?.setCameraType(G.CAMERA_FP), this._plannerSceneEventHandler?.disable(), this._plannerMeshGenerator.wallMeshes.forEach((e) => Be(e.material, !1, !1)), this.viewModel.getWallPlanObjectViewModels().forEach((e) => {
|
|
53741
53754
|
e.show();
|
|
53742
|
-
}), this._resetCameraFacingVisibility(), this.viewModel.setCameraType(G.CAMERA_FP), this._renderEverything(), this._changeCameraBehaviour(new Ig(this._getCameraControlFirstPerson(), this._cameraBehaviourState)), this._addCameraControlListener(), this._setCeiling(), this._roomlePlannerUiCallback.onCameraChanged(G.CAMERA_FP), this.plannerCameraBehaviour.resetCameraOnSwitchToFirstPerson(), this._plannerSceneEventHandler?.switchCameraMode());
|
|
53755
|
+
}), this._resetCameraFacingVisibility(), this.viewModel.setCameraType(G.CAMERA_FP), this._roomleRenderer?.switchToPlanner(ii.Mode3D), this._renderEverything(), this._changeCameraBehaviour(new Ig(this._getCameraControlFirstPerson(), this._cameraBehaviourState)), this._addCameraControlListener(), this._setCeiling(), this._roomlePlannerUiCallback.onCameraChanged(G.CAMERA_FP), this.plannerCameraBehaviour.resetCameraOnSwitchToFirstPerson(), this._plannerSceneEventHandler?.switchCameraMode());
|
|
53743
53756
|
}
|
|
53744
53757
|
onCameraChanged() {}
|
|
53745
53758
|
_setCameraControlListeners() {
|
|
@@ -54417,7 +54430,7 @@ var Cv = "rml_plans", wv = {
|
|
|
54417
54430
|
if (!a) return;
|
|
54418
54431
|
let o = a.getPlanElement();
|
|
54419
54432
|
if (!o) return;
|
|
54420
|
-
let s = fd(o.getWallDistances()).find((e) =>
|
|
54433
|
+
let s = fd(o.getWallDistances()).find((e) => Tr(e.angle + "_" + e.length) === t), c, l;
|
|
54421
54434
|
if (s) {
|
|
54422
54435
|
let e = L(s.startPoint), t = L(s.endPoint);
|
|
54423
54436
|
c = e.clone().sub(t).normalize(), l = (n - s.length) / 1e3;
|
|
@@ -54589,15 +54602,15 @@ var Cv = "rml_plans", wv = {
|
|
|
54589
54602
|
let c = {
|
|
54590
54603
|
leftMeasurement: {
|
|
54591
54604
|
...ad(s.leftMeasurement),
|
|
54592
|
-
id:
|
|
54605
|
+
id: Tr(`left_${s.leftMeasurement.length}_${s.leftMeasurement.fromPosition3d.x}_${s.leftMeasurement.fromPosition3d.z}`)
|
|
54593
54606
|
},
|
|
54594
54607
|
rightMeasurement: {
|
|
54595
54608
|
...ad(s.rightMeasurement),
|
|
54596
|
-
id:
|
|
54609
|
+
id: Tr(`right_${s.rightMeasurement.length}_${s.rightMeasurement.fromPosition3d.x}_${s.rightMeasurement.fromPosition3d.z}`)
|
|
54597
54610
|
},
|
|
54598
54611
|
elementRange: {
|
|
54599
54612
|
...ad(s.elementRange),
|
|
54600
|
-
id:
|
|
54613
|
+
id: Tr(`range_${s.elementRange.length}_${s.elementRange.fromPosition3d.x}_${s.elementRange.fromPosition3d.z}`)
|
|
54601
54614
|
}
|
|
54602
54615
|
};
|
|
54603
54616
|
this._constructionMeasurements2d = c, this._roomlePlannerUiCallback.onUpdateConstructionElementsMeasurements(c), this._invalidate2dMeasurementsOverlay();
|
|
@@ -54610,7 +54623,7 @@ var Cv = "rml_plans", wv = {
|
|
|
54610
54623
|
if (!i) return;
|
|
54611
54624
|
let a = r.getPlanElement(), o = r.getConstructionElementMeasurements(this.cameraBehaviour.cameraControl.getKernelZoomFactor(), i.clientWidth, i.clientHeight);
|
|
54612
54625
|
if (!o) return;
|
|
54613
|
-
let s =
|
|
54626
|
+
let s = Tr(`left_${o.leftMeasurement.length}_${o.leftMeasurement.fromPosition3d.x}_${o.leftMeasurement.fromPosition3d.z}`), c = Tr(`right_${o.rightMeasurement.length}_${o.rightMeasurement.fromPosition3d.x}_${o.rightMeasurement.fromPosition3d.z}`);
|
|
54614
54627
|
if (e === s) {
|
|
54615
54628
|
let e = t - o.leftMeasurement.length;
|
|
54616
54629
|
this._adjustConstructionPosition(a, o, e, "left");
|
|
@@ -54760,7 +54773,7 @@ var Cv = "rml_plans", wv = {
|
|
|
54760
54773
|
setObjectToWallMeasurementLength(e, t, n) {
|
|
54761
54774
|
let r = this.viewModel.getPlanObjectForId(e);
|
|
54762
54775
|
if (!r) return;
|
|
54763
|
-
let i = r.getPlanElement(), a = fd(i.getWallDistances()).find((e) =>
|
|
54776
|
+
let i = r.getPlanElement(), a = fd(i.getWallDistances()).find((e) => Tr(e.angle + "_" + e.length) === t);
|
|
54764
54777
|
if (!a) return;
|
|
54765
54778
|
let o = L(a.startPoint), s = L(a.endPoint), c = o.clone().sub(s).normalize(), l = (n - a.length) / 1e3, u = r.getPosition().clone().add(c.multiplyScalar(l)), d = this._getKernelAccess().planInteractionManager, f = d.enableRaster;
|
|
54766
54779
|
d.enableRaster = !1;
|
|
@@ -55448,7 +55461,7 @@ var ay = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55448
55461
|
return n ? (this.disableChildObjects(n), await this._sceneManager.getPlannerSceneEventHandler().selectPlanElement(n), t) : null;
|
|
55449
55462
|
}
|
|
55450
55463
|
async selectPlanObjectById(e) {
|
|
55451
|
-
this._planInteractionManager.disableChildObjectsOfAllPlanObjects(), await
|
|
55464
|
+
this._planInteractionManager.disableChildObjectsOfAllPlanObjects(), await Or(0), await this._sceneManager.selectPlanObject(e);
|
|
55452
55465
|
}
|
|
55453
55466
|
highlightPlanElements(e) {
|
|
55454
55467
|
e === null ? this._sceneManager.highlightPlanElementsById(null) : Array.isArray(e) ? this._sceneManager.highlightPlanElementsById(e) : this._sceneManager.highlightPlanElementById(e);
|
|
@@ -55462,7 +55475,7 @@ var ay = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55462
55475
|
async switchToConfigurator() {
|
|
55463
55476
|
let e = await this._singlePromiseFactory.create(Ua.START_HSC, "startHSC", (e) => {
|
|
55464
55477
|
if (this._hscInstance) return e(this._hscInstance);
|
|
55465
|
-
import("./configurator-
|
|
55478
|
+
import("./configurator-BxIDaIsx.mjs").then(({ Configurator: t }) => {
|
|
55466
55479
|
let n = new t(this._creator_);
|
|
55467
55480
|
n.boot({
|
|
55468
55481
|
kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
|
|
@@ -55480,7 +55493,7 @@ var ay = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55480
55493
|
async switchToViewer() {
|
|
55481
55494
|
let e = await this._singlePromiseFactory.create(Ua.START_GLB, "startGLB", (e) => {
|
|
55482
55495
|
if (this._glbInstance) return e(this._glbInstance);
|
|
55483
|
-
import("./glb-viewer-
|
|
55496
|
+
import("./glb-viewer-DYkOoOv-.mjs").then((t) => {
|
|
55484
55497
|
let n = new t.GlbViewer(this._creator_);
|
|
55485
55498
|
n.boot(), n.getApi().setOverrides(this._initData);
|
|
55486
55499
|
let r = this._domHelper.element;
|
|
@@ -55976,6 +55989,9 @@ var ay = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55976
55989
|
exportCanvasScreenshot(e) {
|
|
55977
55990
|
return this._sceneManager.exportCanvasScreenshot(e);
|
|
55978
55991
|
}
|
|
55992
|
+
exportCameraScreenshot(e) {
|
|
55993
|
+
return this._sceneManager.exportCameraScreenshot(e);
|
|
55994
|
+
}
|
|
55979
55995
|
moveElementPosition(e, t) {
|
|
55980
55996
|
this._sceneManager.moveElementPosition(e, t);
|
|
55981
55997
|
}
|
|
@@ -56031,7 +56047,7 @@ var ay = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
56031
56047
|
this._sceneManager.disableEvents();
|
|
56032
56048
|
}
|
|
56033
56049
|
async downloadHomagIxExportPoC() {
|
|
56034
|
-
let { downloadHomagIxExportPoC: e } = await import("./imos-ix-poc-export-helper-
|
|
56050
|
+
let { downloadHomagIxExportPoC: e } = await import("./imos-ix-poc-export-helper-DLaYjLvF.mjs");
|
|
56035
56051
|
return e((await this.getPlanModelViewHelper()).getPlanOverview(this._plan), this._plannerKernelAccess.configurationExporter, this._plannerKernelAccess.kernelInstance);
|
|
56036
56052
|
}
|
|
56037
56053
|
externalObjectsCompletelyLoaded() {
|
|
@@ -56411,7 +56427,7 @@ var ay = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
56411
56427
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
56412
56428
|
}, "*", [t.port2]);
|
|
56413
56429
|
let n = Bv(t.port1), r = null;
|
|
56414
|
-
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new iy(this._creator_, r)), await new (await (import("./homag-intelligence-
|
|
56430
|
+
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new iy(this._creator_, r)), await new (await (import("./homag-intelligence-1GdmdIBg.mjs"))).HomagIntelligence(this, e, n, () => this._plannerKernelAccess.arrangementCorrectionEnabled).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
|
|
56415
56431
|
}
|
|
56416
56432
|
async _loadHomagIntelligenceArticles(e, t) {
|
|
56417
56433
|
let n = this._homagIntelligence;
|
|
@@ -57376,10 +57392,10 @@ var Oy = class extends Dy {
|
|
|
57376
57392
|
this._homagIntelligence?.getGlueLogic()?.duplicateGroup(e);
|
|
57377
57393
|
}
|
|
57378
57394
|
async _externalObjectPlanChanged(e, t) {
|
|
57379
|
-
await
|
|
57395
|
+
await Or(0), this._homagIntelligence?.getGlueLogic()?.changedGroupPlanningSituation(e, t);
|
|
57380
57396
|
}
|
|
57381
57397
|
async _externalObjectConfigurationsMerged(e, t, n, r) {
|
|
57382
|
-
await
|
|
57398
|
+
await Or(0), this._homagIntelligence?.getGlueLogic()?.mergeGroups(e, t, n, r);
|
|
57383
57399
|
}
|
|
57384
57400
|
_externalObjectComponentSplitOff(e) {
|
|
57385
57401
|
if (e.length > 1) {
|
|
@@ -57481,7 +57497,7 @@ var ky = "#C0C0C0", Ay = class extends mu {
|
|
|
57481
57497
|
return this.materialQueue.push(i), i;
|
|
57482
57498
|
}
|
|
57483
57499
|
async _setMaterial(e, t, n, r) {
|
|
57484
|
-
if (e.userData.materialId = ee(t, n),
|
|
57500
|
+
if (e.userData.materialId = ee(t, n), Er(t)) t ? await this._assignMaterial(e, t, r) : (console.warn("Used default material because material is empty"), this.changeMaterialOfMesh(e, this._getDefaultMaterial(n)));
|
|
57485
57501
|
else {
|
|
57486
57502
|
if (!t) {
|
|
57487
57503
|
this.changeMaterialOfMesh(e, this._configuratorPreviewMaterial);
|
|
@@ -59906,25 +59922,31 @@ var ib = class {
|
|
|
59906
59922
|
}), Gb = ({ dimensioningColor: e, dimensioningLineWidth: t }) => ({
|
|
59907
59923
|
color: Ub(e, Hb.color),
|
|
59908
59924
|
width: t ?? Hb.width
|
|
59909
|
-
}), Kb = Math.sin($t.degToRad(5)), qb = 26, Jb =
|
|
59910
|
-
|
|
59925
|
+
}), Kb = Math.sin($t.degToRad(5)), qb = 26, Jb = (e, { from: t, to: n }) => {
|
|
59926
|
+
let r = L(e.origin), i = L(e.direction).normalize();
|
|
59927
|
+
return {
|
|
59928
|
+
fromPoint: r.clone().addScaledVector(i, t / 1e3),
|
|
59929
|
+
toPoint: r.clone().addScaledVector(i, n / 1e3)
|
|
59930
|
+
};
|
|
59931
|
+
}, Yb = "y", Xb = (e, t, n, r) => {
|
|
59932
|
+
if (e !== Yb) return;
|
|
59911
59933
|
let i = L(t.origin).y + ur(t.size).y;
|
|
59912
59934
|
n.setY(i), r.setY(i);
|
|
59913
|
-
},
|
|
59935
|
+
}, Zb = (e, t) => {
|
|
59914
59936
|
let n = new A(), r = new rn();
|
|
59915
59937
|
return t.forEach((t) => {
|
|
59916
59938
|
t.updateMatrixWorld(!0), t.meshes.forEach((t) => {
|
|
59917
59939
|
t.updateWorldMatrix(!0, !1), t.geometry.boundingBox || t.geometry.computeBoundingBox(), r.multiplyMatrices(e.matrixWorldInverse, t.matrixWorld), n.union(t.geometry.boundingBox.clone().applyMatrix4(r));
|
|
59918
59940
|
});
|
|
59919
59941
|
}), n;
|
|
59920
|
-
},
|
|
59942
|
+
}, Qb = (e, t) => {
|
|
59921
59943
|
let n = [];
|
|
59922
59944
|
return e.traverse((e) => {
|
|
59923
59945
|
if (!e.isLineSegments) return;
|
|
59924
59946
|
let { geometry: r, matrixWorld: i } = e, a = r.getAttribute("position"), o = (e) => t(new O().fromBufferAttribute(a, e).applyMatrix4(i));
|
|
59925
59947
|
for (let e = 0; e + 1 < a.count; e += 2) n.push(new Kt(o(e), o(e + 1)));
|
|
59926
59948
|
}), n;
|
|
59927
|
-
},
|
|
59949
|
+
}, $b = (e, t) => {
|
|
59928
59950
|
let { min: n, max: r } = e, i = (e, n) => new O(e, n, r.z).applyMatrix4(t);
|
|
59929
59951
|
return [{
|
|
59930
59952
|
fromPoint: i(n.x, r.y),
|
|
@@ -59933,7 +59955,7 @@ var ib = class {
|
|
|
59933
59955
|
fromPoint: i(n.x, n.y),
|
|
59934
59956
|
toPoint: i(n.x, r.y)
|
|
59935
59957
|
}];
|
|
59936
|
-
},
|
|
59958
|
+
}, ex = class e {
|
|
59937
59959
|
static {
|
|
59938
59960
|
this.SVG_PADDING = 30;
|
|
59939
59961
|
}
|
|
@@ -59959,19 +59981,19 @@ var ib = class {
|
|
|
59959
59981
|
}
|
|
59960
59982
|
async renderWithDimensionings(t, n, r, i, a) {
|
|
59961
59983
|
n.updateProjectionMatrix(), n.updateMatrixWorld(!0), this.resizeSvgToScale(n, a), this.svgRenderer.render(t, n);
|
|
59962
|
-
let o = this.createViewProjection(n, r, t), s = r.flatMap((e) => this.dimensionsOfComponent(n, e, o)), c = (s.length > 0 ?
|
|
59963
|
-
return
|
|
59984
|
+
let o = this.createViewProjection(n, r, t), s = r.flatMap((e) => this.dimensionsOfComponent(n, e, o)), c = s.reduce((e, t) => t === null ? e : Math.max(e, t.labelDistance + qb), e.SVG_PADDING), l = [...s, ...i.objectRuntimeIds.flatMap((e) => this.dimensionsOfObject(n, e, r, o, c))], u = (l.length > 0 ? l : this.measurementBoxDimensions(n, r, o)).filter((e) => e !== null), d = Fb(u, o.drawnLines, o.drawingCentre), f = Gb(i), p = [], m = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
59985
|
+
return u.forEach(({ from: e, to: t, labelDistance: n, label: r }, i) => Rf(this.svgRenderer.domElement, m, e, t, n, 13, f, r, o.planToSvgScaleMm, p, d[i])), this.svgRenderer.domElement.appendChild(m), Tb(this.svgRenderer.domElement, i.floorPlanEdges.edges, o.toSvg, f), Db(this.svgRenderer.domElement, i.profile.profileContour, o.toSvg, f), this.exportSvgAsString(e.SVG_PADDING, i.label);
|
|
59964
59986
|
}
|
|
59965
59987
|
createViewProjection(e, t, n) {
|
|
59966
59988
|
let { width: r, height: i } = this.svgRenderer.getSize(), a = (t) => {
|
|
59967
59989
|
let n = t.clone().project(e);
|
|
59968
59990
|
return new O(n.x * r / 2, -n.y * i / 2, 0);
|
|
59969
|
-
}, o =
|
|
59991
|
+
}, o = Zb(e, t);
|
|
59970
59992
|
return {
|
|
59971
59993
|
toSvg: a,
|
|
59972
59994
|
planToSvgScaleMm: r / 2 / ((e.right - e.left) / 2 * 1e3),
|
|
59973
59995
|
drawingCentre: o.isEmpty() ? null : a(o.getCenter(new O()).applyMatrix4(e.matrixWorld)),
|
|
59974
|
-
drawnLines:
|
|
59996
|
+
drawnLines: Qb(n, a)
|
|
59975
59997
|
};
|
|
59976
59998
|
}
|
|
59977
59999
|
dimensionsOfComponent(t, n, r) {
|
|
@@ -59979,15 +60001,29 @@ var ib = class {
|
|
|
59979
60001
|
return n.updateMatrixWorld(!0), a.map((a) => {
|
|
59980
60002
|
let s = o.find((e) => e.key === a.axis);
|
|
59981
60003
|
if (!s) return null;
|
|
59982
|
-
let
|
|
59983
|
-
|
|
59984
|
-
let
|
|
59985
|
-
return this.dimensionInView(t, r,
|
|
60004
|
+
let { fromPoint: c, toPoint: l } = Jb(s, a);
|
|
60005
|
+
Xb(s.key, i.boxForMeasurement, c, l), c.applyMatrix4(n.matrixWorld), l.applyMatrix4(n.matrixWorld);
|
|
60006
|
+
let u = e.SVG_PADDING + qb * (a.maxLevel - a.level);
|
|
60007
|
+
return this.dimensionInView(t, r, c, l, u, Math.abs(a.to - a.from));
|
|
60008
|
+
});
|
|
60009
|
+
}
|
|
60010
|
+
dimensionsOfObject(e, t, n, r, i) {
|
|
60011
|
+
let { kernelInstance: a } = this._plannerKernelAccess, { dimensionings: o = [], dimensioningAxes: s = [], rootPlanComponentId: c } = a.getPlanObject(t), l = n.find(({ runtimeId: e }) => e === c);
|
|
60012
|
+
if (o.length === 0 || !l) return [];
|
|
60013
|
+
l.updateMatrixWorld(!0);
|
|
60014
|
+
let u = l.matrixWorld.clone().multiply(lr(a.getComponent(c).globalTransform).invert());
|
|
60015
|
+
return o.map((t) => {
|
|
60016
|
+
let n = s.find((e) => e.key === t.axis);
|
|
60017
|
+
if (!n) return null;
|
|
60018
|
+
let { fromPoint: a, toPoint: o } = Jb(n, t);
|
|
60019
|
+
a.applyMatrix4(u), o.applyMatrix4(u);
|
|
60020
|
+
let c = i + qb * (t.maxLevel - t.level);
|
|
60021
|
+
return this.dimensionInView(e, r, a, o, c, Math.abs(t.to - t.from));
|
|
59986
60022
|
});
|
|
59987
60023
|
}
|
|
59988
60024
|
measurementBoxDimensions(t, n, r) {
|
|
59989
60025
|
let i = this.measurementBoxInViewPlane(t, n);
|
|
59990
|
-
return i.isEmpty() ? [] :
|
|
60026
|
+
return i.isEmpty() ? [] : $b(i, t.matrixWorld).map(({ fromPoint: n, toPoint: i }) => this.dimensionInView(t, r, n, i, e.SVG_PADDING, n.distanceTo(i) * 1e3));
|
|
59991
60027
|
}
|
|
59992
60028
|
measurementBoxInViewPlane(e, t) {
|
|
59993
60029
|
let n = new A(), r = new rn();
|
|
@@ -60012,10 +60048,10 @@ var ib = class {
|
|
|
60012
60048
|
};
|
|
60013
60049
|
}
|
|
60014
60050
|
};
|
|
60015
|
-
I([F, P("design:type", Object)],
|
|
60051
|
+
I([F, P("design:type", Object)], ex.prototype, "_plannerKernelAccess", void 0), I([F, P("design:type", Object)], ex.prototype, "_unitFormatter", void 0);
|
|
60016
60052
|
//#endregion
|
|
60017
60053
|
//#region packages/configurator-core/src/elevation-plan/outline-extractor.ts
|
|
60018
|
-
var
|
|
60054
|
+
var tx = .01 / 1e3, nx = [
|
|
60019
60055
|
0,
|
|
60020
60056
|
-1,
|
|
60021
60057
|
1
|
|
@@ -60031,19 +60067,19 @@ var ex = .01 / 1e3, tx = [
|
|
|
60031
60067
|
e,
|
|
60032
60068
|
t,
|
|
60033
60069
|
n
|
|
60034
|
-
]))),
|
|
60070
|
+
]))), rx = .5 / 1e3, ix = .01 / 1e3, ax = .05 / 1e3, ox = 1, sx = 3, cx = $t.degToRad(1), lx = Math.sin(cx), ux = Math.cos(cx), dx = $t.degToRad(15), fx = .001 / 1e3, px = (e, t) => {
|
|
60035
60071
|
let n = -e.dot(t);
|
|
60036
|
-
return n >
|
|
60037
|
-
},
|
|
60072
|
+
return n > lx ? "front" : n < -lx ? "back" : "edgeOn";
|
|
60073
|
+
}, mx = (e, t) => {
|
|
60038
60074
|
e.updateWorldMatrix(!0, !1);
|
|
60039
60075
|
let n = e.geometry.getAttribute("position"), r = e.geometry.getAttribute("normal"), i = e.geometry.getIndex(), a = new Mn().getNormalMatrix(e.matrixWorld), o = e.matrixWorld.determinant() < 0 ? -1 : 1, s = /* @__PURE__ */ new Map(), c = 0, l = (e) => {
|
|
60040
60076
|
let t = [
|
|
60041
60077
|
e.x,
|
|
60042
60078
|
e.y,
|
|
60043
60079
|
e.z
|
|
60044
|
-
].map((e) => Math.round(e /
|
|
60045
|
-
for (let n of
|
|
60046
|
-
let r = s.get(t.map((e, t) => e + n[t]).join(","))?.find(({ position: t }) => t.distanceToSquared(e) <=
|
|
60080
|
+
].map((e) => Math.round(e / tx));
|
|
60081
|
+
for (let n of nx) {
|
|
60082
|
+
let r = s.get(t.map((e, t) => e + n[t]).join(","))?.find(({ position: t }) => t.distanceToSquared(e) <= tx * tx);
|
|
60047
60083
|
if (r) return r.id;
|
|
60048
60084
|
}
|
|
60049
60085
|
let n = c;
|
|
@@ -60060,18 +60096,18 @@ var ex = .01 / 1e3, tx = [
|
|
|
60060
60096
|
1,
|
|
60061
60097
|
2
|
|
60062
60098
|
].map((e) => i ? i.getX(s + e) : s + e), u = c.map((t) => new O().fromBufferAttribute(n, t).applyMatrix4(e.matrixWorld)), f = new O().subVectors(u[1], u[0]).cross(new O().subVectors(u[2], u[0])), p = Math.max(...u.map((e, t) => e.distanceTo(u[(t + 1) % 3])));
|
|
60063
|
-
if (f.length() <=
|
|
60099
|
+
if (f.length() <= fx * p) continue;
|
|
60064
60100
|
let m = u.map(l);
|
|
60065
60101
|
new Set(m).size < 3 || (f.normalize().multiplyScalar(o), d.push({
|
|
60066
60102
|
corners: u,
|
|
60067
60103
|
cornerNormals: c.map((e) => r ? new O().fromBufferAttribute(r, e).applyMatrix3(a).normalize() : f.clone()),
|
|
60068
60104
|
weldedCorners: m,
|
|
60069
60105
|
normal: f,
|
|
60070
|
-
facing:
|
|
60106
|
+
facing: px(f, t)
|
|
60071
60107
|
}));
|
|
60072
60108
|
}
|
|
60073
60109
|
return d;
|
|
60074
|
-
},
|
|
60110
|
+
}, hx = (e) => {
|
|
60075
60111
|
let t = /* @__PURE__ */ new Map();
|
|
60076
60112
|
return e.forEach((e) => {
|
|
60077
60113
|
for (let n = 0; n < 3; n += 1) {
|
|
@@ -60083,19 +60119,19 @@ var ex = .01 / 1e3, tx = [
|
|
|
60083
60119
|
c ? c.push(s) : t.set(o, [s]);
|
|
60084
60120
|
}
|
|
60085
60121
|
}), t;
|
|
60086
|
-
},
|
|
60122
|
+
}, gx = (e, t) => e.triangle.weldedCorners[e.startCorner] === t ? e.triangle.cornerNormals[e.startCorner] : e.triangle.cornerNormals[e.endCorner], _x = (e) => {
|
|
60087
60123
|
let [t] = e, n = [t.triangle.weldedCorners[t.startCorner], t.triangle.weldedCorners[t.endCorner]], r = !1, i = 0, a = 0;
|
|
60088
60124
|
return e.forEach((t, o) => {
|
|
60089
60125
|
e.slice(o + 1).forEach((e) => {
|
|
60090
60126
|
n.forEach((n) => {
|
|
60091
|
-
|
|
60127
|
+
gx(t, n).angleTo(gx(e, n)) > cx && (r = !0);
|
|
60092
60128
|
});
|
|
60093
60129
|
let o = t.triangle.normal.angleTo(e.triangle.normal);
|
|
60094
60130
|
a = Math.max(a, o), i = Math.max(i, Math.min(o, Math.PI - o));
|
|
60095
60131
|
});
|
|
60096
|
-
}), r && i >
|
|
60097
|
-
},
|
|
60098
|
-
let i = Math.max(
|
|
60132
|
+
}), r && i > cx && a >= dx;
|
|
60133
|
+
}, vx = (e, t, n, r) => {
|
|
60134
|
+
let i = Math.max(sx, Math.ceil(e.distanceTo(t) / n)), a = [], o = null;
|
|
60099
60135
|
for (let n = 0; n <= i; n += 1) {
|
|
60100
60136
|
let s = n < i && r(new O().lerpVectors(e, t, (n + .5) / i));
|
|
60101
60137
|
s && o === null && (o = n), !s && o !== null && (a.push({
|
|
@@ -60104,21 +60140,21 @@ var ex = .01 / 1e3, tx = [
|
|
|
60104
60140
|
}), o = null);
|
|
60105
60141
|
}
|
|
60106
60142
|
return a;
|
|
60107
|
-
},
|
|
60143
|
+
}, yx = (e, t, n) => {
|
|
60108
60144
|
let r = new O();
|
|
60109
60145
|
return n.shapecast({
|
|
60110
|
-
intersectsBounds: (t) => t.distanceToPoint(e) <=
|
|
60111
|
-
intersectsTriangle: (n) => Math.abs(n.getNormal(r).dot(t)) >
|
|
60146
|
+
intersectsBounds: (t) => t.distanceToPoint(e) <= ix,
|
|
60147
|
+
intersectsTriangle: (n) => Math.abs(n.getNormal(r).dot(t)) > ux && n.distanceToPoint(e) <= ix
|
|
60112
60148
|
});
|
|
60113
|
-
},
|
|
60149
|
+
}, bx = (e, t, n, r, i) => {
|
|
60114
60150
|
let { triangle: a, startCorner: o, endCorner: s } = e, c = new O().addVectors(t, n).multiplyScalar(.5), l = new O().subVectors(n, t).cross(a.normal).normalize(), u = new O().subVectors(a.corners[3 - o - s], c);
|
|
60115
|
-
return l.dot(u) > 0 && l.negate(),
|
|
60116
|
-
},
|
|
60151
|
+
return l.dot(u) > 0 && l.negate(), vx(t, n, r, (e) => !yx(e.clone().addScaledVector(l, rx), a.normal, i));
|
|
60152
|
+
}, xx = (e, t, n) => {
|
|
60117
60153
|
let r = [];
|
|
60118
|
-
return
|
|
60154
|
+
return hx(e).forEach((e) => {
|
|
60119
60155
|
let [i] = e, a = i.triangle.corners[i.startCorner], o = i.triangle.corners[i.endCorner];
|
|
60120
60156
|
if (e.length === 1) {
|
|
60121
|
-
r.push(...
|
|
60157
|
+
r.push(...bx(i, a, o, t, n));
|
|
60122
60158
|
return;
|
|
60123
60159
|
}
|
|
60124
60160
|
let s = e.map(({ triangle: e }) => e.facing);
|
|
@@ -60130,42 +60166,42 @@ var ex = .01 / 1e3, tx = [
|
|
|
60130
60166
|
});
|
|
60131
60167
|
return;
|
|
60132
60168
|
}
|
|
60133
|
-
|
|
60169
|
+
_x(e) && r.push({
|
|
60134
60170
|
start: a,
|
|
60135
60171
|
end: o
|
|
60136
60172
|
});
|
|
60137
60173
|
}
|
|
60138
60174
|
}), r;
|
|
60139
|
-
},
|
|
60175
|
+
}, Sx = (e) => {
|
|
60140
60176
|
let t = new A();
|
|
60141
60177
|
return e.forEach(({ corners: e }) => e.forEach((e) => t.expandByPoint(e))), t.getSize(new O()).length() * 2;
|
|
60142
|
-
},
|
|
60178
|
+
}, Cx = (e, t, n, r, i) => {
|
|
60143
60179
|
let a = new ut(new O(), t.clone());
|
|
60144
|
-
return
|
|
60145
|
-
},
|
|
60180
|
+
return vx(e.start, e.end, r, (e) => (a.origin.copy(e).addScaledVector(t, -n), i.raycastFirst(a, 2, 0, n - ax) === null));
|
|
60181
|
+
}, wx = async (e) => {
|
|
60146
60182
|
let t = new Float32Array(e.length * 9);
|
|
60147
60183
|
e.forEach((e, n) => e.corners.forEach((e, r) => e.toArray(t, n * 9 + r * 3)));
|
|
60148
60184
|
let n = new un();
|
|
60149
60185
|
n.setAttribute("position", new Nn(t, 3));
|
|
60150
60186
|
let { MeshBVH: r } = await import("./src-D2lqGogG.mjs");
|
|
60151
60187
|
return new r(n);
|
|
60152
|
-
},
|
|
60153
|
-
let r = t.clone().normalize(), i = e.map((e) =>
|
|
60188
|
+
}, Tx = async (e, t, n) => {
|
|
60189
|
+
let r = t.clone().normalize(), i = e.map((e) => mx(e, r)), a = i.flat();
|
|
60154
60190
|
if (a.length === 0) return new Float32Array();
|
|
60155
|
-
let o = await
|
|
60191
|
+
let o = await wx(a), s = Sx(a), c = ox / n, l = i.flatMap((e) => xx(e, c, o)).flatMap((e) => Cx(e, r, s, c, o)), u = new Float32Array(l.length * 6);
|
|
60156
60192
|
return l.forEach(({ start: e, end: t }, n) => {
|
|
60157
60193
|
e.toArray(u, n * 6), t.toArray(u, n * 6 + 3);
|
|
60158
60194
|
}), u;
|
|
60159
|
-
},
|
|
60195
|
+
}, Ex = async (e, t, n, { color: r, width: i }) => {
|
|
60160
60196
|
let a = new qt(), o = new un();
|
|
60161
|
-
return o.setAttribute("position", new Nn(await
|
|
60197
|
+
return o.setAttribute("position", new Nn(await Tx(e, t, n), 3)), a.add(new An(o, new yt({
|
|
60162
60198
|
color: r,
|
|
60163
60199
|
linewidth: i
|
|
60164
60200
|
}))), a;
|
|
60165
|
-
},
|
|
60201
|
+
}, Dx = (e) => {
|
|
60166
60202
|
let t = e.filter(({ view: e }) => e.viewType.value !== te.FLOOR), n = t.length > 0 ? t : e;
|
|
60167
60203
|
return 512 / Math.max(...n.map(({ camera: e }) => e.top - e.bottom));
|
|
60168
|
-
},
|
|
60204
|
+
}, Ox = class {
|
|
60169
60205
|
constructor(e) {
|
|
60170
60206
|
this.createCameraForPlanView = (e, t) => {
|
|
60171
60207
|
let n = new A();
|
|
@@ -60193,9 +60229,9 @@ var ex = .01 / 1e3, tx = [
|
|
|
60193
60229
|
async create2DPlanViews(e, t) {
|
|
60194
60230
|
let n = e.map((e) => this.preparePlanView(e, t)).filter((e) => e !== null);
|
|
60195
60231
|
if (n.length === 0) return { plans: [] };
|
|
60196
|
-
let r =
|
|
60232
|
+
let r = Dx(n), i = [];
|
|
60197
60233
|
for (let e of n) {
|
|
60198
|
-
let t = await this._roomleSvgRenderer.renderWithDimensionings(await
|
|
60234
|
+
let t = await this._roomleSvgRenderer.renderWithDimensionings(await Ex(e.meshesToRender, e.camera.getWorldDirection(new O()), r, Wb(e.view)), e.camera, e.componentsToRender, e.view, r);
|
|
60199
60235
|
i.push({
|
|
60200
60236
|
planSvg: t,
|
|
60201
60237
|
viewType: e.view.viewType,
|
|
@@ -60220,10 +60256,10 @@ var ex = .01 / 1e3, tx = [
|
|
|
60220
60256
|
};
|
|
60221
60257
|
}
|
|
60222
60258
|
};
|
|
60223
|
-
I([F, P("design:type", Object)],
|
|
60259
|
+
I([F, P("design:type", Object)], Ox.prototype, "_roomleSvgRenderer", void 0);
|
|
60224
60260
|
//#endregion
|
|
60225
60261
|
//#region packages/common-core/src/webgpu/web-gpu-sky-container.ts
|
|
60226
|
-
var
|
|
60262
|
+
var kx = 200, Ax = 25, jx = 1.1, Mx = $t.degToRad(25), Nx = $t.degToRad(10), Px = new M(16777215), Fx = new M(16306595), Ix = class {
|
|
60227
60263
|
constructor(e) {
|
|
60228
60264
|
this._sky = void 0, this._sunLight = void 0, this._creator_ = e;
|
|
60229
60265
|
}
|
|
@@ -60239,16 +60275,16 @@ var Ox = 200, kx = 25, Ax = 1.1, jx = $t.degToRad(25), Mx = $t.degToRad(10), Nx
|
|
|
60239
60275
|
}
|
|
60240
60276
|
syncSunLightColor() {
|
|
60241
60277
|
if (this._sky !== void 0 && this._sunLight !== void 0) {
|
|
60242
|
-
let e = Math.asin($t.clamp(this._sky.getClonedSunPosition().y, -1, 1)), t = $t.clamp((e -
|
|
60243
|
-
this._sunLight.color.lerpColors(
|
|
60278
|
+
let e = Math.asin($t.clamp(this._sky.getClonedSunPosition().y, -1, 1)), t = $t.clamp((e - Nx) / (Mx - Nx), 0, 1);
|
|
60279
|
+
this._sunLight.color.lerpColors(Fx, Px, t);
|
|
60244
60280
|
}
|
|
60245
60281
|
}
|
|
60246
60282
|
createSunLight(e) {
|
|
60247
60283
|
let t = new Jt(16777215, e);
|
|
60248
|
-
return t.castShadow = !0, t.shadow.radius =
|
|
60284
|
+
return t.castShadow = !0, t.shadow.radius = jx, t.shadow.normalBias = .05, t.shadow.camera.top = Ax, t.shadow.camera.bottom = -Ax, t.shadow.camera.left = -Ax, t.shadow.camera.right = Ax, t.shadow.mapSize.set(1024, 1024), t.shadow.camera.layers.enable(z.OBJECT), t.shadow.camera.layers.enable(z.COMPONENT), t.shadow.camera.layers.enable(z.SKY_SHADOW_ONLY), t;
|
|
60249
60285
|
}
|
|
60250
60286
|
setSunPosition(e, t) {
|
|
60251
|
-
this._sky !== void 0 && this._sunLight !== void 0 && (this._sky.setSunPosition(e, t), this._sunLight.position.copy(this._sky.getClonedSunPosition()).multiplyScalar(
|
|
60287
|
+
this._sky !== void 0 && this._sunLight !== void 0 && (this._sky.setSunPosition(e, t), this._sunLight.position.copy(this._sky.getClonedSunPosition()).multiplyScalar(kx));
|
|
60252
60288
|
}
|
|
60253
60289
|
addParametersToGUI(e, t) {
|
|
60254
60290
|
let n = e.addFolder("Sky"), r = {
|
|
@@ -60262,10 +60298,10 @@ var Ox = 200, kx = 25, Ax = 1.1, jx = $t.degToRad(25), Mx = $t.degToRad(10), Nx
|
|
|
60262
60298
|
n.add(r, "azimuthAngle", -Math.PI, Math.PI, .01).name("azimuth angle").onChange(a), n.add(r, "polarAngle", 0, Math.PI / 2, .01).name("polar angle").onChange(a), n.add(i, "turbidity", 1, 10, .1).name("turbidity").onChange(t), n.add(i, "albedo", 0, 1, .01).name("albedo").onChange(t), n.add(i.sunRadius, "value", 0, .2, .001).name("sun radius").onChange(t), n.add(i.sunSoftness, "value", 0, .05, .001).name("sun softness").onChange(t), this._sunLight !== void 0 && n.add(this._sunLight, "intensity", 0, 50, .1).name("sun light intensity").onChange(t), n.add(i.tonemapExposure, "value", 0, 2, .01).name("tonemap exposure").onChange(t), n.add(i.tonemapWhite, "value", .1, 30, .1).name("tonemap white").onChange(t), n.add(i.fixColorBanding, "value").name("fix color banding").onChange(t), n.add(i.cloudCoverage, "value", 0, 1, .01).name("cloud coverage").onChange(t), n.add(i.cloudDensity, "value", 0, 1, .01).name("cloud density").onChange(t), n.add(i.cloudElevation, "value", 0, 1, .01).name("cloud elevation").onChange(t), n.add(i.cloudScale, "value", 1e-4, .001, 1e-5).name("cloud scale").onChange(t);
|
|
60263
60299
|
}
|
|
60264
60300
|
};
|
|
60265
|
-
I([F, P("design:type", Object)],
|
|
60301
|
+
I([F, P("design:type", Object)], Ix.prototype, "_initData", void 0), I([F, P("design:type", Object)], Ix.prototype, "_skyStateTracker", void 0);
|
|
60266
60302
|
//#endregion
|
|
60267
60303
|
//#region packages/common-core/src/di/injectables.ts
|
|
60268
|
-
var
|
|
60304
|
+
var Lx = [
|
|
60269
60305
|
new H("error-handler", Gi),
|
|
60270
60306
|
new H("form-data-util", Ui),
|
|
60271
60307
|
new H("hdr-environment-loader", Wy),
|
|
@@ -60311,13 +60347,13 @@ var Ix = [
|
|
|
60311
60347
|
new H("css2-d-renderer-manager", tb, V.GLOBAL),
|
|
60312
60348
|
new H("kernel-callback-guard", nb, V.GLOBAL),
|
|
60313
60349
|
new H("web-gpu-ground-shadow-reflection", rb, V.CONTEXT),
|
|
60314
|
-
new H("roomle-svg-renderer",
|
|
60315
|
-
new H("elevation-plan2d-generator",
|
|
60316
|
-
new H("web-gpu-sky-container",
|
|
60350
|
+
new H("roomle-svg-renderer", ex, V.CONTEXT),
|
|
60351
|
+
new H("elevation-plan2d-generator", Ox, V.CONTEXT),
|
|
60352
|
+
new H("web-gpu-sky-container", Ix, V.CONTEXT),
|
|
60317
60353
|
new H("sky-state-tracker", ug, V.CONTEXT)
|
|
60318
|
-
],
|
|
60354
|
+
], Rx = class e {
|
|
60319
60355
|
static _ensureContainer() {
|
|
60320
|
-
return (!window.__RML__DI__ || !window.__RML__DI__.lookup) && (window.__RML__DI__ = new Ha(), window.__RML__DI__.addDependencyInjectionAssignments(
|
|
60356
|
+
return (!window.__RML__DI__ || !window.__RML__DI__.lookup) && (window.__RML__DI__ = new Ha(), window.__RML__DI__.addDependencyInjectionAssignments(Lx)), window.__RML__DI__;
|
|
60321
60357
|
}
|
|
60322
60358
|
static setup(t) {
|
|
60323
60359
|
e.addToContainer(t);
|
|
@@ -60334,11 +60370,11 @@ var Ix = [
|
|
|
60334
60370
|
static addToContainer(t) {
|
|
60335
60371
|
e._ensureContainer().addDependencyInjectionAssignments(t);
|
|
60336
60372
|
}
|
|
60337
|
-
},
|
|
60373
|
+
}, zx = class {
|
|
60338
60374
|
static getConfigurator(e, t) {
|
|
60339
60375
|
t = this._setupDI(K.CONFIGURATOR, e, t);
|
|
60340
|
-
let n =
|
|
60341
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
60376
|
+
let n = Rx.lookup("global-init-data");
|
|
60377
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-BxIDaIsx.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
60342
60378
|
}
|
|
60343
60379
|
static getPlanner(e, t) {
|
|
60344
60380
|
return this._getPlanner(e, t);
|
|
@@ -60348,51 +60384,51 @@ var Ix = [
|
|
|
60348
60384
|
}
|
|
60349
60385
|
static async getGlbViewer(e, t) {
|
|
60350
60386
|
t = this._setupDI(K.GLB_VIEWER, e, t);
|
|
60351
|
-
let n =
|
|
60352
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
60387
|
+
let n = Rx.lookup("global-init-data");
|
|
60388
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-DYkOoOv-.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
60353
60389
|
}
|
|
60354
60390
|
static getMaterialViewer(e, t) {
|
|
60355
60391
|
t = this._setupDI(K.CONFIGURATOR, e, t);
|
|
60356
|
-
let n =
|
|
60357
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
60392
|
+
let n = Rx.lookup("global-init-data");
|
|
60393
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-DJEEvr_2.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
60358
60394
|
}
|
|
60359
60395
|
static getCoreTools(e, t) {
|
|
60360
|
-
return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
60396
|
+
return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-Bo2DwzBG.mjs").then(({ ToolsCore: n }) => {
|
|
60361
60397
|
let r = new n(t);
|
|
60362
60398
|
r.boot(), e(r);
|
|
60363
60399
|
}, n));
|
|
60364
60400
|
}
|
|
60365
60401
|
static getRapiAccess() {
|
|
60366
|
-
|
|
60367
|
-
let e =
|
|
60402
|
+
Rx.addToContainer([new H("rapi-access", Va, V.GLOBAL), new H("global-callback", Cc, V.GLOBAL)]);
|
|
60403
|
+
let e = Rx.lookup("rapi-access");
|
|
60368
60404
|
return e === null ? Promise.reject(/* @__PURE__ */ Error("rapi-access is not available")) : Promise.resolve(e);
|
|
60369
60405
|
}
|
|
60370
60406
|
static get callbacks() {
|
|
60371
|
-
|
|
60372
|
-
let e =
|
|
60407
|
+
Rx.addToContainer([new H("global-callback", Cc, V.GLOBAL)]);
|
|
60408
|
+
let e = Rx.lookup("global-callback");
|
|
60373
60409
|
return e === null ? Promise.reject(/* @__PURE__ */ Error("global-callback is not available")) : Promise.resolve(e);
|
|
60374
60410
|
}
|
|
60375
60411
|
static async setGlobalInitData(e) {
|
|
60376
60412
|
if (e) {
|
|
60377
|
-
|
|
60378
|
-
let t =
|
|
60413
|
+
Rx.addToContainer([new H("global-init-data", yc, V.GLOBAL)]);
|
|
60414
|
+
let t = Rx.lookup("global-init-data");
|
|
60379
60415
|
if (t === null) throw Error("global-init-data is not available");
|
|
60380
60416
|
t.setOverrides(e), (await this.getRapiAccess()).setConfiguratorSettings();
|
|
60381
60417
|
}
|
|
60382
60418
|
}
|
|
60383
60419
|
static getContext(e) {
|
|
60384
|
-
return
|
|
60420
|
+
return Rx.getContext(e);
|
|
60385
60421
|
}
|
|
60386
60422
|
static _getPlanner(e, t, n) {
|
|
60387
|
-
let r = this._setupDI(K.PLANNER, e, t), i =
|
|
60388
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
60423
|
+
let r = this._setupDI(K.PLANNER, e, t), i = Rx.lookup("global-init-data");
|
|
60424
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-BpzUs9MN.mjs").then(({ Planner: t }) => {
|
|
60389
60425
|
e(n ? new t(r, n) : new t(r));
|
|
60390
60426
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
60391
60427
|
}
|
|
60392
60428
|
static _setupDI(e, t, n) {
|
|
60393
60429
|
if (t) {
|
|
60394
|
-
|
|
60395
|
-
let r =
|
|
60430
|
+
Rx.addToContainer([new H("init-data", vc, V.CONTEXT)]), n ||= Rx.getContext(e);
|
|
60431
|
+
let r = Rx.lookup("init-data", n);
|
|
60396
60432
|
if (r === null) throw Error("init-data is not available");
|
|
60397
60433
|
r.setOverrides(t);
|
|
60398
60434
|
}
|
|
@@ -60400,6 +60436,6 @@ var Ix = [
|
|
|
60400
60436
|
}
|
|
60401
60437
|
};
|
|
60402
60438
|
//#endregion
|
|
60403
|
-
export { G as $, cf as A, jl as B, Cp as C, Jf as D, X as E, vd as F, Fc as G, Jc as H, Tu as I, Nc as J, Ic as K, hu as L, Vd as M, Od as N, Wf as O, Td as P, ic as Q, pu as R, Lp as S, rp as T, qc as U, K as V, Lc as W, Sc as X, wc as Y, yc as Z, ch as _, Wy as a, Ha as at, jm as b, Ay as c, Va as ct, Lg as d, Qi as dt, wo as et, xg as f, Ki as ft, mg as g, hg as h, rb as i, Ua as it, Ud as j, Uf as k, Oy as l, La as lt, vg as m, Bi as mt,
|
|
60439
|
+
export { G as $, cf as A, jl as B, Cp as C, Jf as D, X as E, vd as F, Fc as G, Jc as H, Tu as I, Nc as J, Ic as K, hu as L, Vd as M, Od as N, Wf as O, Td as P, ic as Q, pu as R, Lp as S, rp as T, qc as U, K as V, Lc as W, Sc as X, wc as Y, yc as Z, ch as _, Wy as a, Ha as at, jm as b, Ay as c, Va as ct, Lg as d, Qi as dt, wo as et, xg as f, Ki as ft, mg as g, hg as h, rb as i, Ua as it, Ud as j, Uf as k, Oy as l, La as lt, vg as m, Bi as mt, Rx as n, oo as nt, Uy as o, V as ot, yg as p, Vi as pt, Pc as q, Lx as r, io as rt, Hy as s, H as st, zx as t, lo as tt, py as u, Ia as ut, $m as v, bp as w, Mm as x, Ym as y, Ml as z };
|
|
60404
60440
|
|
|
60405
|
-
//# sourceMappingURL=roomle-sdk-
|
|
60441
|
+
//# sourceMappingURL=roomle-sdk-B7kJPhbu.mjs.map
|