AWV-3: Transforming the CINE inputs in form components

This commit is contained in:
Bruno Alves de Faria committed 2016-09-03 18:16:57 -03:00
1 parent 176b503c5a
commit 20b49d5036
15 files changed
+145 -38

No files matched your search

@@ -1,8 +1,24 @@
import { OHIF } from 'meteor/ohif:core';
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
Template.cineDialog.onCreated(() => {
const instance = Template.instance();
instance.schema = new SimpleSchema({
loop: {
type: Boolean,
label: 'Loop',
defaultValue: true
},
speed: {
type: Number,
label: 'Cine Speed',
defaultValue: 24,
min: 1,
max: 90
}
});
instance.updateFramerate = rate => {
OHIF.viewer.cine.framesPerSecond = rate;