Moritz Klack

Results 283 comments of Moritz Klack

Hey @D-Niermann this should be possible. You can only extend class components. Did you see this https://reactjs.org/docs/composition-vs-inheritance.html? Maybe it could help you to find other solutions for your problem here.

Please re-open if the issue still persists.

Thanks for the report. It seems to be an issue with source -> source and target -> target connections. I'll check how we can fix it.

With v10, you can hook into the onNodesChange function and set a fixed x or y coordinate. Example implementation: https://codesandbox.io/s/peaceful-darkness-t9351t?file=/src/Flow.tsx ```js const onNodesChange = useCallback((changes: NodeChange[]) => { setNodes((nds) =>...

Hey @Kinark Thanks for your help! Two notes: 1. I think you don't need the new `allowPanOverNodes` prop but you can use `elementsSelectable={false}` to achieve it. 2. Why are you...

I added a discussion for this topic #2167 . Let's discuss the API first before we continue here.

Hey @Kinark are you still working on this? Some things changed with v11. The `allowPanOverNodes` is not necessary anymore. It's the new default behaviour when nodes are not draggable.

Could you find a solution? If not, could you send a minimal example within a codesandbox?

Ok. Great that you could fix it! No need to rush with the repo but it seems to be an interesting issue.