(lines, text)
| 118 | }; |
| 119 | |
| 120 | const printLines = (lines, text) => { |
| 121 | console.log(` ${lines.length} lines detected:`); |
| 122 | const firstLineText = getText(lines[0].layout.textAnchor, text); |
| 123 | console.log(` First line text: ${JSON.stringify(firstLineText)}`); |
| 124 | const lastLineText = getText( |
| 125 | lines[lines.length - 1].layout.textAnchor, |
| 126 | text |
| 127 | ); |
| 128 | console.log(` Last line text: ${JSON.stringify(lastLineText)}`); |
| 129 | }; |
| 130 | |
| 131 | const printTokens = (tokens, text) => { |
| 132 | console.log(` ${tokens.length} tokens detected:`); |
no test coverage detected