FreakingGenius - v0.1.0
    Preparing search index...

    Interface TextPrimitive

    A run of styled text placed at an absolute canvas position.

    interface TextPrimitive {
        color: string;
        content: string;
        fontFamily: string;
        fontSize: number;
        id: string;
        kind: "text";
        position: Point;
    }
    Index

    Properties

    color: string

    Text fill colour.

    content: string

    The string to render.

    fontFamily: string

    CSS font-family value, e.g. "serif".

    fontSize: number

    Font size in logical pixels.

    id: string

    Unique primitive identifier (UUID v4).

    kind: "text"
    position: Point

    Top-left anchor position in canvas pixels.