Commit Graph
145 Commits
Author SHA1 Message Date
moklick 18a3f887fa refactor(useDrag): use file instead of folder 2022-04-13 16:49:49 +02:00
moklick f2004fe45a refactor(nodes): use-d3drag 2022-04-13 11:19:17 +02:00
moklick d464ccda77 refactor(change-events): cleanup delete events #2036 2022-04-02 12:32:07 +02:00
moklick 1c699f889a refactor(useKeyPress): return early if target is input #2000 2022-04-02 12:12:37 +02:00
moklick b413c768dd fix(useKeyPress): handle combinations closes #2022 closes #2030 2022-03-30 11:24:23 +02:00
moklick 0f67bc5c8e fix(keyPress): reset on blur fixes #1931 2022-03-23 18:14:37 +01:00
moklick 83f094b711 fix(useKeyPress): reset on tab change #1912 2022-03-23 17:21:56 +01:00
moklick 903b795762 refactor(delete): only trigger when some node or edge is selected #1987 2022-03-22 18:29:34 +01:00
moklick d5c89a1d8f refactor(delete-nodes-edges): change exec order #1995 2022-03-22 18:02:53 +01:00
moklick d6f3a24051 fix(sub-flows): delete child nodes when parent gets deleted 2022-03-22 12:07:24 +01:00
moklick 5b32746422 fix(useReactFlow): use onNodesChange and onEdgesChange 2022-03-15 18:38:58 +01:00
Himself65 a48276e475 fix: type error 2022-03-05 17:12:09 -06:00
moklick 414d7ec993 refactor(useReactFlow): pass generic nodedata and edgedata closes #1944 2022-03-05 12:49:26 +01:00
moklick fe5337d1b8 refactor(keys): accept null as key #1463 2022-02-22 21:23:22 +01:00
moklick e011375c3d feat(props): add onNodesDelete and onEdgesDelete handler 2022-02-20 21:17:59 +01:00
moklick b1791eaaec refactor(useViewport): use shallow for selector 2022-01-30 14:45:48 +01:00
Christopher Möller af52bab2a5 refactor(fitView): use same fitView function for viewport helper and initial prop 2022-01-27 13:00:03 +01:00
moklick 0cfcf656a0 refactor(defaultNode/Edges): always trigger onNodesChange and onEdgesChange 2022-01-20 17:55:27 +01:00
moklick a182458781 feat(hooks): add useViewport 2022-01-20 10:03:19 +01:00
moklick e52c5eda19 refactor(types): drop NodeInternalsItem type 2022-01-19 22:17:07 +01:00
moklick 08b2696e6b feat(hooks): add useNodes and useEdges 2022-01-19 22:16:53 +01:00
Christopher Möller c2bae79916 feat(hooks): add useReactFlow hook, refactor types and properties 2022-01-19 18:31:49 +01:00
moklick 634b592b3a feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions 2022-01-18 13:05:41 +01:00
moklick f01e239947 refactor(useKeyPress): check if key code is string 2022-01-03 17:54:26 +01:00
moklick ca77d0ef4c fix(edges): draw connection line when there are no edges closes #1785 2021-12-22 11:17:29 +01:00
moklick 895e0bc524 refactor(store): use store.setState directly instead of actions 2021-12-11 05:22:41 +01:00
moklick 81585dbff5 refactor(general): cleanup 2021-12-09 09:17:36 +01:00
moklick 88582a86cc refactor(general): fit view in store to prevent flickering, rename onLoad => onPaneReady 2021-12-09 07:24:45 +01:00
moklick 427c933389 refactor(hooks): rename useNodeDimensions to useNodeBounds 2021-12-07 04:38:17 +01:00
moklick d9c99a8a6d refactor(onLoad): add new zoom pan helpers 2021-12-07 04:05:45 +01:00
moklick c2644f16bb refactor(nodeInternals): widht and height types optional 2021-12-07 02:01:40 +01:00
moklick b5bba7dc70 refactor(useZoomPanHelper): add getTransform, getZoom, rename transform to getTransform closes #1746 2021-12-07 01:59:57 +01:00
moklick 731918dc13 feat(hooks): add useNodeDimensions 2021-12-07 01:58:48 +01:00
moklick 2e83af4638 Merge branch 'main' into v10 2021-12-04 01:01:25 +01:00
moklick f913ae77ff refactor(zoomPanHelper): add duration to fit view params 2021-12-03 23:22:01 +01:00
Mahdi 7dc8311476 set the default animation duration to 0ms 2021-12-03 00:51:26 +03:30
moklick 801d8f2ad4 fix(subflows): handle selections correctly 2021-11-26 19:35:31 +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 a032306408 feat(hooks): add useNodesState and useEdgesState 2021-11-26 14:39:22 +01:00
Christopher Möller cffefe78c8 fix(zIndex): allow zIndex to be set to 0 explicitly 2021-11-24 12:23:03 +01:00
Mahdi Esbati 83362c187c implement smooth transitions for useZoomPanHelper using d3 2021-11-21 13:24:03 +03:30
moklick fe9c1f02dc refactor(nodes-edges): rename isHidden to hidden 2021-11-18 13:06:14 +01:00
moklick e6a4034747 Merge branch 'refactor/nested-relative' of github.com:wbkd/react-flow into refactor/nested-relative 2021-11-18 13:01:32 +01:00
moklick 0974aa5732 refactor(nodes): only use node internals 2021-11-18 13:01:11 +01:00
Christopher Möller c29decade5 feat(stacking): disable auto layering, instead configure via zIndex prop 2021-11-10 18:06:28 +01:00
moklick 8a2ac1e31e refactor(types): cleanup 2021-11-09 14:52:39 +01:00
moklick a79e953ab3 refactor(boolean-props): omit is prefix 2021-11-09 12:35:21 +01:00
moklick 050bb3130f refactor(z-level): implement new stacking logic 2021-11-09 12:11:47 +01:00
moklick 996b1b51f5 refactor(store): rename nodeLookup to nodeInternals 2021-11-04 18:13:21 +01:00