vg.js
vg.js copied to clipboard
JavaScript library for vector graphics
In SVG, a fill-rule can be specified. The default is non-zero. This is good because this is also the default in <canvas> so whenever a fill-rule is not specified we...
- [ ] Use implementation from nbjr - [ ] Add Path.fromPathData() static method to construct a new path from SVG path data.
Instead of g.reflect(shape, position, angle, keepOriginal) Use: g.reflect(shape, angle, position, keepOriginal) This is because angle is always required for this node to be useful, whereas a position of 0,0 (the...
It seems the first and last points are connected. This is related to an optimisation effort that simplifies `Path.points` and removes redundant calls to it.