Use Item.draw in rasterize
Fixed memory leak

The original technique isn't horrible when it happens
once per mouse move but if used once per frame it completely
destroys the browser.

To see the leak in the chrome task manager - furiously move the
mouse and see the top cpu process keep rising in memory usage.
Late load of paperjs should still run paperscripts

See this problem html http://stackoverflow.com/questions/14110205/dynamically-loading-a-script-changes-its-behaviour/14114337 and note how jquery handle this at https://github.com/jquery/jquery/blob/master/src/core.js#L768
Update getView to handle DOM elements without getAttribute, e.g. SVGDocument
Correct view centering

Fixed bad centering when `view.center` and `view.zoom` are changed
Do not blit rasters into separate canvas when they have opacity set.

Closes #166.
Merge pull request #164 from ispivey/fix-svg-getview-error

Update getView to handle DOM elements without getAttribute
Simplify fix proposed in #164.
Merge pull request #155 from ubershmekel/patch-1

Fixed memory leak
Merge pull request #156 from ubershmekel/patch-2

Late load of paperjs should still run paperscripts
Clean up code from #156.
Take item matrix into account in Item#rasterize().

Closes #144.
Merge pull request #169 from a-puzo/master

Fixed bad centering when `view.center` and `view.zoom` are changed
Revert recent changes to Item#rasterize() so pull request #150 can be merged.
Merge pull request #150 from yscik/rasterize-opacity

Group opacity disregarded in rasterize
Clean up code and add comment about consumed canvas again.
Always read canvas attributes to determine view size.

Closes #96.
In case of doubleclick mouse events, still fire normal clicks if no doubleclick handler stops event bubbling.
Support units other than 'px' in CharacterStyle#fontSize, but default to 'px' if no unit is specified.
Improve documentation for CharacterStyle#fontSize.