@jsyg/point
v1.0.0
Published
Point constructor for JSYG
Maintainers
Readme
@jsyg/point
Points constructor for JSYG. Kind of wrapper of SVGPoint. Not very useful outside of JSYG.
import Point from "@jsyg/point"
const point = new Point(5,10);
const svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
const mtx = svg.createSVGMatrix();
mtx.e = 2;
mtx.f = 3;
point.mtx(mtx).toString(); //{"x":7,"y":13}Installation with npm
npm install @jsyg/point