@roomle/web-sdk 5.1.0 → 5.2.0-alpha.10

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 (64) 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-Woc5NOM1.mjs → api-DzAvODF3.mjs} +13 -10
  5. package/lib/{api-Woc5NOM1.mjs.map → api-DzAvODF3.mjs.map} +1 -1
  6. package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
  7. package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
  8. package/lib/budgeteer.sw.js +1 -1
  9. package/lib/common-utils-CNGLvAo_.mjs.map +1 -1
  10. package/lib/{component-raycast-helper-CaY2UMli.mjs → component-raycast-helper-DmNjzxSD.mjs} +2 -2
  11. package/lib/{component-raycast-helper-CaY2UMli.mjs.map → component-raycast-helper-DmNjzxSD.mjs.map} +1 -1
  12. package/lib/configurator-BpxToJbA.mjs +2 -0
  13. package/lib/{configurator-i-Zl5omd.mjs → configurator-CJFwkh54.mjs} +4 -4
  14. package/lib/{configurator-i-Zl5omd.mjs.map → configurator-CJFwkh54.mjs.map} +1 -1
  15. package/lib/glb-viewer-45djC72D.mjs +2 -0
  16. package/lib/{glb-viewer-C1-vP2Vq.mjs → glb-viewer-BSHmO1do.mjs} +5 -5
  17. package/lib/{glb-viewer-C1-vP2Vq.mjs.map → glb-viewer-BSHmO1do.mjs.map} +1 -1
  18. package/lib/{highlight-coordinator-DKMaPGPo.mjs → highlight-coordinator-DDyo_U8P.mjs} +3 -3
  19. package/lib/{highlight-coordinator-DKMaPGPo.mjs.map → highlight-coordinator-DDyo_U8P.mjs.map} +1 -1
  20. package/lib/{homag-intelligence-Dr0m9LxO.mjs → homag-intelligence-CNxcr-eA.mjs} +7 -4
  21. package/lib/homag-intelligence-CNxcr-eA.mjs.map +1 -0
  22. package/lib/{material-viewer-CHzje_V0.mjs → material-viewer-HzxKTFQF.mjs} +11 -11
  23. package/lib/{material-viewer-CHzje_V0.mjs.map → material-viewer-HzxKTFQF.mjs.map} +1 -1
  24. package/lib/{packages-DbOsSpKq.mjs → packages-BebHC0FC.mjs} +5 -5
  25. package/lib/{packages-DbOsSpKq.mjs.map → packages-BebHC0FC.mjs.map} +1 -1
  26. package/lib/{planner-BOrph7M7.mjs → planner-DLRkyi_2.mjs} +3 -3
  27. package/lib/{planner-BOrph7M7.mjs.map → planner-DLRkyi_2.mjs.map} +1 -1
  28. package/lib/planner-FqhSeWWA.mjs +2 -0
  29. package/lib/roomle-headless.d.ts +269 -31
  30. package/lib/roomle-headless.js +11 -11
  31. package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
  32. package/lib/{roomle-sdk-CN9TqA78.mjs → roomle-sdk-Bt3h0SSr.mjs} +4254 -3668
  33. package/lib/roomle-sdk-Bt3h0SSr.mjs.map +1 -0
  34. package/lib/roomle-sdk.d.ts +269 -31
  35. package/lib/roomle-sdk.js +8 -8
  36. package/lib/{roomle-webgpu-renderer-C26OAfkn.mjs → roomle-webgpu-renderer-__fKL0NL.mjs} +7 -7
  37. package/lib/roomle-webgpu-renderer-__fKL0NL.mjs.map +1 -0
  38. package/lib/{scene-renderer-DGSgD6mp.mjs → scene-renderer-DdVBP89m.mjs} +11 -11
  39. package/lib/{scene-renderer-DGSgD6mp.mjs.map → scene-renderer-DdVBP89m.mjs.map} +1 -1
  40. package/lib/{script-loader-CL3F8sIY.mjs → script-loader-CIboUjm9.mjs} +2 -2
  41. package/lib/{script-loader-CL3F8sIY.mjs.map → script-loader-CIboUjm9.mjs.map} +1 -1
  42. package/lib/static/packages/workers/generated/budgeteer.sw.js +1 -1
  43. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  44. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +23 -4
  45. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
  46. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  47. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  48. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  49. package/lib/{stats-helper-C74q5Bje.mjs → stats-helper-DYmtEOGb.mjs} +2 -2
  50. package/lib/{stats-helper-C74q5Bje.mjs.map → stats-helper-DYmtEOGb.mjs.map} +1 -1
  51. package/lib/{three.module-DUSFrLM6.mjs → three.module-230BZkaT.mjs} +2 -2
  52. package/lib/{three.module-DUSFrLM6.mjs.map → three.module-230BZkaT.mjs.map} +1 -1
  53. package/lib/{threejs-utils-DHTRY4yW.mjs → threejs-utils-Dy-rm1a9.mjs} +66 -64
  54. package/lib/threejs-utils-Dy-rm1a9.mjs.map +1 -0
  55. package/lib/{tools-core-D3kc3jRW.mjs → tools-core-BpUxOTe-.mjs} +3 -3
  56. package/lib/{tools-core-D3kc3jRW.mjs.map → tools-core-BpUxOTe-.mjs.map} +1 -1
  57. package/package.json +2 -2
  58. package/lib/configurator-Bo_pnqDi.mjs +0 -2
  59. package/lib/glb-viewer-CaNU0FLF.mjs +0 -2
  60. package/lib/homag-intelligence-Dr0m9LxO.mjs.map +0 -1
  61. package/lib/planner-DXeyIHUx.mjs +0 -2
  62. package/lib/roomle-sdk-CN9TqA78.mjs.map +0 -1
  63. package/lib/roomle-webgpu-renderer-C26OAfkn.mjs.map +0 -1
  64. package/lib/threejs-utils-DHTRY4yW.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
- import { A as e, _t as t, bt as n, gt as r, ht as i, vt as a, yt as o } from "./threejs-utils-DHTRY4yW.mjs";
1
+ import { A as e, _t as t, gt as n, ht as r, mt as i, vt as a, yt as o } from "./threejs-utils-Dy-rm1a9.mjs";
2
2
  import { Ai as s, Ar as c, Bt as l, Di as u, Dn as d, E as f, Ei as p, Er as m, Gr as h, Ht as g, J as ee, Jt as _, Kn as v, Kr as te, Pr as ne, S as y, Ti as b, V as re, Y as ie, Z as x, _i as S, _n as ae, at as oe, ci as se, cn as C, ct as w, dn as ce, f as le, gi as T, gn as ue, h as de, hn as fe, ht as pe, ii as me, jn as E, kn as he, li as ge, ln as D, mt as _e, pn as ve, st as ye, tn as be, un as O, vn as k, w as A, xn as j, y as xe, yi as Se, z as Ce } from "./three.core-BTUCraWz.mjs";
3
- import { r as we } from "./three.module-DUSFrLM6.mjs";
3
+ import { n as we } from "./three.module-230BZkaT.mjs";
4
4
  import { C as M, D as Te, E as Ee, O as N, S as P, T as De, _ as Oe, a as ke, b as F, d as Ae, f as I, g as L, h as je, i as Me, l as R, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as ze, u as z, v as Be, w as Ve, x as B, y as V } from "./shading-settings-DJ4kY2Cn.mjs";
5
5
  import { n as He, t as H } from "./Pass-DCljS3Z-.mjs";
6
6
  import { n as Ue, r as We, t as Ge } from "./decorate-CjaqqbUP.mjs";
@@ -512,15 +512,15 @@ var U = {
512
512
  let e = this._sharedShadowGroundPlane;
513
513
  return e ||= (this._shadowGroundPlane ??= new W(this.renderTarget.texture, this.parameters), this._shadowGroundPlane), e.parent !== this._groundGroup && this._groundGroup.add(e), e;
514
514
  }
515
- constructor(e, t, n, r) {
516
- super(e), this.limitPlaneSize = !0, this.needsUpdate = !0, this.noNeedOfUpdateCount = 0, this._blurScale = 1, this._shadowScale = 1, this._groundGroup = n, this.shadowMapSize = r.shadowMapSize ?? 2048, this.parameters = this._getDefaultParameters(r), this._groundShadowFar = this.parameters.cameraFar, this._renderer = t, this.renderCacheManager?.registerCache(this, new a((e) => e.isMesh && !et(e) || e.name !== void 0 && ["Ground", "Floor"].includes(e.name))), this.renderTarget = new s(this.shadowMapSize, this.shadowMapSize), this.renderTarget.texture.generateMipmaps = !1, this._renderTargetBlur = new s(this.shadowMapSize, this.shadowMapSize), this._renderTargetBlur.texture.generateMipmaps = !1, this._sharedShadowGroundPlane = r?.sharedShadowGroundPlane, this.shadowGroundPlane.setShadowMap(this.renderTarget.texture), this.shadowGroundPlane.updateMaterial(this.parameters), this._groundContactCamera = new nt(), this._groundGroup.add(this._groundContactCamera), this._depthMaterial = new ce(), this._depthMaterial.userData.fadeoutBias = { value: this.parameters.fadeoutBias }, this._depthMaterial.userData.fadeoutFalloff = { value: this.parameters.fadeoutFalloff }, this._depthMaterial.onBeforeCompile = (e) => {
515
+ constructor(e, n, r, i) {
516
+ super(e), this.limitPlaneSize = !0, this.needsUpdate = !0, this.noNeedOfUpdateCount = 0, this._blurScale = 1, this._shadowScale = 1, this._groundGroup = r, this.shadowMapSize = i.shadowMapSize ?? 2048, this.parameters = this._getDefaultParameters(i), this._groundShadowFar = this.parameters.cameraFar, this._renderer = n, this.renderCacheManager?.registerCache(this, new t((e) => e.isMesh && !et(e) || e.name !== void 0 && ["Ground", "Floor"].includes(e.name))), this.renderTarget = new s(this.shadowMapSize, this.shadowMapSize), this.renderTarget.texture.generateMipmaps = !1, this._renderTargetBlur = new s(this.shadowMapSize, this.shadowMapSize), this._renderTargetBlur.texture.generateMipmaps = !1, this._sharedShadowGroundPlane = i?.sharedShadowGroundPlane, this.shadowGroundPlane.setShadowMap(this.renderTarget.texture), this.shadowGroundPlane.updateMaterial(this.parameters), this._groundContactCamera = new nt(), this._groundGroup.add(this._groundContactCamera), this._depthMaterial = new ce(), this._depthMaterial.userData.fadeoutBias = { value: this.parameters.fadeoutBias }, this._depthMaterial.userData.fadeoutFalloff = { value: this.parameters.fadeoutFalloff }, this._depthMaterial.onBeforeCompile = (e) => {
517
517
  e.uniforms.fadeoutBias = this._depthMaterial.userData.fadeoutBias, e.uniforms.fadeoutFalloff = this._depthMaterial.userData.fadeoutFalloff, e.fragmentShader = `
518
518
  uniform float fadeoutBias;
519
519
  uniform float fadeoutFalloff;
520
520
  ${e.fragmentShader.replace("gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );", W.alphaMap ? "gl_FragColor = vec4(clamp(pow(1.0 + fadeoutBias - fragCoordZ, 1.0/(1.0-fadeoutFalloff)), 0.0, 1.0));" : "gl_FragColor = vec4(vec3(0.0), clamp(pow(1.0 + fadeoutBias - fragCoordZ, 1.0/(1.0-fadeoutFalloff)), 0.0, 1.0));")}
521
521
  `;
522
522
  }, this._depthMaterial.side = 2, this._depthMaterial.depthTest = !0, this._depthMaterial.depthWrite = !0, this._blurPass = new Ae(Be, {
523
- ...r,
523
+ ...i,
524
524
  passRenderer: this.renderPassManager.passRenderer
525
525
  }), this.updatePlaneAndShadowCamera();
526
526
  }
@@ -750,7 +750,7 @@ var U = {
750
750
  this.addToCache(e, { visible: !1 });
751
751
  }
752
752
  addMesh(e) {
753
- e.userData.isFloor ? this.addToCache(e, { visible: this._groundDepthWrite }) : e.visible && (n(e.material, .7) || o(e.material)) && this.addToCache(e, { visible: !1 });
753
+ e.userData.isFloor ? this.addToCache(e, { visible: this._groundDepthWrite }) : e.visible && (o(e.material, .7) || a(e.material)) && this.addToCache(e, { visible: !1 });
754
754
  }
755
755
  addObject(e) {
756
756
  e.name === "dimensioning" && this.addToCache(e, { visible: !1 });
@@ -1197,7 +1197,7 @@ var U = {
1197
1197
  e.isLight && !e.userData.shadowLightSource && this.addToCache(e, { visible: !1 });
1198
1198
  }
1199
1199
  _setMeshMaterialAndVisibility(e) {
1200
- e.userData.isFloor ? this._setMeshShadowFloorMaterial(e) : e.material && e.receiveShadow && !Array.isArray(e.material) && !(e.material.transparent === !0 && e.material.opacity < .9) ? this._setShadowMaterialForOpaqueObject(e) : n(e.material, .9) ? this.addToCache(e, { visible: !1 }) : e.receiveShadow ? this.addToCache(e, {
1200
+ e.userData.isFloor ? this._setMeshShadowFloorMaterial(e) : e.material && e.receiveShadow && !Array.isArray(e.material) && !(e.material.transparent === !0 && e.material.opacity < .9) ? this._setShadowMaterialForOpaqueObject(e) : o(e.material, .9) ? this.addToCache(e, { visible: !1 }) : e.receiveShadow ? this.addToCache(e, {
1201
1201
  castShadow: !1,
1202
1202
  material: this._receiveShadowMaterial
1203
1203
  }) : this.addToCache(e, { visible: !1 });
@@ -1976,7 +1976,7 @@ var U = {
1976
1976
  this._reflectionPassMapIntensityUniform.value = e;
1977
1977
  }
1978
1978
  static addPlugin(t) {
1979
- if (o(t)) return null;
1979
+ if (a(t)) return null;
1980
1980
  if (t.userData.postProcessingMaterialPlugin !== void 0) return t.userData.postProcessingMaterialPlugin instanceof e ? t.userData.postProcessingMaterialPlugin : null;
1981
1981
  let n = new e();
1982
1982
  return t.userData.postProcessingMaterialPlugin = n, t.onBeforeCompile = (e, t) => n._onBeforeCompile(e, t), t.customProgramCacheKey = () => n._customProgramCacheKey(), n;
@@ -2453,8 +2453,8 @@ var Zt = {
2453
2453
  get shadowAndAoGroundPlane() {
2454
2454
  return this._shadowAndAoGroundPlane;
2455
2455
  }
2456
- constructor(e, n, r, s, c) {
2457
- this.debugOutput = "off", this.outputColorSpace = "", this.toneMapping = "", this.linearAoFilter = !0, this.environmentLights = !1, this.enableObjectSelection = !0, this.groundLevel = 0, this.uiInteractionMode = !1, this.width = 0, this.height = 0, this.boundingVolume = new Ne(), this.boundingVolumeSet = !1, this.renderCacheManager = new t(), this.selectedObjects = [], this.groundGroup = new _e(), this._shadingType = ze.DEFAULT, this._qualityLevel = Zt.HIGHEST, this._qualityMap = /* @__PURE__ */ new Map(), this._customShadingParameters = null, this._creator_ = e, this.width = r, this.height = s, this.linearAoFilter = c ?? !0, this.renderer = n, this.renderCacheManager.registerCache("inivisibleGround", new a((e) => e === this.groundGroup)), this.renderCacheManager.registerCache("groundReflection", new a((e) => e === this.groundGroup || e.name === "dimensioning" ? !0 : !!(e instanceof D && o(e.material)))), this.renderCacheManager.registerCache("debug", new a()), this.renderCacheManager.registerCache("floorDepthWrite", new i((e) => e.userData?.isFloor)), this._shadowAndAoGroundPlane = new W(null), this.groundGroup.rotateX(-Math.PI / 2), this._renderPassManager = new Xt(e, this), this.outlineRenderer = new $e(this._renderPassManager, null, {}), this.parameters = {
2456
+ constructor(e, r, o, s, c) {
2457
+ this.debugOutput = "off", this.outputColorSpace = "", this.toneMapping = "", this.linearAoFilter = !0, this.environmentLights = !1, this.enableObjectSelection = !0, this.groundLevel = 0, this.uiInteractionMode = !1, this.width = 0, this.height = 0, this.boundingVolume = new Ne(), this.boundingVolumeSet = !1, this.renderCacheManager = new n(), this.selectedObjects = [], this.groundGroup = new _e(), this._shadingType = ze.DEFAULT, this._qualityLevel = Zt.HIGHEST, this._qualityMap = /* @__PURE__ */ new Map(), this._customShadingParameters = null, this._creator_ = e, this.width = o, this.height = s, this.linearAoFilter = c ?? !0, this.renderer = r, this.renderCacheManager.registerCache("inivisibleGround", new t((e) => e === this.groundGroup)), this.renderCacheManager.registerCache("groundReflection", new t((e) => e === this.groundGroup || e.name === "dimensioning" ? !0 : !!(e instanceof D && a(e.material)))), this.renderCacheManager.registerCache("debug", new t()), this.renderCacheManager.registerCache("floorDepthWrite", new i((e) => e.userData?.isFloor)), this._shadowAndAoGroundPlane = new W(null), this.groundGroup.rotateX(-Math.PI / 2), this._renderPassManager = new Xt(e, this), this.outlineRenderer = new $e(this._renderPassManager, null, {}), this.parameters = {
2458
2458
  gBufferRenderTargetParameters: this.gBufferRenderPass.parameters,
2459
2459
  bakedGroundContactShadowParameters: this.bakedGroundContactShadowPass.parameters,
2460
2460
  screenSpaceShadowMapParameters: this.screenSpaceShadowMapPass.parameters,
@@ -2587,4 +2587,4 @@ Ge([We, Ue("design:type", Object)], Qt.prototype, "_initData", void 0);
2587
2587
  //#endregion
2588
2588
  export { ft as a, Ke as c, Nt as i, Qt as n, J as o, Q as r, U as s, Zt as t };
2589
2589
 
2590
- //# sourceMappingURL=scene-renderer-DGSgD6mp.mjs.map
2590
+ //# sourceMappingURL=scene-renderer-DdVBP89m.mjs.map