@cornerstonejs/core 1.81.3 → 1.81.4

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.81.3",
3
+ "version": "1.81.4",
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": "945fb26ade3946d7beccd8a4684c1ca20552d647"
50
+ "gitHead": "53b48392fab3f763c665d403b1f9fc3091c9510f"
51
51
  }
@@ -2965,17 +2965,17 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
2965
2965
  if (!viewRef) {
2966
2966
  return;
2967
2967
  }
2968
- const { referencedImageId, sliceIndex, volumeId } = viewRef;
2968
+ const { referencedImageId, sliceIndex } = viewRef;
2969
2969
  if (
2970
2970
  typeof sliceIndex === 'number' &&
2971
2971
  referencedImageId &&
2972
2972
  referencedImageId === this.imageIds[sliceIndex]
2973
2973
  ) {
2974
- this.setImageIdIndex(sliceIndex);
2974
+ this.scroll(sliceIndex - this.targetImageIdIndex);
2975
2975
  } else {
2976
2976
  const foundIndex = this.imageIds.indexOf(referencedImageId);
2977
2977
  if (foundIndex !== -1) {
2978
- this.setImageIdIndex(foundIndex);
2978
+ this.scroll(foundIndex - this.targetImageIdIndex);
2979
2979
  } else {
2980
2980
  throw new Error('Unsupported - referenced image id not found');
2981
2981
  }