Skip to content

Commit

Permalink
fix: added default crosshair mapping and delete volumeimageIds on cac…
Browse files Browse the repository at this point in the history
…he remove
  • Loading branch information
Ouwen committed Mar 30, 2023
1 parent fcade9d commit 45ffb6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions extensions/cornerstone/src/initMeasurementService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class CornerstoneCacheService {

if (volume) {
cs3DCache.removeVolumeLoadObject(volumeId);
this.volumeImageIds.delete(volumeId);
}

const displaySets = viewportData.data.map(({ displaySetInstanceUID }) =>
Expand Down

0 comments on commit 45ffb6d

Please sign in to comment.