React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
Currently, the controls of the NodeResizer get their possible resize directions based on their positions. This means that it's not possible to limit a control in the bottom-right corner to resize only horizontally. Maybe we can add an option to overwrite the direction in which a control can resize the node.
Describe the Bug
Currently, the controls of the NodeResizer get their possible resize directions based on their positions. This means that it's not possible to limit a control in the bottom-right corner to resize only horizontally. Maybe we can add an option to overwrite the direction in which a control can resize the node.
Your Example Website or App
https://codesandbox.io/s/zen-wind-w9znpf?file=/ResizableNode.js
Steps to Reproduce the Bug or Issue
Handle
to your custom nodeExpected behavior
It should be possible to limit the direction for all controls
Screenshots or Videos
No response
Platform
all
Additional context
https://github.com/wbkd/react-flow/discussions/2868