Commit Graph

137 Commits

Author SHA1 Message Date
Moritz Klack
3bba0b41e0 feat(useReactFlow): add updateEdge and updateEdgeData (#4351)
* feat(useReactFlow): add updateEdge and updateEdgeData

* chore(examples): add updateEdge call
2024-06-06 17:26:10 +02:00
moklick
02d724f16d chore(examples): cleanup 2024-06-03 16:11:21 +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
ad3a803abb fix(react): dont allow invalid selection rect 2024-05-02 18:02:38 +02:00
moklick
7501eace79 fix(react): default node updates closes #4202 2024-04-29 13:35:58 +02:00
moklick
95fd22d25b chore(BatchProvider): cleanup 2024-04-25 15:08:10 +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
moklick
28a2f8d9fb chore(react): add redux example 2024-04-17 12:33:07 +02:00
moklick
4fa3a87241 refactor(updates): only trigger dim updates when dim changed 2024-04-11 12:31:14 +02:00
moklick
d545774724 chore(examples): use new api 2024-04-10 16:33:53 +02:00
moklick
961b5a936c chore(examples): make dev tools example reusable 2024-04-10 14:56:40 +02:00
Moritz Klack
e7e1a37c9d Merge pull request #4131 from xyflow/feat/react-devtools
Feat/react devtools example
2024-04-10 14:38:49 +02:00
Moritz Klack
fd2436cb60 Merge pull request #4105 from xyflow/refactor/internal-nodes
React Flow 12: separate user nodes and internal nodes
2024-04-09 13:33:25 +02:00
moklick
3e59ab94f0 refactor(nodes): rename parentNode to parentId 2024-04-09 13:26:54 +02:00
moklick
4570b2494b chore(react/store): cleanup 2024-04-08 17:32:49 +02:00
moklick
508efab624 feat(controls): add orientation, style and class props closes #4069 2024-04-04 12:53:05 +02:00
moklick
ea18e46a1a refactor(nodes): rename computed to measured, add helpers 2024-04-03 14:54:24 +02:00
moklick
b302cb59e8 style(devtools): put styles in css file 2024-04-03 11:33:21 +02:00
moklick
79dbdc27f6 chore(react/devtools): cleanup 2024-03-27 15:14:36 +01:00
moklick
844d574c4f refactor(react): separate user nodes and indernal nodes 2024-03-27 11:22:43 +01:00
moklick
eedff63399 feat(devtools): add change logger 2024-03-23 16:25:01 +01:00
moklick
ed6f4313b1 feat(react): add devtools example 2024-03-21 14:30:33 +01:00
moklick
b1c30ee653 refactor(intersections): use passed node values for calculations 2024-03-14 16:14:48 +01:00
moklick
305be1e26a chore(test): cleanup 2024-03-07 13:22:07 +01:00
moklick
5c50ecfb42 text(react): cleanup tests, add onNodesChange tests 2024-03-06 18:07:06 +01:00
moklick
9ad0aaf277 test(playwright): fix edge selection and auto pan tests 2024-03-06 14:44:58 +01:00
peterkogo
69e0be6d32 refactor(useNodesData): improve selector equality function (#3976)
* improved selector equality function for useNodesData

* fixed selector & useNodesData example

* added shallow-node-data as system function
2024-03-05 14:46:25 +01:00
Moritz Klack
4a12a9f781 Refactor(types): unify node and edge handling (#3978)
* refactor(types): unify node and edge type behaviour

* chore(changelogs): update

* chore(examples): cleanup
2024-03-05 13:15:28 +01:00
moklick
e972656c3d fix(react): ReactFlow comp ref type 2024-03-04 12:01:26 +01:00
moklick
77dadd8084 Merge branch 'next' into node-resizer-origin 2024-02-29 13:21:43 +01:00
moklick
0de6d4db33 chore(examples): use width/height for specifying node sizes 2024-02-29 13:21:16 +01:00
Moritz Klack
45e83f89f6 Merge pull request #3954 from xyflow/handle-connection-fixes
Handle connection fixes
2024-02-29 12:54:35 +01:00
moklick
68ce560cf1 chore(handles): cleanup 2024-02-29 12:53:04 +01:00
peterkogo
019909da5d added connectionfrom connectionto and clickconnecting css 2024-02-28 12:23:00 +01:00
moklick
aead13f485 chore(react): add addNodeOnEdgeDrop example 2024-02-28 10:25:20 +01:00
Moritz Klack
1c9a5f3b30 Merge pull request #3929 from xyflow/extend-use-nodes-data
Extend useNodesData by {id, type, data}
2024-02-26 14:13:39 +01:00
moklick
3fc3b7e603 chore(useNodesData): cleanup return type 2024-02-26 14:13:12 +01:00
peterkogo
89a90cb848 added id, type to result from useNodesData 2024-02-20 18:59:34 +01:00
Moritz Klack
c904f5c485 Merge pull request #3928 from xyflow/fix-node-drag
Fire node drag events also when dragging selection
2024-02-20 15:02:08 +01:00
moklick
67fe7952f8 chore(custom-nodes): use custom edge type 2024-02-20 00:04:20 +01:00
peterkogo
b15b7dbd6b Fire node drag events also when dragging selection 2024-02-19 16:37:35 +01:00
moklick
7bc9558631 Merge branch 'next' into refactor/infer-node-types 2024-02-19 10:39:56 +01:00
moklick
a16c5c9bd5 chore(types): cleanup 2024-02-17 16:32:59 +01:00
moklick
04ba6e0e4e fix(nodes): re-measure nodes when dimensions are missing 2024-02-13 17:19:32 +01:00
Moritz Klack
4237775b6e Merge pull request #3907 from xyflow/refactor/set-nodes
Refactor(setNodes): improve current batching solution
2024-02-13 16:20:39 +01:00
Moritz Klack
6b18c9daeb refactor defaultNodes/defaultEdges handling (#3882)
* refactor(react): cleanup defaultnodes/defaultedges handling

* chore(examples): cleanup

* chore(examples): cleanup

* fix(react): selection for uncontrolled flows
2024-02-07 17:09:39 +01:00
peterkogo
5746c7b6fb merge next 2024-01-30 12:36:04 +01:00
peterkogo
d5e21b0001 improved nodeResizer example 2024-01-30 12:32:02 +01:00
moklick
cccfc21114 refactor(react): minimap generic node type 2024-01-26 09:57:19 +01:00