import { type ParagraphBuilder } from "https://deno.land/x/canvas@v1.0.0/mod.ts";
Methods
addPlaceholder(): void
width?: number,
height?: number,
alignment?: PlaceholderAlignment,
baseline?: TextBaseline,
offset?: number,
Pushes the information required to leave an open space.
build(): Paragraph
Returns a Paragraph object that can be used to be layout and paint the text to an SkCanvas.
pushStyle(text: TextStyle): void
Push a style to the stack. The corresponding text added with addText will use the top-most style.