gskinner/EaselJS — Issue #84: Converting complex shapes from traditional canvas to instructions for an  EaselJS  graphics object
Author: aadchrom
Created: 2011-10-31 22:38:02+00:00
State: open

I have a situation where I need to be able to use artwork generated in illustrator as clipart in a drawing program. I would love to be able to use EaselJS to rotate, scale, etc. these pieces of clipart. It's possible to generate instructions for drawing into a traditional canvas from illustrator by first exporting the drawing as svg and then using a tool like this one:

http://code.google.com/p/lindenb/wiki/SVGToCanvas

The above works correctly and I can render my clipart drawings well in a native canvas element however, the issue I'm having is converting this js to work in the EaselJS graphics context.

Is there some EaselJS way to add these instructions to a DisplayObject other than using the graphics library to draw them? If the Graphics object could somehow understand native js canvas drawing functions this would work. Any ideas or am I trying to do something silly?