Field Notes
    Preparing search index...

    Interface TextElement

    interface TextElement {
        autoResize?: boolean;
        color: string;
        containerId?: string;
        editor?: string;
        fontSize: number;
        groupId?: string;
        id: string;
        index: string;
        layerId: string;
        link?: string;
        locked: boolean;
        parentId?: string;
        position: Point;
        rotation?: number;
        size: Size;
        text: string;
        textAlign: "left" | "center" | "right";
        type: "text";
        version: number;
        wrap?: boolean;
    }

    Hierarchy (View Summary)

    Index
    autoResize?: boolean

    Whether text changes the element size; absent means true.

    color: string
    containerId?: string

    Id of the container this text is bound to; ignored unless it equals parentId.

    editor?: string

    Peer that wrote the accepted remote version; absent after a local edit.

    fontSize: number
    groupId?: string

    Optional flat group membership. Elements sharing a groupId select/move/delete as a unit.

    id: string
    index: string

    Fractional order key within the layer; '' only on input, meaning "place on top".

    layerId: string
    link?: string

    Opens from the select tool; http(s), mailto or #fn:element=<id> only.

    locked: boolean
    parentId?: string

    Optional containing element. Parent and child share a layer.

    position: Point
    rotation?: number

    Rotation in radians (clockwise) about the element's center. Absent = 0 (unrotated). Applied to note/text/image/html/shape/stroke; ignored for arrows. Extension element definitions own their rotation semantics.

    size: Size
    text: string
    textAlign: "left" | "center" | "right"
    type: "text"
    version: number

    Per-element revision: local edits bump it, remote edits carry the accepted value.

    wrap?: boolean

    Whether text wraps at the element width; absent means true.