@cornerstonejs/tools 1.3.0 → 1.4.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/tools",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
28
28
  },
29
29
  "dependencies": {
30
- "@cornerstonejs/core": "^1.3.0",
30
+ "@cornerstonejs/core": "^1.4.1",
31
31
  "lodash.clonedeep": "4.5.0",
32
32
  "lodash.get": "^4.4.2"
33
33
  },
@@ -50,5 +50,5 @@
50
50
  "type": "individual",
51
51
  "url": "https://ohif.org/donate"
52
52
  },
53
- "gitHead": "2d2a16d47deaee1ad6d6c5b15e84626ae6ecfdf5"
53
+ "gitHead": "13e9e13e8445e84ac0ef70e4214c0c74b324cce3"
54
54
  }
@@ -579,11 +579,11 @@ class ProbeTool extends AnnotationTool {
579
579
  // Check if we have scaling for the other 2 SUV types for the PET.
580
580
  if (
581
581
  modality === 'PT' &&
582
- imageVolume.scaling?.PET &&
583
- (imageVolume.scaling.PET.suvbwToSuvbsa ||
584
- imageVolume.scaling.PET.suvbwToSuvlbm)
582
+ imageVolume.scaling?.PT &&
583
+ (imageVolume.scaling.PT.suvbwToSuvbsa ||
584
+ imageVolume.scaling.PT.suvbwToSuvlbm)
585
585
  ) {
586
- const { suvbwToSuvlbm, suvbwToSuvbsa } = imageVolume.scaling.PET;
586
+ const { suvbwToSuvlbm, suvbwToSuvbsa } = imageVolume.scaling.PT;
587
587
 
588
588
  values['SUVBw'] = value;
589
589
 
@@ -281,7 +281,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
281
281
  if (viewport instanceof BaseVolumeViewport) {
282
282
  const volumeId = targetId.split('volumeId:')[1];
283
283
  const volume = cache.getVolume(volumeId);
284
- return volume.scaling?.PET !== undefined;
284
+ return volume.scaling?.PT !== undefined;
285
285
  } else if (viewport instanceof StackViewport) {
286
286
  const scalingModule: Types.ScalingParameters | undefined =
287
287
  imageId && metaData.get('scalingModule', imageId);