diff --git a/extensions/cornerstone/src/initMeasurementService.js b/extensions/cornerstone/src/initMeasurementService.js index 93a618eaf32..36b7229d273 100644 --- a/extensions/cornerstone/src/initMeasurementService.js +++ b/extensions/cornerstone/src/initMeasurementService.js @@ -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', diff --git a/extensions/cornerstone/src/services/CornerstoneCacheService/CornerstoneCacheService.ts b/extensions/cornerstone/src/services/CornerstoneCacheService/CornerstoneCacheService.ts index b6219d73a5a..9997c63b9d7 100644 --- a/extensions/cornerstone/src/services/CornerstoneCacheService/CornerstoneCacheService.ts +++ b/extensions/cornerstone/src/services/CornerstoneCacheService/CornerstoneCacheService.ts @@ -115,6 +115,7 @@ class CornerstoneCacheService { if (volume) { cs3DCache.removeVolumeLoadObject(volumeId); + this.volumeImageIds.delete(volumeId); } const displaySets = viewportData.data.map(({ displaySetInstanceUID }) =>