Create a new ShelfPack bin allocator.
Uses the Shelf Best Height Fit algorithm from http://clb.demon.fi/files/RectangleBinPack.pdf
([number]
(default 64)
) Initial width of the sprite
([number]
(default 64)
) Initial width of the sprite
var sprite = new ShelfPack(64, 64, { autoResize: false });
Create a new Bin object.
(number) Left coordinate of the bin
(number) Top coordinate of the bin
(number) Width of the bin
(number) Height of the bin
var bin = new Bin('a', 0, 0, 12, 16);