import { ResizeControlVariant, XY_RESIZER_HANDLE_POSITIONS, XY_RESIZER_LINE_POSITIONS } from '@xyflow/system'; import { NodeResizeControl } from './NodeResizeControl'; import type { NodeResizerProps } from './types'; export function NodeResizer({ nodeId, isVisible = true, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth = 10, minHeight = 10, maxWidth = Number.MAX_VALUE, maxHeight = Number.MAX_VALUE, keepAspectRatio = false, shouldResize, onResizeStart, onResize, onResizeEnd, }: NodeResizerProps) { if (!isVisible) { return null; } return ( <> {XY_RESIZER_LINE_POSITIONS.map((position) => ( ))} {XY_RESIZER_HANDLE_POSITIONS.map((position) => ( ))} ); }