@thi.ng/axidraw
Version:
Minimal AxiDraw plotter/drawing machine controller for Node.js
22 lines • 676 B
TypeScript
import type { ReadonlyVec } from "@thi.ng/vectors";
import type { DrawCommand } from "./api.js";
/**
* Generates a {@link DrawCommand} sequence to draw a registration mark
* (crosshair + circle) centered around `pos`.
*
* @example
* ```ts tangle:../export/registration.ts
* import { AxiDraw, registrationMark } from "@thi.ng/axidraw";
*
* const axi = new AxiDraw();
*
* // draw registration mark @ 20,20 with radius 10
* axi.draw(registrationMark([20, 20], 10))
* ```
*
* @param pos
* @param size
* @param r
*/
export declare const registrationMark: ([x, y]: ReadonlyVec, size?: number, r?: number) => DrawCommand[];
//# sourceMappingURL=registration.d.ts.map