Commit Graph
296 Commits
Author SHA1 Message Date
moklick 1eee0cd377 refactor(useDragNode): cleanup, refactoring 2022-05-16 18:56:26 +02:00
Moritz KlackandGitHub 503603c5d5 Merge branch 'refactor/d3-drag' into refactor/d3-drag-handle-selector 2022-05-10 15:37:19 +02:00
moklick 35d30f5b2e Merge branch 'main' into refactor/d3-drag 2022-05-08 18:57:52 +02:00
moklick dcc05ad8cd chore(props): rename isEdgeAutoZIndex to elevateEdgesOnSelect 2022-05-02 23:40:04 +02:00
moklick 2363046af9 chore(warnings): use new troubleshooting url 2022-05-02 23:27:13 +02:00
moklick 18be5f1773 chore(warnings): only print for node_env=development 2022-05-02 14:57:38 +02:00
moklick 2e9a203c0e Merge branch 'chore/warnings' into refactor/react18 2022-05-02 14:32:04 +02:00
moklick 2ad60c19a2 refactor(warnings): only show for node_env=development 2022-05-02 14:31:44 +02:00
moklick b64d946454 refactor(edges): default zIndex=0 2022-04-30 16:11:25 +02:00
Christopher Möller 9331ccc544 chore(warnings): add error codes to documentation site 2022-04-28 16:27:19 +02:00
Furkan Kalaycioglu f075e0742e Fixed the bug 'onNodeDragStop' not getting triggered
Got rid of 'dragging' in the global node state
2022-04-27 20:37:59 +03:00
Christopher Möller 922005e236 chore(warnings): format warning logs, add troubleshooting page 2022-04-26 16:33:54 +02:00
moklick f2004fe45a refactor(nodes): use-d3drag 2022-04-13 11:19:17 +02:00
moklick f56d9b8430 refactor(wrapper): use PropsWithChildren 2022-04-11 16:15:55 +02:00
moklick 607e8061c9 refactor(lib): use react 18 2022-04-11 16:11:14 +02:00
Moritz KlackandGitHub c7fdfedd95 Merge branch 'main' into feature/edgeUpdateWithMoreInfo-1961 2022-04-11 13:28:45 +02:00
Andreas Schultz 4d6c6ffc7d Also add 'handleType' parameter to 'onEdgeUpdateEnd' callback analogous to 'onEdgeUpdateStart' 2022-04-11 07:39:22 +02:00
Andreas Schultz 68ec5d87d7 Change boolean 'isSourceHandle' parameter to handleType: HandleType in 'onEdgeUpdateStart' function
- In order to make the function better extendable in the future.
2022-04-04 09:53:19 +02:00
moklick fc9cf9604c feat(package): add umd version 2022-03-30 18:20:43 +02:00
moklick b362c11851 refactor(edges): use new edge as default, add simplebezier 2022-03-14 16:01:00 +01:00
Joey Ballentine 3c96b07c9c Rename to "unreal" edge, fix for both horizontal and vertical handles 2022-03-14 01:06:26 -04:00
Joey Ballentine 726bc2e0b3 Add Unreal Engine style bezier edge 2022-03-14 01:06:14 -04:00
Andreas Schultz e8aa8737ae Pass isSourceHandle flag to onEdgeUpdateStart
- This allows to know during an edge update which side of the edge is getting dragged by the user.
- Use cases include showing custom validation hints to the user during an edge update, e.g. which handles can be connected to and which not. This would otherwise not be possible without knowing which side is updated.
2022-03-11 09:03:40 +01:00
moklick ebf10fa26d refactor(rollup): treeshakable 2022-03-02 19:31:34 +01:00
moklick fe5337d1b8 refactor(keys): accept null as key #1463 2022-02-22 21:23:22 +01:00
moklick 6630935d9e refactor(nodeTypes/edgeTypes): show warning when not memoized closes #1620 2022-02-22 18:33:59 +01:00
moklick a514c0ea84 refactor(onmove-handler): pass source event #1676 2022-02-22 17:08:09 +01:00
moklick e011375c3d feat(props): add onNodesDelete and onEdgesDelete handler 2022-02-20 21:17:59 +01:00
moklick 522780eac9 fix(ts): dont make viewport optional for move callbacks 2022-02-10 12:54:50 +01:00
moklick b3b8ac9553 refactor(props): rename paneMoveable to panOnDrag 2022-01-31 17:19:52 +01:00
moklick 4e97472fe9 refactor(rf): cleanup 2022-01-29 22:21:22 +01:00
Moritz KlackandGitHub f789703db4 Merge pull request #1861 from andreyworkspace/bugfix/v10
Removed wrong type
2022-01-29 22:15:10 +01:00
moklick 8dcb8758a8 feat(nodes): add group type 2022-01-29 22:14:45 +01:00
andreyworkspace 4ad17d8318 removed wrong type 2022-01-29 19:53:48 +03:00
moklick 7e915ad39f refactor(nodes): re-init when sourcePos, targetPos or type changes 2022-01-28 14:48:14 +01:00
Christopher Möller af52bab2a5 refactor(fitView): use same fitView function for viewport helper and initial prop 2022-01-27 13:00:03 +01:00
moklick e52c5eda19 refactor(types): drop NodeInternalsItem type 2022-01-19 22:17:07 +01:00
Christopher Möller c2bae79916 feat(hooks): add useReactFlow hook, refactor types and properties 2022-01-19 18:31:49 +01:00
moklick 634b592b3a feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions 2022-01-18 13:05:41 +01:00
moklick 0b241d27c1 feat(attribution): add react flow attribution 2022-01-05 16:45:04 +01:00
moklick d8b054c7d6 feat(props): add connectOnClick 2021-12-17 10:49:05 +01:00
moklick 895e0bc524 refactor(store): use store.setState directly instead of actions 2021-12-11 05:22:41 +01:00
Christopher Möller 747097f61b chore(zoompane): remove unused code 2021-12-09 15:00:20 +01:00
moklick 81585dbff5 refactor(general): cleanup 2021-12-09 09:17:36 +01:00
moklick 88582a86cc refactor(general): fit view in store to prevent flickering, rename onLoad => onPaneReady 2021-12-09 07:24:45 +01:00
moklick 266007b38b feat(rf): add fitViewOnInit option 2021-12-08 23:19:43 +01:00
moklick 801d8f2ad4 fix(subflows): handle selections correctly 2021-11-26 19:35:31 +01:00
moklick 330eefe695 refactor(selection): only fire selection changes that changed 2021-11-26 18:42:52 +01:00
moklick d260abec75 refactor(actions): addSelectedElements => addSelectedNodes, addSelectedEdges 2021-11-26 15:18:27 +01:00
moklick 62f1e90244 fix(edges): updatable edge 2021-11-26 07:14:38 +01:00