Skip to content

andymorris/pathner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathner

Pathner is a tiny library to make SVG path string generation readable. Instead of writing this:

"M" + x + "," + y + "L" + x2 + "," + y2 + "T" + x3 + "," + y3

write this:

new Pathner().moveTo(x, y).lineTo(x2, y2).smoothQuadraticBezierTo(x3, y3).path()

Pathner was originally written to make working with the RaphaelJS Paper.path method easier, but is in no way related and can be used with any code that generates SVG markup.

About

Make your SVG path generation readable. 60% of the time, it works every time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors