@cornerstonejs/tools 4.7.0 → 4.7.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.
@@ -20,8 +20,8 @@ function internalAddSegmentationRepresentation(viewportId, representationInput)
20
20
  if (segmentKeys.length > 0) {
21
21
  firstSegmentIndex = segmentKeys.map((k) => Number(k)).sort()[0];
22
22
  }
23
+ setActiveSegmentIndex(segmentationId, firstSegmentIndex);
23
24
  }
24
- setActiveSegmentIndex(segmentationId, firstSegmentIndex);
25
25
  }
26
26
  if (representationInput.type === SegmentationRepresentations.Contour) {
27
27
  triggerAnnotationRenderForViewportIds([viewportId]);
@@ -19,7 +19,7 @@ import { addSegmentationRepresentations } from '../stateManagement/segmentation'
19
19
  const MAGNIFY_CLASSNAME = 'advancedMagnifyTool';
20
20
  const MAGNIFY_VIEWPORT_INITIAL_RADIUS = 125;
21
21
  const { Events: csEvents } = Enums;
22
- const isSegmentation = (actor) => actor.uid !== actor.referencedId;
22
+ const isSegmentation = (actor) => !!actor.representationUID;
23
23
  var AdvancedMagnifyToolActions;
24
24
  (function (AdvancedMagnifyToolActions) {
25
25
  AdvancedMagnifyToolActions["ShowZoomFactorsList"] = "showZoomFactorsList";
@@ -746,7 +746,7 @@ class AdvancedMagnifyViewport {
746
746
  const actors = sourceViewport.getActors();
747
747
  const volumeInputArray = actors
748
748
  .filter((actor) => !isSegmentation(actor))
749
- .map((actor) => ({ volumeId: actor.uid }));
749
+ .map((actor) => ({ volumeId: actor.referencedId }));
750
750
  magnifyViewport.setVolumes(volumeInputArray).then(() => {
751
751
  this._isViewportReady = true;
752
752
  this.update();
@@ -1 +1 @@
1
- export declare const version = "4.7.0";
1
+ export declare const version = "4.7.1";
@@ -1 +1 @@
1
- export const version = '4.7.0';
1
+ export const version = '4.7.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "4.7.0",
3
+ "version": "4.7.1",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "module": "./dist/esm/index.js",
@@ -108,7 +108,7 @@
108
108
  "canvas": "3.1.0"
109
109
  },
110
110
  "peerDependencies": {
111
- "@cornerstonejs/core": "4.7.0",
111
+ "@cornerstonejs/core": "4.7.1",
112
112
  "@kitware/vtk.js": "32.12.1",
113
113
  "@types/d3-array": "3.2.1",
114
114
  "@types/d3-interpolate": "3.0.4",
@@ -127,5 +127,5 @@
127
127
  "type": "individual",
128
128
  "url": "https://ohif.org/donate"
129
129
  },
130
- "gitHead": "ed855a5de3ae8111017b8498c4c829d6597c2af7"
130
+ "gitHead": "299a34f3fa18444c85bd3b2f37a42b1de4586c4c"
131
131
  }