Commit Graph
66 Commits
Author SHA1 Message Date
moklick 607e8061c9 refactor(lib): use react 18 2022-04-11 16:11:14 +02:00
moklick 8d5305d240 refactor(edge-types): cleanup 2022-04-11 13:36:39 +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
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 895e0bc524 refactor(store): use store.setState directly instead of actions 2021-12-11 05:22:41 +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 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
moklick fe9c1f02dc refactor(nodes-edges): rename isHidden to hidden 2021-11-18 13:06:14 +01:00
moklick a79e953ab3 refactor(boolean-props): omit is prefix 2021-11-09 12:35:21 +01:00
moklick a0b8aa6fcb Merge branch 'v10' into refactor/nodes-edges-state 2021-10-20 10:52:11 +02:00
moklick 410b12946d refactor(state): separate nodes and edges 2021-10-19 11:09:49 +02:00
Christopher Möller d3b1148bca feat(markers): implement more generic api for markerEnd and markerStart handling 2021-10-14 17:53:50 +02:00
moklick 1f41cc0d9a refactor(zustand): use shallow when needed 2021-10-13 16:19:46 +02:00
moklick ee0d29029a refactor(state): replace redux with zustand 2021-10-13 12:54:01 +02:00
moretall eff3e72e4f Fix when it disappears when connecting an edge to update to a new node 2021-09-13 16:50:02 +09:00
moklick 27e2781d8c feat(props): add onEdgeUpdateEnd handler closes #1157 2021-05-29 15:12:31 +02:00
moklick 3124d46732 refactor(edge-updater): pass handle type #1212 2021-05-28 14:26:03 +02:00
moklick 3232a33e9e feat(edgeUpdate): add onEdgeUpdateStart handler closes #1120 2021-04-30 16:09:46 +02:00
Clément Loridan 0e9ae9fbc1 fix(edge): change order of the first EdgeAnchor disturbed by the EdgeComponent 2021-04-22 09:56:48 +03:00
moklick d5b84afcc1 chore(example): add edge double click to overview 2021-04-14 09:57:23 +02:00
Анна Кузнецова f565676233 onEdgeDoubleClick support 2021-04-13 20:29:39 +05:00
moklick cd1baadf41 feat(edges): add mouse handler closes #987 2021-03-12 20:46:14 +01:00
moklick 6d2221b058 fix(edges): unset nodes selection on click closes #966 2021-03-05 20:57:50 +01:00
Eugene Samonenko d89be58e54 feat(edgeUpdater): add edgeUpdaterRadius prop 2021-03-03 13:10:33 +02:00
Eugene Samonenko 9bdd49de20 fix(wrapEdge): use simplified EdgeAnchor component 2021-03-01 10:59:18 +02:00
Eugene Samonenko 6ed73fb7c2 fix(wrapEdge): use simplified EdgeAnchor component 2021-03-01 10:54:24 +02:00
Eugene Samonenko 443b1cef02 fix(wrapEdge): use EdgeAnchors components 2021-02-26 15:48:29 +02:00
Eugene Samonenko 2f2ba19be9 fix(wrapEdge): shift edge updater circles positions to not overlap node handles 2021-02-26 14:18:23 +02:00
moklick 0d1d802ed5 feat(edge): add onEdgeContextMenu handler #943 2021-02-26 10:51:25 +01:00
moklick 782d567851 refactor(wrapEdge): pass source and target handle ids to edge closes #814 2021-01-11 12:51:03 +01:00
moklick 2ad121fad0 refactor(edges): pass source and target handle ids for click and selection #739 2020-12-01 10:51:15 +01:00
moklick c429ae7ca4 feat(props): add connection mode closes #702 2020-11-30 13:09:56 +01:00
moklick 6ef3f52083 style(edge-updater): add hover effect 2020-11-30 11:03:16 +01:00
moklick d17562e1a1 refactor(drag-edge): only handle when update function is passed 2020-11-26 15:17:31 +01:00
moklick 2f40a83b47 refactor(drag-edge): cleanup drag edge handlers 2020-11-05 17:28:21 +01:00
moklick 9dfe7ea8e3 fix(edge-drag): update to new version 2020-11-05 16:26:02 +01:00
moklick 28ad06a7bd Merge branch 'drag-edge' of https://github.com/zcmgyu/react-flow into zcmgyu-drag-edge 2020-11-05 16:04:37 +01:00
moklick 65a1b5e07a feat(elements): multiselect 2020-10-22 00:03:30 +02:00
Long Nguyen 57528851ff Fix confict after merge branch master 2020-10-13 11:58:28 +09:00
Long Nguyen bd63a0131a Feature: Draggable edge 2020-10-12 21:34:35 +09:00
moklick 011e4c0aaf style(comps): dont use inline styles for minimap and edges #491 2020-10-06 18:00:08 +02:00
moklick 0b15211e18 refactor(edges): pass original source and target ids, cleanup #476 2020-09-15 11:17:06 +02:00
Nate Amack 34473166cb feat(onElementClick): always allow onElementClick to run 2020-08-18 10:59:22 -06:00
moklick 07e597fbb1 refactor(edges): pass data in onClick handler closes #430 2020-08-13 09:28:02 +02:00
moklick ee74c90f15 feat(edges): add labelBgBorderRadius option closes #421 2020-08-12 13:00:54 +02:00
moklick 6bbc152041 feat(edge-options): add labelBgPadding #421 2020-08-11 10:36:22 +02:00