JSDrawing on GitHub

Earlier in the month, I moved the JSDrawing code to GitHub and I failed to mention that here. That project was really more of an experiment, or an excuse for an experiment, so I could test the Aptana JS Editor in the early days of its development.

This project uses my SVG path parser to fire events on a renderer as the path data is being parsed. The renderer uses the highest-order curves supported by a given target to plot whatever is being asked of it. For example, if a render target supports only moveto and lineto drawing primitives, the renderer will tesselate beziers thus adding support for those curves where they didn’t originally exist. It’s pretty rough, but I was able to render to DIVs, Flash, inline SVG, and VML, in some cases using pre-exising libraries for the actual renderering.

I had all sorts of plans for the code, but, alas, time isn’t alway cooperative. One area I thought would be interesting in which to experiment would be to convert the stroke of a path to a path itself. In this sense, JSDrawing could be used as an effects pipeline, allowing for ideas like stroking a stroke, in the spirit of Vector Effects..and the end result could be in turn SVG itself. Anyway, JSDrawing might prove to be interesting to some folks out there. You can find that bits at JSDrawing on GitHub.

Comments are closed.