import { type ParagraphBuilder } from "https://deno.land/x/canvaseno@v1.0.2/types.ts";
Methods
addPlaceholder(): void
width?: number,
height?: number,
alignment?: PlaceholderAlignment,
baseline?: TextBaseline,
offset?: number,
Pushes the information required to leave an open space.
Adds text to the builder. Forms the proper runs to use the upper-most style on the style_stack.
build(): Paragraph
Returns a Paragraph object that can be used to be layout and paint the text to an SkCanvas.
Remove a style from the stack. Useful to apply different styles to chunks of text such as bolding.
pushStyle(text: TextStyle): void
Push a style to the stack. The corresponding text added with addText will use the top-most style.