@nextcloud/image-editor
    Preparing search index...

    Interface TextAnnotation

    interface TextAnnotation {
        align?: "left" | "center" | "right";
        background?: boolean;
        bold?: boolean;
        color: string;
        font?: "sans" | "serif" | "mono";
        fontSize: number;
        id: string;
        italic?: boolean;
        outline?: boolean;
        rotation: number;
        strikethrough?: boolean;
        text: string;
        type: "text" | "sticker";
        underline?: boolean;
        x: number;
        y: number;
    }
    Index
    align?: "left" | "center" | "right"

    How the lines sit against each other. Only has an effect on text that spans more than one line, since the block is exactly as wide as its longest one.

    background?: boolean

    Whether the text sits on a filled plate. The other answer to a busy photo: an edge keeps the glyphs readable, a plate takes the photo out from behind them entirely.

    bold?: boolean

    Heavier glyphs. Absent on annotations made before it existed, which read as off

    color: string
    font?: "sans" | "serif" | "mono"

    Which family the text is drawn in, the default sans when absent

    fontSize: number
    id: string
    italic?: boolean

    Slanted glyphs

    outline?: boolean

    Whether the glyphs carry a contrasting edge, so a caption stays readable wherever it lands on the photo. Absent on annotations made before it existed, which read as off.

    rotation: number

    Clockwise degrees around the anchor

    strikethrough?: boolean

    A line through the glyphs

    text: string

    Text content, or the emoji character for stickers

    type: "text" | "sticker"
    underline?: boolean

    A line under the glyphs

    x: number
    y: number