@thi.ng/text-canvas
Version:
Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)
16 lines • 548 B
TypeScript
import type { NumOrString } from "@thi.ng/api";
import { Canvas } from "./canvas.js";
/**
* Draws a line between `ax`,`ay` and `bx`,`by`, using `char` and taking
* the current clip rect and format into account. If `char` is not
* given, uses current style's `dot` char.
*
* @param canvas -
* @param ax -
* @param ay -
* @param bx -
* @param by -
* @param char -
*/
export declare const line: (canvas: Canvas, ax: number, ay: number, bx: number, by: number, char?: NumOrString, format?: number) => void;
//# sourceMappingURL=line.d.ts.map