viral-viewer-2 6.5.6 → 6.5.7
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/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23234,9 +23234,9 @@ class O2 {
|
|
|
23234
23234
|
), this.viralViewerApi.viralRenderer.render());
|
|
23235
23235
|
}
|
|
23236
23236
|
resizeCanvas2() {
|
|
23237
|
-
this.camera && (this.camera.aspect = this.targetElement.
|
|
23238
|
-
this.targetElement.
|
|
23239
|
-
this.targetElement.
|
|
23237
|
+
this.camera && (this.camera.aspect = this.targetElement.offsetWidth / this.targetElement.offsetHeight, this.camera.updateProjectionMatrix(), this.viralViewerApi.viralRenderer.updateSize(
|
|
23238
|
+
this.targetElement.offsetWidth,
|
|
23239
|
+
this.targetElement.offsetHeight
|
|
23240
23240
|
), this.viralViewerApi.viralRenderer.render());
|
|
23241
23241
|
}
|
|
23242
23242
|
/**
|
|
@@ -26890,7 +26890,7 @@ class yP {
|
|
|
26890
26890
|
//#endregion
|
|
26891
26891
|
//#region Window
|
|
26892
26892
|
windowHandler() {
|
|
26893
|
-
|
|
26893
|
+
this.viralViewerApi.targetElement.onresize = () => {
|
|
26894
26894
|
this.viralViewerApi.viralCamera.resizeCanvas();
|
|
26895
26895
|
};
|
|
26896
26896
|
}
|