()
| 309 | } |
| 310 | |
| 311 | right(): Cursor { |
| 312 | if (this.offset >= this.text.length) return this |
| 313 | |
| 314 | const chip = this.imageRefStartingAt(this.offset) |
| 315 | if (chip) return new Cursor(this.measuredText, chip.end) |
| 316 | |
| 317 | const nextOffset = this.measuredText.nextOffset(this.offset) |
| 318 | return new Cursor(this.measuredText, Math.min(nextOffset, this.text.length)) |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * If an [Image #N] chip ends at `offset`, return its bounds. Used by left() |
no test coverage detected