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

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 (38) 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-VdWgw-jg.mjs → api-BcdMPjhw.mjs} +2 -2
  5. package/lib/{api-VdWgw-jg.mjs.map → api-BcdMPjhw.mjs.map} +1 -1
  6. package/lib/configurator-B5JKyAVr.mjs +2 -0
  7. package/lib/{configurator-Bl3B3C63.mjs → configurator-CqUyAvhd.mjs} +3 -3
  8. package/lib/{configurator-Bl3B3C63.mjs.map → configurator-CqUyAvhd.mjs.map} +1 -1
  9. package/lib/{glb-viewer-DxwekYzn.mjs → glb-viewer-C6XU_HMw.mjs} +3 -3
  10. package/lib/{glb-viewer-DxwekYzn.mjs.map → glb-viewer-C6XU_HMw.mjs.map} +1 -1
  11. package/lib/glb-viewer-dwZ7AQ5k.mjs +2 -0
  12. package/lib/{homag-intelligence-DwBJIGnh.mjs → homag-intelligence-Cmhold3S.mjs} +3 -3
  13. package/lib/{homag-intelligence-DwBJIGnh.mjs.map → homag-intelligence-Cmhold3S.mjs.map} +1 -1
  14. package/lib/{material-viewer-DjGxE0tY.mjs → material-viewer-3laQuEgj.mjs} +3 -3
  15. package/lib/{material-viewer-DjGxE0tY.mjs.map → material-viewer-3laQuEgj.mjs.map} +1 -1
  16. package/lib/{packages-Dz8NmJP4.mjs → packages-BRoZjsxP.mjs} +5 -5
  17. package/lib/{packages-Dz8NmJP4.mjs.map → packages-BRoZjsxP.mjs.map} +1 -1
  18. package/lib/{planner-CWJXj28p.mjs → planner-2ZsNeXnj.mjs} +3 -3
  19. package/lib/{planner-CWJXj28p.mjs.map → planner-2ZsNeXnj.mjs.map} +1 -1
  20. package/lib/planner-CU5ZaWGK.mjs +2 -0
  21. package/lib/roomle-headless.d.ts +3 -0
  22. package/lib/roomle-headless.js +7 -7
  23. package/lib/{roomle-sdk-FrWkv2ZJ.mjs → roomle-sdk-CwG0lo8o.mjs} +18 -10
  24. package/lib/{roomle-sdk-FrWkv2ZJ.mjs.map → roomle-sdk-CwG0lo8o.mjs.map} +1 -1
  25. package/lib/roomle-sdk.d.ts +3 -0
  26. package/lib/roomle-sdk.js +6 -6
  27. package/lib/{script-loader-YLmjONN5.mjs → script-loader-CsWF2xfV.mjs} +2 -2
  28. package/lib/{script-loader-YLmjONN5.mjs.map → script-loader-CsWF2xfV.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/wasm_modern/ConfiguratorKernel.wasm +0 -0
  31. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  32. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  33. package/lib/{tools-core-CToGr3ow.mjs → tools-core-CghU3HxF.mjs} +3 -3
  34. package/lib/{tools-core-CToGr3ow.mjs.map → tools-core-CghU3HxF.mjs.map} +1 -1
  35. package/package.json +2 -2
  36. package/lib/configurator-CHYss9Ix.mjs +0 -2
  37. package/lib/glb-viewer-Bo6d43Pf.mjs +0 -2
  38. 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();
@@ -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-CHYss9Ix.mjs").then(({ Configurator: t }) => {
54290
+ import("./configurator-B5JKyAVr.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-Bo6d43Pf.mjs").then((t) => {
54308
+ import("./glb-viewer-dwZ7AQ5k.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-DwBJIGnh.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-Cmhold3S.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-CHYss9Ix.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-B5JKyAVr.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-Bo6d43Pf.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-dwZ7AQ5k.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-DjGxE0tY.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-3laQuEgj.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-CToGr3ow.mjs").then(({ ToolsCore: n }) => {
58794
+ return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-CghU3HxF.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-CuYso338.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-CU5ZaWGK.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-FrWkv2ZJ.mjs.map
58839
+ //# sourceMappingURL=roomle-sdk-CwG0lo8o.mjs.map