(renderedCount: number)
| 1755 | } |
| 1756 | |
| 1757 | function getNoteListItemCount(renderedCount: number): number { |
| 1758 | const raw = document.querySelector<HTMLElement>('[data-notelist-count]')?.dataset.notelistCount |
| 1759 | const total = raw == null ? null : Number(raw) |
| 1760 | return boundedIndexCount(renderedCount, total != null && Number.isFinite(total) ? total : null) |
| 1761 | } |
| 1762 | |
| 1763 | /** Find position in sorted items array by stored cursor index (no DOM focus dependency). */ |
| 1764 | function findPositionByIndex( |
no test coverage detected