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
Philipp Garbowsky
a29d9de6b0
Changed the way the transform is applied to the edges group
2021-10-28 15:44:21 +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 Lloyd and Rhys Lloyd
58c9e60a73
chore(edge): Output edge id with source/target warnings
2020-11-16 14:58:59 +10:30
moklick
2b1366fe46
refactor(edgeRenderer): cleanup
2020-11-15 18:21:32 +01:00
moklick
393defc638
refactor(elements): only render visible handling
2020-11-15 18:05:44 +01:00
moklick
b0500bc208
refactor(edges): visible even if source and target are not visible #677
2020-11-15 14:15:35 +01:00
moklick
7d788a1ed7
refactor(edgeRendererUtils): cleanup
2020-11-14 17:26:37 +01:00
moklick
2420cf3689
refactor(onlyRenderVisible): change from nodes to elements #677
2020-11-14 16:46:14 +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
Moritz Klack and GitHub
9851281709
Merge branch 'main' into drag-edge
2020-11-03 19:59:18 +01:00
moklick
ddd3baa5f7
refactor(handle-handling): cleanup
2020-10-29 12:36:10 +01:00
Naden
a3e9cbf9dc
Cleanup of jasonpul's connection-validation branch
2020-10-27 14:51:54 +11:00
Long Nguyen
bd63a0131a
Feature: Draggable edge
2020-10-12 21:34:35 +09:00
moklick
19f936a107
refactor(props): cleanup
2020-10-05 11:06:40 +02:00
jasonpul
d9ba18d49c
broke out handleId by itself rather than joined with nodeID, modded necessary functions to give handles not assigned IDs an empty string for backwards compadibility. Also modded handles so that only target-source and source-target connections are allowed, and no repeat connections are allowed.
2020-10-01 15:47:37 -04:00
moklick
1f7d88fd5e
feat(connectionline): custom component option #516
2020-09-19 13:38:40 +02:00
moklick
0b15211e18
refactor(edges): pass original source and target ids, cleanup #476
2020-09-15 11:17:06 +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
moklick
6d651bdc98
fix(edges): pass className to edge closes #420
2020-08-11 09:57:45 +02:00
moklick
59742c9526
refactor(variables): dont use abbreviations
2020-08-10 12:10:17 +02:00
Nate Amack
97ec24fa14
feat(props): add mouse event to onNodeDragStart, onNodeDragStop, onElementClick, and onPaneClick
2020-08-04 12:05:03 -06:00
moklick
c59c8ee693
refactor(edges): simplify selected condition #397
2020-08-04 10:05:15 +02:00
moklick
cfaa07dc6b
fix(edges): selected condition closes #397
2020-08-04 10:03:44 +02:00
moklick
e0a2ceeab0
refacor(graphview): cleanup
2020-08-02 18:55:15 +02:00
moklick
30e811225a
refactor(components): show displayName in react profiler correctly
2020-07-27 18:50:53 +02:00
moklick
b3391860da
feat(edges): add data and classname props, unify node/edge handling closes #357
2020-07-27 12:40:39 +02:00
moklick
b51a25191f
feat(elements): add isHidden option
2020-07-15 10:31:16 +02:00
moklick
0593db289a
feat(edges): add arrow head options
2020-07-14 12:57:12 +02:00
moklick
1d8a9d6d87
feat(graph): more adjustable interaction closes #329 , closes #291
2020-07-13 17:36:15 +02:00