 class HuffmanNodeCollection extends NodeCollection
   constructor: (shape) ->
     super shape
-
-  copyNodesFrom: (nc) ->
-    @nodes = nc.nodes
 
   mousedown: (pos, idx, t) ->
     for n in @nodes

    

class ShannonFanoNodeCollection extends NodeCollection


lerp2d = (t, p0, p1) ->
  if t < 0
    t = 0

    name: 'Shannon-Fano',
    action: (c, t) ->
      console.log('Shannon-Fano')
      c.reconstruct_as = ShannonFanoNodeCollection
  },
  {
    name: 'Huffman',
