import { ASObject } from '@awayfl/avm2'; import { TextFormat } from '@awayjs/scene'; import { ContentElement } from './ContentElement'; import { ElementFormat } from './ElementFormat'; import { FontDescription } from './FontDescription'; import { TextJustifier } from './TextJustifier'; import { TextLine } from './TextLine'; export interface ITextData { formats: TextFormat[]; elementFormats: ElementFormat[]; formatIndices: number[]; text: string; processedIdx: number; creationResult: string; spaces: NumberMap; lineBreaks: NumberMap; charWidths: number[]; } export declare class TextBlock extends ASObject { static forceNativeConstructor: boolean; static forceNativeMethods: boolean; private _content; private _tabStops; private _textJustifier; private _lineRotation; private _baselineZero; private _bidiLevel; private _applyNonLinearFontScaling; private _baselineFontDescription; private _baselineFontSize; private _userData; private _textLines; private _creationResult; private _textData; private _id; constructor(content?: ContentElement, tabStops?: any, textJustifier?: TextJustifier, lineRotation?: string, baselineZero?: string, bidiLevel?: number, applyNonLinearFontScaling?: boolean, baselineFontDescription?: FontDescription, baselineFontSize?: number); setTextDataDirty(): void; private _convertContentToTextData; private resolveGroupElements; createTextLine(previousLine?: TextLine, width?: number, lineOffset?: number, fitSomething?: boolean): TextLine; recreateTextLine(textLine: TextLine, previousLine?: TextLine, width?: number, lineOffset?: number, fitSomething?: boolean): TextLine; get textLineCreationResult(): string; get applyNonLinearFontScaling(): boolean; set applyNonLinearFontScaling(value: boolean); get baselineFontDescription(): FontDescription; set baselineFontDescription(value: FontDescription); get baselineFontSize(): number; set baselineFontSize(value: number); get baselineZero(): string; set baselineZero(value: string); get content(): ContentElement; set content(value: ContentElement); get bidiLevel(): number; set bidiLevel(value: number); get firstInvalidLine(): TextLine; get firstLine(): TextLine; get lastLine(): TextLine; get lineRotation(): string; set lineRotation(value: string); findNextAtomBoundary(afterCharIndex: number): number; findPreviousAtomBoundary(beforeCharIndex: number): number; findNextWordBoundary(afterCharIndex: number): number; findPreviousWordBoundary(beforeCharIndex: number): number; getTextLineAtCharIndex(charIndex: number): TextLine; releaseLineCreationData(): void; releaseLines(firstLine: TextLine, lastLine: TextLine): void; dump(): string; DoCreateTextLine(previousLine: TextLine, width: number, lineOffset?: number, fitSomething?: boolean, reuseLine?: TextLine): TextLine; getTabStops(): any; setTabStops(value: any): void; getTextJustifier(): TextJustifier; setTextJustifier(value: TextJustifier): void; get userData(): any; set userData(value: any); } //# sourceMappingURL=TextBlock.d.ts.map