rayzee 5.3.3 → 5.3.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/dist/rayzee.es.js
CHANGED
|
@@ -12567,14 +12567,11 @@ var Jc = new Float32Array(3), Yc = {
|
|
|
12567
12567
|
let t = e.parentNode;
|
|
12568
12568
|
if (!t) return null;
|
|
12569
12569
|
let n = document.createElement("canvas");
|
|
12570
|
-
return n.width = e.width, n.height = e.height, n.style.
|
|
12570
|
+
return n.width = e.width, n.height = e.height, n.style.position = "absolute", n.style.inset = "0", n.style.width = "100%", n.style.height = "100%", t.insertBefore(n, e), n;
|
|
12571
12571
|
}
|
|
12572
12572
|
setRenderSize(e, t) {
|
|
12573
12573
|
this._lastRenderWidth = e, this._lastRenderHeight = t, this.denoiser?.setSize(e, t), this.upscaler?.setBaseSize(e, t);
|
|
12574
12574
|
}
|
|
12575
|
-
syncCanvasStyle(e, t) {
|
|
12576
|
-
this.denoiserCanvas && (this.denoiserCanvas.style.width = `${e}px`, this.denoiserCanvas.style.height = `${t}px`);
|
|
12577
|
-
}
|
|
12578
12575
|
restoreBaseResolution() {
|
|
12579
12576
|
if (!this.denoiserCanvas || !this._lastRenderWidth || !this._lastRenderHeight) return !1;
|
|
12580
12577
|
let e = this.denoiserCanvas.width !== this._lastRenderWidth || this.denoiserCanvas.height !== this._lastRenderHeight;
|
|
@@ -13255,7 +13252,7 @@ var Jc = new Float32Array(3), Yc = {
|
|
|
13255
13252
|
onResize() {
|
|
13256
13253
|
let e = this.canvas.clientWidth, t = this.canvas.clientHeight;
|
|
13257
13254
|
if (e === 0 || t === 0) return;
|
|
13258
|
-
this.renderer.setPixelRatio(1), this.renderer.setSize(e, t, !1), this.cameraManager.camera.aspect = e / t, this.cameraManager.camera.updateProjectionMatrix()
|
|
13255
|
+
this.renderer.setPixelRatio(1), this.renderer.setSize(e, t, !1), this.cameraManager.camera.aspect = e / t, this.cameraManager.camera.updateProjectionMatrix();
|
|
13259
13256
|
let n = window.devicePixelRatio || 1;
|
|
13260
13257
|
this.overlayManager?.setSize(Math.round(e * n), Math.round(t * n));
|
|
13261
13258
|
let r = this.denoisingManager?._lastRenderWidth ?? 0, i = this.denoisingManager?._lastRenderHeight ?? 0;
|
|
@@ -13271,7 +13268,7 @@ var Jc = new Float32Array(3), Yc = {
|
|
|
13271
13268
|
});
|
|
13272
13269
|
}
|
|
13273
13270
|
setCanvasSize(e, t) {
|
|
13274
|
-
|
|
13271
|
+
e === 0 || t === 0 || (this.renderer.setPixelRatio(1), this.renderer.setSize(e, t, !1), this.cameraManager.camera.aspect = e / t, this.cameraManager.camera.updateProjectionMatrix(), clearTimeout(this._resizeDebounceTimer), this._applyRenderResize(e, t));
|
|
13275
13272
|
}
|
|
13276
13273
|
configureForMode(e, t = {}) {
|
|
13277
13274
|
if (e === "results") {
|