1 export class SVGUtils {
2 static matrixToTransformAttr(matrix: SVGMatrix): string {
3 const {a, b, c, d, e, f} = matrix;
4 return `matrix(${a}, ${b}, ${c}, ${d}, ${e}, ${f})`;
7 static createMatrix(): SVGMatrix {
8 return document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGMatrix();