Skip to main content

Function: useWorkerLayoutForce()

useWorkerLayoutForce(settings): object

React hook that helps you to manage worker of force layout.

const { stop, start } = useWorkerLayoutForce(...);

Parameters

settings: ForceLayoutSupervisorParameters

Returns

object

isRunning

isRunning: boolean

kill()

kill: () => void

Returns

void

start()

start: () => void

Returns

void

stop()

stop: () => void

Returns

void

Defined in

packages/layout-force/src/useWorkerLayoutForce.ts:13