@roomle/web-sdk 5.0.0-alpha.4 → 5.0.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.
- package/lib/{api-9lmUxCWS.mjs → api-DrK8F76r.mjs} +2 -2
- package/lib/{api-9lmUxCWS.mjs.map → api-DrK8F76r.mjs.map} +1 -1
- package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -1
- package/lib/budgeteer.sw-BUMElkO1.mjs.map +1 -1
- package/lib/{component-dimensioning-rJ6hbyvw.mjs → component-dimensioning-Dao60YO2.mjs} +2 -2
- package/lib/{component-dimensioning-rJ6hbyvw.mjs.map → component-dimensioning-Dao60YO2.mjs.map} +1 -1
- package/lib/{component-raycast-helper-CLX5fLt9.mjs → component-raycast-helper-PVs7Vpbl.mjs} +2 -2
- package/lib/{component-raycast-helper-CLX5fLt9.mjs.map → component-raycast-helper-PVs7Vpbl.mjs.map} +1 -1
- package/lib/configurator-Bj51dFg6.mjs +2 -0
- package/lib/{configurator-gvrAqmLs.mjs → configurator-herY75_C.mjs} +4 -4
- package/lib/{configurator-gvrAqmLs.mjs.map → configurator-herY75_C.mjs.map} +1 -1
- package/lib/glb-viewer-CUyHqGdt.mjs +2 -0
- package/lib/{glb-viewer-CcLBPbOS.mjs → glb-viewer-DtyiyPiY.mjs} +4 -4
- package/lib/{glb-viewer-CcLBPbOS.mjs.map → glb-viewer-DtyiyPiY.mjs.map} +1 -1
- package/lib/{highlight-coordinator-C-PxNb40.mjs → highlight-coordinator-DOO-54ml.mjs} +2 -2
- package/lib/{highlight-coordinator-C-PxNb40.mjs.map → highlight-coordinator-DOO-54ml.mjs.map} +1 -1
- package/lib/{homag-intelligence-k9I2gezr.mjs → homag-intelligence-BOqc8-8E.mjs} +3 -3
- package/lib/{homag-intelligence-k9I2gezr.mjs.map → homag-intelligence-BOqc8-8E.mjs.map} +1 -1
- package/lib/{material-viewer-DbxHIIyT.mjs → material-viewer-Dk8D8-8C.mjs} +4 -4
- package/lib/{material-viewer-DbxHIIyT.mjs.map → material-viewer-Dk8D8-8C.mjs.map} +1 -1
- package/lib/{packages-Bi5ovvm4.mjs → packages-xgEJ9vvB.mjs} +5 -5
- package/lib/{packages-Bi5ovvm4.mjs.map → packages-xgEJ9vvB.mjs.map} +1 -1
- package/lib/planner-DIz5mFvC.mjs +2 -0
- package/lib/{planner-eiaoqjGG.mjs → planner-aBm7Ihtu.mjs} +3 -3
- package/lib/{planner-eiaoqjGG.mjs.map → planner-aBm7Ihtu.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +2 -0
- package/lib/roomle-headless.js +9 -9
- package/lib/{roomle-sdk-CGaIe7wS.mjs → roomle-sdk-k8Vvoclf.mjs} +1787 -1656
- package/lib/roomle-sdk-k8Vvoclf.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +2 -0
- package/lib/roomle-sdk.js +7 -7
- package/lib/{roomle-webgpu-renderer-CS0lYZJ4.mjs → roomle-webgpu-renderer-Dv_s6ZN-.mjs} +21 -12
- package/lib/roomle-webgpu-renderer-Dv_s6ZN-.mjs.map +1 -0
- package/lib/{scene-renderer--WNt8myk.mjs → scene-renderer-nIOJ3nuy.mjs} +2 -2
- package/lib/{scene-renderer--WNt8myk.mjs.map → scene-renderer-nIOJ3nuy.mjs.map} +1 -1
- package/lib/{script-loader-3E3WpD5m.mjs → script-loader-BTeojHth.mjs} +2 -2
- package/lib/{script-loader-3E3WpD5m.mjs.map → script-loader-BTeojHth.mjs.map} +1 -1
- package/lib/{stats-helper-B1_lK1E8.mjs → stats-helper-iprJJmBn.mjs} +2 -2
- package/lib/{stats-helper-B1_lK1E8.mjs.map → stats-helper-iprJJmBn.mjs.map} +1 -1
- package/lib/{threejs-utils-D5DMIzUO.mjs → threejs-utils-D4TdXXAR.mjs} +3 -2
- package/lib/threejs-utils-D4TdXXAR.mjs.map +1 -0
- package/lib/{tools-core-BzQKuGIR.mjs → tools-core-La7SIpTQ.mjs} +3 -3
- package/lib/{tools-core-BzQKuGIR.mjs.map → tools-core-La7SIpTQ.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-KyKxb4dW.mjs +0 -2
- package/lib/glb-viewer-CmDQ1R80.mjs +0 -2
- package/lib/planner-CNESiYPd.mjs +0 -2
- package/lib/roomle-sdk-CGaIe7wS.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer-CS0lYZJ4.mjs.map +0 -1
- package/lib/threejs-utils-D5DMIzUO.mjs.map +0 -1
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -2269,6 +2269,7 @@ export declare const CORE_OBJECT_CATEGORY: {
|
|
|
2269
2269
|
readonly WINDOW: 2;
|
|
2270
2270
|
readonly CONSTRUCTION: 3;
|
|
2271
2271
|
readonly UNKNOWN: 4;
|
|
2272
|
+
readonly EXTERNAL_CONSTRUCTION: 5;
|
|
2272
2273
|
};
|
|
2273
2274
|
|
|
2274
2275
|
export declare const CORE_PERMISSION_TO_DELETE: {
|
|
@@ -9962,6 +9963,7 @@ export declare class RoomleWebGPURenderer extends RoomleRenderer<WebGPURenderer>
|
|
|
9962
9963
|
private readonly qualityManager;
|
|
9963
9964
|
private freezeFrames;
|
|
9964
9965
|
private readonly freezeRenderTarget;
|
|
9966
|
+
private readonly debugRenderPass;
|
|
9965
9967
|
private _domHelper;
|
|
9966
9968
|
private _webGpuGroundShadowReflection;
|
|
9967
9969
|
private _initData;
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-xgEJ9vvB.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import { bt as s, gt as c } from "./threejs-utils-
|
|
4
|
-
import { F as l, G as u, J as d, K as f, M as p, N as m, P as h, S as g, W as _, b as v, ct as y, dt as b, j as x, k as S, lt as C, mt as w, q as T, t as E, u as D, ut as O, x as k, y as A, z as j } from "./roomle-sdk-
|
|
5
|
-
import { t as M } from "./configurator-
|
|
6
|
-
import { t as N } from "./planner-
|
|
7
|
-
import { n as P, t as F } from "./glb-viewer-
|
|
8
|
-
import { t as I } from "./api-
|
|
3
|
+
import { bt as s, gt as c } from "./threejs-utils-D4TdXXAR.mjs";
|
|
4
|
+
import { F as l, G as u, J as d, K as f, M as p, N as m, P as h, S as g, W as _, b as v, ct as y, dt as b, j as x, k as S, lt as C, mt as w, q as T, t as E, u as D, ut as O, x as k, y as A, z as j } from "./roomle-sdk-k8Vvoclf.mjs";
|
|
5
|
+
import { t as M } from "./configurator-herY75_C.mjs";
|
|
6
|
+
import { t as N } from "./planner-aBm7Ihtu.mjs";
|
|
7
|
+
import { n as P, t as F } from "./glb-viewer-DtyiyPiY.mjs";
|
|
8
|
+
import { t as I } from "./api-DrK8F76r.mjs";
|
|
9
9
|
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, M as Configurator, x as FloorPlanElementViewModel, F as GlbViewer, j as HI_CONTEXT_ACTION, g as MeasurementLinePlanElementViewModel, A as PLAN_ELEMENT_CHANGE_TYPES, l as PlanElementViewModel, h as PlanObjectViewModel, N as Planner, y as RapiAccess, C as RapiInvalidIdError, O as RapiOfflineError, I as RoomDesignerApi, S as RoomleConfigurator, P as RoomleGLBViewer, w as RoomleLightSource, D as RoomlePlanner, E as RoomleSdk, m as StaticPlanObjectViewModel, p as WallPlanElementViewModel, _ as createExtObj, d as createExtObjId, b as getCatalogIdFromConfigurationHash, u as isExtObjId, f as isExternalObject, v as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, k as isSafari, T as removeExtObjIdPrefix };
|
|
@@ -3007,10 +3007,8 @@ var tr = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [er(t + 1, 2), er(
|
|
|
3007
3007
|
super(), this.passId = e.passId, this.sceneWithFog = void 0, this.transparentObjectsDepthPass = void 0, this.fogColor = j(new de(t.color)), this.fogNearBlend = j(t.nearBlend), this.fogFarBlend = j(t.farBlend), this.depthOverrideMaterial = new T({ side: 2 });
|
|
3008
3008
|
}
|
|
3009
3009
|
assemble(e, t, n, r, i) {
|
|
3010
|
-
if (!(r instanceof d) || i === "no fog") return this.removeSceneFog(), t;
|
|
3011
|
-
let a = e.getTextureNode("depth");
|
|
3012
|
-
if (i === "depth") return this.removeSceneFog(), P(I(a.r), 1);
|
|
3013
|
-
let o = this.getTransparentObjectsDepthPassTexture(n, r), s = Pe(a.r, o.r), c = j(r.projectionMatrixInverse), l = j(r.matrixWorld), u = Pe(j(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), f = u.sub(this.fogNearBlend), p = P(_t.x.mul(2).sub(1), _t.y.mul(2).sub(1), s, 1), m = c.mul(p), h = m.xyz.div(m.w), g = l.mul(P(h, 1)).xyz.xz.length(), _ = u.sub(g).div(u.sub(f)).clamp(0, 1);
|
|
3010
|
+
if (!(r instanceof d) || i === "no fog" || i === "depth") return this.removeSceneFog(), t;
|
|
3011
|
+
let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = Pe(a.r, o.r), c = j(r.projectionMatrixInverse), l = j(r.matrixWorld), u = Pe(j(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), f = u.sub(this.fogNearBlend), p = P(_t.x.mul(2).sub(1), _t.y.mul(2).sub(1), s, 1), m = c.mul(p), h = m.xyz.div(m.w), g = l.mul(P(h, 1)).xyz.xz.length(), _ = u.sub(g).div(u.sub(f)).clamp(0, 1);
|
|
3014
3012
|
return this.addSceneFog(n, f, u), et(P(this.fogColor, 1), t, _);
|
|
3015
3013
|
}
|
|
3016
3014
|
addSceneFog(e, t, n) {
|
|
@@ -3029,7 +3027,18 @@ var tr = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [er(t + 1, 2), er(
|
|
|
3029
3027
|
this.fogColor.value.set(e), n();
|
|
3030
3028
|
});
|
|
3031
3029
|
}
|
|
3032
|
-
}, fr = {
|
|
3030
|
+
}, fr = class e extends Zt {
|
|
3031
|
+
constructor(...t) {
|
|
3032
|
+
super(...t), this.passId = e.passId;
|
|
3033
|
+
}
|
|
3034
|
+
static {
|
|
3035
|
+
this.passId = "DebugRenderPass";
|
|
3036
|
+
}
|
|
3037
|
+
assemble(e, t, n, r, i) {
|
|
3038
|
+
return i === "depth" ? P(I(e.getTextureNode("depth").r), 1) : t;
|
|
3039
|
+
}
|
|
3040
|
+
addParametersToGUI(e, t) {}
|
|
3041
|
+
}, pr = {
|
|
3033
3042
|
[D.NONE]: 0,
|
|
3034
3043
|
[D.LINEAR]: 1,
|
|
3035
3044
|
[D.REINHARD]: 2,
|
|
@@ -3037,9 +3046,9 @@ var tr = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [er(t + 1, 2), er(
|
|
|
3037
3046
|
[D.ACES_FILMIC]: 4,
|
|
3038
3047
|
[D.AGX]: 6,
|
|
3039
3048
|
[D.NEUTRAL]: 7
|
|
3040
|
-
},
|
|
3049
|
+
}, mr = class extends be {
|
|
3041
3050
|
constructor(e, t, n, r, i = n) {
|
|
3042
|
-
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 ur(this.applyQualityParameters.bind(this)), this.freezeFrames = 0, this.freezeRenderTarget = new w(), this.renderPipeline = new De(t), this.applyToneMappingConfig(), this.enableDefaultRenderPasses(n, r, i), this._initData.webGpuConfig.autoDetectQualityLevel ? this.qualityManager.autoDetectInitialQualityLevel().then(() => this.qualityManager.applyCurrentQualityLevel(0)) : this.qualityManager.applyCurrentQualityLevel(0);
|
|
3051
|
+
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 ur(this.applyQualityParameters.bind(this)), this.freezeFrames = 0, this.freezeRenderTarget = new w(), this.debugRenderPass = new fr(), this.renderPipeline = new De(t), this.applyToneMappingConfig(), this.enableDefaultRenderPasses(n, r, i), this._initData.webGpuConfig.autoDetectQualityLevel ? this.qualityManager.autoDetectInitialQualityLevel().then(() => this.qualityManager.applyCurrentQualityLevel(0)) : this.qualityManager.applyCurrentQualityLevel(0);
|
|
3043
3052
|
}
|
|
3044
3053
|
enableDefaultRenderPasses(e, t, n) {
|
|
3045
3054
|
let r = this._initData.webGpuConfig.fog.enabled, i = this._initData.transparentBackground;
|
|
@@ -3089,7 +3098,7 @@ var tr = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [er(t + 1, 2), er(
|
|
|
3089
3098
|
velocity: Ve
|
|
3090
3099
|
}));
|
|
3091
3100
|
for (let i of this.renderPasses.values()) r = i.assemble(n, r, e, t, this.debugMode);
|
|
3092
|
-
return r;
|
|
3101
|
+
return this.debugRenderPass.assemble(n, r, e, t, this.debugMode);
|
|
3093
3102
|
}
|
|
3094
3103
|
setCustomOutlineParameters(e) {
|
|
3095
3104
|
let t = this.getOutlinePassOrUndefined();
|
|
@@ -3190,7 +3199,7 @@ var tr = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [er(t + 1, 2), er(
|
|
|
3190
3199
|
}
|
|
3191
3200
|
applyToneMappingConfig() {
|
|
3192
3201
|
let { toneMapping: e, toneMappingExposure: t } = this._initData.webGpuConfig;
|
|
3193
|
-
this.renderer.toneMapping =
|
|
3202
|
+
this.renderer.toneMapping = pr[e], this.renderer.toneMappingExposure = t;
|
|
3194
3203
|
}
|
|
3195
3204
|
addToneMappingSettings(e, t) {
|
|
3196
3205
|
let n = e.addFolder("Tone Mapping"), r = {
|
|
@@ -3221,8 +3230,8 @@ var tr = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [er(t + 1, 2), er(
|
|
|
3221
3230
|
return this.guiParameterGroups.set(t, n), n;
|
|
3222
3231
|
}
|
|
3223
3232
|
};
|
|
3224
|
-
ye([ve, _e("design:type", Object)],
|
|
3233
|
+
ye([ve, _e("design:type", Object)], mr.prototype, "_domHelper", void 0), ye([ve, _e("design:type", Object)], mr.prototype, "_webGpuGroundShadowReflection", void 0), ye([ve, _e("design:type", Object)], mr.prototype, "_initData", void 0);
|
|
3225
3234
|
//#endregion
|
|
3226
|
-
export {
|
|
3235
|
+
export { mr as RoomleWebGPURenderer };
|
|
3227
3236
|
|
|
3228
|
-
//# sourceMappingURL=roomle-webgpu-renderer-
|
|
3237
|
+
//# sourceMappingURL=roomle-webgpu-renderer-Dv_s6ZN-.mjs.map
|