()
| 848 | })) |
| 849 | |
| 850 | const notify = () => { |
| 851 | notifyRendered({ |
| 852 | viewer, |
| 853 | isReady: (root) => { |
| 854 | if (virtual()) return root.querySelector("[data-line]") != null |
| 855 | return root.querySelectorAll("[data-line]").length >= lineCount() |
| 856 | }, |
| 857 | onReady: () => { |
| 858 | applySelection(viewer.lastSelection) |
| 859 | viewer.find.refresh({ reset: true }) |
| 860 | local.onRendered?.() |
| 861 | }, |
| 862 | }) |
| 863 | } |
| 864 | |
| 865 | useSearchHandle({ |
| 866 | search: () => local.search, |
no test coverage detected