## routeWorker

### Methods

#### inner findPaths(wires, nonRoutableNodes, inconvenientNodes) → {Array}
`routeWorker.js`, `line 31`

  find paths for all the specified wires

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `wires` | Array | array of objects with attributes `from` and `to`, both of them which are objects with values `x` and `y` containing coordinates of the wire endpoints
  `nonRoutableNodes` | Iterable | Set or array of non routable nodes
  `inconvenientNodes` | Iterable | 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 `wires` parameter

#### inner onmessage(event)
`routeWorker.js`, `line 13`

  callback when a message is sent to the web worker

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `event` | Object | web worker event object (the `data` item of the event object is expected to contain these items: `wires` (array), `nonRoutableNodes` (iterable) and `inconvenientNodes` (iterable))