fix(crosshairs): suppressed error for crosshair (#3237)

This commit is contained in:
Ouwen Huang authored and GitHub committed 2023-04-05 14:29:20 -04:00
1 parent 50ed96ff73
commit af50815ebb
2 files changed
+15

No files matched your search

@@ -48,6 +48,20 @@ const initMeasurementService = (
Length.toMeasurement
);
measurementService.addMapping(
csTools3DVer1MeasurementSource,
'Crosshairs',
Length.matchingCriteria,
() => {
console.warn('Crosshairs mapping not implemented.');
return {};
},
() => {
console.warn('Crosshairs mapping not implemented.');
return {};
}
);
measurementService.addMapping(
csTools3DVer1MeasurementSource,
'Bidirectional',
@@ -100,6 +100,7 @@ class CornerstoneCacheService {
if (volume) {
cs3DCache.removeVolumeLoadObject(volumeId);
this.volumeImageIds.delete(volumeId);
}
const displaySets = viewportData.data.map(({ displaySetInstanceUID }) =>