@cornerstonejs/core 2.1.9 → 2.1.10

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.
@@ -1725,14 +1725,10 @@ class StackViewport extends Viewport {
1725
1725
  return true;
1726
1726
  }
1727
1727
  }
1728
- let { imageURI } = options;
1729
- if (!imageURI) {
1730
- imageURI = imageIdToURI(currentImageId);
1731
- }
1732
- const referencedImageURI = imageIdToURI(referencedImageId);
1733
- const endsWith = referencedImageId?.endsWith(imageURI);
1734
- if (endsWith) {
1735
- return endsWith;
1728
+ const { imageURI } = options;
1729
+ const currentImageURI = imageIdToURI(referencedImageId);
1730
+ if (!imageURI || currentImageURI === imageURI) {
1731
+ return true;
1736
1732
  }
1737
1733
  const { cameraFocalPoint } = viewRef;
1738
1734
  if (options.asNearbyProjection && cameraFocalPoint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "",
5
5
  "main": "./dist/umd/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -84,5 +84,5 @@
84
84
  "type": "individual",
85
85
  "url": "https://ohif.org/donate"
86
86
  },
87
- "gitHead": "7e85486ec7dc157532f83ba8b9e6c2c36c21f307"
87
+ "gitHead": "bc2cfc38e87991cc71b974af55a7b75186d8d6ca"
88
88
  }