LT-291: Re-implementing the Non-Target tool behavior

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:29:46 +01:00
1 parent e348ff1d4d
commit 5d8a99dc5f
12 files changed
+195 -56

No files matched your search

@@ -58,7 +58,10 @@ Template.measurementTableRow.events({
const api = instance.data.measurementApi;
// Remove all the measurements with the given type and number
api.deleteMeasurements(measurementTypeId, toolType, measurementNumber);
api.deleteMeasurements(measurementTypeId, {
toolType,
measurementNumber
});
// Repaint the images on all viewports without the removed measurements
_.each($('.imageViewerViewport'), element => cornerstone.updateImage(element));