Skip to Content
Svelte Flow 2 is out! Read the announcement →
ReferenceTypes

ShouldResize

Source on GitHub 

The ShouldResize type is a callback that fires whenever a node is about to be resized by a <NodeResizer /> component, and is used to determine whether the node may be resized.

If this callback returns false, the resize is skipped and the OnResize callback will not be invoked.

type ShouldResize = (event: ResizeDragEvent, params: ResizeParamsWithDirection) => boolean;
Parameters:
NameTypeDefault
eventResizeDragEvent
paramsResizeParamsWithDirection
Returns:
Result