import { SimpleSchema } from 'meteor/aldeed:simple-schema'; import { MeasurementSchemaTypes } from 'meteor/ohif:measurements/both/schema/measurements'; const CornerstoneHandleSchema = MeasurementSchemaTypes.CornerstoneHandleSchema; const EllipseHandlesSchema = new SimpleSchema({ start: { type: CornerstoneHandleSchema, label: 'Start' }, end: { type: CornerstoneHandleSchema, label: 'End' }, textBox: { type: CornerstoneHandleSchema, label: 'Text Box' }, }); const EllipseSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneToolMeasurement, { handles: { type: EllipseHandlesSchema, label: 'Handles' } }]); export const ellipse = { id: 'ellipticalRoi', name: 'Ellipse', toolGroup: 'temp', cornerstoneToolType: 'ellipticalRoi', schema: EllipseSchema };