@roomle/web-sdk 3.6.0-alpha.4 → 3.6.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/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-CNoIBuvr.mjs → api-xDJ-Uyom.mjs} +2 -2
- package/lib/{api-CNoIBuvr.mjs.map → api-xDJ-Uyom.mjs.map} +1 -1
- package/lib/banana-for-scale-C_iNmlCT.mjs.map +1 -1
- package/lib/configurator-BaUt4_LF.mjs +2 -0
- package/lib/{configurator-B_5XVG2O.mjs → configurator-CmuhFgC9.mjs} +3 -3
- package/lib/{configurator-B_5XVG2O.mjs.map → configurator-CmuhFgC9.mjs.map} +1 -1
- package/lib/{glb-viewer-cP8g6bcm.mjs → glb-viewer-BzNA9-zH.mjs} +3 -3
- package/lib/{glb-viewer-cP8g6bcm.mjs.map → glb-viewer-BzNA9-zH.mjs.map} +1 -1
- package/lib/glb-viewer-DOxBD5k-.mjs +2 -0
- package/lib/{homag-intelligence-LoOJ7roM.mjs → homag-intelligence-BwGjJEws.mjs} +3 -3
- package/lib/{homag-intelligence-LoOJ7roM.mjs.map → homag-intelligence-BwGjJEws.mjs.map} +1 -1
- package/lib/kernel-BAQSG9r5.mjs.map +1 -1
- package/lib/{main-BxEZ11ag.mjs → main-CtVIB52l.mjs} +119 -122
- package/lib/{main-BxEZ11ag.mjs.map → main-CtVIB52l.mjs.map} +1 -1
- package/lib/{material-viewer-njBFF0Zg.mjs → material-viewer-Bq4smZ6f.mjs} +3 -3
- package/lib/{material-viewer-njBFF0Zg.mjs.map → material-viewer-Bq4smZ6f.mjs.map} +1 -1
- package/lib/{planner-DY73rplC.mjs → planner-CVw_xzGh.mjs} +3 -3
- package/lib/{planner-DY73rplC.mjs.map → planner-CVw_xzGh.mjs.map} +1 -1
- package/lib/planner-si70gWA2.mjs +2 -0
- package/lib/roomle-sdk.d.ts +18 -19
- package/lib/roomle-sdk.js +5 -5
- package/lib/{script-loader-KBq8SjP6.mjs → script-loader-D8xCRzTr.mjs} +2 -2
- package/lib/{script-loader-KBq8SjP6.mjs.map → script-loader-D8xCRzTr.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +1 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts +1 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js +22 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.d.ts +1 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js +6 -4
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.d.ts +1 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.js +4 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.d.ts +2 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.js +12 -3
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{tools-core-CZbPygRC.mjs → tools-core-Bf9WsK5v.mjs} +3 -3
- package/lib/{tools-core-CZbPygRC.mjs.map → tools-core-Bf9WsK5v.mjs.map} +1 -1
- package/package.json +1 -1
- package/lib/configurator-DCdvMM0o.mjs +0 -2
- package/lib/glb-viewer-dZThmlwM.mjs +0 -2
- package/lib/planner-Cr495Cyn.mjs +0 -2
|
@@ -6458,7 +6458,7 @@ var Cl = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
6458
6458
|
return this._sceneManager.exportCanvasScreenshot(e);
|
|
6459
6459
|
}
|
|
6460
6460
|
initSceneManager(e) {
|
|
6461
|
-
e ? this._sceneManager = e : this._sceneManager =
|
|
6461
|
+
e ? this._sceneManager = e : this._sceneManager = ph.lookup("configurator-scene-manager", this._creator_);
|
|
6462
6462
|
}
|
|
6463
6463
|
getScene() {
|
|
6464
6464
|
return this._sceneManager.getScene();
|
|
@@ -7168,7 +7168,7 @@ var Cl = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
7168
7168
|
return this._sceneManager.getComponent(e);
|
|
7169
7169
|
}
|
|
7170
7170
|
async getTools() {
|
|
7171
|
-
let e =
|
|
7171
|
+
let e = ph.lookup("roomle-tools-core", this._creator_);
|
|
7172
7172
|
return await e.init(), e;
|
|
7173
7173
|
}
|
|
7174
7174
|
exportImageFromCamera(e = "image", t = !1) {
|
|
@@ -8702,7 +8702,7 @@ var mu = class {
|
|
|
8702
8702
|
return this.getMeshGenerator().materialQueue;
|
|
8703
8703
|
}
|
|
8704
8704
|
_getKernelAccess() {
|
|
8705
|
-
let e =
|
|
8705
|
+
let e = ph.lookup("planner-kernel-access", this._creator_);
|
|
8706
8706
|
if (!e) throw Error("PlannerKernelAccess not found in dependency injection");
|
|
8707
8707
|
return e;
|
|
8708
8708
|
}
|
|
@@ -13529,7 +13529,7 @@ var ep = class {
|
|
|
13529
13529
|
this._sceneEventHandler.disable();
|
|
13530
13530
|
}
|
|
13531
13531
|
_getViewModel() {
|
|
13532
|
-
return this._viewModel || (this._viewModel =
|
|
13532
|
+
return this._viewModel || (this._viewModel = ph.lookup("configurator-view-model", this._creator_), this._viewModel.setRequestRenderCallback(() => this._renderEverything()), this._viewModel.setRequestRenderSceneUpdateCallback(() => this._roomleRenderer?.clearCache()), this._viewModel.setInvalidateRenderCallback(() => this._roomleRenderer?.forceShadowUpdates(!0))), this._viewModel;
|
|
13533
13533
|
}
|
|
13534
13534
|
_getKernelAccess() {
|
|
13535
13535
|
return this._plannerKernelAccess;
|
|
@@ -15787,8 +15787,8 @@ var zp = "" + new URL("default-external-object-api-configuration.json", import.m
|
|
|
15787
15787
|
}, Hp = class {
|
|
15788
15788
|
static getConfigurator(e, t) {
|
|
15789
15789
|
t = this._setupDI($.CONFIGURATOR, e, t);
|
|
15790
|
-
let n =
|
|
15791
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
15790
|
+
let n = ph.lookup("global-init-data");
|
|
15791
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-BaUt4_LF.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
15792
15792
|
}
|
|
15793
15793
|
static getPlanner(e, t) {
|
|
15794
15794
|
return this._getPlanner(e, t);
|
|
@@ -15798,51 +15798,51 @@ var zp = "" + new URL("default-external-object-api-configuration.json", import.m
|
|
|
15798
15798
|
}
|
|
15799
15799
|
static async getGlbViewer(e, t) {
|
|
15800
15800
|
t = this._setupDI($.GLB_VIEWER, e, t);
|
|
15801
|
-
let n =
|
|
15802
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
15801
|
+
let n = ph.lookup("global-init-data");
|
|
15802
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-DOxBD5k-.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
15803
15803
|
}
|
|
15804
15804
|
static getMaterialViewer(e, t) {
|
|
15805
15805
|
t = this._setupDI($.CONFIGURATOR, e, t);
|
|
15806
|
-
let n =
|
|
15807
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
15806
|
+
let n = ph.lookup("global-init-data");
|
|
15807
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-Bq4smZ6f.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
15808
15808
|
}
|
|
15809
15809
|
static getCoreTools(e, t) {
|
|
15810
|
-
return t = this._setupDI($.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
15810
|
+
return t = this._setupDI($.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-Bf9WsK5v.mjs").then(({ ToolsCore: n }) => {
|
|
15811
15811
|
let r = new n(t);
|
|
15812
15812
|
r.boot(), e(r);
|
|
15813
15813
|
}, n));
|
|
15814
15814
|
}
|
|
15815
15815
|
static getRapiAccess() {
|
|
15816
|
-
|
|
15817
|
-
let e =
|
|
15816
|
+
ph.addToContainer([new H("rapi-access", ha, V.GLOBAL), new H("global-callback", qs, V.GLOBAL)]);
|
|
15817
|
+
let e = ph.lookup("rapi-access");
|
|
15818
15818
|
return e === null ? Promise.reject(/* @__PURE__ */ Error("rapi-access is not available")) : Promise.resolve(e);
|
|
15819
15819
|
}
|
|
15820
15820
|
static get callbacks() {
|
|
15821
|
-
|
|
15822
|
-
let e =
|
|
15821
|
+
ph.addToContainer([new H("global-callback", qs, V.GLOBAL)]);
|
|
15822
|
+
let e = ph.lookup("global-callback");
|
|
15823
15823
|
return e === null ? Promise.reject(/* @__PURE__ */ Error("global-callback is not available")) : Promise.resolve(e);
|
|
15824
15824
|
}
|
|
15825
15825
|
static async setGlobalInitData(e) {
|
|
15826
15826
|
if (e) {
|
|
15827
|
-
|
|
15828
|
-
let t =
|
|
15827
|
+
ph.addToContainer([new H("global-init-data", Us, V.GLOBAL)]);
|
|
15828
|
+
let t = ph.lookup("global-init-data");
|
|
15829
15829
|
if (t === null) throw Error("global-init-data is not available");
|
|
15830
15830
|
t.setOverrides(e), (await this.getRapiAccess()).setConfiguratorSettings();
|
|
15831
15831
|
}
|
|
15832
15832
|
}
|
|
15833
15833
|
static getContext(e) {
|
|
15834
|
-
return
|
|
15834
|
+
return ph.getContext(e);
|
|
15835
15835
|
}
|
|
15836
15836
|
static _getPlanner(e, t, n) {
|
|
15837
|
-
let r = this._setupDI($.PLANNER, e, t), i =
|
|
15838
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
15837
|
+
let r = this._setupDI($.PLANNER, e, t), i = ph.lookup("global-init-data");
|
|
15838
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-si70gWA2.mjs").then(({ Planner: t }) => {
|
|
15839
15839
|
e(n ? new t(r, n) : new t(r));
|
|
15840
15840
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
15841
15841
|
}
|
|
15842
15842
|
static _setupDI(e, t, n) {
|
|
15843
15843
|
if (t) {
|
|
15844
|
-
|
|
15845
|
-
let r =
|
|
15844
|
+
ph.addToContainer([new H("init-data", Hs, V.CONTEXT)]), n ||= ph.getContext(e);
|
|
15845
|
+
let r = ph.lookup("init-data", n);
|
|
15846
15846
|
if (r === null) throw Error("init-data is not available");
|
|
15847
15847
|
r.setOverrides(t);
|
|
15848
15848
|
}
|
|
@@ -16275,7 +16275,7 @@ var ym = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
16275
16275
|
async switchToConfigurator() {
|
|
16276
16276
|
let e = await this._singlePromiseFactory.create(xa.START_HSC, "startHSC", (e) => {
|
|
16277
16277
|
if (this._hscInstance) return e(this._hscInstance);
|
|
16278
|
-
import("./configurator-
|
|
16278
|
+
import("./configurator-BaUt4_LF.mjs").then(({ Configurator: t }) => {
|
|
16279
16279
|
let n = new t(this._creator_);
|
|
16280
16280
|
n.boot({
|
|
16281
16281
|
kernelInstance: this._planInteractionHandler.getConfiguratorKernel(),
|
|
@@ -16290,7 +16290,7 @@ var ym = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
16290
16290
|
async switchToViewer() {
|
|
16291
16291
|
let e = await this._singlePromiseFactory.create(xa.START_GLB, "startGLB", (e) => {
|
|
16292
16292
|
if (this._glbInstance) return e(this._glbInstance);
|
|
16293
|
-
import("./glb-viewer-
|
|
16293
|
+
import("./glb-viewer-DOxBD5k-.mjs").then((t) => {
|
|
16294
16294
|
let n = new t.GlbViewer(this._creator_);
|
|
16295
16295
|
n.boot(), n.getApi().setOverrides(this._initData), n.getApi().init(this._domHelper.element).then(() => {
|
|
16296
16296
|
this._glbInstance = n, e(this._glbInstance);
|
|
@@ -17144,7 +17144,7 @@ var ym = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
17144
17144
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
17145
17145
|
}, "*", [e.port2]);
|
|
17146
17146
|
let t = em(e.port1);
|
|
17147
|
-
await new (await (import("./homag-intelligence-
|
|
17147
|
+
await new (await (import("./homag-intelligence-BwGjJEws.mjs"))).HomagIntelligence(this, this._initData.hi, t).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi?.libraryId);
|
|
17148
17148
|
}
|
|
17149
17149
|
async _loadHomagIntelligenceArticles(e) {
|
|
17150
17150
|
let t = this._homagIntelligence?.getGlueLogic()?.hiCallbacks;
|
|
@@ -17194,9 +17194,15 @@ var Tm = zl(), Em = {
|
|
|
17194
17194
|
}
|
|
17195
17195
|
}, jm = (e, t) => {
|
|
17196
17196
|
let n = [];
|
|
17197
|
-
|
|
17197
|
+
if (e.isEnabledChildObjectMode(t)) {
|
|
17198
|
+
let r = e.getObjectComponent(t.getId(), Tm.CORE_TYPE_OF_CORE_ID.PLANNER);
|
|
17199
|
+
r && (n = Er(r.animations) || []);
|
|
17200
|
+
} else n = Er(e.getPlanObject(t.getId()).animations) || [];
|
|
17201
|
+
return n.some((e) => e.key === xm);
|
|
17198
17202
|
}, Mm = (e, t) => {
|
|
17199
|
-
let n = e.getObjectComponent(t.getId(), Tm.CORE_TYPE_OF_CORE_ID.PLANNER)
|
|
17203
|
+
let n = e.getObjectComponent(t.getId(), Tm.CORE_TYPE_OF_CORE_ID.PLANNER);
|
|
17204
|
+
if (!n) return null;
|
|
17205
|
+
let r = e.getComponentFromRuntimeId(n.componentRuntimeId);
|
|
17200
17206
|
return r ? km(r, xm, e.isEnabledChildObjectMode(t)) : null;
|
|
17201
17207
|
}, Nm = (e, t) => {
|
|
17202
17208
|
for (let n of e.childComponents) {
|
|
@@ -18082,17 +18088,7 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18082
18088
|
get wallMeshes() {
|
|
18083
18089
|
return this._wallMeshes;
|
|
18084
18090
|
}
|
|
18085
|
-
}, Hm = {
|
|
18086
|
-
InchFeet: null,
|
|
18087
|
-
Feet: null,
|
|
18088
|
-
MM: null,
|
|
18089
|
-
CM: null,
|
|
18090
|
-
Inch: null
|
|
18091
|
-
}, Um = {
|
|
18092
|
-
NoUnitString: null,
|
|
18093
|
-
LongUnitString: null,
|
|
18094
|
-
ShortUnitString: null
|
|
18095
|
-
}, Wm = {
|
|
18091
|
+
}, Hm = null, Um = null, Wm = "Formatter is not ready...", Gm = {
|
|
18096
18092
|
MM: "mm",
|
|
18097
18093
|
CM: "cm",
|
|
18098
18094
|
FEET_SHORT: "'",
|
|
@@ -18101,38 +18097,38 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18101
18097
|
INCH: "inch",
|
|
18102
18098
|
SQ_METER: "m²",
|
|
18103
18099
|
SQ_FEET: "sqft"
|
|
18104
|
-
},
|
|
18100
|
+
}, Km = {
|
|
18105
18101
|
IMPERIAL: "imperial",
|
|
18106
18102
|
METRIC: "metric"
|
|
18107
|
-
},
|
|
18103
|
+
}, qm = [
|
|
18108
18104
|
"mm",
|
|
18109
18105
|
"cm",
|
|
18110
18106
|
"feet"
|
|
18111
|
-
],
|
|
18107
|
+
], Jm = ["inch", "inchfeet"], Ym = class {
|
|
18112
18108
|
constructor(e) {
|
|
18113
|
-
this._formatter = null, this._precision = 0, this._creator_ = e;
|
|
18109
|
+
this._formatter = null, this._precision = 0, this._creator_ = e ?? "";
|
|
18114
18110
|
}
|
|
18115
18111
|
init(e) {
|
|
18116
18112
|
let t = new e.UnitMeasureFormatter();
|
|
18117
18113
|
Hm = e.Unit, Um = e.UnitStringType, this._initActualUnit(), this._initMeasurementSystemType(), this._initActualUnitStringType();
|
|
18118
18114
|
let { precisionCm: n, precisionInch: r } = this._initData;
|
|
18119
|
-
this.isInch() ? this._precision = r === void 0 ? 2 : parseInt(r, 10) : this._actualUnit === Hm.CM && (this._precision = n === void 0 ? 1 : parseInt(n, 10)), t.init(
|
|
18115
|
+
this.isInch() ? this._precision = r === void 0 ? 2 : parseInt(r, 10) : Hm !== null && this._actualUnit === Hm.CM && (this._precision = n === void 0 ? 1 : parseInt(n, 10)), t.init(Gm.MM, Gm.CM, Gm.FEET_SHORT, Gm.FEET, Gm.INCH_SHORT, Gm.INCH, Gm.SQ_METER, Gm.SQ_FEET, !0, this._precision, !0), this._formatter = t;
|
|
18120
18116
|
}
|
|
18121
18117
|
_initMeasurementSystemType() {
|
|
18122
18118
|
let { measurementSystem: e, unit: t } = this._initData;
|
|
18123
18119
|
if (this._actualMeasurementString = e, !e && t) {
|
|
18124
|
-
this._actualUnitString = t, this._actualMeasurementString =
|
|
18120
|
+
this._actualUnitString = t, this._actualMeasurementString = qm.find((e) => e === t) ? Km.METRIC : Km.IMPERIAL;
|
|
18125
18121
|
return;
|
|
18126
18122
|
}
|
|
18127
|
-
if (e ===
|
|
18128
|
-
t ||=
|
|
18129
|
-
let e = Km.find((e) => e === t);
|
|
18130
|
-
e ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = e) : (console.warn("Unit is not a metric unit, using CM"), this._actualUnit = Hm.CM, this._actualUnitString = "cm");
|
|
18131
|
-
}
|
|
18132
|
-
if (e === Gm.IMPERIAL) {
|
|
18133
|
-
t ||= Wm.INCH;
|
|
18123
|
+
if (e === Km.METRIC) {
|
|
18124
|
+
t ||= Gm.CM;
|
|
18134
18125
|
let e = qm.find((e) => e === t);
|
|
18135
|
-
e ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = e) : (console.warn("Unit is not
|
|
18126
|
+
e ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = e) : (console.warn("Unit is not a metric unit, using CM"), this._actualUnit = this._getKernelUnitEnum("cm"), this._actualUnitString = "cm");
|
|
18127
|
+
}
|
|
18128
|
+
if (e === Km.IMPERIAL) {
|
|
18129
|
+
t ||= Gm.INCH;
|
|
18130
|
+
let e = Jm.find((e) => e === t);
|
|
18131
|
+
e ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = e) : (console.warn("Unit is not an imperial unit, using Inches"), this._actualUnit = this._getKernelUnitEnum("inch"), this._actualUnitString = "inch");
|
|
18136
18132
|
}
|
|
18137
18133
|
}
|
|
18138
18134
|
_initActualUnit() {
|
|
@@ -18140,6 +18136,7 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18140
18136
|
this._actualUnit = this._getKernelUnitEnum(e);
|
|
18141
18137
|
}
|
|
18142
18138
|
_getKernelUnitEnum(e) {
|
|
18139
|
+
if (Hm === null) throw Error("UnitFormatter: KERNEL_UNIT not initialized — call init() first");
|
|
18143
18140
|
switch (e) {
|
|
18144
18141
|
case "cm": return Hm.CM;
|
|
18145
18142
|
case "mm": return Hm.MM;
|
|
@@ -18150,12 +18147,10 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18150
18147
|
}
|
|
18151
18148
|
}
|
|
18152
18149
|
_initActualUnitStringType() {
|
|
18150
|
+
if (Um === null) throw Error("UnitFormatter: KERNEL_UNIT_STRING_TYPE not initialized — call init() first");
|
|
18153
18151
|
let { unitStringType: e } = this._initData;
|
|
18154
18152
|
e && e !== "short" && console.warn("Only short unit strings is supported at the moment"), this._actualUnitStringType = Um.ShortUnitString;
|
|
18155
18153
|
}
|
|
18156
|
-
_isFormatterReady() {
|
|
18157
|
-
return this._formatter ? !0 : (console.warn("Formatter is not ready..."), !1);
|
|
18158
|
-
}
|
|
18159
18154
|
formatAngleValueToUnitString(e, t) {
|
|
18160
18155
|
let n = t.type === al.INTEGER ? 0 : 2;
|
|
18161
18156
|
return e.toFixed(n) + "°";
|
|
@@ -18170,28 +18165,28 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18170
18165
|
return t.unitType === null || t.unitType === il.UNKNOWN_UNIT || t.unitType === il.COUNT ? t.type === al.INTEGER ? e.toString() : parseFloat(e.toString()).toFixed(2) : t.unitType === il.LENGTH ? this.formatMMValueToUnitString(e, t.unitType) : t.unitType === il.ANGLE ? this.formatAngleValueToUnitString(e, t) : t.unitType === il.AREA ? this.formatSquareMMValueToUnitString(e) : e;
|
|
18171
18166
|
}
|
|
18172
18167
|
isParseableNumber(e) {
|
|
18173
|
-
return this.
|
|
18168
|
+
return this._formatter === null ? (console.warn(Wm), null) : this._formatter.isParseableNumber(e);
|
|
18174
18169
|
}
|
|
18175
18170
|
isParseableUnitString(e, t) {
|
|
18176
|
-
return this.
|
|
18171
|
+
return this._formatter === null ? (console.warn(Wm), null) : t.unitType === il.ANGLE ? this._formatter.isParseableUnitString(this.parseAngleValueFromUnitString(e), this._actualUnit) : this._formatter.isParseableUnitString(e, this._actualUnit);
|
|
18177
18172
|
}
|
|
18178
18173
|
parseMMValueFromUnitString(e, t) {
|
|
18179
|
-
return this.
|
|
18174
|
+
return this._formatter === null ? (console.warn(Wm), null) : t === il.COUNT ? parseFloat(e) : this._formatter.parseMMValueFromUnitString(e, this._actualUnit);
|
|
18180
18175
|
}
|
|
18181
18176
|
parseNumber(e) {
|
|
18182
|
-
return this.
|
|
18177
|
+
return this._formatter === null ? (console.warn(Wm), null) : this._formatter.parseNumber(e);
|
|
18183
18178
|
}
|
|
18184
18179
|
formatNumber(e, t = 0) {
|
|
18185
|
-
return this.
|
|
18180
|
+
return this._formatter === null ? (console.warn(Wm), null) : this._formatter.formatNumber(e, t);
|
|
18186
18181
|
}
|
|
18187
18182
|
formatSquareMMValueToUnitString(e) {
|
|
18188
|
-
return this.
|
|
18183
|
+
return this._formatter === null ? (console.warn(Wm), null) : this._formatter.formatSquareMMValueToUnitString(e, this._actualUnit);
|
|
18189
18184
|
}
|
|
18190
18185
|
formatMMValueToUnitString(e, t) {
|
|
18191
|
-
return this.
|
|
18186
|
+
return this._formatter === null ? (console.warn(Wm), null) : t === il.COUNT ? e.toString() : this._formatter.formatMMValueToUnitString(e, this._actualUnit, this._actualUnitStringType);
|
|
18192
18187
|
}
|
|
18193
18188
|
formatMMValueWithReqMaxLength(e, t) {
|
|
18194
|
-
return this.
|
|
18189
|
+
return this._formatter === null ? (console.warn(Wm), null) : this._formatter.formatMMValueWithReqMaxLength(e, this._actualUnit, t);
|
|
18195
18190
|
}
|
|
18196
18191
|
_formatParameterValue(e, t) {
|
|
18197
18192
|
return t === il.LENGTH ? this.formatMMValueToUnitString(parseFloat(e)) : t === il.AREA ? this.formatSquareMMValueToUnitString(parseFloat(e)) : e;
|
|
@@ -18205,16 +18200,18 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18205
18200
|
else if (dl(e)) e.uiType = ol.BOOLEAN;
|
|
18206
18201
|
else if (sl(e)) {
|
|
18207
18202
|
e.uiType = ol.RANGE;
|
|
18208
|
-
let
|
|
18203
|
+
let { validRange: t } = e;
|
|
18204
|
+
if (t === null) return;
|
|
18205
|
+
let n = t.valueFrom === null ? -(2 ** 53 - 1) : t.valueFrom, r = t.valueTo === null ? 2 ** 53 - 1 : t.valueTo;
|
|
18209
18206
|
e.validRangeLabels = {
|
|
18210
|
-
valueFrom: this._formatParameterValue(
|
|
18211
|
-
valueTo: this._formatParameterValue(
|
|
18212
|
-
type:
|
|
18207
|
+
valueFrom: this._formatParameterValue(n.toString(), e.unitType),
|
|
18208
|
+
valueTo: this._formatParameterValue(r.toString(), e.unitType),
|
|
18209
|
+
type: t.type
|
|
18213
18210
|
};
|
|
18214
18211
|
} else cl(e) ? (e.uiType = ol.OPTIONS, ul(e) && (e.uiType = ol.THUMBNAILS)) : (console.error("Could not detect uiType of param"), e.uiType = null);
|
|
18215
18212
|
}
|
|
18216
18213
|
isInch() {
|
|
18217
|
-
return this._actualUnit === Hm.InchFeet || this._actualUnit === Hm.Inch;
|
|
18214
|
+
return Hm === null ? !1 : this._actualUnit === Hm.InchFeet || this._actualUnit === Hm.Inch;
|
|
18218
18215
|
}
|
|
18219
18216
|
getActualUnitString() {
|
|
18220
18217
|
return this._actualUnitString;
|
|
@@ -18236,10 +18233,10 @@ var zm = /* @__PURE__ */ function(e) {
|
|
|
18236
18233
|
this._initData.unit = e, this._initData.measurementSystem = t, this._initActualUnit(), this._initMeasurementSystemType(), this._initActualUnitStringType(), this._plannerKernelAccess.kernelInstance.setEnvironmentVariable("unit", this._actualUnitString);
|
|
18237
18234
|
}
|
|
18238
18235
|
};
|
|
18239
|
-
L([I, F("design:type", Object)],
|
|
18236
|
+
L([I, F("design:type", Object)], Ym.prototype, "_initData", void 0), L([I, F("design:type", Object)], Ym.prototype, "_plannerKernelAccess", void 0);
|
|
18240
18237
|
//#endregion
|
|
18241
18238
|
//#region packages/configurator-core/src/utils/configurator-history.ts
|
|
18242
|
-
var
|
|
18239
|
+
var Xm = class {
|
|
18243
18240
|
constructor(e) {
|
|
18244
18241
|
this._history = [], this._index = 0, this._creator_ = e;
|
|
18245
18242
|
}
|
|
@@ -18272,14 +18269,14 @@ var Ym = class {
|
|
|
18272
18269
|
this._history = [this._history[0]], this._index = 0, this._configuratorUiCallbacks.onHistoryChange(!1, !1);
|
|
18273
18270
|
}
|
|
18274
18271
|
};
|
|
18275
|
-
L([I, F("design:type", Object)],
|
|
18272
|
+
L([I, F("design:type", Object)], Xm.prototype, "_configuratorUiCallbacks", void 0);
|
|
18276
18273
|
//#endregion
|
|
18277
18274
|
//#region packages/configurator-core/src/services/configurator-ui-callback.ts
|
|
18278
|
-
var
|
|
18275
|
+
var Zm = class extends Ks {
|
|
18279
18276
|
constructor(e) {
|
|
18280
18277
|
super(e), this.onKernelIsReady = null, this.onComponentPositionsUpdated = null, this.onUpdateParameters = (e) => void 0, this.onUpdatePossibleChildren = (e, t) => void 0, this.onUpdatePrice = (e, t) => void 0, this.onSelectionChange = (e, t, n, r) => void 0, this.onSelectionCancel = (e) => void 0, this.onPartListUpdate = (e, t) => void 0, this.onBoundsUpdate = (e) => void 0, this.onLoadConfiguration = () => void 0, this.onConfigurationReady = (e, t, n) => void 0, this.onOpenTag = (e) => void 0, this.onOpenAddOns = () => void 0, this.onClickOutside = () => void 0, this.onNoDockingsAvailable = () => void 0, this.onUiIntersectionChange = (e) => void 0, this.onZoomChange = (e, t) => void 0, this.onZoomToComponent = () => void 0, this.onDimensionsVisibilityChange = (e) => void 0, this.onErrorDueToOffline = (e) => void 0, this.onError = (e) => void 0, this.onElementDocked = (e, t) => void 0, this.onDockingsPreviewRemoved = () => void 0, this.onConfigurationHasChildren = (e) => void 0, this.onTrackTiming = (e, t, n, r) => void 0, this.onUserInitiatedDockDone = (e, t, n, r, i) => void 0, this.onAddonPlusHover = () => void 0, this.onAddonPlusHoverOff = () => void 0, this.onAddonPlusShown = () => void 0, this.onAddonPlusHidden = () => void 0, this.onContentProblem = (e) => void 0, this.onSyncStarted = () => void 0, this.onSyncDone = () => void 0, this.onOpenFloorMaterials = () => void 0, this.onOpenPartList = () => void 0, this.onComponentLoadError = (e, t) => void 0, this.onConfigurationLoadError = () => void 0, this.onChangeTypeChangeTag = (e) => void 0, this.onRemoveTypeChangeTag = (e) => void 0, this.onConfigurationLabelChange = (e, t, n) => void 0, this.onDimensionLabelsUpdated = (e) => void 0, this.onMemoryCorruption = () => void 0, this.onConfiguratorKernelIsReady = (e, t) => void 0, this.onConfigurationSaved = (e) => void 0, this.onCameraPositionChanges = () => void 0, this.onHistoryChange = (e, t) => void 0, this.onClickComponent = (e) => void 0, this.onRequestExternalMesh = (e, t) => void 0, this.onGeometryReady = (e) => void 0, this.onGeometryNotReady = (e) => void 0, this.onValueMapChanged = (e) => void 0, this.onExternalConfigurationSaved = (e) => void 0, this.onMaximumLightsReached = (e) => void 0;
|
|
18281
18278
|
}
|
|
18282
|
-
},
|
|
18279
|
+
}, Qm = class {
|
|
18283
18280
|
constructor(e) {
|
|
18284
18281
|
this._kernelCallbacks = {
|
|
18285
18282
|
isReady: () => void 0,
|
|
@@ -18322,10 +18319,10 @@ var Xm = class extends Ks {
|
|
|
18322
18319
|
}, this._toolsCoreInstance.analyzeComponent(e, t), this._analyzeComponentCallback = null, Promise.resolve(n);
|
|
18323
18320
|
}
|
|
18324
18321
|
};
|
|
18325
|
-
L([I, F("design:type", Object)],
|
|
18322
|
+
L([I, F("design:type", Object)], Qm.prototype, "_scriptLoader", void 0), L([I, F("design:type", Object)], Qm.prototype, "_kernelIo", void 0);
|
|
18326
18323
|
//#endregion
|
|
18327
18324
|
//#region ../../node_modules/three/examples/jsm/loaders/EXRLoader.js
|
|
18328
|
-
var
|
|
18325
|
+
var $m = class extends re {
|
|
18329
18326
|
constructor(e) {
|
|
18330
18327
|
super(e), this.type = ke, this.outputFormat = lt;
|
|
18331
18328
|
}
|
|
@@ -19224,7 +19221,7 @@ var Qm = class extends re {
|
|
|
19224
19221
|
}
|
|
19225
19222
|
return super.load(e, i, n, r);
|
|
19226
19223
|
}
|
|
19227
|
-
},
|
|
19224
|
+
}, eh = class extends re {
|
|
19228
19225
|
constructor(e) {
|
|
19229
19226
|
super(e), this.type = ke;
|
|
19230
19227
|
}
|
|
@@ -19337,7 +19334,7 @@ var Qm = class extends re {
|
|
|
19337
19334
|
}
|
|
19338
19335
|
return super.load(e, i, n, r);
|
|
19339
19336
|
}
|
|
19340
|
-
},
|
|
19337
|
+
}, th = class {
|
|
19341
19338
|
constructor(e) {
|
|
19342
19339
|
this._creator_ = e;
|
|
19343
19340
|
}
|
|
@@ -19350,15 +19347,15 @@ var Qm = class extends re {
|
|
|
19350
19347
|
return this._envChangedCallback(n), n;
|
|
19351
19348
|
}
|
|
19352
19349
|
_loadExr(e) {
|
|
19353
|
-
return this._exrLoader = this._exrLoader ?? new
|
|
19350
|
+
return this._exrLoader = this._exrLoader ?? new $m(), this._exrLoader.loadAsync(e);
|
|
19354
19351
|
}
|
|
19355
19352
|
_loadRgbe(e) {
|
|
19356
|
-
return this._hdrLoader = this._hdrLoader ?? new
|
|
19353
|
+
return this._hdrLoader = this._hdrLoader ?? new eh(), this._hdrLoader.loadAsync(e);
|
|
19357
19354
|
}
|
|
19358
19355
|
registerEnvironmentChangedCallback(e) {
|
|
19359
19356
|
this._envChangedCallback = e;
|
|
19360
19357
|
}
|
|
19361
|
-
},
|
|
19358
|
+
}, nh = class {
|
|
19362
19359
|
constructor(e) {
|
|
19363
19360
|
this._lastPlanBounds = new k(), this._creator_ = e;
|
|
19364
19361
|
}
|
|
@@ -19366,23 +19363,23 @@ var Qm = class extends re {
|
|
|
19366
19363
|
let n = this._lastPlanBounds.containsPoint(e);
|
|
19367
19364
|
return t && this._lastPlanBounds.copy(t), n;
|
|
19368
19365
|
}
|
|
19369
|
-
},
|
|
19366
|
+
}, rh = {
|
|
19370
19367
|
HIDE: "hide",
|
|
19371
19368
|
SHOW_ATTRIBUTES: "attributes",
|
|
19372
19369
|
SHOW_ARTICLES: "articles"
|
|
19373
|
-
},
|
|
19370
|
+
}, ih = {
|
|
19374
19371
|
NONE: "none",
|
|
19375
19372
|
GROUP: "group",
|
|
19376
19373
|
ROOT_MODULE: "rootModule",
|
|
19377
19374
|
SUB_MODULE: "subModule"
|
|
19378
|
-
},
|
|
19375
|
+
}, ah = {
|
|
19379
19376
|
MULTI_SELECT: "multiselect",
|
|
19380
19377
|
TC_CONFIG: "tc-config",
|
|
19381
19378
|
RML_OBJECT: "rml-object"
|
|
19382
|
-
},
|
|
19379
|
+
}, oh = class {
|
|
19383
19380
|
constructor(e) {
|
|
19384
19381
|
this._callbacks = null, this._contextType = $.PLANNER, this._selectionMode = null, this._hiSelection = {
|
|
19385
|
-
type:
|
|
19382
|
+
type: ih.NONE,
|
|
19386
19383
|
groupId: null,
|
|
19387
19384
|
rootModuleId: null,
|
|
19388
19385
|
subModuleId: null
|
|
@@ -19396,17 +19393,17 @@ var Qm = class extends re {
|
|
|
19396
19393
|
setSidebar(e) {
|
|
19397
19394
|
if (e !== "productSettings") {
|
|
19398
19395
|
if (e === "catalog") {
|
|
19399
|
-
this._emitSelectionChange(
|
|
19396
|
+
this._emitSelectionChange(rh.SHOW_ARTICLES);
|
|
19400
19397
|
return;
|
|
19401
19398
|
}
|
|
19402
|
-
this._emitSelectionChange(
|
|
19399
|
+
this._emitSelectionChange(rh.HIDE);
|
|
19403
19400
|
}
|
|
19404
19401
|
}
|
|
19405
19402
|
contextChanged(e) {
|
|
19406
19403
|
this._contextType = e, e === $.PLANNER && this._resetSelection(), this._handleViewTypeChange();
|
|
19407
19404
|
}
|
|
19408
19405
|
groupOrModuleSelected(e, t, n) {
|
|
19409
|
-
this._selectionMode =
|
|
19406
|
+
this._selectionMode = ah.TC_CONFIG, this._hiSelection.groupId = e, this._hiSelection.rootModuleId = t ?? null, this._hiSelection.subModuleId = n ?? null, this._hiSelection.rootModuleId && this._hiSelection.subModuleId ? this._hiSelection.type = ih.SUB_MODULE : this._hiSelection.rootModuleId ? this._hiSelection.type = ih.ROOT_MODULE : this._hiSelection.type = ih.GROUP, this._handleViewTypeChange();
|
|
19410
19407
|
}
|
|
19411
19408
|
componentSelectionCancel(e) {
|
|
19412
19409
|
this._contextType === $.CONFIGURATOR && (e === "click_outside" || e === "dock_preview" || e === "isolation_mode_cancelled" || e === "select_other" || (this._resetSelection(), this._handleViewTypeChange()));
|
|
@@ -19422,30 +19419,30 @@ var Qm = class extends re {
|
|
|
19422
19419
|
}
|
|
19423
19420
|
_selectionHandler(e, t, n, r) {
|
|
19424
19421
|
if (e !== $.CONFIGURATOR) {
|
|
19425
|
-
if (t ===
|
|
19422
|
+
if (t === ah.MULTI_SELECT) {
|
|
19426
19423
|
this._selectionMode = t, this._handleViewTypeChange();
|
|
19427
19424
|
return;
|
|
19428
19425
|
}
|
|
19429
|
-
n === "external-configuration" && r.externalConfigurationType ===
|
|
19426
|
+
n === "external-configuration" && r.externalConfigurationType === ah.TC_CONFIG ? this._selectionMode = ah.TC_CONFIG : this._selectionMode = ah.RML_OBJECT, this._handleViewTypeChange();
|
|
19430
19427
|
}
|
|
19431
19428
|
}
|
|
19432
19429
|
_handleViewTypeChange() {
|
|
19433
|
-
let e =
|
|
19434
|
-
this._selectionMode ===
|
|
19430
|
+
let e = rh.SHOW_ARTICLES;
|
|
19431
|
+
this._selectionMode === ah.TC_CONFIG && (this._contextType === $.CONFIGURATOR || this._hiSelection.type !== ih.GROUP) ? e = rh.SHOW_ATTRIBUTES : this._selectionMode === ah.RML_OBJECT && (e = rh.HIDE), this._emitSelectionChange(e);
|
|
19435
19432
|
}
|
|
19436
19433
|
_emitSelectionChange(e) {
|
|
19437
19434
|
if (this._emittedSelection.panel !== e) {
|
|
19438
19435
|
this._emittedSelection.panel = e;
|
|
19439
|
-
let t = e ===
|
|
19436
|
+
let t = e === rh.SHOW_ATTRIBUTES;
|
|
19440
19437
|
this._emittedSelection.groupId = t ? this._hiSelection.groupId : null, this._emittedSelection.rootModuleId = t ? this._hiSelection.rootModuleId : null, this._emittedSelection.subModuleId = t ? this._hiSelection.subModuleId : null, this._callbacks?.onShowHidePanel?.(e, this._emittedSelection.groupId, this._emittedSelection.rootModuleId, this._emittedSelection.subModuleId);
|
|
19441
|
-
} else this._emittedSelection.panel ===
|
|
19438
|
+
} else this._emittedSelection.panel === rh.SHOW_ATTRIBUTES && (this._emittedSelection.groupId !== this._hiSelection.groupId || this._emittedSelection.rootModuleId !== this._hiSelection.rootModuleId || this._emittedSelection.subModuleId !== this._hiSelection.subModuleId) && (this._emittedSelection.groupId = this._hiSelection.groupId ?? null, this._emittedSelection.rootModuleId = this._hiSelection.rootModuleId ?? null, this._emittedSelection.subModuleId = this._hiSelection.subModuleId ?? null, this._callbacks?.onSelectModule?.(this._emittedSelection.groupId, this._emittedSelection.rootModuleId, this._emittedSelection.subModuleId));
|
|
19442
19439
|
}
|
|
19443
|
-
},
|
|
19440
|
+
}, sh = (e) => e.includes("."), ch = class e {
|
|
19444
19441
|
static {
|
|
19445
19442
|
this.CHANGEABLE_PROPERTIES = ["additionalText", "quantity"];
|
|
19446
19443
|
}
|
|
19447
19444
|
constructor(e, t = null) {
|
|
19448
|
-
this._libraryData = /* @__PURE__ */ new Map(), this._posDataForLoading = null, this._posArticleMap = /* @__PURE__ */ new Map(), this._posSubArticleMap = /* @__PURE__ */ new Map(), this._groupMap = /* @__PURE__ */ new Map(), this._nextPosDataId = 1, this._hiCallbacks = null, this._pendingGroupsToBeLoaded = [], this._planCompletelyLoaded = !1, this._validSubArticles = [], this._designerRequests = e, this._hiCallbacks = t, this._hiObjectSelection = new
|
|
19445
|
+
this._libraryData = /* @__PURE__ */ new Map(), this._posDataForLoading = null, this._posArticleMap = /* @__PURE__ */ new Map(), this._posSubArticleMap = /* @__PURE__ */ new Map(), this._groupMap = /* @__PURE__ */ new Map(), this._nextPosDataId = 1, this._hiCallbacks = null, this._pendingGroupsToBeLoaded = [], this._planCompletelyLoaded = !1, this._validSubArticles = [], this._designerRequests = e, this._hiCallbacks = t, this._hiObjectSelection = new oh(t);
|
|
19449
19446
|
}
|
|
19450
19447
|
get hiCallbacks() {
|
|
19451
19448
|
return this._hiCallbacks;
|
|
@@ -19747,7 +19744,7 @@ var Qm = class extends re {
|
|
|
19747
19744
|
}
|
|
19748
19745
|
}
|
|
19749
19746
|
getMaterialUrl(e, t) {
|
|
19750
|
-
if (!
|
|
19747
|
+
if (!sh(e)) return null;
|
|
19751
19748
|
let n = this._getLibraryFromGroupOrModuleId(t);
|
|
19752
19749
|
if (!n?.masterData) return null;
|
|
19753
19750
|
let r = e.indexOf("."), i = e.slice(0, r), a = e.slice(r + 1);
|
|
@@ -20217,13 +20214,13 @@ var Qm = class extends re {
|
|
|
20217
20214
|
t.libraryId = r?.libraryId ?? e, t.articleName = r?.articleName ?? r?.articleId ?? a?.name ?? a?.id, t.articleId = r?.articleId ?? r?.articleName ?? a?.id ?? a?.name, t.imageUrl = r?.imageUrl ?? a?.imageUrl, t.desc = r?.desc ?? a?.desc, t.category = r?.category, t.additionalText = r?.additionalText, t.canBeDeleted === void 0 && (t.canBeDeleted = !t.isGenerated), this._setSubmoduleImages(t, i);
|
|
20218
20215
|
});
|
|
20219
20216
|
}
|
|
20220
|
-
},
|
|
20217
|
+
}, lh = class {
|
|
20221
20218
|
constructor(e) {
|
|
20222
20219
|
this._creator_ = e;
|
|
20223
20220
|
}
|
|
20224
20221
|
_getExternalMaterialUrl(e) {
|
|
20225
20222
|
let t = this._plannerKernelAccess?.homagIntelligence?.getGlueLogic();
|
|
20226
|
-
return !t || !
|
|
20223
|
+
return !t || !sh(e) ? null : t.getMaterialUrl(e);
|
|
20227
20224
|
}
|
|
20228
20225
|
async _fetchExternalMaterial(e) {
|
|
20229
20226
|
try {
|
|
@@ -20248,10 +20245,10 @@ var Qm = class extends re {
|
|
|
20248
20245
|
return [...r, ...i];
|
|
20249
20246
|
}
|
|
20250
20247
|
};
|
|
20251
|
-
L([I, F("design:type", Object)],
|
|
20248
|
+
L([I, F("design:type", Object)], lh.prototype, "_rapiAccess", void 0), L([I, F("design:type", Object)], lh.prototype, "_plannerKernelAccess", void 0);
|
|
20252
20249
|
//#endregion
|
|
20253
20250
|
//#region packages/common-core/src/webgl/svg-foreign-object-renderer.ts
|
|
20254
|
-
var
|
|
20251
|
+
var uh = class {
|
|
20255
20252
|
constructor(e, t) {
|
|
20256
20253
|
this.canvas = document.createElement("canvas"), this.context = this.canvas.getContext("2d"), this.canvas.width = e * window.devicePixelRatio, this.canvas.height = t * window.devicePixelRatio;
|
|
20257
20254
|
}
|
|
@@ -20283,7 +20280,7 @@ var lh = class {
|
|
|
20283
20280
|
}, r.onerror = n, r.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(e))}`;
|
|
20284
20281
|
});
|
|
20285
20282
|
}
|
|
20286
|
-
},
|
|
20283
|
+
}, dh = class {
|
|
20287
20284
|
constructor(e) {
|
|
20288
20285
|
this._creator_ = e;
|
|
20289
20286
|
}
|
|
@@ -20320,7 +20317,7 @@ var lh = class {
|
|
|
20320
20317
|
if (!this.css2DRenderer) return this.logNotInitializedWarning(), document.createElement("canvas");
|
|
20321
20318
|
await this.componentDimensioningHelper.updateComponentDimensionsForTemporaryCamera(t), this.dimensioningHelper?.moveCameraEnd(t.position), this.render(e, t);
|
|
20322
20319
|
let { width: n, height: r } = this.css2DRenderer.getSize();
|
|
20323
|
-
return await new
|
|
20320
|
+
return await new uh(n, r).renderToCanvas(this.css2DRenderer.domElement);
|
|
20324
20321
|
}
|
|
20325
20322
|
render(e, t) {
|
|
20326
20323
|
if (!this.css2DRenderer) {
|
|
@@ -20337,13 +20334,13 @@ var lh = class {
|
|
|
20337
20334
|
e.textContent = "\n .dimension-label {\n padding: 0.25rem 0.625rem;\n background: rgba(252, 252, 252, 0.95);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);\n backdrop-filter: blur(0.5rem);\n -webkit-backdrop-filter: blur(0.5rem);\n cursor: pointer;\n pointer-events: auto;\n outline: none;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .dimension-label:hover:not(.dimension-label--editing) {\n background: #ffffff;\n border-color: rgba(0, 0, 0, 0.14);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.13);\n transform: translate(-50%, -50%) scale(1.02);\n transition: all 0.2s var(--interaction-timing);\n }\n\n .dimension-label--editing {\n background: #ffffff;\n box-shadow:\n 0 0 0 2px rgba(59, 130, 246, 0.2),\n 0 2px 8px 0 rgba(0, 0, 0, 0.12);\n transform: translate(-50%, -50%) scale(1.05);\n transition: none;\n }\n\n .dimension-label__value {\n font-family: var(--font-family);\n font-size: 2rem;\n font-weight: 500;\n color: #2d2d2d;\n white-space: nowrap;\n letter-spacing: 0.02em;\n line-height: 1.2;\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .dimension-label__input {\n min-width: 3.75rem;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n color: inherit;\n border: none;\n outline: none;\n text-align: center;\n pointer-events: auto;\n line-height: 1.2;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n width: fit-content;\n max-width: 4rem;\n padding: 0;\n background-color: transparent;\n }\n\n .dimension-label__input:hover {\n filter: contrast(1.2);\n }\n\n .dimension-label--primary {\n background: rgba(247, 247, 247, 0.9);\n border: 1px solid rgba(0, 0, 0, 0.14);\n }\n\n .dimension-label--primary .dimension-label__value,\n .dimension-label--primary .dimension-label__input {\n font-size: 0.9rem;\n font-weight: 500;\n color: #000;\n }\n\n .dimension-label--primary:hover:not(.dimension-label--editing) {\n border-color: #8f8f8f;\n }\n\n .dimension-label--secondary {\n background: rgba(255, 255, 255, 0.75);\n }\n\n .dimension-label--secondary .dimension-label__value,\n .dimension-label--secondary .dimension-label__input {\n font-size: 0.75rem;\n color: #5a5a5a;\n }\n\n .dimension-label--disabled {\n pointer-events: none !important;\n }\n ", document.head.appendChild(e);
|
|
20338
20335
|
}
|
|
20339
20336
|
};
|
|
20340
|
-
L([I, F("design:type", Object)],
|
|
20337
|
+
L([I, F("design:type", Object)], dh.prototype, "domHelper", void 0), L([I, F("design:type", Object)], dh.prototype, "initData", void 0), L([I, F("design:type", Object)], dh.prototype, "componentDimensioningHelper", void 0);
|
|
20341
20338
|
//#endregion
|
|
20342
20339
|
//#region packages/common-core/src/di/injectables.ts
|
|
20343
|
-
var
|
|
20340
|
+
var fh = [
|
|
20344
20341
|
new H("error-handler", ji),
|
|
20345
20342
|
new H("form-data-util", ki),
|
|
20346
|
-
new H("hdr-environment-loader",
|
|
20343
|
+
new H("hdr-environment-loader", th),
|
|
20347
20344
|
new H("static-item-loader", bs, V.GLOBAL),
|
|
20348
20345
|
new H("form-data-util", ki),
|
|
20349
20346
|
new H("single-promise-factory", Sa, V.CONTEXT),
|
|
@@ -20364,7 +20361,7 @@ var dh = [
|
|
|
20364
20361
|
new H("global-init-data", Us, V.GLOBAL),
|
|
20365
20362
|
new H("global-callback", qs, V.GLOBAL),
|
|
20366
20363
|
new H("dom-helper", Xs, V.CONTEXT),
|
|
20367
|
-
new H("unit-formatter",
|
|
20364
|
+
new H("unit-formatter", Ym, V.GLOBAL),
|
|
20368
20365
|
new H("plugin-system", kr, V.CONTEXT),
|
|
20369
20366
|
new H("configurator-mesh-generator", ec),
|
|
20370
20367
|
new H("configurator-input-manager", dc, V.CONTEXT),
|
|
@@ -20373,19 +20370,19 @@ var dh = [
|
|
|
20373
20370
|
new H("component-dimensioning-helper", fc, V.CONTEXT),
|
|
20374
20371
|
new H("planner-kernel-access", Rm),
|
|
20375
20372
|
new H("planner-mesh-generator", Vm, V.CONTEXT),
|
|
20376
|
-
new H("unit-formatter",
|
|
20377
|
-
new H("configurator-history",
|
|
20373
|
+
new H("unit-formatter", Ym),
|
|
20374
|
+
new H("configurator-history", Xm, V.CONTEXT),
|
|
20378
20375
|
new H("roomle-planner-ui-callback", Md),
|
|
20379
|
-
new H("configurator-ui-callbacks",
|
|
20380
|
-
new H("roomle-tools-core",
|
|
20376
|
+
new H("configurator-ui-callbacks", Zm, V.CONTEXT),
|
|
20377
|
+
new H("roomle-tools-core", Qm, V.GLOBAL),
|
|
20381
20378
|
new H("image-renderer", $f, V.GLOBAL),
|
|
20382
20379
|
new H("idb-manager", Ei, V.GLOBAL),
|
|
20383
|
-
new H("camera-behaviour-state",
|
|
20384
|
-
new H("material-provider",
|
|
20385
|
-
new H("css2-d-renderer-manager",
|
|
20386
|
-
],
|
|
20380
|
+
new H("camera-behaviour-state", nh, V.CONTEXT),
|
|
20381
|
+
new H("material-provider", lh, V.GLOBAL),
|
|
20382
|
+
new H("css2-d-renderer-manager", dh, V.GLOBAL)
|
|
20383
|
+
], ph = class e {
|
|
20387
20384
|
static _ensureContainer() {
|
|
20388
|
-
return (!window.__RML__DI__ || !window.__RML__DI__.lookup) && (window.__RML__DI__ = new ba(), window.__RML__DI__.addDependencyInjectionAssignments(
|
|
20385
|
+
return (!window.__RML__DI__ || !window.__RML__DI__.lookup) && (window.__RML__DI__ = new ba(), window.__RML__DI__.addDependencyInjectionAssignments(fh)), window.__RML__DI__;
|
|
20389
20386
|
}
|
|
20390
20387
|
static setup(t) {
|
|
20391
20388
|
e.addToContainer(t);
|
|
@@ -20404,15 +20401,15 @@ var dh = [
|
|
|
20404
20401
|
}
|
|
20405
20402
|
}, $ = /* @__PURE__ */ function(e) {
|
|
20406
20403
|
return e.CONFIGURATOR = "configurator", e.PLANNER = "planner", e.GLB_VIEWER = "glb-viewer", e.MATERIAL_VIEWER = "material-viewer", e.TOOLS_CORE = "tools-core", e;
|
|
20407
|
-
}({}),
|
|
20404
|
+
}({}), mh = class {
|
|
20408
20405
|
constructor(e) {
|
|
20409
|
-
e ? this._context = e : this._context =
|
|
20406
|
+
e ? this._context = e : this._context = ph.getContext(this.getContextName()), window.TWEEN || (window.TWEEN = new Qt()), q.start("loadingTime");
|
|
20410
20407
|
}
|
|
20411
20408
|
_setupCommonGlobals() {
|
|
20412
20409
|
window.__RML__DEBUG__ || (window.__RML__DEBUG__ = {}), window.__RML__ENV__ || (window.__RML__ENV__ = {}, window.__RML__ENV__.assetPath || (window.__RML__ENV__.assetPath = ""));
|
|
20413
20410
|
}
|
|
20414
20411
|
_setupCommonDependencies() {
|
|
20415
|
-
|
|
20412
|
+
ph.setup(fh);
|
|
20416
20413
|
let e = ya();
|
|
20417
20414
|
this.lookup("global-init-data").setOverrides(e), this.lookup("init-data", this._context).setOverrides(e);
|
|
20418
20415
|
}
|
|
@@ -20449,13 +20446,13 @@ var dh = [
|
|
|
20449
20446
|
e && this.lookup("dom-helper", this._context).setDomElement(e), this.lookup("life-cycle-manager", this._context).resume();
|
|
20450
20447
|
}
|
|
20451
20448
|
destroy() {
|
|
20452
|
-
this.pause(), this.lookup("life-cycle-manager", this._context).destroy(),
|
|
20449
|
+
this.pause(), this.lookup("life-cycle-manager", this._context).destroy(), ph.cleanUp(this._context);
|
|
20453
20450
|
}
|
|
20454
20451
|
getRapiAccess() {
|
|
20455
20452
|
return this.lookup("rapi-access", this._context);
|
|
20456
20453
|
}
|
|
20457
20454
|
};
|
|
20458
20455
|
//#endregion
|
|
20459
|
-
export { B as $, Al as A, uc as B, $l as C, Rl as D, Bl as E, Bc as F, Us as G, Js as H, Rc as I, Ra as J, no as K, Ac as L, Dl as M, ml as N, jl as O, q as P, H as Q, Dc as R, lu as S, Wl as T, qs as U, ec as V, Ks as W, xa as X, Ia as Y, V as Z, jd as _,
|
|
20456
|
+
export { B as $, Al as A, uc as B, $l as C, Rl as D, Bl as E, Bc as F, Us as G, Js as H, Rc as I, Ra as J, no as K, Ac as L, Dl as M, ml as N, jl as O, q as P, H as Q, Dc as R, lu as S, Wl as T, qs as U, ec as V, Ks as W, xa as X, Ia as Y, V as Z, jd as _, Zm as a, di as at, ju as b, Hp as c, np as d, ha as et, ep as f, Fd as g, Wd as h, ch as i, fi as it, Ol as j, kl as k, Bp as l, Yf as m, mh as n, Ei as nt, Vm as o, Xf as p, Va as q, ph as r, vi as rt, wm as s, $ as t, Di as tt, vp as u, Md as v, J as w, gu as x, yd as y, Tc as z };
|
|
20460
20457
|
|
|
20461
|
-
//# sourceMappingURL=main-
|
|
20458
|
+
//# sourceMappingURL=main-CtVIB52l.mjs.map
|