@cornerstonejs/core 2.6.0 → 2.6.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.
@@ -478,6 +478,9 @@ class StackViewport extends Viewport {
478
478
  }
479
479
  getImageDataCPU() {
480
480
  const { metadata } = this._cpuFallbackEnabledElement;
481
+ if (!metadata) {
482
+ return;
483
+ }
481
484
  const spacing = metadata.spacing;
482
485
  const csImage = this.csImage;
483
486
  return {
@@ -697,6 +700,9 @@ class StackViewport extends Viewport {
697
700
  }
698
701
  getCameraCPU() {
699
702
  const { metadata, viewport } = this._cpuFallbackEnabledElement;
703
+ if (!metadata) {
704
+ return {};
705
+ }
700
706
  const { direction } = metadata;
701
707
  const viewPlaneNormal = direction.slice(6, 9).map((x) => -x);
702
708
  let viewUp = direction.slice(3, 6).map((x) => -x);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -82,5 +82,5 @@
82
82
  "type": "individual",
83
83
  "url": "https://ohif.org/donate"
84
84
  },
85
- "gitHead": "d5c8036b08e8927a3fbbc1af6a0557687fc0645c"
85
+ "gitHead": "35fc8b154edd7fe386392d58a93d7c8b48798e47"
86
86
  }