Commit Graph

152 Commits

Author SHA1 Message Date
moklick
2503d32a88 feat(viewport-helpers): return promises 2024-07-08 13:18:07 +02:00
moklick
86485c5bcc chore(changelog): update 2024-06-27 17:22:17 +02:00
moklick
f968ff42ca chore(react): node origin cleanup 2024-06-26 15:26:22 +02:00
moklick
a8c9b93fe7 chore(examples): cleanup 2024-06-26 13:42:45 +02:00
moklick
6f14f92f8c chore(examples): cleanup 2024-06-25 16:47:09 +02:00
moklick
e22c1b9391 chore(node-resizer): update 2024-06-25 12:13:34 +02:00
moklick
8ad1797f98 Merge branch 'next' into absolute-origin 2024-06-24 13:00:58 +02:00
moklick
5e96fa08ed chore(tsconfig): update moduleResolution 2024-06-24 12:57:52 +02:00
Moritz Klack
67e29b6c25 Merge branch 'next' into absolute-origin 2024-06-24 12:57:24 +02:00
peterkogo
bedd05663e fix tsconfig error 2024-06-24 12:17:00 +02:00
Peter Kogo
6cf0113005 Use correct end handle position when drawing a connection (#4382)
* use correct end handle position \when drawing connection lines

* provide correct connection end handle, also when connection is invalid

* add end handle position to connection despite being invalid

* chore(connectionline): remove logs

---------

Co-authored-by: moklick <info@moritzklack.com>
2024-06-19 17:15:07 +02:00
Moritz Klack
75acd24cee Rename updateEdge to reconnectEdge (#4373)
* refactor(edges): rename update to reconnect

* refactor(react): rename edge update to reconnect

* chore(examples): repair broken reconnect example

* chore(react): changelog
2024-06-19 16:57:30 +02:00
peterkogo
42f4f59425 tiny updates to internal library examples 2024-06-17 11:57:15 +02:00
moklick
c9d0f13328 fix(handles): calc offset correctly 2024-06-10 11:47:18 +02:00
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
peterkogo
e81194d58a Include origin directly in positionAbsolute of node 2024-05-22 15:38:08 +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