138 |
138 |
139 var AnnotsRoll = require('./annotsRoll.js') |
139 var AnnotsRoll = require('./annotsRoll.js') |
140 |
140 |
141 var AnnotationRoll = new AnnotsRoll(uberContainer, sceneWidth - (prSize2 + prSize3), 0, prSize3 + prSize2, sceneHeight, prSize3, pixelsPerSecond3, lineInterval); |
141 var AnnotationRoll = new AnnotsRoll(uberContainer, sceneWidth - (prSize2 + prSize3), 0, prSize3 + prSize2, sceneHeight, prSize3, pixelsPerSecond3, lineInterval); |
142 |
142 |
|
143 /* ---------------------------------------------------------------- */ |
|
144 /* ------------------- Init generalView container ----------------- */ |
|
145 /* ---------------------------------------------------------------- */ |
|
146 |
|
147 var GeneralView = require('./generalView.js') |
|
148 |
|
149 var GeneralRoll = new GeneralView(uberContainer, 0, 0, sceneWidth - (prSize2 + prSize3), sceneHeight, 3600, 60, Date.now()); |
|
150 |
|
151 |
143 function addAnnots(data){ |
152 function addAnnots(data){ |
144 var title = data.content.category.label; |
153 var title = data.content.category.label; |
145 var user = data.content.user; |
154 var user = data.content.user; |
|
155 //Test cat and color |
146 var colorAnnot = 0x65A954; |
156 var colorAnnot = 0x65A954; |
|
157 |
147 AnnotationRoll.addAnnot(title, user, colorAnnot); |
158 AnnotationRoll.addAnnot(title, user, colorAnnot); |
|
159 GeneralRoll.addAnnot(title, Date.now()); |
148 } |
160 } |
149 |
161 |
150 /* ---------------------------------------------------------------- */ |
162 /* ---------------------------------------------------------------- */ |
151 /* ----------------------- Socket management ---------------------- */ |
163 /* ----------------------- Socket management ---------------------- */ |
152 /* ---------------------------------------------------------------- */ |
164 /* ---------------------------------------------------------------- */ |