Global

Members

map :Object

mapping of logical states to css classes

Methods

module:findPath(start, end, nonRoutable, punishedButRoutable) → {Array}

Heavily modified implementation of the A* algorithm

Parameters:
Name Type Description
start Object

object containing numeric attributes x and y that represent the first endpoint of the wire in grid pixels

end Object

object containing numeric attributes x and y that represent the second endpoint of the wire in grid pixels

nonRoutable Set

set of non routable nodes

punishedButRoutable Set

set of nodes that are not optimal for routing

Returns:
Array -

array of objects containing numeric attributes x and y