0.0.3 • Published 26 days ago
@robertakarobin/path-data-polyfill v0.0.3
@robertakarobin/path-data-polyfill
A wrapper around path-data-polyfill that just declares its types so it's Typescript-compatible.
Usage
import '@robertakarobin/path-data-polyfill';
const path = document.querySelector(`path`)!;
path.getPathData({ normalize: true }); // By importing this package, `getPathData` and `setPathData` have been added to the SVGPathElement prototype