@roomle/web-sdk 5.2.0 → 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-CJFwkh54.mjs → configurator-B2Yqt1V5.mjs} +18 -18
  11. package/lib/{configurator-CJFwkh54.mjs.map → configurator-B2Yqt1V5.mjs.map} +1 -1
  12. package/lib/configurator-sOl9pxCL.mjs +2 -0
  13. package/lib/{glb-viewer-BSHmO1do.mjs → glb-viewer-BLe8SEWm.mjs} +23 -23
  14. package/lib/{glb-viewer-BSHmO1do.mjs.map → glb-viewer-BLe8SEWm.mjs.map} +1 -1
  15. package/lib/glb-viewer-Y_Md3SYw.mjs +2 -0
  16. package/lib/{homag-intelligence-CNxcr-eA.mjs → homag-intelligence-DmCkEgju.mjs} +15 -6
  17. package/lib/homag-intelligence-DmCkEgju.mjs.map +1 -0
  18. package/lib/{material-viewer-HzxKTFQF.mjs → material-viewer-DlPRNBJK.mjs} +19 -19
  19. package/lib/{material-viewer-HzxKTFQF.mjs.map → material-viewer-DlPRNBJK.mjs.map} +1 -1
  20. package/lib/{packages-BebHC0FC.mjs → packages-CRUOFLSm.mjs} +5 -5
  21. package/lib/{packages-BebHC0FC.mjs.map → packages-CRUOFLSm.mjs.map} +1 -1
  22. package/lib/planner-DLmepUoo.mjs +44 -0
  23. package/lib/{planner-DLRkyi_2.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-Bt3h0SSr.mjs → roomle-sdk-ORPlJCHx.mjs} +6053 -2905
  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-CIboUjm9.mjs → script-loader-CKTdvq5h.mjs} +2 -2
  37. package/lib/{script-loader-CIboUjm9.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-BpUxOTe-.mjs → tools-core-DNlMbyR3.mjs} +6 -6
  47. package/lib/{tools-core-BpUxOTe-.mjs.map → tools-core-DNlMbyR3.mjs.map} +1 -1
  48. package/package.json +2 -2
  49. package/lib/api-DzAvODF3.mjs +0 -61
  50. package/lib/api-DzAvODF3.mjs.map +0 -1
  51. package/lib/configurator-BpxToJbA.mjs +0 -2
  52. package/lib/glb-viewer-45djC72D.mjs +0 -2
  53. package/lib/homag-intelligence-CNxcr-eA.mjs.map +0 -1
  54. package/lib/planner-DLRkyi_2.mjs +0 -44
  55. package/lib/planner-FqhSeWWA.mjs +0 -2
  56. package/lib/roomle-headless-setup-DbO_rLjK.mjs.map +0 -1
  57. package/lib/roomle-sdk-Bt3h0SSr.mjs.map +0 -1
package/lib/roomle-sdk.js CHANGED
@@ -1,10 +1,10 @@
1
- import { a as e, i as t, n, r, t as i } from "./packages-BebHC0FC.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 { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
5
- import { B as d, F as f, G as p, J as m, K as h, M as g, N as _, P as v, S as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-Bt3h0SSr.mjs";
6
- import { t as F } from "./configurator-CJFwkh54.mjs";
7
- import { t as I } from "./planner-DLRkyi_2.mjs";
8
- import { n as L, t as R } from "./glb-viewer-BSHmO1do.mjs";
9
- import { t as z } from "./api-DzAvODF3.mjs";
10
- export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, F as Configurator, T as FloorPlanElementViewModel, R as GlbViewer, d as HI_CONTEXT_ACTION, P as HI_GROUP_OPERATION, y as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, f as PlanElementViewModel, v as PlanObjectViewModel, I as Planner, D as RapiAccess, j as RapiInvalidIdError, S as RapiOfflineError, z as RoomDesignerApi, E as RoomleConfigurator, L as RoomleGLBViewer, w as RoomleLightSource, A as RoomlePlanner, k as RoomleSdk, _ as StaticPlanObjectViewModel, g as WallPlanElementViewModel, p as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, h as isExtObjId, O as isExternalObject, x as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, M as isSafari, l as md5Hash, m as removeExtObjIdPrefix };
3
+ import { St as s, Tt as c, xt as l } from "./threejs-utils-Dy-rm1a9.mjs";
4
+ import { D as u, g as d } from "./common-utils-CNGLvAo_.mjs";
5
+ import { A as f, B as p, F as m, H as h, I as g, J as _, M as v, N as y, O as b, P as x, V as S, X as C, Y as w, Z as T, _t as E, b as D, dt as O, ft as k, j as A, mt as j, pt as M, q as N, t as P, u as F, x as I, y as L } from "./roomle-sdk-ORPlJCHx.mjs";
6
+ import { t as R } from "./configurator-B2Yqt1V5.mjs";
7
+ import { t as z } from "./planner-DLmepUoo.mjs";
8
+ import { n as B, t as V } from "./glb-viewer-BLe8SEWm.mjs";
9
+ import { t as H } from "./api-56gsJaFH.mjs";
10
+ 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, R as Configurator, y as FloorPlanElementViewModel, V as GlbViewer, h as HI_CONTEXT_ACTION, p as HI_GROUP_OPERATION, S as HI_TOOL_COMMAND, v as MeasurementLinePlanElementViewModel, L as PLAN_ELEMENT_CHANGE_TYPES, g as PlanElementViewModel, m as PlanObjectViewModel, z as Planner, O as RapiAccess, k as RapiInvalidIdError, M as RapiOfflineError, H as RoomDesignerApi, b as RoomleConfigurator, B as RoomleGLBViewer, E as RoomleLightSource, F as RoomlePlanner, P as RoomleSdk, x as StaticPlanObjectViewModel, f as WallPlanElementViewModel, N as createExtObj, T as createExtObjId, d as download, j as getCatalogIdFromConfigurationHash, A as isDeletedInvisibleWall, _ as isExtObjId, w as isExternalObject, D as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, I as isSafari, u as md5Hash, C as removeExtObjIdPrefix };
@@ -2863,7 +2863,7 @@ var nr = (e, t, n, r) => new $n(pt(e), ot(t), ot(n), r), rr = class e extends tn
2863
2863
  let m = nr(f, s, l, r).toInspector("SSGI / AO Denoised");
2864
2864
  m.radius = this.aoDenoiseRadius;
2865
2865
  let h = L(Mt(a.rgb.mul(m.r), o.rgb.mul(p.rgb)), a.a);
2866
- return h.name = "Ssgi Composite", i === "ao only" ? L(M(f.r), 1) : i === "gi only" ? L(d.rgb, 1) : i === "denoised ao only" ? L(M(m.r), 1) : i === "denoised gi only" ? L(p.rgb, 1) : i === "direct lighting only" ? a : i === "without denoise" ? L(Mt(a.rgb.mul(f.r), o.rgb.mul(d.rgb)), a.a) : h;
2866
+ return h.name = "Ssgi Composite", i === "ao only" ? L(M(f.r), 1) : i === "gi only" ? L(d.rgb, 1) : i === "denoised ao only" ? L(M(m.r), 1) : i === "denoised gi only" ? L(p.rgb, 1) : i === "without denoise" ? L(Mt(a.rgb.mul(f.r), o.rgb.mul(d.rgb)), a.a) : h;
2867
2867
  }
2868
2868
  }, ir = H(([e, t, n, r]) => {
2869
2869
  let i = r.rgb.add(n.rgb).mul(.5).toConst(), a = r.rgb.sub(n.rgb).mul(.5).add(1e-7).toConst(), o = t.sub(L(i, e.a)).toConst(), s = o.xyz.div(a).toConst().abs().toConst(), c = R(s.x, s.y, s.z).toConst();
@@ -3047,7 +3047,9 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3047
3047
  this.passId = "TraaRenderPass";
3048
3048
  }
3049
3049
  assemble(e, t, n, r, i) {
3050
- return r instanceof D ? _r(t, e.getTextureNode("depth"), e.getTextureNode("velocity"), r) : t;
3050
+ if (!(r instanceof D)) return t;
3051
+ let a = _r(t, e.getTextureNode("depth"), e.getTextureNode("velocity"), r);
3052
+ return i === "velocity" ? a.velocityNode : a;
3051
3053
  }
3052
3054
  addParametersToGUI(e, t) {}
3053
3055
  }, Q = {
@@ -3228,10 +3230,15 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3228
3230
  this.passId = "DebugRenderPass";
3229
3231
  }
3230
3232
  assemble(e, t, n, r, i) {
3231
- return i === "depth" ? L(M(e.getTextureNode("depth").r), 1) : t;
3233
+ return i === "depth" ? L(M(e.getTextureNode("depth").r), 1) : i === "direct lighting only" ? e : t;
3232
3234
  }
3233
3235
  addParametersToGUI(e, t) {}
3234
- }, Or = {
3236
+ }, Or = [
3237
+ rr.passId,
3238
+ nn.passId,
3239
+ Er.passId,
3240
+ vr.passId
3241
+ ], kr = {
3235
3242
  [O.NONE]: 0,
3236
3243
  [O.LINEAR]: 1,
3237
3244
  [O.REINHARD]: 2,
@@ -3239,13 +3246,13 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3239
3246
  [O.ACES_FILMIC]: 4,
3240
3247
  [O.AGX]: 6,
3241
3248
  [O.NEUTRAL]: 7
3242
- }, kr = class extends be {
3249
+ }, Ar = class extends be {
3243
3250
  constructor(e, t, n, r, i = n) {
3244
3251
  super(e, t), this.passNeedsReassembly = !0, this.debugMode = "off", this.renderPasses = /* @__PURE__ */ new Map(), this.guiParameterGroups = /* @__PURE__ */ new Map(), this.lastRenderCamera = void 0, this.qualityManager = new Tr(this.applyQualityParameters.bind(this)), this.freezeFrames = 0, this.freezeRenderTarget = new c(), this.debugRenderPass = new Dr(), this.renderPipeline = new Ne(t), this.applyToneMappingConfig(), this.enableDefaultRenderPasses(n, r, i), this._initData.webGpuConfig.autoDetectQualityLevel ? this.qualityManager.autoDetectInitialQualityLevel().then(() => this.qualityManager.applyCurrentQualityLevel(0)) : this.qualityManager.applyCurrentQualityLevel(0);
3245
3252
  }
3246
3253
  enableDefaultRenderPasses(e, t, n) {
3247
3254
  let r = this._initData.webGpuConfig.fog.enabled, i = this._initData.transparentBackground;
3248
- e && this.enableSsgiPass(n), t && this.enableOutline(t.outlineVisibleEdgeColor, t.outlineHiddenEdgeColor), n && !i && (this.enableTraaPass(), this.freezeFrames = Math.max(this.freezeFrames, 10)), r && !i && this.enableFogPass();
3255
+ e && this.enableSsgiPass(n), t && this.enableOutline(t.outlineVisibleEdgeColor, t.outlineHiddenEdgeColor), i || (n && (this.enableTraaPass(), this.freezeFrames = Math.max(this.freezeFrames, 10)), r && this.enableFogPass());
3249
3256
  }
3250
3257
  async addGroundShadowLightAndFloor(e) {
3251
3258
  await this._webGpuGroundShadowReflection.addToScene(e);
@@ -3295,7 +3302,10 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3295
3302
  normal: kt(ct),
3296
3303
  velocity: He
3297
3304
  }));
3298
- for (let i of this.renderPasses.values()) r = i.assemble(n, r, e, t, this.debugMode);
3305
+ for (let i of Or) {
3306
+ let a = this.renderPasses.get(i);
3307
+ a && (r = a.assemble(n, r, e, t, this.debugMode));
3308
+ }
3299
3309
  return this.debugRenderPass.assemble(n, r, e, t, this.debugMode);
3300
3310
  }
3301
3311
  setCustomOutlineParameters(e) {
@@ -3388,7 +3398,8 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3388
3398
  DenoisedGi: "denoised gi only",
3389
3399
  WithoutDenoise: "without denoise",
3390
3400
  NoFog: "no fog",
3391
- Depth: "depth"
3401
+ Depth: "depth",
3402
+ Velocity: "velocity"
3392
3403
  }).onChange((e) => {
3393
3404
  this.debugMode = e, this.passNeedsReassembly = !0, t();
3394
3405
  }), n.add({ reassembleRenderPasses: () => {
@@ -3397,7 +3408,7 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3397
3408
  }
3398
3409
  applyToneMappingConfig() {
3399
3410
  let { toneMapping: e, toneMappingExposure: t } = this._initData.webGpuConfig;
3400
- this.renderer.toneMapping = Or[e], this.renderer.toneMappingExposure = t;
3411
+ this.renderer.toneMapping = kr[e], this.renderer.toneMappingExposure = t;
3401
3412
  }
3402
3413
  addToneMappingSettings(e, t) {
3403
3414
  let n = e.addFolder("Tone Mapping"), r = {
@@ -3428,8 +3439,8 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3428
3439
  return this.guiParameterGroups.set(t, n), n;
3429
3440
  }
3430
3441
  };
3431
- ye([ve, _e("design:type", Object)], kr.prototype, "_domHelper", void 0), ye([ve, _e("design:type", Object)], kr.prototype, "_webGpuGroundShadowReflection", void 0), ye([ve, _e("design:type", Object)], kr.prototype, "_webGpuSkyContainer", void 0), ye([ve, _e("design:type", Object)], kr.prototype, "_skyStateTracker", void 0), ye([ve, _e("design:type", Object)], kr.prototype, "_initData", void 0);
3442
+ ye([ve, _e("design:type", Object)], Ar.prototype, "_domHelper", void 0), ye([ve, _e("design:type", Object)], Ar.prototype, "_webGpuGroundShadowReflection", void 0), ye([ve, _e("design:type", Object)], Ar.prototype, "_webGpuSkyContainer", void 0), ye([ve, _e("design:type", Object)], Ar.prototype, "_skyStateTracker", void 0), ye([ve, _e("design:type", Object)], Ar.prototype, "_initData", void 0);
3432
3443
  //#endregion
3433
- export { kr as RoomleWebGPURenderer };
3444
+ export { Ar as RoomleWebGPURenderer };
3434
3445
 
3435
- //# sourceMappingURL=roomle-webgpu-renderer-__fKL0NL.mjs.map
3446
+ //# sourceMappingURL=roomle-webgpu-renderer-BQuRMtn8.mjs.map