WIP reorganization

This commit is contained in:
Erik Ziegler committed 2018-12-12 09:10:39 +01:00
1 parent 6706dfe634
commit 054e37dfb7
266 files changed
+98 -620

No files matched your search

@@ -0,0 +1,16 @@
import { OHIF } from 'meteor/ohif:core';
import { _ } from 'meteor/underscore';
OHIF.lesiontracker.removeMeasurementIfInvalid = (measurementData, eventData) => {
const handles = measurementData.handles;
const start = _.pick(handles.start, ['x', 'y']);
const end = _.pick(handles.end, ['x', 'y']);
const element = eventData.element;
const toolType = measurementData.toolType;
if (_.isEqual(start, end)) {
cornerstoneTools.removeToolState(element, toolType, measurementData);
return true;
}
return false;
};