()
| 467 | } |
| 468 | |
| 469 | getVisibleRange() { |
| 470 | const { from, size } = this.state; |
| 471 | const { start, end } = this.getStartAndEnd(0); |
| 472 | const cache = {}; |
| 473 | let first, last; |
| 474 | for (let i = from; i < from + size; ++i) { |
| 475 | const itemStart = this.getSpaceBefore(i, cache); |
| 476 | const itemEnd = itemStart + this.getSizeOfItem(i); |
| 477 | if (first == null && itemEnd > start) first = i; |
| 478 | if (first != null && itemStart < end) last = i; |
| 479 | } |
| 480 | return [first, last]; |
| 481 | } |
| 482 | |
| 483 | renderItems() { |
| 484 | const { itemRenderer, itemsRenderer } = this.props; |
nothing calls this directly
no test coverage detected