import { TextRect } from "../../../metadata/TextRect" ; import { ISelectedContent } from "../selection/ISelectedContent" ; export class TextSelections { public static compute ( selectedContent ) { const result = [ ] ; selectedContent . rectTexts . forEach ( ( rectText ) => { const textSelection = new TextRect ( { rect : rectText . boundingPageRect , text : rectText . text } ) ; result . push ( textSelection ) ; } ) ; return result ; } }