@roomle/web-sdk 5.2.0-alpha.3 → 5.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 (54) 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-CscVM_rq.mjs → api-DZUlAWo5.mjs} +2 -2
  5. package/lib/{api-CscVM_rq.mjs.map → api-DZUlAWo5.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/{component-raycast-helper-BKwofixp.mjs → component-raycast-helper-DmNjzxSD.mjs} +2 -2
  9. package/lib/{component-raycast-helper-BKwofixp.mjs.map → component-raycast-helper-DmNjzxSD.mjs.map} +1 -1
  10. package/lib/configurator-B02bUwN0.mjs +2 -0
  11. package/lib/{configurator-YwPnRLWl.mjs → configurator-BmDN5YBW.mjs} +4 -4
  12. package/lib/{configurator-YwPnRLWl.mjs.map → configurator-BmDN5YBW.mjs.map} +1 -1
  13. package/lib/{glb-viewer-Bt2icXD1.mjs → glb-viewer-B1zv_-Xu.mjs} +5 -5
  14. package/lib/{glb-viewer-Bt2icXD1.mjs.map → glb-viewer-B1zv_-Xu.mjs.map} +1 -1
  15. package/lib/glb-viewer-ch_Vh93P.mjs +2 -0
  16. package/lib/{highlight-coordinator-DiTRPUXt.mjs → highlight-coordinator-DDyo_U8P.mjs} +3 -3
  17. package/lib/{highlight-coordinator-DiTRPUXt.mjs.map → highlight-coordinator-DDyo_U8P.mjs.map} +1 -1
  18. package/lib/{homag-intelligence-CD4uruxc.mjs → homag-intelligence-BesU6hk_.mjs} +3 -3
  19. package/lib/{homag-intelligence-CD4uruxc.mjs.map → homag-intelligence-BesU6hk_.mjs.map} +1 -1
  20. package/lib/{material-viewer-C0GInjTh.mjs → material-viewer-irdXxk65.mjs} +11 -11
  21. package/lib/{material-viewer-C0GInjTh.mjs.map → material-viewer-irdXxk65.mjs.map} +1 -1
  22. package/lib/{packages-Dh9Oa8sN.mjs → packages-BlWO8LDP.mjs} +5 -5
  23. package/lib/{packages-Dh9Oa8sN.mjs.map → packages-BlWO8LDP.mjs.map} +1 -1
  24. package/lib/planner-BFYRuePx.mjs +2 -0
  25. package/lib/{planner-DG6mOKiO.mjs → planner-DlX-zG-W.mjs} +3 -3
  26. package/lib/{planner-DG6mOKiO.mjs.map → planner-DlX-zG-W.mjs.map} +1 -1
  27. package/lib/roomle-headless.d.ts +1 -1
  28. package/lib/roomle-headless.js +8 -8
  29. package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
  30. package/lib/{roomle-sdk-C2u_Xayh.mjs → roomle-sdk-DSz_yeeB.mjs} +3844 -3831
  31. package/lib/roomle-sdk-DSz_yeeB.mjs.map +1 -0
  32. package/lib/roomle-sdk.d.ts +1 -1
  33. package/lib/roomle-sdk.js +7 -7
  34. package/lib/{scene-renderer-NOgMV9KH.mjs → scene-renderer-DdVBP89m.mjs} +11 -11
  35. package/lib/{scene-renderer-NOgMV9KH.mjs.map → scene-renderer-DdVBP89m.mjs.map} +1 -1
  36. package/lib/{script-loader-DZWHyVXo.mjs → script-loader-LEqgfdLa.mjs} +2 -2
  37. package/lib/{script-loader-DZWHyVXo.mjs.map → script-loader-LEqgfdLa.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/wasm_modern/ConfiguratorKernel.wasm +0 -0
  40. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  41. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  42. package/lib/{stats-helper-BKeEnvFU.mjs → stats-helper-DYmtEOGb.mjs} +2 -2
  43. package/lib/{stats-helper-BKeEnvFU.mjs.map → stats-helper-DYmtEOGb.mjs.map} +1 -1
  44. package/lib/{three.module-DUSFrLM6.mjs → three.module-230BZkaT.mjs} +2 -2
  45. package/lib/{three.module-DUSFrLM6.mjs.map → three.module-230BZkaT.mjs.map} +1 -1
  46. package/lib/{threejs-utils-CX2ILaES.mjs → threejs-utils-Dy-rm1a9.mjs} +3 -5
  47. package/lib/{threejs-utils-CX2ILaES.mjs.map → threejs-utils-Dy-rm1a9.mjs.map} +1 -1
  48. package/lib/{tools-core-id_2qN_Y.mjs → tools-core-BFul1GmX.mjs} +3 -3
  49. package/lib/{tools-core-id_2qN_Y.mjs.map → tools-core-BFul1GmX.mjs.map} +1 -1
  50. package/package.json +2 -2
  51. package/lib/configurator-vYvoZwvB.mjs +0 -2
  52. package/lib/glb-viewer-BQNztKtl.mjs +0 -2
  53. package/lib/planner-tlobeRpn.mjs +0 -2
  54. package/lib/roomle-sdk-C2u_Xayh.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { Ei as e, Hr as t, Pr as n, Rn as r, Wr as i, _n as a, cn as o, dt as s, f as c, li as l, ln as u, un as d, vn as f, w as p } from "./three.core-BTUCraWz.mjs";
2
- import { r as m } from "./three.module-DUSFrLM6.mjs";
2
+ import { n as m } from "./three.module-230BZkaT.mjs";
3
3
  import { a as h } from "./kernel-utils-BwJOfYWh.mjs";
4
4
  import { W as g, b as _ } from "./common-utils-CNGLvAo_.mjs";
5
5
  //#region packages/typings/planner.ts
@@ -941,10 +941,8 @@ var Ee = .4, De = "#DDDDDD", Oe = .4, ke = "#7B7B7B", Ae = "#B1B1B1", je = "came
941
941
  r.setFromProjectionMatrix(i);
942
942
  let a = n.getCenter(new e());
943
943
  return r.containsPoint(a);
944
- }, Ct = (e) => {
945
- e.lights_fragment_begin = "\n vec3 geometryPosition = - vViewPosition;\n vec3 geometryNormal = normal;\n vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n vec3 geometryClearcoatNormal = vec3( 0.0 );\n #ifdef USE_CLEARCOAT\n geometryClearcoatNormal = clearcoatNormal;\n #endif\n\n // OPTIMIZATION: Early exit for transparent/invisible materials\n #ifdef USE_ALPHATEST\n if ( diffuseColor.a < alphaTest ) discard;\n #endif\n\n // OPTIMIZATION: Cache expensive calculations\n float NdotV = saturate( dot( geometryNormal, geometryViewDir ) );\n\n #ifdef USE_IRIDESCENCE\n float dotNVi = NdotV; // Reuse calculated value\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n // OPTIMIZATION: Skip iridescence calculations if effect is minimal\n if ( material.iridescence > 0.01 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n #endif\n\n IncidentLight directLight;\n\n // OPTIMIZATION: Early exit if material has no metalness or roughness variation\n #ifdef USE_ROUGHNESSMAP\n bool hasRoughnessVariation = true;\n #else\n bool hasRoughnessVariation = false;\n #endif\n\n #ifdef USE_METALNESSMAP\n bool hasMetalnessVariation = true;\n #else\n bool hasMetalnessVariation = false;\n #endif\n\n #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometryPosition, directLight );\n\n // OPTIMIZATION: Enhanced visibility and distance checks\n #if defined( RE_Direct )\n if ( directLight.visible ) {\n // OPTIMIZATION: Skip lights with negligible contribution based on color intensity\n float lightIntensity = dot( directLight.color, vec3( 0.299, 0.587, 0.114 ) );\n if ( lightIntensity > 0.001 ) {\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n }\n #endif\n }\n #pragma unroll_loop_end\n #endif\n\n #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n vec4 spotColor;\n vec3 spotLightCoord;\n bool inSpotLightMap;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometryPosition, directLight );\n\n // OPTIMIZATION: Enhanced visibility checks for spot lights\n #if defined( RE_Direct )\n if ( directLight.visible ) {\n // OPTIMIZATION: Skip spot light map calculation if light contribution is minimal\n float lightIntensity = dot( directLight.color, vec3( 0.299, 0.587, 0.114 ) );\n if ( lightIntensity > 0.001 ) {\n #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n #else\n #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #endif\n #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n if ( inSpotLightMap ) {\n spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n directLight.color = directLight.color * spotColor.rgb;\n }\n #endif\n #undef SPOT_LIGHT_MAP_INDEX\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n }\n #endif\n }\n #pragma unroll_loop_end\n #endif\n\n #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, directLight );\n\n // OPTIMIZATION: Skip very dim directional lights\n #if defined( RE_Direct )\n float lightIntensity = dot( directLight.color, vec3( 0.299, 0.587, 0.114 ) );\n if ( directLight.visible && lightIntensity > 0.001 ) {\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #endif\n }\n #pragma unroll_loop_end\n #endif\n\n #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n // OPTIMIZATION: Simple rect area light processing - Three.js handles distance internally\n RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n #endif\n\n // OPTIMIZATION: Streamlined indirect lighting with early exits\n #if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\n // OPTIMIZATION: Skip light probe calculation if ambient is sufficient\n float ambientIntensity = dot( irradiance, vec3( 0.299, 0.587, 0.114 ) );\n\n #if defined( USE_LIGHT_PROBES )\n if ( ambientIntensity < 0.9 ) {\n irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n }\n #endif\n\n #if ( NUM_HEMI_LIGHTS > 0 )\n if ( ambientIntensity < 0.9 ) {\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n vec3 hemiContribution = getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n // OPTIMIZATION: Skip negligible hemisphere light contributions\n if ( dot( hemiContribution, vec3( 0.299, 0.587, 0.114 ) ) > 0.001 ) {\n irradiance += hemiContribution;\n }\n }\n #pragma unroll_loop_end\n }\n #endif\n #endif\n\n #if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n #endif", e.lights_pars_begin = e.lights_pars_begin.replace("light.color = pointLight.color;", "\n light.color = pointLight.color * step( lightDistance, pointLight.distance );\n ");
946
944
  };
947
945
  //#endregion
948
- export { D as $, Fe as A, ae as At, Be as B, ut as C, se as Ct, mt as D, re as Dt, vt as E, y as Et, et as F, F as G, Ue as H, St as I, yt as J, W as K, gt as L, Re as M, ne as Mt, $e as N, v as Nt, Je as O, te as Ot, ht as P, ft as Q, _t as R, st as S, le as St, dt as T, ce as Tt, Ve as U, Ct as V, He as W, ot as X, bt as Y, pt as Z, lt as _, fe as _t, Oe as a, Se as at, q as b, b as bt, Ee as c, ye as ct, Ze as d, ge as dt, Te as et, nt as f, be as ft, We as g, he as gt, xt as h, me as ht, Pe as i, Ce as it, Ie as j, ee as jt, Le as k, oe as kt, De as l, ve as lt, Q as m, S as mt, Me as n, E as nt, ke as o, T as ot, ct as p, C as pt, tt as q, Ne as r, we as rt, Ae as s, xe as st, je as t, M as tt, z as u, _e as ut, J as v, pe as vt, at as w, ie as wt, K as x, ue as xt, Y as y, x as yt, ze as z };
946
+ export { Te as $, Fe as A, ee as At, Be as B, ut as C, ie as Ct, mt as D, te as Dt, vt as E, re as Et, et as F, W as G, Ve as H, St as I, bt as J, tt as K, gt as L, Re as M, v as Mt, $e as N, Je as O, oe as Ot, ht as P, D as Q, _t as R, st as S, se as St, dt as T, y as Tt, He as U, Ue as V, F as W, pt as X, ot as Y, ft as Z, lt as _, pe as _t, Oe as a, T as at, q as b, ue as bt, Ee as c, ve as ct, Ze as d, be as dt, M as et, nt as f, C as ft, We as g, fe as gt, xt as h, he as ht, Pe as i, Se as it, Ie as j, ne as jt, Le as k, ae as kt, De as l, _e as lt, Q as m, me as mt, Me as n, we as nt, ke as o, xe as ot, ct as p, S as pt, yt as q, Ne as r, Ce as rt, Ae as s, ye as st, je as t, E as tt, z as u, ge as ut, J as v, x as vt, at as w, ce as wt, K as x, le as xt, Y as y, b as yt, ze as z };
949
947
 
950
- //# sourceMappingURL=threejs-utils-CX2ILaES.mjs.map
948
+ //# sourceMappingURL=threejs-utils-Dy-rm1a9.mjs.map