brilliant-msg
    Preparing search index...

    Class RectangularTextLayout

    A standard rectangular text layout.

    Implements

    Index
    • Constructs a RectangularTextLayout.

      Parameters

      • options: {
            fontFamily?: string;
            fontSize: number;
            height: number;
            textAlign?: CanvasTextAlign;
            width: number;
        }

        Configuration options.

      Returns RectangularTextLayout

    fontFamily?: string

    Optional font family name.

    fontSize: number

    The font size in pixels.

    height: number

    The height of the layout in pixels.

    textAlign: CanvasTextAlign

    Text alignment within each line.

    width: number

    The width of the layout in pixels.

    • get startY(): number

      The starting Y coordinate for text layout (always 0 for rectangular).

      Returns number

    • Returns the full width at xOffset 0 if the line fits vertically, null otherwise.

      Parameters

      • lineY: number
      • lineHeight: number

      Returns { width: number; xOffset: number } | null