UNPKG

@thi.ng/geom

Version:

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

14 lines 608 B
import type { Attribs, SamplingOpts } from "./api.js"; import { ComplexPolygon } from "./api/complex-polygon.js"; import type { Path } from "./api/path.js"; /** * Converts given path into a {@link ComplexPolygon}, using `opts` to control * the conversion (via {@link asPolygon}). If no new `attribs` are given, those * of the path will be used (shallow copy). * * @param path * @param opts * @param attribs */ export declare const complexPolygonFromPath: (path: Path, opts?: number | Partial<SamplingOpts>, attribs?: Attribs) => ComplexPolygon; //# sourceMappingURL=complex-polygon-from-path.d.ts.map