Commit Graph
92 Commits
Author SHA1 Message Date
moklick b64d946454 refactor(edges): default zIndex=0 2022-04-30 16:11:25 +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
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 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
Christopher Möller 22f7dd6306 refactor(edges): cleanup edge renderer 2021-11-25 15:48:57 +01:00
moklick 8a095df192 refactor(nodes): only observe node when not hidden 2021-11-23 17:58:53 +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 a79e953ab3 refactor(boolean-props): omit is prefix 2021-11-09 12:35:21 +01:00
moklick 996b1b51f5 refactor(store): rename nodeLookup to nodeInternals 2021-11-04 18:13:21 +01:00
moklick 72f1d8b4e3 refactor(stlyes): use react-flow__container helper 2021-11-04 15:13:14 +01:00
moklick 5547b0d6cc refactor(nodelookup): use as normale store item 2021-11-04 14:03:22 +01:00
Christopher Möller 1b390e103d feat(stacking): simplify zIndex and treeLevel behaviour 2021-11-04 12:42:14 +01:00
Christopher Möller 79e46d90ad wip: multiple edge renderers 2021-11-03 17:51:39 +01:00
moklick 7333873822 refactor(nodelookup): add treelevel 2021-11-03 10:03:23 +01:00
moklick 248b563231 refactor(nodes): use relative positions for children 2021-11-02 18:58:47 +01:00
Philipp Garbowsky a29d9de6b0 Changed the way the transform is applied to the edges group 2021-10-28 15:44:21 +02:00
Christopher Möller 64239fbb51 refactor(edgerenderer): cleanup edge utils 2021-10-21 14:33:34 +02:00
moklick 8f23321bd0 refactor(hooks): add useVisibleNodes and useVisibleEdges 2021-10-21 09:05:56 +02:00
moklick a0b8aa6fcb Merge branch 'v10' into refactor/nodes-edges-state 2021-10-20 10:52:11 +02:00
moklick 1525af39cf refactor(elements): render only visible elements 2021-10-19 14:57:34 +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
moklick 32ee964044 refactor(elements): split into nodes and edges 2021-10-09 11:33:10 +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 3232a33e9e feat(edgeUpdate): add onEdgeUpdateStart handler closes #1120 2021-04-30 16:09:46 +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
Eugene Samonenko d89be58e54 feat(edgeUpdater): add edgeUpdaterRadius prop 2021-03-03 13:10:33 +02:00
moklick 0d1d802ed5 feat(edge): add onEdgeContextMenu handler #943 2021-02-26 10:51:25 +01:00
moklick ba5286a105 refactor(elements): split edges and nodes 2021-02-11 18:45:05 +01:00
moklick e9a7ade236 refactor(store): use redux instead of easy-peasy 2021-01-19 13:58:24 +01:00
moklick 7791d1d2c3 refactor(edges): source and target node must be initialized 2021-01-11 17:05:37 +01:00
moklick f64710e164 refactor(connections): allow graphs with nodes that have only source handles 2020-12-24 11:24:54 +01:00
moklick 03d5e63371 refactor(edgeWrapper): memoize onConnectEdge func 2020-11-26 15:55:46 +01:00
moklick 3a5ecfa666 Merge branch 'next' into feat/dragedge 2020-11-26 15:26:48 +01:00
moklick d17562e1a1 refactor(drag-edge): only handle when update function is passed 2020-11-26 15:17:31 +01:00
Christopher Möller 6da79b572a fix(edge renderer): change wording for target handle id 2020-11-16 15:04:34 +01:00
Christopher Möller 142a119027 Merge branch 'chore/improve-edge-warning' of https://github.com/justrhysism/react-flow into justrhysism-chore/improve-edge-warning 2020-11-16 15:02:51 +01:00
Christopher Möller 16abf0595f fix(edges): change xy positions to detect when edge is hidden 2020-11-16 14:51:59 +01:00
Rhys LloydandRhys Lloyd 58c9e60a73 chore(edge): Output edge id with source/target warnings 2020-11-16 14:58:59 +10:30