@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
14 lines • 482 B
TypeScript
import type { Attribs } from "./api.js";
/**
* Takes a SVG path string and parses it into a {@link Path} shape, optionally
* with given attributes.
*
* @remarks
* If the path contains multiple sub-paths (e.g. holes or multiple curves), they
* will be added as sub-paths to the returned main path.
*
* @param svg
* @param attribs
*/
export declare const pathFromSvg: (svg: string, attribs?: Attribs) => import("./index.js").Path;
//# sourceMappingURL=path-from-svg.d.ts.map