@thi.ng/text-canvas
Version:
Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)
12 lines • 447 B
TypeScript
import type { StringFormat } from "@thi.ng/text-format";
import type { Canvas } from "./canvas.js";
/**
* Returns string representation of canvas, optionally using given string
* formatter. If none is given, returns plain string representation, ignoring
* any character format data.
*
* @param canvas -
* @param fmt -
*/
export declare const formatCanvas: (canvas: Canvas, fmt?: StringFormat) => string;
//# sourceMappingURL=format.d.ts.map