ericdrowell/KineticJS — pull request #18 by trey-jones (2012-05-03 18:28:08+00:00)
Title: Dashed Line shape file

Works just like Kinetic.Line - initializes with an array of points, extrapolates those points into segments of lines and gaps between segments, and draws the line. All properties of Kinetic.Line apply.

Two properties specific to Dashed:
gapSize - the number of pixels along the x axis that will be skipped after each dash.
drawSize - the number of pixels along the x axis that will be drawn in each dash.

No new public methods were added.

I'm not sure about performance. There is probably a more efficient way of doing this. I will find out, because my next task is to animate the line.