Skip to content

Commit

Permalink
fix(calibration): No calibration popup caused by perhaps an unused co…
Browse files Browse the repository at this point in the history
…de optimization for production builds (#3736)
  • Loading branch information
jbocce authored Oct 19, 2023
1 parent 33f1259 commit 93d798d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions extensions/cornerstone/src/tools/CalibrationLineTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ export function onCompletedCalibrationLine(servicesManager, csToolsEvent) {
calculateLength3(annotationData.handles.points[0], annotationData.handles.points[1]) * 100
) / 100;

// calculate the currently applied pixel spacing on the viewport
const calibratedPixelSpacing = metaData.get('calibratedPixelSpacing', imageId);
const imagePlaneModule = metaData.get('imagePlaneModule', imageId);
const currentRowPixelSpacing =
calibratedPixelSpacing?.[0] || imagePlaneModule?.rowPixelSpacing || 1;
const currentColumnPixelSpacing =
calibratedPixelSpacing?.[1] || imagePlaneModule?.columnPixelSpacing || 1;

const adjustCalibration = newLength => {
const spacingScale = newLength / length;

Expand Down

0 comments on commit 93d798d

Please sign in to comment.