UNPKG

@thi.ng/geom

Version:

Functional, polymorphic API for 2D geometry types & SVG generation

16 lines 549 B
import type { Attribs, PathSegment2 } from "./api.js"; import { Path } from "./api/path.js"; /** * Creates a new {@link Path} instance, optional with given `segments`, * `subPaths` and `attribs`. * * @remarks * Segments and sub-paths can also be later added via {@link Path.addSegments} * or {@link Path.addSubPaths}. * * @param segments * @param subPaths * @param attribs */ export declare const path: (segments?: Iterable<PathSegment2>, subPaths?: Iterable<PathSegment2[]>, attribs?: Attribs) => Path; //# sourceMappingURL=path.d.ts.map