Interface: GraphLayoutWorkerOptions
Options of a GraphLayoutWorker.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
createWorker? | readonly | (url) => LayoutWorkerLike | Makes the worker, for tests and hosts with a worker of their own kind. |
startTimeout? | readonly | number | Milliseconds the worker has to load in before the main thread takes over. Default 10,000. |
url? | readonly | string | URL | Where the worker file is, for an app that serves dist/layout-worker.js itself. Default: next to this module, which is where the package build puts it and where bundlers look. |
warn? | readonly | WarnFunction | Where the warning about a missing worker goes. Default console.warn, once. |