1.0.1 • Published 7 years ago

jsyg-point v1.0.1

Weekly downloads
51
License
MIT
Repository
github
Last release
7 years ago

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