Extend stages API to allow for custom UI

This commit is contained in:
Shaunak Kishore
2015-10-01 02:15:47 -04:00
parent 858c0bf411
commit d58e65787c
8 changed files with 50 additions and 25 deletions

View File

@ -19,11 +19,10 @@ stages.AbstractStage = class AbstractStage {
// The class name 'selectable' is special for paths, lines, and points.
// Including this class in cls for those objects will make them interactive
// and will trigger the onClick callback when they are clicked.
Session.set('stage.type', undefined);
Session.set('stage.type', glyph);
Session.set('stage.paths', undefined);
Session.set('stage.lines', undefined);
Session.set('stage.points', undefined);
Session.set('stage.instructions', undefined);
Session.set('stage.status', undefined);
this.colors = ['#0074D9', '#2ECC40', '#FFDC00', '#FF4136', '#7FDBFF',
'#001F3F', '#39CCCC', '#3D9970', '#01FF70', '#FF851B'];