API reference / Common / Engine types / TextCaretSide
Type Alias: TextCaretSide
ts
type TextCaretSide = "lineStart" | "lineEnd";Which line a caret at a soft wrap shows on: the end of the line the wrap closes, or the start of the line it opens.
A line that wraps with no space to hang — CJK text, a word broken after its hyphen, a word longer than the line — ends at the very offset the next line starts at, so that offset alone does not say where the caret is. End, a click past the line's text, and Up or Down at a column past it put the caret at the end of that line; a caret that arrived any other way stands at the start of the next. Off such a seam an offset is on one line only, and the side changes nothing.