Commit Graph
282 Commits
Author SHA1 Message Date
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
moklick 33255635af refactor(edge-renderer): cleanup 2021-11-26 07:07:21 +01:00
Christopher Möller b2ac219912 refactor(edge): pass onEdgeUpdate instead of creating onConnect function 2021-11-25 16:04:08 +01:00
Christopher Möller 22f7dd6306 refactor(edges): cleanup edge renderer 2021-11-25 15:48:57 +01:00
Christopher Möller 0f480444f2 chore(markers): cleanup marker api 2021-11-24 12:02:09 +01:00
moklick 5124b6b134 refactor(node): disconnect resize observer on unmount 2021-11-23 18:54:42 +01:00
moklick 8a095df192 refactor(nodes): only observe node when not hidden 2021-11-23 17:58:53 +01:00
Christopher Möller 9d159c1e87 chore(types): enforce defaultProps inside react flow component 2021-11-18 18:01:20 +01:00
Christopher Möller 004dcc6528 feat(selection): disable pane movement when selection is dragged 2021-11-18 16:53:41 +01:00
Christopher Möller 2243b0a1f6 Merge branch 'refactor/nested-relative' into feat/interaction-classnames 2021-11-18 16:30:11 +01:00
Christopher Möller e1f864f270 feat(flow): add properties for configuring no-interaction classes 2021-11-18 16:29:06 +01:00
moklick fe9c1f02dc refactor(nodes-edges): rename isHidden to hidden 2021-11-18 13:06:14 +01:00
moklick 0974aa5732 refactor(nodes): only use node internals 2021-11-18 13:01:11 +01:00
moklick 8a2ac1e31e refactor(types): cleanup 2021-11-09 14:52:39 +01:00
moklick a79e953ab3 refactor(boolean-props): omit is prefix 2021-11-09 12:35:21 +01:00