Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceTypes

ResizeParamsWithDirection

Source on GitHub 

The ResizeParamsWithDirection type is used to type the OnResize event emitted by the <NodeResizer /> component.

export type ResizeParamsWithDirection = { x: number; y: number; width: number; height: number; direction: number[]; };

The direction field is an array of two numbers representing the direction of the resize for each axis: 0 = no change, 1 = increase, -1 = decrease.

Fields

NameTypeDefault
xnumber
ynumber
widthnumber
heightnumber
directionnumber[]