SVG paths for canvas

Written by Richard, on 3rd September 2015

As stated elsewhere canvas paths are (unnecessarily) verbose. The W3C has attempted to aid the issue by introducing support for svg paths in the new Path2D object.

This new object, however, is not currently widely supported. So RGraph provides a work-around using the RGraph.path function.

This is a description of that function and a version of it that has been extracted from the RGraph code and works standalone.

https://www.rgraph.net/blog/paths.html