Buckets:
| import decompose, {identity} from "./decompose.js"; | |
| var svgNode; | |
| /* eslint-disable no-undef */ | |
| export function parseCss(value) { | |
| const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + ""); | |
| return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f); | |
| } | |
| export function parseSvg(value) { | |
| if (value == null) return identity; | |
| if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); | |
| svgNode.setAttribute("transform", value); | |
| if (!(value = svgNode.transform.baseVal.consolidate())) return identity; | |
| value = value.matrix; | |
| return decompose(value.a, value.b, value.c, value.d, value.e, value.f); | |
| } | |
Xet Storage Details
- Size:
- 681 Bytes
- Xet hash:
- 9e91868cd83377a6f9c9b13885caa5332258f93134d4e29dbf7d2aacf0b0f33b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.