ResizeParamsWithDirection
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
| Name | Type | Default |
|---|---|---|
x | number | |
y | number | |
width | number | |
height | number | |
direction | number[] |