(state: string, path: ConvertPathNode[])
| 328 | } |
| 329 | |
| 330 | private dispatchEvent(state: string, path: ConvertPathNode[]) { |
| 331 | this.listeners.forEach(l => l(state, path)); |
| 332 | } |
| 333 | |
| 334 | public async* searchPath(from: ConvertPathNode, to: ConvertPathNode, simpleMode: boolean) : AsyncGenerator<ConvertPathNode[]> { |
| 335 | // Dijkstra's algorithm |