Fixing broken textBox dragging

This commit is contained in:
Bruno Alves de Faria 2017-11-21 11:44:07 -02:00
parent f70d99a5c2
commit 10a6b2f094

View File

@ -214,6 +214,29 @@ const CornerstoneToolMeasurement = new SimpleSchema([
}
]);
const CornerstoneHandleBoundingBoxSchema = new SimpleSchema({
width: {
type: Number,
label: 'Width',
decimal: true
},
height: {
type: Number,
label: 'Height',
decimal: true
},
left: {
type: Number,
label: 'Left',
decimal: true
},
top: {
type: Number,
label: 'Top',
decimal: true
}
});
const CornerstoneHandleSchema = new SimpleSchema({
x: {
type: Number,
@ -267,6 +290,11 @@ const CornerstoneHandleSchema = new SimpleSchema({
defaultValue: false,
optional: true
},
boundingBox: {
type: CornerstoneHandleBoundingBoxSchema,
label: 'Bounding Box',
optional: true
},
index: { // TODO: Remove 'index' from bidirectionalTool since it's useless
type: Number,
optional: true