()
| 284 | } |
| 285 | |
| 286 | right(): Cursor { |
| 287 | if (this.offset >= this.text.length) return this |
| 288 | |
| 289 | const chip = this.imageRefStartingAt(this.offset) |
| 290 | if (chip) return new Cursor(this.measuredText, chip.end) |
| 291 | |
| 292 | const nextOffset = this.measuredText.nextOffset(this.offset) |
| 293 | return new Cursor(this.measuredText, Math.min(nextOffset, this.text.length)) |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * If an [Image #N] chip ends at `offset`, return its bounds. Used by left() |
no test coverage detected