Keeping bidirectional arm selected after moving handles

This commit is contained in:
Bruno Alves de Faria committed 2017-11-21 15:10:12 -02:00
1 parent 10a6b2f094
commit 4dcff38a53
3 files changed
+16 -8

No files matched your search

@@ -1,24 +1,32 @@
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { MeasurementSchemaTypes } from 'meteor/ohif:measurements/both/schema/measurements';
// import { OHIF } from 'meteor/ohif:core';
const CornerstoneHandleSchema = MeasurementSchemaTypes.CornerstoneHandleSchema;
const { CornerstoneHandleSchema } = MeasurementSchemaTypes;
const BidirectionalHandleSchema = new SimpleSchema([CornerstoneHandleSchema, {
selected: {
type: Boolean,
label: 'Selected',
optional: true,
defaultValue: false
}
}]);
const BidirectionalHandlesSchema = new SimpleSchema({
start: {
type: CornerstoneHandleSchema,
type: BidirectionalHandleSchema,
label: 'Start'
},
end: {
type: CornerstoneHandleSchema,
type: BidirectionalHandleSchema,
label: 'End'
},
perpendicularStart: {
type: CornerstoneHandleSchema,
type: BidirectionalHandleSchema,
label: 'Perpendicular Start'
},
perpendicularEnd: {
type: CornerstoneHandleSchema,
type: BidirectionalHandleSchema,
label: 'Perpendicular End'
},
textBox: {