()
| 570 | }; |
| 571 | let screenTextCache: string | null = null; |
| 572 | const getScreenText = (): string => { |
| 573 | if (screenTextCache !== null) return screenTextCache; |
| 574 | screenTextCache = opsToText(ops, viewport); |
| 575 | return screenTextCache; |
| 576 | }; |
| 577 | |
| 578 | const textStartedAt = Date.now(); |
| 579 | const screenTextForTrace = trace ? getScreenText() : ""; |