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

This commit is contained in:
Ouwen Huang 2023-04-05 14:29:20 -04:00 committed by GitHub
parent 50ed96ff73
commit af50815ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -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',

View File

@ -100,6 +100,7 @@ class CornerstoneCacheService {
if (volume) {
cs3DCache.removeVolumeLoadObject(volumeId);
this.volumeImageIds.delete(volumeId);
}
const displaySets = viewportData.data.map(({ displaySetInstanceUID }) =>