@roomle/web-sdk 4.2.0-alpha.2 → 4.2.0-alpha.4
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-VdWgw-jg.mjs → api-D4K3PT_C.mjs} +2 -2
- package/lib/{api-VdWgw-jg.mjs.map → api-D4K3PT_C.mjs.map} +1 -1
- package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -1
- package/lib/budgeteer.sw-BUMElkO1.mjs.map +1 -1
- package/lib/{configurator-Bl3B3C63.mjs → configurator-B_N3E-fU.mjs} +3 -3
- package/lib/{configurator-Bl3B3C63.mjs.map → configurator-B_N3E-fU.mjs.map} +1 -1
- package/lib/configurator-XCSeE4KT.mjs +2 -0
- package/lib/glb-viewer-BCdULq80.mjs +2 -0
- package/lib/{glb-viewer-DxwekYzn.mjs → glb-viewer-CD_K6nh8.mjs} +3 -3
- package/lib/{glb-viewer-DxwekYzn.mjs.map → glb-viewer-CD_K6nh8.mjs.map} +1 -1
- package/lib/{homag-intelligence-DwBJIGnh.mjs → homag-intelligence-Df4SRelQ.mjs} +3 -3
- package/lib/{homag-intelligence-DwBJIGnh.mjs.map → homag-intelligence-Df4SRelQ.mjs.map} +1 -1
- package/lib/{material-viewer-DjGxE0tY.mjs → material-viewer-DDDOHL63.mjs} +3 -3
- package/lib/{material-viewer-DjGxE0tY.mjs.map → material-viewer-DDDOHL63.mjs.map} +1 -1
- package/lib/{packages-Dz8NmJP4.mjs → packages-aOLE-uAL.mjs} +5 -5
- package/lib/{packages-Dz8NmJP4.mjs.map → packages-aOLE-uAL.mjs.map} +1 -1
- package/lib/{planner-CWJXj28p.mjs → planner-CJh1gqtX.mjs} +3 -3
- package/lib/{planner-CWJXj28p.mjs.map → planner-CJh1gqtX.mjs.map} +1 -1
- package/lib/planner-DkI43IZF.mjs +2 -0
- package/lib/roomle-headless.d.ts +3 -0
- package/lib/roomle-headless.js +7 -7
- package/lib/{roomle-sdk-FrWkv2ZJ.mjs → roomle-sdk-Dj9Zd1PS.mjs} +20 -12
- package/lib/{roomle-sdk-FrWkv2ZJ.mjs.map → roomle-sdk-Dj9Zd1PS.mjs.map} +1 -1
- package/lib/roomle-sdk.d.ts +3 -0
- package/lib/roomle-sdk.js +6 -6
- package/lib/{script-loader-YLmjONN5.mjs → script-loader-60UDaEVE.mjs} +2 -2
- package/lib/{script-loader-YLmjONN5.mjs.map → script-loader-60UDaEVE.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/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-CToGr3ow.mjs → tools-core-1rVSAXUA.mjs} +3 -3
- package/lib/{tools-core-CToGr3ow.mjs.map → tools-core-1rVSAXUA.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-CHYss9Ix.mjs +0 -2
- package/lib/glb-viewer-Bo6d43Pf.mjs +0 -2
- package/lib/planner-CuYso338.mjs +0 -2
|
@@ -52062,7 +52062,7 @@ var wg = "rml_plans", Tg = {
|
|
|
52062
52062
|
super(e, t, r), this._homagIntelligence = null, this._itemsLoadingStatePromises = [], this._pendingConfigurationSaves = /* @__PURE__ */ new Set(), this._keepWallsAndCeilingVisible = !1, this._staticItemGuard = new er(), this._completelyLoaded = !1, this._configurableItemGuard = new er(), this._planCompletelyLoadedGuard = new er(), this._fullyReadyGuard = (() => {
|
|
52063
52063
|
let e = new er();
|
|
52064
52064
|
return e.resolve(), e;
|
|
52065
|
-
})(), this.currentSelection = null, this._paperBackground = null, this._cameraState = null, this._cameraStateLocked = !1, this._planElementHighlighter = null, this._planner3dDimensionHelper = new Fh(), this._selectedPlanElementViewModel2d = null, this._wallDimensions2d = [], this._nodeDimensions2d = [], this._objectMeasurements2d = null, this._objectMeasurementsPlanElementId2d = null, this._constructionMeasurements2d = null, this._measurementLineDimensions2d = [], this._floorAreas2d = [], this._hide2dMeasurements = !1, this._is2dMeasurementsOverlayDirty = !1, this._debugSpheres = {
|
|
52065
|
+
})(), this.currentSelection = null, this._paperBackground = null, this._cameraState = null, this._cameraStateLocked = !1, this._planElementHighlighter = null, this._highlightRefreshScheduled = !1, this._planner3dDimensionHelper = new Fh(), this._selectedPlanElementViewModel2d = null, this._wallDimensions2d = [], this._nodeDimensions2d = [], this._objectMeasurements2d = null, this._objectMeasurementsPlanElementId2d = null, this._constructionMeasurements2d = null, this._measurementLineDimensions2d = [], this._floorAreas2d = [], this._hide2dMeasurements = !1, this._is2dMeasurementsOverlayDirty = !1, this._debugSpheres = {
|
|
52066
52066
|
wallPoints: new vn(),
|
|
52067
52067
|
constructionElementsPoints: new vn(),
|
|
52068
52068
|
floorPoints: new vn()
|
|
@@ -52748,6 +52748,14 @@ var wg = "rml_plans", Tg = {
|
|
|
52748
52748
|
let e = this._plannerSceneEventHandler.getSelectedIds();
|
|
52749
52749
|
this.highlightPlanElementsById(e?.length > 0 ? e : null);
|
|
52750
52750
|
}
|
|
52751
|
+
planObjectUpdated(e, t, n, r) {
|
|
52752
|
+
this._scheduleHighlightRefresh(), super.planObjectUpdated(e, t, n, r);
|
|
52753
|
+
}
|
|
52754
|
+
_scheduleHighlightRefresh() {
|
|
52755
|
+
this._highlightRefreshScheduled || (this._highlightRefreshScheduled = !0, queueMicrotask(() => {
|
|
52756
|
+
this._highlightRefreshScheduled = !1, this._configuratorContext.baseContext !== K.CONFIGURATOR && (this._planElementHighlighter?.refreshHighlighting(), this._renderWithoutShadowsAndAO());
|
|
52757
|
+
}));
|
|
52758
|
+
}
|
|
52751
52759
|
highlightPlanElementsById(e) {
|
|
52752
52760
|
if (e === null) {
|
|
52753
52761
|
this._clearHighlighting();
|
|
@@ -52886,7 +52894,7 @@ var wg = "rml_plans", Tg = {
|
|
|
52886
52894
|
return new Promise((t, r) => {
|
|
52887
52895
|
this._waitForAssets().then(async () => {
|
|
52888
52896
|
let r;
|
|
52889
|
-
this.cameraBehaviour.cameraControl instanceof Sd ? r = this.cameraBehaviour.cameraControl.getCamera().clone() : (r = this.getPerspectiveOffsetCamera().clone(),
|
|
52897
|
+
this.cameraBehaviour.cameraControl instanceof Sd ? r = this.cameraBehaviour.cameraControl.getCamera().clone() : (r = this.getPerspectiveOffsetCamera().clone(), r.layers.enableAll(), await this.viewModel.setCameraType(G.CAMERA_3D)), r.resetOffset();
|
|
52890
52898
|
let i = e.object ? ym.getCameraTargetForBBox(new j().setFromObject(e.object)) : e.runtimeIds ? ym.getCameraTargetForBBox(this.viewModel.getBoundingBoxFromRuntimeIds(e.runtimeIds)) : this._calculateImageCameraTarget();
|
|
52891
52899
|
this._lightSetting?.removeFromScene();
|
|
52892
52900
|
let a = e.object ? Ne(this._scene) : this._scene;
|
|
@@ -52894,7 +52902,7 @@ var wg = "rml_plans", Tg = {
|
|
|
52894
52902
|
let o;
|
|
52895
52903
|
try {
|
|
52896
52904
|
o = await this._imageRenderer.preparePerspectiveImage(a, r, i, e, e.showWallsAndCeiling ? void 0 : (e) => {
|
|
52897
|
-
C(e, this.viewModel.getWallPlanObjectViewModels());
|
|
52905
|
+
this.viewModel.getCeilingGroup().visible = !1, C(e, this.viewModel.getWallPlanObjectViewModels());
|
|
52898
52906
|
});
|
|
52899
52907
|
} finally {
|
|
52900
52908
|
this._keepWallsAndCeilingVisible = !1;
|
|
@@ -54279,7 +54287,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54279
54287
|
async switchToConfigurator() {
|
|
54280
54288
|
let e = await this._singlePromiseFactory.create(Fa.START_HSC, "startHSC", (e) => {
|
|
54281
54289
|
if (this._hscInstance) return e(this._hscInstance);
|
|
54282
|
-
import("./configurator-
|
|
54290
|
+
import("./configurator-XCSeE4KT.mjs").then(({ Configurator: t }) => {
|
|
54283
54291
|
let n = new t(this._creator_);
|
|
54284
54292
|
n.boot({
|
|
54285
54293
|
kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
|
|
@@ -54297,7 +54305,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54297
54305
|
async switchToViewer() {
|
|
54298
54306
|
let e = await this._singlePromiseFactory.create(Fa.START_GLB, "startGLB", (e) => {
|
|
54299
54307
|
if (this._glbInstance) return e(this._glbInstance);
|
|
54300
|
-
import("./glb-viewer-
|
|
54308
|
+
import("./glb-viewer-BCdULq80.mjs").then((t) => {
|
|
54301
54309
|
let n = new t.GlbViewer(this._creator_);
|
|
54302
54310
|
n.boot(), n.getApi().setOverrides(this._initData);
|
|
54303
54311
|
let r = this._domHelper.element;
|
|
@@ -55202,7 +55210,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55202
55210
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
55203
55211
|
}, "*", [t.port2]);
|
|
55204
55212
|
let n = Vg(t.port1), r = null;
|
|
55205
|
-
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new a_(this._creator_, r)), await new (await (import("./homag-intelligence-
|
|
55213
|
+
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new a_(this._creator_, r)), await new (await (import("./homag-intelligence-Df4SRelQ.mjs"))).HomagIntelligence(this, e, n).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
|
|
55206
55214
|
}
|
|
55207
55215
|
async _loadHomagIntelligenceArticles(e, t) {
|
|
55208
55216
|
let n = this._homagIntelligence;
|
|
@@ -58764,7 +58772,7 @@ var mv = [
|
|
|
58764
58772
|
static getConfigurator(e, t) {
|
|
58765
58773
|
t = this._setupDI(K.CONFIGURATOR, e, t);
|
|
58766
58774
|
let n = hv.lookup("global-init-data");
|
|
58767
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
58775
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-XCSeE4KT.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
58768
58776
|
}
|
|
58769
58777
|
static getPlanner(e, t) {
|
|
58770
58778
|
return this._getPlanner(e, t);
|
|
@@ -58775,15 +58783,15 @@ var mv = [
|
|
|
58775
58783
|
static async getGlbViewer(e, t) {
|
|
58776
58784
|
t = this._setupDI(K.GLB_VIEWER, e, t);
|
|
58777
58785
|
let n = hv.lookup("global-init-data");
|
|
58778
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
58786
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-BCdULq80.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
58779
58787
|
}
|
|
58780
58788
|
static getMaterialViewer(e, t) {
|
|
58781
58789
|
t = this._setupDI(K.CONFIGURATOR, e, t);
|
|
58782
58790
|
let n = hv.lookup("global-init-data");
|
|
58783
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
58791
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-DDDOHL63.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
58784
58792
|
}
|
|
58785
58793
|
static getCoreTools(e, t) {
|
|
58786
|
-
return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
58794
|
+
return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-1rVSAXUA.mjs").then(({ ToolsCore: n }) => {
|
|
58787
58795
|
let r = new n(t);
|
|
58788
58796
|
r.boot(), e(r);
|
|
58789
58797
|
}, n));
|
|
@@ -58811,7 +58819,7 @@ var mv = [
|
|
|
58811
58819
|
}
|
|
58812
58820
|
static _getPlanner(e, t, n) {
|
|
58813
58821
|
let r = this._setupDI(K.PLANNER, e, t), i = hv.lookup("global-init-data");
|
|
58814
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
58822
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-DkI43IZF.mjs").then(({ Planner: t }) => {
|
|
58815
58823
|
e(n ? new t(r, n) : new t(r));
|
|
58816
58824
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
58817
58825
|
}
|
|
@@ -58828,4 +58836,4 @@ var mv = [
|
|
|
58828
58836
|
//#endregion
|
|
58829
58837
|
export { G as $, Vu as A, Vc as B, Bd as C, pd as D, X as E, eu as F, Cc as G, Ic as H, _l as I, xc as J, wc as K, sl as L, Su as M, uu as N, ld as O, su as P, Xs as Q, al as R, ef as S, Sd as T, Fc as U, K as V, Tc as W, fc as X, mc as Y, lc as Z, pp as _, W_ as a, Pa as at, Vf as b, A_ as c, Na as ct, Rm as d, Wi as dt, go as et, Sm as f, Ri as ft, hm as g, gm as h, rv as i, Fa as it, wu as j, cd as k, D_ as l, ka as lt, ym as m, Mi as mt, hv as n, Qa as nt, U_ as o, V as ot, bm as p, Ni as pt, Sc as q, mv as r, Xa as rt, H_ as s, H as st, gv as t, to as tt, p_ as u, Oa as ut, ip as v, Ld as w, Hf as x, ep as y, Hc as z };
|
|
58830
58838
|
|
|
58831
|
-
//# sourceMappingURL=roomle-sdk-
|
|
58839
|
+
//# sourceMappingURL=roomle-sdk-Dj9Zd1PS.mjs.map
|