moklick
f56d9b8430
refactor(wrapper): use PropsWithChildren
2022-04-11 16:15:55 +02:00
moklick
8d5305d240
refactor(edge-types): cleanup
2022-04-11 13:36:39 +02:00
Moritz Klack and GitHub
c7fdfedd95
Merge branch 'main' into feature/edgeUpdateWithMoreInfo-1961
2022-04-11 13:28:45 +02:00
Moritz Klack and GitHub
2aeac16b02
Merge pull request #2062 from wbkd/feat/umdbuild
...
Feat/umdbuild
2022-04-11 13:14:55 +02:00
moklick
d92928e19f
Merge branch 'main' into feat/umdbuild
2022-04-11 12:23:54 +02:00
moklick
261452ec82
refactor(rollup): remove svgr
2022-04-11 12:14:33 +02:00
Andreas Schultz
4d6c6ffc7d
Also add 'handleType' parameter to 'onEdgeUpdateEnd' callback analogous to 'onEdgeUpdateStart'
2022-04-11 07:39:22 +02:00
Himself65
f272bb6604
fix: lint
2022-04-08 11:10:26 -05:00
Himself65
8ab868a56e
fix: type error
...
Refs: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210
2022-04-08 11:09:29 -05: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
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
fc9cf9604c
feat(package): add umd version
2022-03-30 18:20:43 +02:00
moklick
c5cd8a15e9
refactor(edges): stronger svg selector #2016
2022-03-30 11:28:05 +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
7217cffe7e
refactor(index): export getBezier ang getSimpleBezier center functions
2022-03-23 10:43:31 +01:00
Moritz Klack and GitHub
859571df7d
Merge pull request #1988 from Sec-ant/patch
...
fix multiSelection when selectNodesOnDrag is false
2022-03-23 10:41:12 +01:00
Moritz Klack and GitHub
b0bec1639a
Merge pull request #1984 from Sec-ant/refactor-bezier-function
...
refactor Bezier function
2022-03-23 10:31:40 +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
aeb85c6b1c
refactor(nodeExtent): use global nodeExtent when parent extent is used incorrectly
2022-03-22 11:51:56 +01:00
moklick
3d446a6adb
fix(nodeExtent): nodes node extent over global node extent
2022-03-21 22:03:31 +01:00
Christopher Möller
2e5e5285c5
fix(zIndex): calculate zIndex for nested flows correctly
2022-03-21 13:52:10 +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
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