Skip to content

Interface: GraphLayoutWorkerOptions ​

Options of a GraphLayoutWorker.

Properties ​

PropertyModifierTypeDescription
createWorker?readonly(url) => LayoutWorkerLikeMakes the worker, for tests and hosts with a worker of their own kind.
startTimeout?readonlynumberMilliseconds the worker has to load in before the main thread takes over. Default 10,000.
url?readonlystring | URLWhere 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?readonlyWarnFunctionWhere the warning about a missing worker goes. Default console.warn, once.

Released under the MIT License.