weasel API - v0.8.0
    Preparing search index...

    Interface TextDrawCommand

    Text draw command. Renders one or more runs at (x, y) in screen space, optionally word-wrapping at maxWidth. The renderer resolves each run's (fontFamily, fontWeight, fontStyle) to an MSDF atlas via resolveFontVariant and bucket-draws by atlas + color group.

    style carries node-level defaults (lineHeight, anti-alias width) that don't belong on individual runs.

    interface TextDrawCommand {
        align?: "center" | "left" | "right";
        height?: number;
        kind: "text";
        maxWidth?: number;
        runs: ResolvedRun[];
        style: TextStyle;
        verticalAlign?: TextVerticalAlign;
        x: number;
        y: number;
    }
    Index

    Properties

    align?: "center" | "left" | "right"
    height?: number

    Box height for vertical alignment. When set with verticalAlign, the laid-out block shifts within [y, y+height].

    kind: "text"
    maxWidth?: number
    runs: ResolvedRun[]
    style: TextStyle
    verticalAlign?: TextVerticalAlign

    Default 'top' — the legacy top-anchored behavior.

    x: number
    y: number