Interface CloneableTextFrame

Represents a frame of wrappable rich text.

interface CloneableTextFrame {
    autoFit: TextAutofit;
    bounds: Readonly<Bounds>;
    columSpacing: number;
    columnCount: number;
    fontScale: number;
    horizontalCentered: boolean;
    insets: Rectangle;
    isSpaceFirstLastPara: boolean;
    lineReduction: number;
    lines: ITextLine[];
    paragraphs: ITextParagraph[];
    presetTextWarp: string;
    textBounds: Readonly<Bounds>;
    textDirection: TextDirection;
    vertical: boolean;
    verticalAlignment: VerticalAlignment;
    wrapped: boolean;
    clone(visitor?): ITextFrame;
    equals(other): boolean;
    layout(bounds?): ITextFrame;
    visitLines(visitor): void;
    visitParas(visitor): void;
}

Hierarchy (view full)

Properties

autoFit: TextAutofit
bounds: Readonly<Bounds>

This is the bound of a textfield include any whitespace

columSpacing: number
columnCount: number
fontScale: number
horizontalCentered: boolean

This is different than center aligned text.

insets: Rectangle
isSpaceFirstLastPara: boolean
lineReduction: number
lines: ITextLine[]
paragraphs: ITextParagraph[]
presetTextWarp: string

Returns the presetTextWarp. TODO - implement this.

textBounds: Readonly<Bounds>

This is the bound of a text not include whitespace

textDirection: TextDirection
vertical: boolean
verticalAlignment: VerticalAlignment
wrapped: boolean

Methods

  • Parameters

    Returns boolean

  • Before using the bounds of a textFrame the layout must be called. This will then return a a clone of this ITextFrame that can be placed and rendered.

    Parameters

    • Optional bounds: Partial<Size>

      will cause the text to wrap. If bounds are not specified or only a dimension then it will not wrap.

    Returns ITextFrame

  • Parameters

    • visitor: ITextVisitor

    Returns void

  • Parameters

    • visitor: ITextVisitor

    Returns void