@thi.ng/axidraw
Version:
Minimal AxiDraw plotter/drawing machine controller for Node.js
16 lines • 645 B
TypeScript
import type { ReadonlyVec } from "@thi.ng/vectors";
import type { DrawCommand, PolylineOpts } from "./api.js";
/**
* Takes an array of 2D points and yields an iterable of {@link DrawCommand}s.
* The drawing behavior can be customized via additional {@link PolylineOpts}
* given.
*
* @remarks
* The resulting command sequence assumes the pen is in the **up** position at
* the beginning of the line. Each polyline will end with a {@link UP} command.
*
* @param pts
* @param opts
*/
export declare function polyline(pts: ReadonlyVec[], opts?: Partial<PolylineOpts>): IterableIterator<DrawCommand>;
//# sourceMappingURL=polyline.d.ts.map