LayoutContext
Context information for running a layout algorithm.
Props
Name | Description | Type |
---|---|---|
layoutWorker? | A Web Worker for asynchronous layout calculation. | Worker |
onError? | A callback function invoked when an error occurs during the layout process. It allows developers to handle errors and perform necessary actions when layout errors occur. | (error: unknown) => void |
reactFlowRef? | An optional reference to the React Flow element. This reference is particularly useful in scenarios where there are multiple React Flow elements on the same page or when the flow is encapsulated within a closed shadow DOM. | RefObject<HTMLDivElement> |