import { default as PageItem, BlockTypeEntry } from './page-item'; import { default as Annotation } from './annotation'; import { default as ParsedElements } from './parsed-elements'; import { WordFormatEntry } from './word'; export default class TextItem extends PageItem { x: number; y: number; width: number; height: number; text: string; font: string; lineFormat: WordFormatEntry | null; unopenedFormat: WordFormatEntry | null; unclosedFormat: WordFormatEntry | null; constructor(options: { x: number; y: number; width: number; height: number; text: string; font: string; lineFormat?: WordFormatEntry | null; unopenedFormat?: WordFormatEntry | null; unclosedFormat?: WordFormatEntry | null; type?: BlockTypeEntry | null; annotation?: Annotation | null; parsedElements?: ParsedElements | null; }); }