Keep toolData and Measurements in sync (LT-149)

This commit is contained in:
Erik Ziegler committed 2016-02-12 20:38:00 +01:00
1 parent 5b07ec372c
commit f7e24b8b10
8 files changed
+139 -78

No files matched your search

@@ -1,4 +1,5 @@
removeToolDataWithMeasurementId = function(imageId, toolType, measurementId) {
log.info('removeToolDataWithMeasurementId');
var toolState = cornerstoneTools.globalImageIdSpecificToolStateManager.toolState;
// Find any related toolData
@@ -20,6 +21,9 @@ removeToolDataWithMeasurementId = function(imageId, toolType, measurementId) {
}
});
console.log("Removing Indices: ");
console.log(toRemove);
// If any toolData entries need to be removed, splice them from
// the toolData array
toRemove.forEach(function(index) {