Skip to content

YannickBochatay/JSYG.Point

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSYG.Point

Points constructor for JSYG. Kind of wrapper of SVGPoint. Not very useful outside of JSYG.

var point = new Point(5,10);

var svg = document.createElementNS('http://www.w3.org/2000/svg','svg');

var mtx = svg.createSVGMatrix();
mtx.e = 2;
mtx.f = 3;

point.mtx(mtx).toString(); //{"x":7,"y":13}
Installation with npm
npm install jsyg-point

About

Points constructor for JSYG

Resources

License

Stars

Watchers

Forks

Packages

No packages published