viral-viewer-2 6.5.7 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -23198,7 +23198,7 @@ class O2 {
23198
23198
  setupCamera() {
23199
23199
  this.camera = new un(
23200
23200
  60,
23201
- this.targetElement.offsetWidth / this.targetElement.offsetHeight,
23201
+ this.targetElement.clientWidth / this.targetElement.clientHeight,
23202
23202
  0.1,
23203
23203
  2e6
23204
23204
  ), this.camera.position.set(0, 0, 2), this.viralViewerApi.options && this.viralViewerApi.options.cameraZUp && (this.camera.up.set(0, 0, 1), this.camera.position.set(100, 100, 0)), vs.install({ THREE: D2 }), this.cameraControls = new vs(
@@ -26891,6 +26891,8 @@ class yP {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "6.5.7",
3
+ "version": "6.5.9",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",