Commit Graph

4525 Commits

Author SHA1 Message Date
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 Klack
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 Klack
bd95cc1b59 Merge pull request #4144 from xyflow/svelte-handle-valid-connection
Svelte: isValidConnection on <Handle />
2024-05-02 11:26:38 +02:00
Moritz Klack
2534a26c22 Merge pull request #4224 from darabos/patch-2
[SvelteFlow] Make handleId and isTarget reactive
2024-05-02 11:25:49 +02:00
Moritz Klack
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 Klack
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 Klack
b67ff60d5c Merge pull request #4226 from DenizUgur/update-node-internals-typing
fix typing for `UpdateNodeInternals`
2024-04-30 17:48:35 +02:00
Moritz Klack
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 Darabos
eb229d820b Make handleId and isTarget reactive. 2024-04-29 19:43:35 +02:00
Moritz Klack
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 Klack
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 Klack
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 Klack
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
moklick
972da582e9 fix(react): useNodesInitialized true when nodes measured closes #4202 2024-04-25 17:02:57 +02:00
Moritz Klack
d3765838fc Merge pull request #4209 from xyflow/fix/batching-provider
fix(react): handle setNodes batching in provider
2024-04-25 16:48:02 +02:00
moklick
0b684a7fe9 chore(changelog): update 2024-04-25 16:47:49 +02:00
moklick
3a23a594cf chore(BatchProvider): cleanup 2024-04-25 16:41:09 +02:00
moklick
95fd22d25b chore(BatchProvider): cleanup 2024-04-25 15:08:10 +02:00
moklick
a7b6789ce0 fix(react): handle setNodes batching in provider #4147 2024-04-25 12:57:24 +02:00
RedPhoenixQ
72582b035f Move node EventMap to types and use createEventDispatcher from svelte
Using createEventDispatcher from another imported function seems to
break the svelte types and thus none of the node events where typed.
2024-04-22 18:29:07 +02:00
Moritz Klack
a6c0bdc863 Merge pull request #4193 from xyflow/next
React Flow 12.0.0-next.15
2024-04-22 15:13:23 +02:00
moklick
40937c38ae refactor(updateNode): replace false as default closes #4164 2024-04-22 15:09:30 +02:00
moklick
d0e07b2e04 chore(packages): bump 2024-04-22 15:06:05 +02:00
moklick
7e8bcd8825 refactor(react): add setAttributes for dimension changes 2024-04-22 14:51:23 +02:00
Moritz Klack
973a3ddd35 fix(react): node observation #4064 (#4182)
* fix(react): node observation #4064

* chore(react): cleanup useNodeObserver

* chore(react): cleanup useNodeObserver
2024-04-18 18:00:49 +02:00
Daniel Darabos
a0a046e21f Do not reset nodes and edges. They are controlled by the user. 2024-04-18 12:35:13 +02:00
moklick
4a7ba3f6ea refactor(react): cleanup provider 2024-04-18 11:36:26 +02:00
moklick
b6f458fc5a chore(utils): cleanup 2024-04-18 09:57:30 +02:00
moklick
6c30686127 refactor(utils): cleanup getPositionWithOrigin 2024-04-18 09:17:51 +02:00
Moritz Klack
356737d5be Merge pull request #4176 from tonyf/tonyf/node-resizer
[v12] call `onEnd` in `XYResizer`'s `end` drag event handler
2024-04-18 09:05:45 +02:00
Tony Francis
6494c3fac4 call onEnd in end drag event hanlder in XYResizer 2024-04-18 02:52:14 -04:00