(blocks, text)
| 107 | }; |
| 108 | |
| 109 | const printBlocks = (blocks, text) => { |
| 110 | console.log(` ${blocks.length} blocks detected:`); |
| 111 | const firstBlockText = getText(blocks[0].layout.textAnchor, text); |
| 112 | console.log(` First block text: ${JSON.stringify(firstBlockText)}`); |
| 113 | const lastBlockText = getText( |
| 114 | blocks[blocks.length - 1].layout.textAnchor, |
| 115 | text |
| 116 | ); |
| 117 | console.log(` Last block text: ${JSON.stringify(lastBlockText)}`); |
| 118 | }; |
| 119 | |
| 120 | const printLines = (lines, text) => { |
| 121 | console.log(` ${lines.length} lines detected:`); |
no test coverage detected