painbrush

1.0.21.1.0
src/layer/make-text.d.ts
+src/layer/make-text.d.tsNew file
+27
Index: package/src/layer/make-text.d.ts
===================================================================
--- package/src/layer/make-text.d.ts
+++ package/src/layer/make-text.d.ts
@@ -0,0 +1,27 @@
+import { type Brush } from "../color/brush.ts";
+import type { Font } from "../typography.ts";
+import type { Layer } from "../layer.ts";
+type TextLayerProps = {
+    /**
+     * Total pixels before truncating the text
+     */
+    maxLengthPx?: number;
+    /**
+     * Background behind each individual character
+     */
+    letterPlateBrush?: Brush;
+    /**
+     * Background for the whole bounding box of the text
+     *  */
+    bgPlateBrush?: Brush;
+    /**
+     * Character to use to identify possible linebreaks.
+     * Normally you just want a space ig??
+     *  */
+    breakLinesOn?: string;
+};
+/**
+ * Writes the text
+ */
+export declare const makeTextLayer: (text: string, font: Font, brush?: Brush, { letterPlateBrush, bgPlateBrush, maxLengthPx, breakLinesOn, }?: TextLayerProps) => Layer;
+export {};