Skip to content
Text Diagram
Developer docs
Preview · unreleased

Browser rendering API

Generated public signatures, parameters, return values and data fields.

Signatures and descriptions are extracted from public exports and JSDoc. Chinese explanations are checked against current source. See Embed in Vue for the component integration.

Render and rasterize

renderTextDiagram

@quirekit/text-diagram/browserMIT

@param language - Explicit grammar. @param source - Exact draft. @param options - Cancellable render owner. @returns A static SVG snapshot tied to exactly this source.

renderTextDiagramts

rasterizeTextDiagram

@quirekit/text-diagram/browserMIT

@param snapshot - Already sanitized, source-bound SVG. @param owner - Canvas owner. @param signal - Save lifetime. @returns A bounded PNG from this snapshot, without rereading the draft.

rasterizeTextDiagramts

Options

TextDiagramRenderOptions

@quirekit/text-diagram/browserMIT

Explicit render lifetime; no host editor state is captured.

TextDiagramRenderOptionsts

TextDiagramTypography

@quirekit/text-diagram/browserMIT

Mermaid measurement typography, shared by editor, reading and export.

TextDiagramTypographyts
Text Diagram · QuireKitQuireKit Text Diagram · Local rendering and source authoring · MIT