Commit Graph
786 Commits
Author SHA1 Message Date
moklick 5b32746422 fix(useReactFlow): use onNodesChange and onEdgesChange 2022-03-15 18:38:58 +01:00
moklick bfe06a5c48 chore(bezier-edge): less curvy by default 2022-03-14 19:27:41 +01:00
Joey Ballentine 9128967ea7 Fix merge conflict 2022-03-14 12:55:14 -04:00
Joey Ballentine 2018f930ad Merge remote-tracking branch 'wbkd/v10' into v10-bezier-fix 2022-03-14 12:54:46 -04:00
Joey Ballentine 6f51af2074 Improve UE-style Bezier Edge calculation 2022-03-14 12:52:18 -04:00
moklick 9fff0e5c69 refactor(bezier-edge): only do calculations when necessary 2022-03-14 17:44:33 +01:00
moklick bc5d1df10e refactor(edges): add BaseEdge 2022-03-14 16:27:44 +01:00
moklick b362c11851 refactor(edges): use new edge as default, add simplebezier 2022-03-14 16:01:00 +01:00
Joey Ballentine 3c96b07c9c Rename to "unreal" edge, fix for both horizontal and vertical handles 2022-03-14 01:06:26 -04:00
Joey Ballentine 726bc2e0b3 Add Unreal Engine style bezier edge 2022-03-14 01:06:14 -04: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 64a3c2d48a chore(attribution): update options 2022-03-06 15:14:14 +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 ebf10fa26d refactor(rollup): treeshakable 2022-03-02 19:31:34 +01:00
moklick fe5337d1b8 refactor(keys): accept null as key #1463 2022-02-22 21:23:22 +01:00
moklick 6630935d9e refactor(nodeTypes/edgeTypes): show warning when not memoized closes #1620 2022-02-22 18:33:59 +01:00
moklick a45af5f0f8 refactor(handle): only listen to left click events closes #1852 2022-02-22 17:53:50 +01:00
moklick 67b71a9190 fix(selection-change): only trigger once 2022-02-22 17:49:10 +01:00
moklick 007bdabb89 fix(selection): deselect nodes when select edge and vice versa closes #1899 2022-02-22 17:38:53 +01:00
moklick a514c0ea84 refactor(onmove-handler): pass source event #1676 2022-02-22 17:08:09 +01:00
moklick 8e41c0d729 fix(types): onEdgesDelete 2022-02-22 16:30:03 +01:00
Himself65 76ff49196d fix: export type OnNodesDelete and OnEdgesDelete 2022-02-21 13:24:34 -06:00
moklick e011375c3d feat(props): add onNodesDelete and onEdgesDelete handler 2022-02-20 21:17:59 +01:00
moklick 522780eac9 fix(ts): dont make viewport optional for move callbacks 2022-02-10 12:54:50 +01:00
himself65 d250a7d2cd fix: enhance type 2022-02-06 17:13:51 -06:00
John Weis 0c1e7c9112 fix(zoomPanHelper): fix missing duration on transform #1883 2022-02-03 21:09:04 -05:00
moklick 3067b72d91 refactor(hooks): export key press hook 2022-01-31 17:22:25 +01:00
moklick b3b8ac9553 refactor(props): rename paneMoveable to panOnDrag 2022-01-31 17:19:52 +01:00
moklick b1791eaaec refactor(useViewport): use shallow for selector 2022-01-30 14:45:48 +01:00
moklick 4e97472fe9 refactor(rf): cleanup 2022-01-29 22:21:22 +01:00
Moritz KlackandGitHub f789703db4 Merge pull request #1861 from andreyworkspace/bugfix/v10
Removed wrong type
2022-01-29 22:15:10 +01:00
moklick 8dcb8758a8 feat(nodes): add group type 2022-01-29 22:14:45 +01:00
andreyworkspace 4ad17d8318 removed wrong type 2022-01-29 19:53:48 +03:00
moklick 578c278b31 refactor(wrapnode): create mouse handler util hook 2022-01-28 17:05:40 +01:00
moklick 588b590e14 refactor(wrapnode): pass shallow clones to handlers 2022-01-28 16:46:35 +01:00
moklick c40a36fdb6 refactor(wrapnode): get node from store in event handlers 2022-01-28 15:02:52 +01:00
moklick 7e915ad39f refactor(nodes): re-init when sourcePos, targetPos or type changes 2022-01-28 14:48:14 +01:00
moklick ee1a393dcb refactor(changes): handle expand parent on dimension update 2022-01-28 13:26:16 +01:00
moklick 1b45a3f85d fix(fitview): only fit view once 2022-01-28 13:25:56 +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 067d681485 refactor(types): add NodePositionChange type 2022-01-25 13:54:33 +01:00
moklick 0cfcf656a0 refactor(defaultNode/Edges): always trigger onNodesChange and onEdgesChange 2022-01-20 17:55:27 +01:00
moklick bfea566d70 fix(exports): add hooks 2022-01-20 12:02:45 +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 f95f390cb3 chore(nodes): prevent crashing when data is not set on nodes object 2022-01-19 18:47:52 +01:00
Christopher Möller c2bae79916 feat(hooks): add useReactFlow hook, refactor types and properties 2022-01-19 18:31:49 +01:00
Christopher MöllerandGitHub 1755da3089 Merge pull request #1843 from wbkd/v10-default-nodes-edges
feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions
2022-01-19 10:58:10 +01:00