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
datoslabs
0d497b6569
Add optional node dragHandle prop as DraggableCore handle.
...
#1413
2021-10-04 16:20:44 -04: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
1aacf04433
fix(onMoveStart): trigger always closes #1452
2021-09-01 22:36:37 +02:00
moklick
ef47500122
feat(props): add preventScrolling prop closes #1077
2021-07-01 15:30:29 +02:00
moklick
55d95d3684
refactor(panOnScroll): check nowheel class closes #1322
2021-07-01 14:18:03 +02: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
moklick
047366d71c
refactor(props): set default of onlyRenderVisibleElements=false #1075
2021-04-29 17:26:11 +02:00
Анна Кузнецова
f565676233
onEdgeDoubleClick support
2021-04-13 20:29:39 +05:00
moklick
4a3a6a3a62
refactor(lib): forward ref closes #1050
2021-03-30 12:20:44 +02:00
moklick
c63992e3ff
Revert "Merge pull request #1003 from TheUnderScorer/main"
...
This reverts commit 106f1f0b61 , reversing
changes made to 9206e65522 .
2021-03-29 13:26:31 +02:00
Przemysław Żydek
a7e0ace550
feat(components): Return if document is undefined
2021-03-22 11:36:10 +01:00
Przemysław Żydek
96290483b1
feat(components): Support passing shadow root as document
2021-03-22 11:34:47 +01:00
moklick
111ee649bb
feat(nodetypes): add nodeTypesId prop to force recreation of nodeTypes #1007
2021-03-19 23:25:58 +01:00
moklick
afe69887e2
fix(onNodeDblClick): pass to GraphView
2021-03-17 21:38:26 +01:00
Ryan Kois
67186b478a
Support node double click handler.
2021-03-15 17:01:11 -07:00
moklick
cd1baadf41
feat(edges): add mouse handler closes #987
2021-03-12 20:46:14 +01:00
moklick
364111a7fe
fix(interaction): panemoveable prop on touch devices
2021-03-10 12:50:54 +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
2f5ce17a89
chore(wrapper): fix typo
2021-02-23 14:49:43 +01:00
moklick
87cdb2c2a4
refactor(wrapper): memoize isWrapped
2021-02-22 14:29:00 +01:00
moklick
344275811f
refactor(nodeRenderer): add resize observer types
2021-02-16 12:26:00 +01:00
moklick
1d1a17c80a
refactor(actions): combine batch update and update node dimension actions
2021-02-11 19:14:30 +01:00
moklick
ba5286a105
refactor(elements): split edges and nodes
2021-02-11 18:45:05 +01:00
moklick
201a35dec2
Merge branch 'main' into refactor/redux
2021-02-11 17:52:54 +01:00
moklick
477be8d492
refactor(onDrag): use same api as onNodeDragStart
2021-01-27 10:35:06 +01:00
moklick
3dedd615af
feat(props): add onDrag handler
2021-01-26 18:17:29 +01:00
moklick
1a9493e3fa
feat(props): add nodeExtent prop closes #854
2021-01-26 10:29:38 +01:00
moklick
252552a694
fix(hooks): repair useStoreActions hook
2021-01-21 19:35:04 +01:00
moklick
f7a400f216
feat(interaction): add zoomToPinch prop
2021-01-21 10:58:54 +01:00
moklick
27a98d6a8f
refactor(theming): split up styles
2021-01-20 14:01:22 +01:00
moklick
08508340e6
refactor(interaction): use zoomActivationKeyPressed for enabling zoom
2021-01-20 11:46:19 +01:00
moklick
bd79577fa7
feat(interaction): add zoomActiviationKeyCode #847
2021-01-20 11:36:10 +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
14bd7b10c2
fix(edge-renderer): source and target can be the same #809
2020-12-30 18:29:31 +01:00
moklick
f64710e164
refactor(connections): allow graphs with nodes that have only source handles
2020-12-24 11:24:54 +01:00
moklick
4322a63680
fix(zoom): allow trackpad pinch zoom
2020-12-10 14:28:12 +01:00
moklick
36025b28b0
refactor(zoom): add nowheel helper class closes #719
2020-12-10 12:07:36 +01:00
moklick
887ffbd0c4
refactor(resizeObserver): check if available
2020-12-01 12:04:13 +01:00
moklick
c429ae7ca4
feat(props): add connection mode closes #702
2020-11-30 13:09:56 +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
moklick
e88dfdb650
refactor(nodes): use one resize observer for all nodes #723
2020-11-26 14:25:39 +01:00
Christopher Möller
6da79b572a
fix(edge renderer): change wording for target handle id
2020-11-16 15:04:34 +01:00