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
andy
that represent the first endpoint of the wire in grid pixelsend
Object object containing numeric attributes
x
andy
that represent the second endpoint of the wire in grid pixelsnonRoutable
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
andy