(sectionHref: string)
| 245 | } |
| 246 | |
| 247 | mapSectionToNavItem(sectionHref: string) { |
| 248 | let navItem: NavItem | undefined |
| 249 | this.nav?.toc.forEach((item) => |
| 250 | dfs(item as NavItem, (i) => { |
| 251 | if (compareHref(sectionHref, i.href)) navItem ??= i |
| 252 | }), |
| 253 | ) |
| 254 | return navItem |
| 255 | } |
| 256 | |
| 257 | get currentHref() { |
| 258 | return this.location?.start.href |
no test coverage detected