Interface TextOptions

interface TextOptions {
    anchor?: "middle" | "start" | "end";
    attitude?: SpinorLike;
    baseline?:
        | "auto"
        | "text-bottom"
        | "alphabetic"
        | "ideographic"
        | "middle"
        | "central"
        | "mathematical"
        | "hanging"
        | "text-top";
    dashes?: number[];
    decoration?: TextDecoration[];
    direction?: "ltr" | "rtl";
    dx?: string | number;
    dy?: string | number;
    fillColor?: Color;
    fillOpacity?: number;
    fontFamily?: string;
    fontSize?: number;
    fontStyle?: "normal" | "italic" | "oblique";
    fontWeight?:
        | number
        | "normal"
        | "bold"
        | "bolder"
        | "lighter";
    id?: string;
    opacity?: number;
    plumb?: boolean;
    position?: VectorLike;
    sx?: number;
    sy?: number;
    value?: string;
    vectorEffect?: "none" | "non-scaling-stroke";
    visibility?: "visible" | "hidden" | "collapse";
}

Hierarchy

  • Omit<ColoredShapeOptions, "strokeColor" | "strokeOpacity" | "strokeWidth">
    • TextOptions

Properties

anchor?: "middle" | "start" | "end"
attitude?: SpinorLike
baseline?:
    | "auto"
    | "text-bottom"
    | "alphabetic"
    | "ideographic"
    | "middle"
    | "central"
    | "mathematical"
    | "hanging"
    | "text-top"
dashes?: number[]
decoration?: TextDecoration[]
direction?: "ltr" | "rtl"
dx?: string | number
dy?: string | number
fillColor?: Color
fillOpacity?: number
fontFamily?: string
fontSize?: number
fontStyle?: "normal" | "italic" | "oblique"
fontWeight?:
    | number
    | "normal"
    | "bold"
    | "bolder"
    | "lighter"
id?: string
opacity?: number
plumb?: boolean
position?: VectorLike
sx?: number
sy?: number
value?: string
vectorEffect?: "none" | "non-scaling-stroke"
visibility?: "visible" | "hidden" | "collapse"