(current: any, next: any)
| 210 | |
| 211 | // Move hover class through the results |
| 212 | const moveHover = (current: any, next: any) => { |
| 213 | if (current != next) { |
| 214 | if (current) { |
| 215 | delClass(current, 'hover'); |
| 216 | } |
| 217 | if (next) { |
| 218 | addClass(next, 'hover'); |
| 219 | next.scrollIntoView({ |
| 220 | block: 'nearest', |
| 221 | inline: 'nearest', |
| 222 | }); |
| 223 | } |
| 224 | } |
| 225 | }; |
| 226 | |
| 227 | // Tokenize a string into words, optionally reversing the order |
| 228 | const tokenize = (string: string, tokens: Set<string>, reverse?: boolean) => { |
no test coverage detected
searching dependent graphs…