@roomle/web-sdk 5.2.0-alpha.9 → 6.0.0-alpha.1

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 (57) hide show
  1. package/lib/ConfiguratorKernel.js +45 -45
  2. package/lib/ConfiguratorKernel.wasm +0 -0
  3. package/lib/RoomleCore.js +46 -46
  4. package/lib/RoomleCore.wasm +0 -0
  5. package/lib/RoomleToolsCore.wasm +0 -0
  6. package/lib/api-56gsJaFH.mjs +92 -0
  7. package/lib/api-56gsJaFH.mjs.map +1 -0
  8. package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
  9. package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
  10. package/lib/{configurator-lYzmK0Qp.mjs → configurator-B2Yqt1V5.mjs} +18 -18
  11. package/lib/{configurator-lYzmK0Qp.mjs.map → configurator-B2Yqt1V5.mjs.map} +1 -1
  12. package/lib/configurator-sOl9pxCL.mjs +2 -0
  13. package/lib/{glb-viewer-VYVfbQN8.mjs → glb-viewer-BLe8SEWm.mjs} +23 -23
  14. package/lib/{glb-viewer-VYVfbQN8.mjs.map → glb-viewer-BLe8SEWm.mjs.map} +1 -1
  15. package/lib/glb-viewer-Y_Md3SYw.mjs +2 -0
  16. package/lib/{homag-intelligence-D_Pw-YCG.mjs → homag-intelligence-DmCkEgju.mjs} +15 -6
  17. package/lib/homag-intelligence-DmCkEgju.mjs.map +1 -0
  18. package/lib/{material-viewer-DeLQwvg5.mjs → material-viewer-DlPRNBJK.mjs} +19 -19
  19. package/lib/{material-viewer-DeLQwvg5.mjs.map → material-viewer-DlPRNBJK.mjs.map} +1 -1
  20. package/lib/{packages-DCI_1Sdp.mjs → packages-CRUOFLSm.mjs} +5 -5
  21. package/lib/{packages-DCI_1Sdp.mjs.map → packages-CRUOFLSm.mjs.map} +1 -1
  22. package/lib/planner-DLmepUoo.mjs +44 -0
  23. package/lib/{planner-CQlnhaJ4.mjs.map → planner-DLmepUoo.mjs.map} +1 -1
  24. package/lib/planner-XmE07_OQ.mjs +2 -0
  25. package/lib/{roomle-headless-setup-DbO_rLjK.mjs → roomle-headless-setup-bol8UwP_.mjs} +76 -66
  26. package/lib/roomle-headless-setup-bol8UwP_.mjs.map +1 -0
  27. package/lib/roomle-headless.d.ts +422 -21
  28. package/lib/roomle-headless.js +88 -88
  29. package/lib/roomle-headless.js.map +1 -1
  30. package/lib/{roomle-sdk-CWL55lWB.mjs → roomle-sdk-ORPlJCHx.mjs} +6246 -3101
  31. package/lib/roomle-sdk-ORPlJCHx.mjs.map +1 -0
  32. package/lib/roomle-sdk.d.ts +422 -21
  33. package/lib/roomle-sdk.js +9 -9
  34. package/lib/{roomle-webgpu-renderer-__fKL0NL.mjs → roomle-webgpu-renderer-BQuRMtn8.mjs} +23 -12
  35. package/lib/{roomle-webgpu-renderer-__fKL0NL.mjs.map → roomle-webgpu-renderer-BQuRMtn8.mjs.map} +1 -1
  36. package/lib/{script-loader-C6XVqA2M.mjs → script-loader-CKTdvq5h.mjs} +2 -2
  37. package/lib/{script-loader-C6XVqA2M.mjs.map → script-loader-CKTdvq5h.mjs.map} +1 -1
  38. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  39. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +2 -0
  40. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +5 -0
  41. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +45 -45
  42. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  43. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +46 -46
  44. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  45. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  46. package/lib/{tools-core-Cn7-Y2Tw.mjs → tools-core-DNlMbyR3.mjs} +6 -6
  47. package/lib/{tools-core-Cn7-Y2Tw.mjs.map → tools-core-DNlMbyR3.mjs.map} +1 -1
  48. package/package.json +2 -2
  49. package/lib/api-BESWNKGU.mjs +0 -61
  50. package/lib/api-BESWNKGU.mjs.map +0 -1
  51. package/lib/configurator-DksQO8bz.mjs +0 -2
  52. package/lib/glb-viewer-wn8DMhFv.mjs +0 -2
  53. package/lib/homag-intelligence-D_Pw-YCG.mjs.map +0 -1
  54. package/lib/planner-CQlnhaJ4.mjs +0 -44
  55. package/lib/planner-tkKFy4GN.mjs +0 -2
  56. package/lib/roomle-headless-setup-DbO_rLjK.mjs.map +0 -1
  57. package/lib/roomle-sdk-CWL55lWB.mjs.map +0 -1
@@ -1,20 +1,20 @@
1
- import { a as e, i as t, n, r, t as i } from "./packages-DCI_1Sdp.mjs";
1
+ import { a as e, i as t, n, r, t as i } from "./packages-CRUOFLSm.mjs";
2
2
  import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
3
- import { Tt as s, xt as c } from "./threejs-utils-Dy-rm1a9.mjs";
4
- import { Ti as l, m as u, nt as d } from "./three.core-BTUCraWz.mjs";
5
- import { i as f } from "./decorate-CjaqqbUP.mjs";
6
- import { D as ee, H as p, g as m } from "./common-utils-CNGLvAo_.mjs";
7
- import { A as te, B as ne, F as re, G as ie, H as ae, J as oe, K as se, M as ce, N as le, P as h, S as ue, Y as de, a as fe, b as pe, ct as g, dt as me, ft as he, ht as ge, i as _e, j as ve, k as ye, l as _, lt as v, m as y, o as b, ot as x, q as S, r as C, s as w, st as T, t as E, u as D, ut as O, x as k, y as A, z as j } from "./roomle-sdk-CWL55lWB.mjs";
8
- import { n as M } from "./roomle-renderer-nCUrLU_S.mjs";
9
- import { n as N } from "./script-loader-C6XVqA2M.mjs";
10
- import { t as P } from "./configurator-lYzmK0Qp.mjs";
11
- import { t as be } from "./planner-CQlnhaJ4.mjs";
12
- import { n as xe, t as Se } from "./glb-viewer-VYVfbQN8.mjs";
13
- import { t as Ce } from "./api-BESWNKGU.mjs";
14
- import { t as we } from "./roomle-headless-setup-DbO_rLjK.mjs";
15
- import { createRequire as Te } from "module";
3
+ import { St as s, Tt as c, xt as l } from "./threejs-utils-Dy-rm1a9.mjs";
4
+ import { Ti as u, m as d, nt as f } from "./three.core-BTUCraWz.mjs";
5
+ import { i as p } from "./decorate-CjaqqbUP.mjs";
6
+ import { D as m, H as h, g } from "./common-utils-CNGLvAo_.mjs";
7
+ import { A as ee, B as te, F as ne, H as re, I as ie, J as ae, M as oe, N as se, O as _, P as v, V as ce, W as le, X as ue, Y as de, Z as fe, _t as pe, a as me, b as he, ct as ge, dt as _e, ft as ve, i as y, j as b, k as x, l as S, lt as C, m as w, mt as T, o as E, pt as D, q as O, r as k, s as A, t as j, u as M, ut as N, x as P, y as F } from "./roomle-sdk-ORPlJCHx.mjs";
8
+ import { n as ye } from "./roomle-renderer-nCUrLU_S.mjs";
9
+ import { n as be } from "./script-loader-CKTdvq5h.mjs";
10
+ import { t as xe } from "./configurator-B2Yqt1V5.mjs";
11
+ import { t as Se } from "./planner-DLmepUoo.mjs";
12
+ import { n as Ce, t as we } from "./glb-viewer-BLe8SEWm.mjs";
13
+ import { t as Te } from "./api-56gsJaFH.mjs";
14
+ import { t as Ee } from "./roomle-headless-setup-bol8UwP_.mjs";
15
+ import { createRequire as De } from "module";
16
16
  //#region packages/headless-core/src/headless-tween-stub.ts
17
- var Ee = {
17
+ var Oe = {
18
18
  add(e) {
19
19
  try {
20
20
  e.end?.();
@@ -26,10 +26,10 @@ var Ee = {
26
26
  return [];
27
27
  },
28
28
  update() {}
29
- }, De = () => {
29
+ }, ke = () => {
30
30
  let e = window;
31
- e.TWEEN = Ee;
32
- }, Oe = Te(import.meta.url), F = {}, I = [
31
+ e.TWEEN = Oe;
32
+ }, Ae = De(import.meta.url), I = {}, L = [
33
33
  [
34
34
  "ConfiguratorKernel.wasm",
35
35
  "ConfiguratorKernel",
@@ -45,48 +45,48 @@ var Ee = {
45
45
  "RoomleToolsCore",
46
46
  "roomle-core-hsc/wasm_modern/RoomleToolsCore.js"
47
47
  ]
48
- ], ke = class {
48
+ ], je = class {
49
49
  constructor(e) {
50
50
  this._creator_ = e;
51
51
  }
52
52
  async fetch(e, t) {
53
- if (F[t.id]) return;
53
+ if (I[t.id]) return;
54
54
  if (typeof e == "function") {
55
- this._registerFactory(e), F[t.id] = !0;
55
+ this._registerFactory(e), I[t.id] = !0;
56
56
  return;
57
57
  }
58
58
  let n = this._resolveEntry(e);
59
59
  if (n) {
60
- let [, r, i] = n, a = Oe(e.startsWith("/") ? e : i);
61
- globalThis[r] = a.default || a, F[t.id] = !0;
60
+ let [, r, i] = n, a = Ae(e.startsWith("/") ? e : i);
61
+ globalThis[r] = a.default || a, I[t.id] = !0;
62
62
  }
63
63
  }
64
64
  _registerFactory(e) {
65
65
  let t = e.toString();
66
- for (let [n, r] of I) if (t.includes(n)) {
66
+ for (let [n, r] of L) if (t.includes(n)) {
67
67
  globalThis[r] = e;
68
68
  return;
69
69
  }
70
70
  console.warn("HeadlessScriptLoader: Could not identify Emscripten factory function");
71
71
  }
72
72
  _resolveEntry(e) {
73
- for (let t of I) {
73
+ for (let t of L) {
74
74
  let [n, r] = t, i = r;
75
75
  if (e.includes(i) || e.includes(n)) return t;
76
76
  }
77
- return e.includes("configurator") ? I[0] : e.includes("planner") ? I[1] : e.includes("tools") ? I[2] : (console.warn(`HeadlessScriptLoader: Could not resolve module for URL: ${e}`), null);
77
+ return e.includes("configurator") ? L[0] : e.includes("planner") ? L[1] : e.includes("tools") ? L[2] : (console.warn(`HeadlessScriptLoader: Could not resolve module for URL: ${e}`), null);
78
78
  }
79
79
  loadScripts(e) {
80
80
  let t = e.map((e) => this.fetch(e.name, { id: e.id }));
81
81
  return Promise.all(t);
82
82
  }
83
83
  resolveKernelPaths(e) {
84
- return N(e);
84
+ return be(e);
85
85
  }
86
86
  cleanUp() {
87
- F = {};
87
+ I = {};
88
88
  }
89
- }, L = class {
89
+ }, Me = class {
90
90
  get _lifeCycleManager() {
91
91
  return globalThis.__RML__DI__?.lookup("life-cycle-manager", this._creator_);
92
92
  }
@@ -142,7 +142,7 @@ var Ee = {
142
142
  }
143
143
  setDomElement(e) {}
144
144
  getClientDimensions() {
145
- return new l(this._width, this._height);
145
+ return new u(this._width, this._height);
146
146
  }
147
147
  getAspectRatio() {
148
148
  return this._width / this._height;
@@ -152,7 +152,7 @@ var Ee = {
152
152
  pause() {}
153
153
  resume() {}
154
154
  destroy() {}
155
- }, Ae = class {
155
+ }, Ne = class {
156
156
  constructor(e) {
157
157
  this._creator_ = e;
158
158
  }
@@ -180,15 +180,15 @@ var Ee = {
180
180
  }
181
181
  setAlwaysUseCache(e) {}
182
182
  preFillAssetCache(e, t) {}
183
- }, je = class extends _ {
183
+ }, Pe = class extends S {
184
184
  _getScriptLoaderKernelId(e) {
185
- return e === te.PLANNER ? "kernel-planner" : "kernel";
185
+ return e === x.PLANNER ? "kernel-planner" : "kernel";
186
186
  }
187
187
  useEnvironmentGeometry(e) {
188
188
  if (!this._kernelInstance) throw Error("trying to set useEnvironmentGeometry but there is no kernel instance yet!");
189
189
  this._kernelInstance.useEnvironmentGeometry(e);
190
190
  }
191
- }, Me = class {
191
+ }, Fe = class {
192
192
  wrap(e) {
193
193
  return new Proxy(e, { get(e, t) {
194
194
  let n = e[t];
@@ -201,33 +201,33 @@ var Ee = {
201
201
  } : n;
202
202
  } });
203
203
  }
204
- }, Ne = class extends _e {
204
+ }, Ie = class extends y {
205
205
  async addReflectiveFloor(e) {}
206
206
  }, R = null;
207
- function Pe(e) {
207
+ function Le(e) {
208
208
  R = e;
209
209
  }
210
- var z = null, Fe = 256 * 1024 * 1024, Ie = 1, B = 500, V = 512;
210
+ var z = null, Re = 256 * 1024 * 1024, ze = 1, B = 500, V = 512;
211
211
  function H(e) {
212
- return Math.max(1, Math.floor(Fe * .95 / e));
212
+ return Math.max(1, Math.floor(Re * .95 / e));
213
213
  }
214
- var Le = (e) => {
214
+ var Be = (e) => {
215
215
  z = e;
216
216
  }, U = null, W = {
217
217
  minIntervalMs: B,
218
218
  maxSize: V
219
- }, Re = (e, t) => {
219
+ }, Ve = (e, t) => {
220
220
  U = e, W = {
221
221
  minIntervalMs: t?.minIntervalMs ?? B,
222
222
  maxSize: t?.maxSize ?? V
223
223
  };
224
- }, ze = class {
224
+ }, He = class {
225
225
  constructor() {
226
226
  this._pathTracer = null, this._renderer = null;
227
227
  }
228
228
  async render(e, t, n, r = 10, i = {}) {
229
229
  let a = await this._getPathTracer(e);
230
- i.bounces !== void 0 && (a.bounces = i.bounces), a.renderScale = i.renderScale ?? Ie;
230
+ i.bounces !== void 0 && (a.bounces = i.bounces), a.renderScale = i.renderScale ?? ze;
231
231
  let o = this._applyScenePatches(t), s = {
232
232
  autoClear: e.autoClear,
233
233
  toneMapping: e.toneMapping,
@@ -283,7 +283,7 @@ var Le = (e) => {
283
283
  }
284
284
  _patchInvalidTangents(e, t) {
285
285
  let n = e.attributes.position;
286
- !n || e.attributes.tangent || this._hasInvalidTriangleLayout(e, t) && e.setAttribute("tangent", new u(new Float32Array(n.count * 4), 4));
286
+ !n || e.attributes.tangent || this._hasInvalidTriangleLayout(e, t) && e.setAttribute("tangent", new d(new Float32Array(n.count * 4), 4));
287
287
  }
288
288
  _hasInvalidTriangleLayout(e, t) {
289
289
  let n = e.attributes.position.count, r = e.index?.array, i = r ? r.length : n;
@@ -356,7 +356,7 @@ var Le = (e) => {
356
356
  let { WebGPUPathTracer: t } = await import("./webgpu-zcxAHKs3.mjs"), n = new t(e);
357
357
  return n.useMegakernel(!0), n.dynamicLowRes = !1, n.renderDelay = 0, n.fadeDuration = 0, n.minSamples = 1, this._pathTracer = n, this._renderer = e, n;
358
358
  }
359
- }, Be = class e extends y {
359
+ }, Ue = class e extends w {
360
360
  constructor(...e) {
361
361
  super(...e), this._headlessPathTracerRenderer = null;
362
362
  }
@@ -370,14 +370,14 @@ var Le = (e) => {
370
370
  }
371
371
  async _createRoomleRenderer(e) {
372
372
  if (!e.isWebGPURenderer) return super._createRoomleRenderer(e);
373
- let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-__fKL0NL.mjs");
373
+ let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-BQuRMtn8.mjs");
374
374
  return new t(this._creator_, e, !0, void 0, !1);
375
375
  }
376
376
  static hasExplicitCameraPlacement(e) {
377
377
  return e.cameraPosition !== void 0 || e.cameraPitch !== void 0 || e.cameraYaw !== void 0;
378
378
  }
379
379
  static placeCameraExplicitly(e, t) {
380
- e.near = .01, e.far = 1e3, t.cameraPosition && e.position.set(t.cameraPosition.x, t.cameraPosition.y, t.cameraPosition.z), (t.cameraPitch !== void 0 || t.cameraYaw !== void 0) && e.quaternion.setFromEuler(new d(-(t.cameraPitch ?? 0), t.cameraYaw ?? 0, 0, "ZYX")), e.updateProjectionMatrix();
380
+ e.near = .01, e.far = 1e3, t.cameraPosition && e.position.set(t.cameraPosition.x, t.cameraPosition.y, t.cameraPosition.z), (t.cameraPitch !== void 0 || t.cameraYaw !== void 0) && e.quaternion.setFromEuler(new f(-(t.cameraPitch ?? 0), t.cameraYaw ?? 0, 0, "ZYX")), e.updateProjectionMatrix();
381
381
  }
382
382
  _getRenderSize(e) {
383
383
  let { width: t, height: n } = super._getRenderSize(e);
@@ -398,33 +398,33 @@ var Le = (e) => {
398
398
  }) } : super._renderFrame(e, t, n, r);
399
399
  }
400
400
  async _renderPathTracedFrame(e, t, n, r) {
401
- let i = e instanceof M ? e.renderer : e;
401
+ let i = e instanceof ye ? e.renderer : e;
402
402
  if (!i.isWebGPURenderer) throw Error("HeadlessImageRenderer: path tracing requires the WebGPU renderer (enable webGpu)");
403
- this._headlessPathTracerRenderer ||= new ze(), await this._headlessPathTracerRenderer.render(i, t, n, r.samples, r.settings);
403
+ this._headlessPathTracerRenderer ||= new He(), await this._headlessPathTracerRenderer.render(i, t, n, r.samples, r.settings);
404
404
  let { imageDataUrl: a } = await this._readFrameAndClear(i);
405
405
  return a;
406
406
  }
407
- async _readFrameAndClear(e, t) {
408
- let n = this._getWebGpuMockContext(e);
409
- if (!n) return super._readFrameAndClear(e, t);
410
- let r = !!t?.preferRawPixels && !t?.showDimensions, i = r ? await this._readScaledRawPixels(e, n, t?.rawPixelsScale) : null;
411
- if (i) return e.clear(), {
407
+ async _readFrameAndClear(e, t, n, r) {
408
+ let i = this._getWebGpuMockContext(e);
409
+ if (!i) return super._readFrameAndClear(e, t, n, r);
410
+ let a = !!t?.preferRawPixels && !t?.showDimensions, o = a ? await this._readScaledRawPixels(e, i, t?.rawPixelsScale) : null;
411
+ if (o) return e.clear(), {
412
412
  imageDataUrl: "",
413
- pixels: i
413
+ pixels: o
414
414
  };
415
- let a = await n.flushReadback();
416
- if (r && a) {
415
+ let s = await i.flushReadback();
416
+ if (a && s) {
417
417
  let { width: t, height: n } = e.domElement;
418
418
  return e.clear(), {
419
419
  imageDataUrl: "",
420
420
  pixels: {
421
- data: a,
421
+ data: s,
422
422
  width: t,
423
423
  height: n
424
424
  }
425
425
  };
426
426
  }
427
- return super._readFrameAndClear(e, t);
427
+ return super._readFrameAndClear(e, t, n, r);
428
428
  }
429
429
  _getWebGpuMockContext(e) {
430
430
  return e.isWebGPURenderer ? e.domElement?.getContext?.("webgpu") ?? null : null;
@@ -434,7 +434,7 @@ var Le = (e) => {
434
434
  let { width: r, height: i } = e.domElement;
435
435
  return t.readbackScaled(Math.max(1, Math.round(r * n)), Math.max(1, Math.round(i * n)));
436
436
  }
437
- }, G = class extends fe {
437
+ }, G = class extends me {
438
438
  constructor(...e) {
439
439
  super(...e), this._callbacks = /* @__PURE__ */ new Set(), this._dispatcherInstalled = !1;
440
440
  }
@@ -444,30 +444,30 @@ var Le = (e) => {
444
444
  }), !0);
445
445
  }
446
446
  static async loadEquirectTexture(e) {
447
- let t = await (e.toLowerCase().endsWith(".exr") ? new w() : new b()).loadAsync(e);
447
+ let t = await (e.toLowerCase().endsWith(".exr") ? new A() : new E()).loadAsync(e);
448
448
  return t.mapping = 303, t;
449
449
  }
450
- }, Ve = (e, t) => {
451
- let n = new x();
450
+ }, We = (e, t) => {
451
+ let n = new ge();
452
452
  globalThis.__RML__DI__ = n;
453
- class r extends L {
453
+ class r extends Me {
454
454
  constructor(n) {
455
455
  super(n, e, t);
456
456
  }
457
457
  }
458
458
  let i = [
459
- new g("script-loader", ke, T.CONTEXT, !0),
460
- new g("dom-helper", r, T.CONTEXT, !0),
461
- new g("data-syncer", Ae, T.GLOBAL, !0),
462
- new g("planner-kernel-access", je, T.GLOBAL, !0),
463
- new g("kernel-callback-guard", Me, T.GLOBAL, !0),
464
- new g("web-gpu-ground-shadow-reflection", Ne, T.CONTEXT, !0),
465
- new g("image-renderer", Be, T.CONTEXT, !0),
466
- new g("hdr-environment-loader", G, T.GLOBAL, !0)
459
+ new N("script-loader", je, C.CONTEXT, !0),
460
+ new N("dom-helper", r, C.CONTEXT, !0),
461
+ new N("data-syncer", Ne, C.GLOBAL, !0),
462
+ new N("planner-kernel-access", Pe, C.GLOBAL, !0),
463
+ new N("kernel-callback-guard", Fe, C.GLOBAL, !0),
464
+ new N("web-gpu-ground-shadow-reflection", Ie, C.CONTEXT, !0),
465
+ new N("image-renderer", Ue, C.CONTEXT, !0),
466
+ new N("hdr-environment-loader", G, C.GLOBAL, !0)
467
467
  ];
468
- return n.addDependencyInjectionAssignments(C), n.addDependencyInjectionAssignments(i), n;
469
- }, K = 12e4, He = async (e, t) => {
470
- let n = await E.callbacks, r = n?.onReadyForRender, i = n ? new Promise((e) => {
468
+ return n.addDependencyInjectionAssignments(k), n.addDependencyInjectionAssignments(i), n;
469
+ }, K = 12e4, Ge = async (e, t) => {
470
+ let n = await j.callbacks, r = n?.onReadyForRender, i = n ? new Promise((e) => {
471
471
  n.onReadyForRender = () => {
472
472
  try {
473
473
  r?.();
@@ -476,7 +476,7 @@ var Le = (e) => {
476
476
  }
477
477
  };
478
478
  }) : Promise.resolve(), a = e.getSceneManager().whenRenderLoopFunctionApplied();
479
- await t(e), await Promise.all([p(i, "HeadlessRoomleSdk: onReadyForRender never fired, the scene never finished loading its assets", K), p(a, "HeadlessRoomleSdk: the plan was never added to the scene, the render loop never ran the scheduled scene-graph mutation", K)]);
479
+ await t(e), await Promise.all([h(i, "HeadlessRoomleSdk: onReadyForRender never fired, the scene never finished loading its assets", K), h(a, "HeadlessRoomleSdk: the plan was never added to the scene, the render loop never ran the scheduled scene-graph mutation", K)]);
480
480
  }, q = (e) => {
481
481
  let t = e.ssaa ?? (e.pathTracer ? 1 : 2), n = e.width ?? e.size ?? 1024, r = e.height ?? e.size ?? 1024;
482
482
  return {
@@ -486,7 +486,7 @@ var Le = (e) => {
486
486
  renderWidth: n * t,
487
487
  renderHeight: r * t
488
488
  };
489
- }, J = async (e, t, n, r) => e.pixels ? X(e.pixels, t, n) : r > 1 ? Z(e.image, t, n) : e.image, Ue = async (e, t) => {
489
+ }, J = async (e, t, n, r) => e.pixels ? X(e.pixels, t, n) : r > 1 ? Z(e.image, t, n) : e.image, Ke = async (e, t) => {
490
490
  if (e.pixels) {
491
491
  let n = e.pixels.width < e.width, r = n ? e.pixels.width : Math.round(e.pixels.width / t), i = n ? e.pixels.height : Math.round(e.pixels.height / t);
492
492
  return {
@@ -520,10 +520,10 @@ var Le = (e) => {
520
520
  }, Z = async (e, t, n) => {
521
521
  let { createCanvas: r, loadImage: i } = await import("@napi-rs/canvas"), a = await i(Buffer.from(e.replace(/^data:image\/\w+;base64,/, ""), "base64")), o = r(t, n), s = o.getContext("2d");
522
522
  return s.imageSmoothingEnabled = !0, s.imageSmoothingQuality = "high", s.drawImage(a, 0, 0, t, n), o.toDataURLAsync("image/png");
523
- }, We = 1024, Ge = 768, Ke = "inline-plan-xml#", qe = "inline-configuration#", Q = (e, t) => e && !t, Je = class e {
523
+ }, qe = 1024, Je = 768, Ye = "inline-plan-xml#", Xe = "inline-configuration#", Q = (e, t) => e && !t, Ze = class e {
524
524
  static async create(t) {
525
525
  let n = new e(t);
526
- return await E.setGlobalInitData({
526
+ return await j.setGlobalInitData({
527
527
  configuratorId: t.configuratorId,
528
528
  locale: t.locale,
529
529
  tenant: t.tenant,
@@ -539,7 +539,7 @@ var Le = (e) => {
539
539
  autoQualityMinFps: 0,
540
540
  autoQualityMaxFps: 2 ** 53 - 1,
541
541
  ...e.webGpuConfig
542
- }, De(), this._container = Ve(e.width ?? We, e.height ?? Ge);
542
+ }, ke(), this._container = We(e.width ?? qe, e.height ?? Je);
543
543
  }
544
544
  getHeadlessConfigurator() {
545
545
  return this._getConfigurator();
@@ -553,7 +553,7 @@ var Le = (e) => {
553
553
  async _bootPlanner() {
554
554
  let { width: e, height: t, ...n } = this._initData;
555
555
  if (n.moc === !1) throw Error("HeadlessRoomleSdk: planner requires moc:true");
556
- let r = await E.getPlanner({
556
+ let r = await j.getPlanner({
557
557
  ...n,
558
558
  moc: !0,
559
559
  webGpu: !0,
@@ -572,7 +572,7 @@ var Le = (e) => {
572
572
  return this._loadIntoPlanner(e, (t) => t.createPlanFromObject(e));
573
573
  }
574
574
  async loadConfigurationString(e) {
575
- let t = qe + await f(e);
575
+ let t = Xe + await p(e);
576
576
  return this._loadIntoPlanner(t, (t) => t.createPlanFromConfigurationString(e));
577
577
  }
578
578
  async loadConfigurableItemById(e) {
@@ -589,7 +589,7 @@ var Le = (e) => {
589
589
  return this._loadIntoPlanner(e, (t) => t.loadPlan(e), !0);
590
590
  }
591
591
  async loadPlanXml(e) {
592
- let t = Ke + await f(e);
592
+ let t = Ye + await p(e);
593
593
  return this._loadIntoPlanner(t, (t) => t.loadPlanXml(e), !0);
594
594
  }
595
595
  _loadIntoPlanner(e, t, n = !1) {
@@ -597,10 +597,10 @@ var Le = (e) => {
597
597
  }
598
598
  async _load(e, t, n, r) {
599
599
  let i = await this._getPlanner();
600
- if (i.getConfiguratorContext().baseContext = ae.PLANNER, this._loadedScene?.identity === e) return;
600
+ if (i.getConfiguratorContext().baseContext = le.PLANNER, this._loadedScene?.identity === e) return;
601
601
  this._loadedScene = null;
602
602
  let a = Q(r, n);
603
- this._useEnvironmentGeometry(a), await He(i, t), this._loadedScene = {
603
+ this._useEnvironmentGeometry(a), await Ge(i, t), this._loadedScene = {
604
604
  identity: e,
605
605
  isPlan: n,
606
606
  environmentGeometry: a,
@@ -713,7 +713,7 @@ var Le = (e) => {
713
713
  showDimensions: t.showDimensions ?? !1,
714
714
  preferRawPixels: !0,
715
715
  rawPixelsScale: 1 / r
716
- }, a = await Ue(await n.planner.prepareTopImage(i), r);
716
+ }, a = await Ke(await n.planner.prepareTopImage(i), r);
717
717
  return await Y(a.dataUrl, e), a;
718
718
  });
719
719
  }
@@ -726,10 +726,10 @@ var Le = (e) => {
726
726
  async destroy() {
727
727
  this._plannerMainPromise && (await this._plannerMainPromise.catch(() => null))?.destroy();
728
728
  }
729
- }, $ = () => globalThis.__RML__DI__?.lookup("model-export-state"), Ye = (e) => {
729
+ }, $ = () => globalThis.__RML__DI__?.lookup("model-export-state"), Qe = (e) => {
730
730
  $()?.setModelExportOngoing(e);
731
- }, Xe = () => $()?.isModelExportOngoing() ?? !1;
731
+ }, $e = () => $()?.isModelExportOngoing() ?? !1;
732
732
  //#endregion
733
- export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, P as Configurator, ve as FloorPlanElementViewModel, Se as GlbViewer, ne as HI_CONTEXT_ACTION, j as HI_GROUP_OPERATION, Je as HeadlessRoomleSdk, ue as MeasurementLinePlanElementViewModel, A as PLAN_ELEMENT_CHANGE_TYPES, re as PlanElementViewModel, h as PlanObjectViewModel, be as Planner, v as RapiAccess, O as RapiInvalidIdError, me as RapiOfflineError, Ce as RoomDesignerApi, ye as RoomleConfigurator, xe as RoomleGLBViewer, ge as RoomleLightSource, D as RoomlePlanner, E as RoomleSdk, le as StaticPlanObjectViewModel, ce as WallPlanElementViewModel, ie as createExtObj, de as createExtObjId, m as download, he as getCatalogIdFromConfigurationHash, we as getHeadlessWebGpuMaxTextureDimension, se as isExtObjId, S as isExternalObject, pe as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, Xe as isModelExportOngoing, e as isPlanSnapshotId, k as isSafari, ee as md5Hash, oe as removeExtObjIdPrefix, Ye as setModelExportOngoing, Pe as setPathTracerExternalDenoiser, Re as setPathTracerPreviewHook, Le as setPathTracerProgressHook };
733
+ export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, s as CORE_FLOOR_TYPE, c as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, xe as Configurator, se as FloorPlanElementViewModel, we as GlbViewer, re as HI_CONTEXT_ACTION, te as HI_GROUP_OPERATION, ce as HI_TOOL_COMMAND, Ze as HeadlessRoomleSdk, oe as MeasurementLinePlanElementViewModel, F as PLAN_ELEMENT_CHANGE_TYPES, ie as PlanElementViewModel, ne as PlanObjectViewModel, Se as Planner, _e as RapiAccess, ve as RapiInvalidIdError, D as RapiOfflineError, Te as RoomDesignerApi, _ as RoomleConfigurator, Ce as RoomleGLBViewer, pe as RoomleLightSource, M as RoomlePlanner, j as RoomleSdk, v as StaticPlanObjectViewModel, ee as WallPlanElementViewModel, O as createExtObj, fe as createExtObjId, g as download, T as getCatalogIdFromConfigurationHash, Ee as getHeadlessWebGpuMaxTextureDimension, b as isDeletedInvisibleWall, ae as isExtObjId, de as isExternalObject, he as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, $e as isModelExportOngoing, e as isPlanSnapshotId, P as isSafari, m as md5Hash, ue as removeExtObjIdPrefix, Qe as setModelExportOngoing, Le as setPathTracerExternalDenoiser, Ve as setPathTracerPreviewHook, Be as setPathTracerProgressHook };
734
734
 
735
735
  //# sourceMappingURL=roomle-headless.js.map