Commit Graph
314 Commits
Author SHA1 Message Date
Stojan StamkovandGitHub fa193bddfc Added support for Node and Edge type updates 2020-09-04 21:04:53 +02:00
Emiel Wit 394c0ab53c feat: add onPaneScroll event handler
- add the possibility to listen to the onWheel event
  - add event handler to interaction demo
2020-09-02 10:23:39 +02:00
MoritzandGitHub bca5c14c03 Merge pull request #464 from rgoupil/develop
Expose getConnectedEdge + Set className of minimap node
2020-08-28 19:52:30 +02:00
Robin Goupil 40bb947084 use classcat instead of template literal 2020-08-28 13:57:47 +02:00
Robin Goupil 3b2be2fddb Expose getConnectedEdges 2020-08-28 11:14:25 +02:00
Robin Goupil 60c39718f9 Allow to pass a string of FuncString for Minimap node className 2020-08-28 11:14:18 +02:00
moklick 3fe6a956c2 refactor(d3-zoom): use new v2 api 2020-08-27 00:35:01 +02:00
moklick ccacd43659 feat(selection): add drag handlers closes #444 2020-08-22 17:24:50 +02:00
moklick 5b4b114935 feat(props): add onConnectEnd function #451 2020-08-21 09:40:27 +02:00
moklick ae623be738 refactor(nodes): use opacity for hiding nodes on start 2020-08-20 14:54:23 +02:00
moklick 58b0d88208 refactor(nodes): no jumping nodes on start 2020-08-20 14:54:23 +02:00
moklick de9a846fea fix(onLoad): use project and getElements in combination with RFPovider closes #285 2020-08-20 08:53:51 +02:00
moklick 23660b5903 feat(reactflowInstance): add zoomTo function closes #433 2020-08-19 19:12:28 +02:00
moklick ecc4ae8b07 refactor(wrapNode): check if dom node exists when updating dimensions #434 2020-08-19 18:58:25 +02:00
moklick de18e8527b Merge branch 'master' of https://github.com/alexdawes/react-flow into alexdawes-master 2020-08-19 18:47:03 +02:00
MoritzandGitHub cb85d44c4c Merge pull request #441 from namack/add-edge-types
Add `id` to EdgeProps Interface
2020-08-19 18:34:27 +02:00
Alex Dawes 237e077afc Improve the way that zoom level is calculated in the fitView function 2020-08-19 11:26:22 +01:00
Nate Amack 27c8ac02dc fix(types): add id to EdgeProps 2020-08-18 15:21:54 -06: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 e4233aa9b3 fix(nodes): fire click event when node is selectable closes #424 2020-08-11 19:18:48 +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 ccf03eb604 feat(lib): export edge utils #418 2020-08-10 23:39:25 +02:00
moklick e5f664f766 refactor(connection): fire onConnect after onConnectStop closes #405 2020-08-10 12:11:19 +02:00
moklick 59742c9526 refactor(variables): dont use abbreviations 2020-08-10 12:10:17 +02:00
moklick 49ddb8040d fix(onConnectStop): use correct type closes #403 2020-08-05 19:03:06 +02:00
MoritzandGitHub 8fbdfaa542 Merge branch 'master' into expose-pane-context-click 2020-08-05 09:45:56 +02:00
Nate Amack 93aa5c96ca feat(props): add onPaneContextMenu 2020-08-04 17:12:42 -06:00
Nate Amack 92d8276f1b fix(type): add type definition for onPaneClick 2020-08-04 13:38:36 -06:00
Nate Amack fddb3e777d feat(props): add mouse event to onConnectStart and onConnectStop 2020-08-04 12:22:38 -06:00
Nate Amack 97ec24fa14 feat(props): add mouse event to onNodeDragStart, onNodeDragStop, onElementClick, and onPaneClick 2020-08-04 12:05:03 -06:00
moklick 94497090d3 refactor(store): get rid of unused selection 2020-08-04 10:45:18 +02: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 6cb3c707bf refactor(store): rename/cleanup setNodesSection action 2020-08-04 00:42:54 +02:00
moklick 3fe9cfbf22 refactor(fitView): consider min and max zoom 2020-08-03 23:48:12 +02:00
moklick 915bc72974 fix(onLoad): only call once closes #393 2020-08-03 17:12:04 +02:00
moklick 56dc40b7cc refactor(types): export onLoadParams #391 2020-08-03 14:38:06 +02:00
moklick e0a2ceeab0 refacor(graphview): cleanup 2020-08-02 18:55:15 +02:00
moklick f6f3202b57 refactor(graphview): put resize handling in its own hook 2020-08-02 18:34:03 +02:00
moklick 5f91498d19 feat(connection): add start and stop props closes #380 2020-08-01 12:54:14 +02:00
moklick a095715e5f refactor(paneClick): rename onZoomPaneClick tp onPaneClick 2020-08-01 12:13:51 +02:00
Nate Amack 2a0274b9a3 feat(props): add onZoomPaneClick 2020-07-31 10:45:40 -06:00
moklick f84eff1a8c feat(interaction): add paneMoveable prop #377 2020-07-30 11:10:41 +02:00
moklick f4d1af6589 refactor(noderenderer): add viewportBox to store 2020-07-29 10:48:16 +02:00
moklick 16707eaa99 fix(onlyRenderVisibleNodes): only render nodes that are inside the viewport 2020-07-29 10:40:15 +02:00
MoritzandGitHub 7c920d0a86 Merge branch 'master' into develop 2020-07-28 09:41:07 +02:00
Andy 7bfa18f506 Bugfix: Update onConnect
Will call setOnConnect if function passed as onConnect changes
2020-07-28 00:48:13 +02:00