()
| 56 | } |
| 57 | |
| 58 | export function getMeasureTextCacheStatsForTesting(): { |
| 59 | entries: number |
| 60 | bytes: number |
| 61 | } { |
| 62 | return { |
| 63 | entries: measureCacheSize, |
| 64 | bytes: measureCacheBytes, |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // Single-pass measurement: computes both width and height in one |
| 69 | // iteration instead of two (widestLine + countVisualLines). |
no outgoing calls
no test coverage detected