Some basic Canvas shapes for Enyo 2.x.
Please note these are wrappers of the HTML5 Canavas elements. There seem to be some quirks implementing some of these. Suggestions/feedback welcomed.
A basic line. You can try it out on JSFiddle: http://jsfiddle.net/pcimino/VW2QV/
A basic Arc. You can try it out on JSFiddle: http://jsfiddle.net/pcimino/2P9AU/
Draw a line given the starting point, an angle and a length. You can also specify the distance to start drawing from the point. This is handy for lines emanating form a central point, but not connected to that point.
See the example and try it out at JSFiddle: http://jsfiddle.net/pcimino/VW2QV/
Draw multiple attached line segments, with the option to close the shape and fill it. You can try it out on JSFiddle: http://jsfiddle.net/pcimino/ssax7/
Having issues with properties not taking. The only way it renders visibly is if the shape is closed and filled. JSFiddle: http://jsfiddle.net/pcimino/9Qftb/