bottom | number | Bottom of the line box. | text/layout.ts:63 |
carets | number[] | The x of the caret at each of offsets. Spaces past the line’s edge hang beyond width. | text/layout.ts:76 |
end | number | Offset where the line ends, before its newline. Spaces a wrap removed count as part of the line, so a wrapped line ends where the next one starts. | text/layout.ts:70 |
offsets | number[] | Every place a caret can sit on the line, as source offsets from start to end. | text/layout.ts:74 |
start | number | Offset in the source text where the line starts. | text/layout.ts:65 |
text | string | The characters on the line, without the spaces a wrap removed. | text/layout.ts:53 |
top | number | Top of the line box. Lines stack every lineHeight. | text/layout.ts:61 |
width | number | Width of the line, without trailing spaces that hang past the edge. | text/layout.ts:55 |
wrapped | boolean | True when the line ends at a wrap rather than at a newline or the end of the text. | text/layout.ts:72 |
x | number | Left edge of the line after alignment. | text/layout.ts:59 |
y | number | Baseline y. | text/layout.ts:57 |