LT-40: Recalculating text call-outs position when creating measurments without dragging
This commit is contained in:
1 parent
8df077f046
commit
888c337f84
4 files changed
+119
-121
No files matched your search
@@ -44,6 +44,7 @@ import { OHIF } from 'meteor/ohif:core';
|
||||
function createNewMeasurement(mouseEventData) {
|
||||
// Create the measurement data for this tool with the end handle activated
|
||||
const measurementData = {
|
||||
isCreating: true,
|
||||
visible: true,
|
||||
active: true,
|
||||
handles: {
|
||||
@@ -99,8 +100,6 @@ import { OHIF } from 'meteor/ohif:core';
|
||||
toolType: 'bidirectional'
|
||||
};
|
||||
|
||||
OHIF.cornerstone.repositionTextBoxWhileDragging(mouseEventData, measurementData);
|
||||
|
||||
return measurementData;
|
||||
}
|
||||
|
||||
@@ -1040,6 +1039,8 @@ import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
data.handles.textBox.boundingBox = boundingBox;
|
||||
|
||||
OHIF.cornerstone.repositionTextBox(eventData, data);
|
||||
|
||||
// Draw linked line as dashed
|
||||
var link = {
|
||||
start: {},
|
||||
|
||||
Reference in new issue
Block a user