21700: Install Bundler system-wide in Rails postinst
[arvados.git] / services / workbench2 / src / lib / cwl-svg / utils / svg-utils.ts
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})`;
5     }
6
7     static createMatrix(): SVGMatrix {
8         return document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGMatrix();
9
10     }
11 }