@cornerstonejs/tools 1.70.2 → 1.70.3

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.70.2",
3
+ "version": "1.70.3",
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.70.2",
32
+ "@cornerstonejs/core": "^1.70.3",
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": "671b0e051846c0d8f6bc755f606079928c7d208a"
62
+ "gitHead": "a539f44ddc892dc67414d5423f8c21f96d89b2c3"
63
63
  }
@@ -5,6 +5,7 @@ import Synchronizer from '../../store/SynchronizerManager/Synchronizer';
5
5
 
6
6
  type VOISynchronizerOptions = {
7
7
  syncInvertState: boolean;
8
+ syncColormap :boolean;
8
9
  };
9
10
 
10
11
  /**
@@ -23,7 +24,7 @@ export default function createVOISynchronizer(
23
24
  options: VOISynchronizerOptions
24
25
  ): Synchronizer {
25
26
  // = { syncInvertState: true } if options is not provided or undefined or {}
26
- options = Object.assign({ syncInvertState: true }, options);
27
+ options = Object.assign({ syncInvertState: true, syncColormap:true }, options);
27
28
 
28
29
  const VOISynchronizer = createSynchronizer(
29
30
  synchronizerName,
@@ -365,13 +365,19 @@ class SplineROITool extends ContourSegmentationBaseTool {
365
365
  removeAnnotation(annotation.annotationUID);
366
366
  }
367
367
 
368
- this.fireChangeOnUpdate ||= {
369
- annotationUID: annotation.annotationUID,
370
- changeType: newAnnotation
371
- ? ChangeTypes.Completed
372
- : ChangeTypes.HandlesUpdated,
373
- contourHoleProcessingEnabled,
374
- };
368
+ const changeType = newAnnotation
369
+ ? ChangeTypes.Completed
370
+ : ChangeTypes.HandlesUpdated;
371
+ if (!this.fireChangeOnUpdate) {
372
+ this.fireChangeOnUpdate = {
373
+ annotationUID: annotation.annotationUID,
374
+ changeType,
375
+ contourHoleProcessingEnabled,
376
+ };
377
+ } else {
378
+ this.fireChangeOnUpdate.annotationUID = annotation.annotationUID;
379
+ this.fireChangeOnUpdate.changeType = changeType;
380
+ }
375
381
 
376
382
  triggerAnnotationRenderForViewportIds(renderingEngine, viewportIdsToRender);
377
383