Commit Graph
4493 Commits
Author SHA1 Message Date
Luis CarlosandGitHub abeb4086d3 fix: Correct parent node lookup in evaluateAbsolutePosition
### Summary

This PR fixes a bug in the `evaluateAbsolutePosition` function where the incorrect parent node was being retrieved from the `nodeLookup` in each iteration of the while loop.

### Changes

- Modified the line `const parent = nodeLookup.get(parentId);` to `const parent = nodeLookup.get(nextParentId);`.

### Reason

The original implementation used `parentId` to look up the parent node, which did not change within the loop. This resulted in the same parent node being used for each iteration, leading to incorrect calculations of the absolute position. By using `nextParentId`, we ensure that the correct parent node is retrieved and used in each iteration.
2024-06-05 09:29:48 -01:00
Moritz KlackandGitHub 467223b9a3 Merge pull request #4258 from xyflow/next
React Flow 12.0.0-next.18
2024-05-08 22:49:13 +02:00
moklick 02250e972d chore(packages): bump 2024-05-08 22:36:26 +02:00
moklick ccadb043c3 refactor(system): mutate internal node instead of creating a new one 2024-05-08 22:20:13 +02:00
Moritz KlackandGitHub adff7ef9dd Merge pull request #4261 from xyflow/react/styles-loaded-warning
React/styles loaded warning
2024-05-07 18:35:31 +02:00
moklick a364a93082 feat(react): add warning when styles not loaded #4047 2024-05-07 18:25:04 +02:00
moklick 32bac3e133 chore(react): cleanup examples 2024-05-07 18:24:17 +02:00
moklick 2b0d75ddaa refactor(types): only export HandleProps but not HandleComponentProps 2024-05-07 16:22:26 +02:00
moklick 5093213116 chore(react): udpate return type of fixedForwardRef function 2024-05-07 14:47:47 +02:00
moklick b9ec783b6b fix(react): dont show nodeTypes warning if not necessary #3923 2024-05-07 13:19:54 +02:00
moklick fb30b81cb4 fix(svelte): node toolbar for subflows 2024-05-06 15:50:41 +02:00
moklick 9cf09651a6 fix(svelte): export InternalNode type 2024-05-06 14:00:33 +02:00
moklick 181a94d125 fix(svelte): export useInternalNode hook 2024-05-06 12:32:00 +02:00
Moritz KlackandGitHub 8d2103721f Merge pull request #4222 from xyflow/next
React Flow 12.0.0-next.17 | Svelte Flow 0.1.0
2024-05-06 12:24:21 +02:00
moklick 1860dff666 fix(minimap): sub flow node positions 2024-05-06 11:47:57 +02:00
moklick de86c64128 fix(svelte): selection for sub flows 2024-05-06 11:47:45 +02:00
moklick d562818f4c fix(styles): add node-resizer to base style 2024-05-06 11:20:10 +02:00
moklick 5f3dbbbade chore(versions): bump 2024-05-02 18:05:38 +02:00
moklick ad3a803abb fix(react): dont allow invalid selection rect 2024-05-02 18:02:38 +02:00
moklick ec2592966e chore(changelogs): update 2024-05-02 17:49:15 +02:00
moklick c0de3ad941 chore(libs): export Align type 2024-05-02 17:49:06 +02:00
moklick ce9ce1db0b fix(system): return user nodes in node drag/click handlers 2024-05-02 17:40:48 +02:00
Moritz KlackandGitHub 51ab674115 Merge pull request #4238 from xyflow/svelte4next
Svelte Flow 0.1.0
2024-05-02 17:30:25 +02:00
moklick e1ef45666a test(svelte): nodeDragThreshold=0 for node tests 2024-05-02 17:29:53 +02:00
moklick 9984dd39a2 refactor(svelte): add quotes to edge marker urls 2024-05-02 17:29:31 +02:00
moklick 534db656b4 feat(svelte): add getInternalNode and useInternalNode 2024-05-02 16:39:57 +02:00
moklick f2f2c3cc2e feat(svelte): add fitViewOptions for Controls closes #4201 2024-05-02 15:36:42 +02:00
moklick 3b940ac5ae fix(svelte): use correct updateNodeInternals API 2024-05-02 15:01:37 +02:00
moklick 00cbf2246c fix(svelte): only update node dimension attributes when necessary 2024-05-02 15:01:14 +02:00
moklick d4bfea9b27 chore(svelte): cleanup examples 2024-05-02 15:00:39 +02:00
Moritz KlackandGitHub bd95cc1b59 Merge pull request #4144 from xyflow/svelte-handle-valid-connection
Svelte: isValidConnection on <Handle />
2024-05-02 11:26:38 +02:00
Moritz KlackandGitHub 2534a26c22 Merge pull request #4224 from darabos/patch-2
[SvelteFlow] Make handleId and isTarget reactive
2024-05-02 11:25:49 +02:00
Moritz KlackandGitHub 96efa4e3a1 Merge pull request #4180 from darabos/patch-1
Do not reset nodes and edges — they are controlled by the user
2024-05-02 11:25:31 +02:00
Moritz KlackandGitHub 47da7a143f Merge pull request #4195 from RedPhoenixQ/node-event-types
Svelte: Fix Node event types
2024-05-02 11:25:03 +02:00
moklick 170ef688a8 chore(react): changelog 2024-04-30 17:52:06 +02:00
Moritz KlackandGitHub b67ff60d5c Merge pull request #4226 from DenizUgur/update-node-internals-typing
fix typing for `UpdateNodeInternals`
2024-04-30 17:48:35 +02:00
Moritz KlackandGitHub 8f3b56e9c6 Merge pull request #4229 from xyflow/fix/react-pan-win-touch
Fix/react pan win touch
2024-04-30 17:47:30 +02:00
moklick d1b50707ff fix(system): pinch zoom on windows #3759 2024-04-30 16:42:33 +02:00
moklick a9dfd45b4f fix(system): dont break touch pan with panOnDrag is an array 2024-04-30 16:41:13 +02:00
DenizUgur eec2a6923d fix typing for UpdateNodeInternals 2024-04-29 12:43:10 -07:00
Daniel DarabosandGitHub eb229d820b Make handleId and isTarget reactive. 2024-04-29 19:43:35 +02:00
Moritz KlackandGitHub 5c57be6f54 Merge pull request #4221 from xyflow/refactor/use-react-flow
refactor(react): cleanup useReactFlow
2024-04-29 17:31:47 +02:00
moklick 962db7082f Merge branch 'next' into refactor/use-react-flow 2024-04-29 17:30:58 +02:00
Moritz KlackandGitHub 73913f0509 Merge pull request #4220 from xyflow/fix/react-export-keycode
fix(react): export KeyCode type from system
2024-04-29 17:28:39 +02:00
Moritz KlackandGitHub d23f593cd2 Merge pull request #4219 from xyflow/fix/defaultnode-updates
fix(react): default node updates closes #4202
2024-04-29 17:28:28 +02:00
moklick 860128fd15 refactor(react): cleanup useReactFlow 2024-04-29 17:16:12 +02:00
moklick 930fe79fbf fix(react): export KeyCode type from system 2024-04-29 14:14:19 +02:00
moklick 7501eace79 fix(react): default node updates closes #4202 2024-04-29 13:35:58 +02:00
Moritz KlackandGitHub c318288703 Merge pull request #4212 from xyflow/next
React Flow 12.0.0-next.16
2024-04-25 17:06:06 +02:00
moklick 8c784c2035 chore(react): bump 2024-04-25 17:05:51 +02:00