viral-viewer-2 6.5.8 → 6.5.9
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 +3 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -26890,7 +26890,9 @@ class yP {
|
|
|
26890
26890
|
//#endregion
|
|
26891
26891
|
//#region Window
|
|
26892
26892
|
windowHandler() {
|
|
26893
|
-
|
|
26893
|
+
this.viralViewerApi.targetElement.onresize = () => {
|
|
26894
|
+
console.log("target element resize"), this.viralViewerApi.viralCamera.resizeCanvas();
|
|
26895
|
+
}, window.onresize = () => {
|
|
26894
26896
|
this.viralViewerApi.viralCamera.resizeCanvas();
|
|
26895
26897
|
};
|
|
26896
26898
|
}
|