Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 736 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 736 Bytes

$$createSVGMatrix

SVGMatrix 객체를 생성합니다.

console.log($$createSVGMatrix()());
// SVGMatrix {a: 1, b: 0, c: 0, d: 1, e: 0, f: 0}
console.log($$createSVGMatrix({ e: 10, f: 20 })());
// SVGMatrix {a: 1, b: 0, c: 0, d: 1, e: 10, f: 20}
console.log($$createSVGMatrix({ a: 2, b: 0, c: 0, d: 4, e: 10, f: 20 })());
// SVGMatrix {a: 2, b: 0, c: 0, d: 4, e: 10, f: 20}
const $svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
console.log($$createSVGMatrix({ a: 1, b: 2, c: 3, d: 4, e: 5, f: 6 })($svg));
// SVGMatrix {a: 1, b: 2, c: 3, d: 4, e: 5, f: 6}