@cornerstonejs/tools 2.0.0-beta.25 → 2.0.0-beta.26

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.
@@ -174,10 +174,13 @@ class RectangleROIStartEndThresholdTool extends RectangleROITool {
174
174
  startCoord = this._getCoordinateForViewplaneNormal(startCoord, viewplaneNormal);
175
175
  data.startCoordinate = startCoord;
176
176
  data.handles.points[0][this._getIndexOfCoordinatesForViewplaneNormal(viewplaneNormal)] = startCoord;
177
+ data.startCoordinate = startCoord;
178
+ data.handles.points[0][this._getIndexOfCoordinatesForViewplaneNormal(viewplaneNormal)] = startCoord;
177
179
  }
178
180
  if (Array.isArray(endCoordinate)) {
179
181
  endCoord = this._getCoordinateForViewplaneNormal(endCoord, viewplaneNormal);
180
182
  data.endCoordinate = endCoord;
183
+ data.endCoordinate = endCoord;
181
184
  }
182
185
  const roundedStartCoord = csUtils.roundToPrecision(startCoord);
183
186
  const roundedEndCoord = csUtils.roundToPrecision(endCoord);
@@ -384,6 +387,9 @@ class RectangleROIStartEndThresholdTool extends RectangleROITool {
384
387
  if (this.configuration.calculatePointsInsideVolume) {
385
388
  this._computePointsInsideVolume(annotation, targetId, imageVolume, enabledElement);
386
389
  }
390
+ if (this.configuration.calculatePointsInsideVolume) {
391
+ this._computePointsInsideVolume(annotation, targetId, imageVolume, enabledElement);
392
+ }
387
393
  annotation.invalidated = false;
388
394
  triggerAnnotationModified(annotation, viewport.element);
389
395
  return cachedStats;