Merge branch 'xyflow' into feat/ssr

This commit is contained in:
moklick
2023-10-05 20:31:55 +02:00
21 changed files with 602 additions and 43 deletions
@@ -49,9 +49,9 @@ const DnDFlow = () => {
if (reactFlowInstance) {
const type = event.dataTransfer.getData('application/reactflow');
const position = reactFlowInstance.project({
const position = reactFlowInstance.screenToFlowCoordinate({
x: event.clientX,
y: event.clientY - 40,
y: event.clientY,
});
const newNode: Node = {
id: getId(),