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 startObject object containing numeric attributes
xandythat represent the first endpoint of the wire in grid pixelsendObject object containing numeric attributes
xandythat represent the second endpoint of the wire in grid pixelsnonRoutableSet set of non routable nodes
punishedButRoutableSet set of nodes that are not optimal for routing
Returns:
Array -array of objects containing numeric attributes
xandy