Comment Comment by torme There's also a really nice pre-existing library for this: PathJS.https://github.com/mtrpcic/pathjsBeen using this for a while, with a lot of success. parent torme 15 years ago
https://github.com/mtrpcic/pathjs
Been using this for a while, with a lot of success.