@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
26 lines • 947 B
TypeScript
import type { Attribs } from "./api.js";
import type { Cubic } from "./api/cubic.js";
import type { Cubic3 } from "./api/cubic3.js";
import { Path } from "./api/path.js";
import { Path3 } from "./api/path3.js";
/**
* Constructs a {@link Path} or {@link Path3} from given sequence of cubic
* curves, with optional `attribs`.
*
* @remarks
* If no `attribs` are given, those from the first curve will be used (if any).
*
* For each successive curve segment, if the start point of the current curve is
* not the same as the last point of the previous curve, a new sub path will be
* started.
*
* The path will automatically be closed if possible.
*
* Also see {@link normalizedPath}.
*
* @param cubics
* @param attribs
*/
export declare function pathFromCubics(cubics: Cubic[], attribs?: Attribs): Path;
export declare function pathFromCubics(cubics: Cubic3[], attribs?: Attribs): Path3;
//# sourceMappingURL=path-from-cubics.d.ts.map