viral-viewer-2 6.5.6 → 6.5.8

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 +4 -4
  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(
@@ -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.clientWidth / this.targetElement.clientHeight, this.camera.updateProjectionMatrix(), this.viralViewerApi.viralRenderer.updateSize(
23238
- this.targetElement.clientWidth,
23239
- this.targetElement.clientHeight
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "6.5.6",
3
+ "version": "6.5.8",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",