LT-40: Changing the default position for overlay text callouts

This commit is contained in:
Bruno Alves de Faria committed 2016-11-18 16:50:59 -02:00
1 parent a8f9c0421f
commit ba1c508ef8
4 files changed
+68 -3

No files matched your search

@@ -1,4 +1,5 @@
import { toolManager } from 'meteor/ohif:viewerbase';
import { OHIF } from 'meteor/ohif:core';
(function($, cornerstone, cornerstoneMath, cornerstoneTools) {
@@ -42,7 +43,7 @@ import { toolManager } from 'meteor/ohif:viewerbase';
function createNewMeasurement(mouseEventData) {
// Create the measurement data for this tool with the end handle activated
var measurementData = {
const measurementData = {
visible: true,
active: true,
handles: {
@@ -98,6 +99,9 @@ import { toolManager } from 'meteor/ohif:viewerbase';
isDeleted: false,
toolType: 'bidirectional'
};
OHIF.cornerstone.repositionTextBoxWhileDragging(mouseEventData, measurementData);
return measurementData;
}