@roomle/web-sdk 5.2.0-alpha.3 → 5.2.0-alpha.4
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.
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-CscVM_rq.mjs → api-DZUlAWo5.mjs} +2 -2
- package/lib/{api-CscVM_rq.mjs.map → api-DZUlAWo5.mjs.map} +1 -1
- package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
- package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
- package/lib/{component-raycast-helper-BKwofixp.mjs → component-raycast-helper-DmNjzxSD.mjs} +2 -2
- package/lib/{component-raycast-helper-BKwofixp.mjs.map → component-raycast-helper-DmNjzxSD.mjs.map} +1 -1
- package/lib/configurator-B02bUwN0.mjs +2 -0
- package/lib/{configurator-YwPnRLWl.mjs → configurator-BmDN5YBW.mjs} +4 -4
- package/lib/{configurator-YwPnRLWl.mjs.map → configurator-BmDN5YBW.mjs.map} +1 -1
- package/lib/{glb-viewer-Bt2icXD1.mjs → glb-viewer-B1zv_-Xu.mjs} +5 -5
- package/lib/{glb-viewer-Bt2icXD1.mjs.map → glb-viewer-B1zv_-Xu.mjs.map} +1 -1
- package/lib/glb-viewer-ch_Vh93P.mjs +2 -0
- package/lib/{highlight-coordinator-DiTRPUXt.mjs → highlight-coordinator-DDyo_U8P.mjs} +3 -3
- package/lib/{highlight-coordinator-DiTRPUXt.mjs.map → highlight-coordinator-DDyo_U8P.mjs.map} +1 -1
- package/lib/{homag-intelligence-CD4uruxc.mjs → homag-intelligence-BesU6hk_.mjs} +3 -3
- package/lib/{homag-intelligence-CD4uruxc.mjs.map → homag-intelligence-BesU6hk_.mjs.map} +1 -1
- package/lib/{material-viewer-C0GInjTh.mjs → material-viewer-irdXxk65.mjs} +11 -11
- package/lib/{material-viewer-C0GInjTh.mjs.map → material-viewer-irdXxk65.mjs.map} +1 -1
- package/lib/{packages-Dh9Oa8sN.mjs → packages-BlWO8LDP.mjs} +5 -5
- package/lib/{packages-Dh9Oa8sN.mjs.map → packages-BlWO8LDP.mjs.map} +1 -1
- package/lib/planner-BFYRuePx.mjs +2 -0
- package/lib/{planner-DG6mOKiO.mjs → planner-DlX-zG-W.mjs} +3 -3
- package/lib/{planner-DG6mOKiO.mjs.map → planner-DlX-zG-W.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +1 -1
- package/lib/roomle-headless.js +8 -8
- package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
- package/lib/{roomle-sdk-C2u_Xayh.mjs → roomle-sdk-DSz_yeeB.mjs} +3844 -3831
- package/lib/roomle-sdk-DSz_yeeB.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +1 -1
- package/lib/roomle-sdk.js +7 -7
- package/lib/{scene-renderer-NOgMV9KH.mjs → scene-renderer-DdVBP89m.mjs} +11 -11
- package/lib/{scene-renderer-NOgMV9KH.mjs.map → scene-renderer-DdVBP89m.mjs.map} +1 -1
- package/lib/{script-loader-DZWHyVXo.mjs → script-loader-LEqgfdLa.mjs} +2 -2
- package/lib/{script-loader-DZWHyVXo.mjs.map → script-loader-LEqgfdLa.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-BKeEnvFU.mjs → stats-helper-DYmtEOGb.mjs} +2 -2
- package/lib/{stats-helper-BKeEnvFU.mjs.map → stats-helper-DYmtEOGb.mjs.map} +1 -1
- package/lib/{three.module-DUSFrLM6.mjs → three.module-230BZkaT.mjs} +2 -2
- package/lib/{three.module-DUSFrLM6.mjs.map → three.module-230BZkaT.mjs.map} +1 -1
- package/lib/{threejs-utils-CX2ILaES.mjs → threejs-utils-Dy-rm1a9.mjs} +3 -5
- package/lib/{threejs-utils-CX2ILaES.mjs.map → threejs-utils-Dy-rm1a9.mjs.map} +1 -1
- package/lib/{tools-core-id_2qN_Y.mjs → tools-core-BFul1GmX.mjs} +3 -3
- package/lib/{tools-core-id_2qN_Y.mjs.map → tools-core-BFul1GmX.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-vYvoZwvB.mjs +0 -2
- package/lib/glb-viewer-BQNztKtl.mjs +0 -2
- package/lib/planner-tlobeRpn.mjs +0 -2
- package/lib/roomle-sdk-C2u_Xayh.mjs.map +0 -1
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -4243,7 +4243,7 @@ export declare interface GlobalInitDataDefinition {
|
|
|
4243
4243
|
*/
|
|
4244
4244
|
configuratorId?: string;
|
|
4245
4245
|
/**
|
|
4246
|
-
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/
|
|
4246
|
+
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/v2
|
|
4247
4247
|
*/
|
|
4248
4248
|
customApiUrl?: string;
|
|
4249
4249
|
/* Excluded from this release type: e2e */
|
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-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./packages-BlWO8LDP.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Tt as s, xt as c } from "./threejs-utils-Dy-rm1a9.mjs";
|
|
4
4
|
import { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
|
|
5
|
-
import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V 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-
|
|
6
|
-
import { t as F } from "./configurator-
|
|
7
|
-
import { t as I } from "./planner-
|
|
8
|
-
import { n as L, t as R } from "./glb-viewer-
|
|
9
|
-
import { t as z } from "./api-
|
|
5
|
+
import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V 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-DSz_yeeB.mjs";
|
|
6
|
+
import { t as F } from "./configurator-BmDN5YBW.mjs";
|
|
7
|
+
import { t as I } from "./planner-DlX-zG-W.mjs";
|
|
8
|
+
import { n as L, t as R } from "./glb-viewer-B1zv_-Xu.mjs";
|
|
9
|
+
import { t as z } from "./api-DZUlAWo5.mjs";
|
|
10
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, P as HI_CONTEXT_ACTION, y as HI_GROUP_OPERATION, v as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, d as PlanElementViewModel, _ 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, g as StaticPlanObjectViewModel, h as WallPlanElementViewModel, f as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, m 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, p as removeExtObjIdPrefix };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, _t as t,
|
|
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 {
|
|
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,
|
|
516
|
-
super(e), this.limitPlaneSize = !0, this.needsUpdate = !0, this.noNeedOfUpdateCount = 0, this._blurScale = 1, this._shadowScale = 1, this._groundGroup =
|
|
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
|
-
...
|
|
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 && (
|
|
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) :
|
|
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 (
|
|
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,
|
|
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
|
|
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-
|
|
2590
|
+
//# sourceMappingURL=scene-renderer-DdVBP89m.mjs.map
|