@roomle/web-sdk 4.2.0-alpha.3 → 4.2.0-alpha.5

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.
Files changed (41) hide show
  1. package/lib/ConfiguratorKernel.wasm +0 -0
  2. package/lib/RoomleCore.wasm +0 -0
  3. package/lib/RoomleToolsCore.wasm +0 -0
  4. package/lib/{api-BcdMPjhw.mjs → api-C98GESLz.mjs} +2 -2
  5. package/lib/{api-BcdMPjhw.mjs.map → api-C98GESLz.mjs.map} +1 -1
  6. package/lib/configurator-DOJ9I1n7.mjs +2 -0
  7. package/lib/{configurator-CqUyAvhd.mjs → configurator-DxA5QvfQ.mjs} +3 -3
  8. package/lib/{configurator-CqUyAvhd.mjs.map → configurator-DxA5QvfQ.mjs.map} +1 -1
  9. package/lib/{glb-viewer-C6XU_HMw.mjs → glb-viewer-BdpDKWWZ.mjs} +3 -3
  10. package/lib/{glb-viewer-C6XU_HMw.mjs.map → glb-viewer-BdpDKWWZ.mjs.map} +1 -1
  11. package/lib/glb-viewer-ClmIxWHc.mjs +2 -0
  12. package/lib/{homag-intelligence-Cmhold3S.mjs → homag-intelligence-DKXsYTQJ.mjs} +3 -3
  13. package/lib/{homag-intelligence-Cmhold3S.mjs.map → homag-intelligence-DKXsYTQJ.mjs.map} +1 -1
  14. package/lib/{material-viewer-3laQuEgj.mjs → material-viewer-YWcy7waq.mjs} +3 -3
  15. package/lib/{material-viewer-3laQuEgj.mjs.map → material-viewer-YWcy7waq.mjs.map} +1 -1
  16. package/lib/{packages-BRoZjsxP.mjs → packages-CAofv6La.mjs} +5 -5
  17. package/lib/{packages-BRoZjsxP.mjs.map → packages-CAofv6La.mjs.map} +1 -1
  18. package/lib/planner-BwXcTPN5.mjs +2 -0
  19. package/lib/{planner-2ZsNeXnj.mjs → planner-CTtIkoNc.mjs} +3 -3
  20. package/lib/{planner-2ZsNeXnj.mjs.map → planner-CTtIkoNc.mjs.map} +1 -1
  21. package/lib/roomle-headless.js +8 -8
  22. package/lib/{roomle-sdk-CwG0lo8o.mjs → roomle-sdk-B-V7NcMU.mjs} +15 -15
  23. package/lib/{roomle-sdk-CwG0lo8o.mjs.map → roomle-sdk-B-V7NcMU.mjs.map} +1 -1
  24. package/lib/roomle-sdk.js +6 -6
  25. package/lib/{roomle-webgpu-renderer-CNZiK43x.mjs → roomle-webgpu-renderer-Dzuy_Y39.mjs} +3 -3
  26. package/lib/{roomle-webgpu-renderer-CNZiK43x.mjs.map → roomle-webgpu-renderer-Dzuy_Y39.mjs.map} +1 -1
  27. package/lib/{script-loader-CsWF2xfV.mjs → script-loader-Bc41zbmK.mjs} +2 -2
  28. package/lib/{script-loader-CsWF2xfV.mjs.map → script-loader-Bc41zbmK.mjs.map} +1 -1
  29. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  30. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +1 -0
  31. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js +1 -0
  32. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
  33. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  34. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  35. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  36. package/lib/{tools-core-CghU3HxF.mjs → tools-core-BsBeei_q.mjs} +3 -3
  37. package/lib/{tools-core-CghU3HxF.mjs.map → tools-core-BsBeei_q.mjs.map} +1 -1
  38. package/package.json +2 -2
  39. package/lib/configurator-B5JKyAVr.mjs +0 -2
  40. package/lib/glb-viewer-dwZ7AQ5k.mjs +0 -2
  41. package/lib/planner-CU5ZaWGK.mjs +0 -2
@@ -47582,7 +47582,7 @@ var Jp = class {
47582
47582
  let { x: n, y: r } = this._domHelper.getClientDimensions();
47583
47583
  if (t ||= !1, t || (this._scene.background = this._initData.colors.DEFAULT_BACKGROUND), this._initData.webGpu) {
47584
47584
  let { WebGPURenderer: e } = await import("./three.webgpu-bR4-ABJu.mjs");
47585
- this._renderer = new e({ antialias: !1 }), await this._renderer.init();
47585
+ this._renderer = new e({ antialias: !1 }), this._renderer.setClearColor(new M(1, 1, 1), 1), await this._renderer.init();
47586
47586
  } else this._renderer = new Hn({
47587
47587
  antialias: !this._globalInitData?.e2e,
47588
47588
  alpha: !0
@@ -47597,7 +47597,7 @@ var Jp = class {
47597
47597
  }, this._initData.linearAoFilter);
47598
47598
  e.setQualityMap(Tp), e.setAutoQuality(this._initData.autoQuality), this._initData.debug && e.loadLutImages(Kp), this._roomleRenderer = e;
47599
47599
  } else {
47600
- let { RoomleWebGPURenderer: e } = await import("./roomle-webgpu-renderer-CNZiK43x.mjs"), t = new e(this._creator_, this._renderer, !0, {
47600
+ let { RoomleWebGPURenderer: e } = await import("./roomle-webgpu-renderer-Dzuy_Y39.mjs"), t = new e(this._creator_, this._renderer, !0, {
47601
47601
  outlineVisibleEdgeColor: this._initData.colors.SELECTION.getHex(),
47602
47602
  outlineHiddenEdgeColor: this._initData.colors.SELECTION.getHex()
47603
47603
  });
@@ -48051,7 +48051,7 @@ var gm = class extends ld {
48051
48051
  let t = new qp(this._creator_, e, vm, vm);
48052
48052
  return t.setQualityMap(Tp), t;
48053
48053
  }
48054
- let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-CNZiK43x.mjs");
48054
+ let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-Dzuy_Y39.mjs");
48055
48055
  return new t(this._creator_, e, !1);
48056
48056
  }
48057
48057
  async switchToPlannerSettings() {
@@ -52125,7 +52125,7 @@ var wg = "rml_plans", Tg = {
52125
52125
  e.length > 0 && this._show3dDimensionsMulti(e);
52126
52126
  } else this._show3dDimensions(e);
52127
52127
  let i = this.getPlanObject(e.getId()), a;
52128
- i && (a = await Mm([i], this._plannerKernelAccess, this._rapiAccess)), this._roomlePlannerUiCallback.onPlanElementChanged(ep.MOVED, a?.length ? a[0] : {
52128
+ i.runtimeId && (a = await Mm([i], this._plannerKernelAccess, this._rapiAccess)), this._roomlePlannerUiCallback.onPlanElementChanged(ep.MOVED, a?.length ? a[0] : {
52129
52129
  ...i,
52130
52130
  data: null
52131
52131
  });
@@ -52894,7 +52894,7 @@ var wg = "rml_plans", Tg = {
52894
52894
  return new Promise((t, r) => {
52895
52895
  this._waitForAssets().then(async () => {
52896
52896
  let r;
52897
- this.cameraBehaviour.cameraControl instanceof Sd ? r = this.cameraBehaviour.cameraControl.getCamera().clone() : (r = this.getPerspectiveOffsetCamera().clone(), this.viewModel.getCeilingGroup().visible = !1, r.layers.enableAll(), await this.viewModel.setCameraType(G.CAMERA_3D)), r.resetOffset();
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();
52898
52898
  let i = e.object ? ym.getCameraTargetForBBox(new j().setFromObject(e.object)) : e.runtimeIds ? ym.getCameraTargetForBBox(this.viewModel.getBoundingBoxFromRuntimeIds(e.runtimeIds)) : this._calculateImageCameraTarget();
52899
52899
  this._lightSetting?.removeFromScene();
52900
52900
  let a = e.object ? Ne(this._scene) : this._scene;
@@ -52902,7 +52902,7 @@ var wg = "rml_plans", Tg = {
52902
52902
  let o;
52903
52903
  try {
52904
52904
  o = await this._imageRenderer.preparePerspectiveImage(a, r, i, e, e.showWallsAndCeiling ? void 0 : (e) => {
52905
- C(e, this.viewModel.getWallPlanObjectViewModels());
52905
+ this.viewModel.getCeilingGroup().visible = !1, C(e, this.viewModel.getWallPlanObjectViewModels());
52906
52906
  });
52907
52907
  } finally {
52908
52908
  this._keepWallsAndCeilingVisible = !1;
@@ -54287,7 +54287,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
54287
54287
  async switchToConfigurator() {
54288
54288
  let e = await this._singlePromiseFactory.create(Fa.START_HSC, "startHSC", (e) => {
54289
54289
  if (this._hscInstance) return e(this._hscInstance);
54290
- import("./configurator-B5JKyAVr.mjs").then(({ Configurator: t }) => {
54290
+ import("./configurator-DOJ9I1n7.mjs").then(({ Configurator: t }) => {
54291
54291
  let n = new t(this._creator_);
54292
54292
  n.boot({
54293
54293
  kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
@@ -54305,7 +54305,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
54305
54305
  async switchToViewer() {
54306
54306
  let e = await this._singlePromiseFactory.create(Fa.START_GLB, "startGLB", (e) => {
54307
54307
  if (this._glbInstance) return e(this._glbInstance);
54308
- import("./glb-viewer-dwZ7AQ5k.mjs").then((t) => {
54308
+ import("./glb-viewer-ClmIxWHc.mjs").then((t) => {
54309
54309
  let n = new t.GlbViewer(this._creator_);
54310
54310
  n.boot(), n.getApi().setOverrides(this._initData);
54311
54311
  let r = this._domHelper.element;
@@ -55210,7 +55210,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
55210
55210
  globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
55211
55211
  }, "*", [t.port2]);
55212
55212
  let n = Vg(t.port1), r = null;
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-Cmhold3S.mjs"))).HomagIntelligence(this, e, n).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
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-DKXsYTQJ.mjs"))).HomagIntelligence(this, e, n).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
55214
55214
  }
55215
55215
  async _loadHomagIntelligenceArticles(e, t) {
55216
55216
  let n = this._homagIntelligence;
@@ -58772,7 +58772,7 @@ var mv = [
58772
58772
  static getConfigurator(e, t) {
58773
58773
  t = this._setupDI(K.CONFIGURATOR, e, t);
58774
58774
  let n = hv.lookup("global-init-data");
58775
- return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-B5JKyAVr.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58775
+ return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-DOJ9I1n7.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58776
58776
  }
58777
58777
  static getPlanner(e, t) {
58778
58778
  return this._getPlanner(e, t);
@@ -58783,15 +58783,15 @@ var mv = [
58783
58783
  static async getGlbViewer(e, t) {
58784
58784
  t = this._setupDI(K.GLB_VIEWER, e, t);
58785
58785
  let n = hv.lookup("global-init-data");
58786
- return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-dwZ7AQ5k.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58786
+ return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-ClmIxWHc.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58787
58787
  }
58788
58788
  static getMaterialViewer(e, t) {
58789
58789
  t = this._setupDI(K.CONFIGURATOR, e, t);
58790
58790
  let n = hv.lookup("global-init-data");
58791
- return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-3laQuEgj.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58791
+ return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-YWcy7waq.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58792
58792
  }
58793
58793
  static getCoreTools(e, t) {
58794
- return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-CghU3HxF.mjs").then(({ ToolsCore: n }) => {
58794
+ return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-BsBeei_q.mjs").then(({ ToolsCore: n }) => {
58795
58795
  let r = new n(t);
58796
58796
  r.boot(), e(r);
58797
58797
  }, n));
@@ -58819,7 +58819,7 @@ var mv = [
58819
58819
  }
58820
58820
  static _getPlanner(e, t, n) {
58821
58821
  let r = this._setupDI(K.PLANNER, e, t), i = hv.lookup("global-init-data");
58822
- return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-CU5ZaWGK.mjs").then(({ Planner: t }) => {
58822
+ return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-BwXcTPN5.mjs").then(({ Planner: t }) => {
58823
58823
  e(n ? new t(r, n) : new t(r));
58824
58824
  }, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58825
58825
  }
@@ -58836,4 +58836,4 @@ var mv = [
58836
58836
  //#endregion
58837
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 };
58838
58838
 
58839
- //# sourceMappingURL=roomle-sdk-CwG0lo8o.mjs.map
58839
+ //# sourceMappingURL=roomle-sdk-B-V7NcMU.mjs.map