Commit Graph
307 Commits
Author SHA1 Message Date
moklick 35d30f5b2e Merge branch 'main' into refactor/d3-drag 2022-05-08 18:57:52 +02:00
moklick 8cb2f5e1d6 chore(react-draggable): remove ts-ignore 2022-05-03 10:09:43 +02:00
moklick 2e9a203c0e Merge branch 'chore/warnings' into refactor/react18 2022-05-02 14:32:04 +02:00
Christopher Möller 922005e236 chore(warnings): format warning logs, add troubleshooting page 2022-04-26 16:33:54 +02:00
moklick 579bf5ca7f refactor(useDrag): handle subflows 2022-04-16 00:46:49 +02:00
moklick 23d451ad06 refactor(useDrag): handle snap grid, cleanup 2022-04-15 18:45:32 +02:00
Christopher Möller 4afb386124 fix(useDrag): calculate offset for drag handlers 2022-04-14 14:16:19 +02:00
moklick f2004fe45a refactor(nodes): use-d3drag 2022-04-13 11:19:17 +02:00
moklick 607e8061c9 refactor(lib): use react 18 2022-04-11 16:11:14 +02:00
moklick 8d5305d240 refactor(edge-types): cleanup 2022-04-11 13:36:39 +02:00
Moritz KlackandGitHub c7fdfedd95 Merge branch 'main' into feature/edgeUpdateWithMoreInfo-1961 2022-04-11 13:28:45 +02:00
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
moklick fc9cf9604c feat(package): add umd version 2022-03-30 18:20:43 +02:00
Moritz KlackandGitHub 859571df7d Merge pull request #1988 from Sec-ant/patch
fix multiSelection when selectNodesOnDrag is false
2022-03-23 10:41:12 +01:00
Ze-Zheng Wu 3708402907 typo: quadratic -> cubic 2022-03-21 19:05:03 +08:00
Ze-Zheng Wu 6328b6fbe3 fix center calculation of simple Bezier edges 2022-03-21 18:18:07 +08:00
Ze-Zheng Wu 3b804d82ce fix center calculation of Bezier edges 2022-03-21 17:37:18 +08:00
Ze-Zheng Wu 0ee882d2c1 clean code 2022-03-21 17:06:46 +08:00
Ze-Zheng Wu 5902626abe fix multiSelection when selectNodesOnDrag is false 2022-03-19 14:53:23 +08:00
Ze-Zheng Wu c1a29beb1d assume toPosition is opposite to fromPosition 2022-03-18 19:00:03 +08:00
Ze-Zheng Wu 0ff63803b6 refactor Bezier function 2022-03-18 18:18:39 +08:00
Ze-Zheng Wu 2199ca3fd4 fix typo 2022-03-18 18:18:31 +08:00
Ze-Zheng Wu 9cc873d64a refactor connection line 2022-03-18 18:18:15 +08:00
moklick bef6157097 refactor(bezier): handle undirectional flows, use simple bezier for connection closes #1971 2022-03-17 13:09:17 +01:00
moklick bdc75c3bec chore(attr): add sponsor 2022-03-17 00:24:45 +01:00
Christopher Möller 2db2cddb5a chore(attribution): change link in attribution notice 2022-03-16 16:36:06 +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
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
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 8dcb8758a8 feat(nodes): add group type 2022-01-29 22:14:45 +01: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
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 e52c5eda19 refactor(types): drop NodeInternalsItem type 2022-01-19 22:17:07 +01:00