 class NodeCollection
   constructor: (@shape) ->
     @nodes = []
+    @animations = []
 
   addLeaves: (dict, pos) ->
     length = 0

          oy: hit.y
          mx: pos.x # mousedown location
          my: pos.y
          t: Date.now()
        return true

    if @isHandleHit(pos, idx)

    context.fillText(pendingString, 0, canvas.height - 32)

  for collection, idx in collections
    collection.render(context, idx, t)

  for collection, idx in collections
    collection.render_overlay(context, idx, t)

  window.requestAnimationFrame(render)

