@cornerstonejs/tools 1.65.0 → 1.65.2

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.65.0",
3
+ "version": "1.65.2",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
30
30
  },
31
31
  "dependencies": {
32
- "@cornerstonejs/core": "^1.65.0",
32
+ "@cornerstonejs/core": "^1.65.2",
33
33
  "@icr/polyseg-wasm": "0.4.0",
34
34
  "@types/offscreencanvas": "2019.7.3",
35
35
  "comlink": "^4.4.1",
@@ -59,5 +59,5 @@
59
59
  "type": "individual",
60
60
  "url": "https://ohif.org/donate"
61
61
  },
62
- "gitHead": "d317ea48cbd4f51968fac3e83cf4dd1e14e38f3b"
62
+ "gitHead": "be39531d17ce98dba80029a869380f5d845e1f4d"
63
63
  }
@@ -37,12 +37,14 @@ export default function voiSyncCallback(
37
37
  | Types.VolumeViewportProperties
38
38
  | Types.StackViewportProperties = {
39
39
  voiRange: range,
40
- colormap,
41
40
  };
42
41
 
43
42
  if (options?.syncInvertState && invertStateChanged) {
44
43
  tProperties.invert = invert;
45
44
  }
45
+ if (options?.syncColormap && colormap) {
46
+ tProperties.colormap = colormap;
47
+ }
46
48
 
47
49
  if (tViewport instanceof BaseVolumeViewport) {
48
50
  tViewport.setProperties(tProperties, volumeId);
@@ -847,7 +847,7 @@ class PlanarFreehandROITool extends ContourSegmentationBaseTool {
847
847
 
848
848
  triggerAnnotationModified(
849
849
  annotation,
850
- enabledElement.element,
850
+ enabledElement.viewport.element,
851
851
  ChangeTypes.StatsUpdated
852
852
  );
853
853