@cornerstonejs/core 1.73.0 → 1.74.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.73.0",
3
+ "version": "1.74.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "type": "individual",
48
48
  "url": "https://ohif.org/donate"
49
49
  },
50
- "gitHead": "7d9375494668c1b3857c560643e490470d35523d"
50
+ "gitHead": "2c4efae4c977bf6df9ca7399b6c6e715ab3f899d"
51
51
  }
@@ -1145,6 +1145,10 @@ class Viewport implements IViewport {
1145
1145
  * the zoom level is 1. Computed as a function of the camera.
1146
1146
  */
1147
1147
  public getZoom(compareCamera = this.initialCamera): number {
1148
+ if (!compareCamera) {
1149
+ return 1;
1150
+ }
1151
+
1148
1152
  const activeCamera = this.getVtkActiveCamera();
1149
1153
  const { parallelScale: initialParallelScale } = compareCamera;
1150
1154
  return initialParallelScale / activeCamera.getParallelScale();