Methods
-
inner findPaths(wires, nonRoutableNodes, inconvenientNodes) → {Array}
-
find paths for all the specified wires
Parameters:
Name Type Description wiresArray array of objects with attributes
fromandto, both of them which are objects with valuesxandycontaining coordinates of the wire endpointsnonRoutableNodesIterable Set or array of non routable nodes
inconvenientNodesIterable Set or array of inconvenient nodes
Returns:
Array -array of paths, each item is an array of points of the path the returned array contains paths for the wires with corresponding indexes from the
wiresparameter -
inner onmessage(event)
-
callback when a message is sent to the web worker
Parameters:
Name Type Description eventObject web worker event object (the
dataitem of the event object is expected to contain these items:wires(array),nonRoutableNodes(iterable) andinconvenientNodes(iterable))