Example #1
0
function render() {
  var entities = getEntities()
  pools.each(itself('.begin()'))
  entities.each(function(entity) {
    var column = entity.note.column
    var y = metrics.noteY(entity.position, entity)
    var pool = pools[column]
    if (entity.finish) {
      var yy = metrics.noteY(entity.finish, entity)
      pool.use({ id: $id(entity), y: y, height: y - yy })
    } else {
      pool.use({ id: $id(entity), y: y, height: 0 })
    }
  })
  pools.each(itself('.commit()'))
}
Example #2
0
 theme.update = function() {
   bindings.forEach(itself('()'))
 }