Commit Graph
2041 Commits
Author SHA1 Message Date
moklick 851b8e3e0f fix(getRectOfNodes): handle node pos correctly closes #2641 2022-12-06 16:50:20 +01:00
moklick 7d57c46571 refactor(nodes): don't move or select nodes when input is focused 2022-12-06 13:41:39 +01:00
moklick 8bca8e4bfc refacitr(resizer): cleanup 2022-12-04 17:50:11 +01:00
moklick 9da984f3e4 refactor(resizer): handle default nodes 2022-12-04 15:18:32 +01:00
moklick 8e43021050 refactor(resizer): export resize control, add line control, styling 2022-12-04 15:04:07 +01:00
moklick afce7a2fee feat(resizer): batch changes 2022-12-01 20:28:47 +01:00
moklick b511b15ef8 refactor(core): make it possible to batch changes 2022-12-01 20:28:37 +01:00
moklick f106feb9a9 refactor(node-resizer): check change events 2022-12-01 15:10:15 +01:00
moklick 51294c1522 Merge branch 'main' into feat/resize-node 2022-12-01 14:53:19 +01:00
moklick 6ee4eb4c42 refactor(node-resizer): use package, update resize behaviour 2022-12-01 14:53:04 +01:00
Richard Schulz a1cc9da535 Add generic support for the type property on the Node type 2022-11-29 17:24:34 +01:00
Wenchen LiandGitHub c6b5122d0f Invalidate a Node trying to connect itself with the same handle
It also be written as `!(elementBelowNodeId === nodeId && elementBelowHandleId === handleId)`
2022-11-28 17:31:57 -05:00
Moritz KlackandGitHub 6526e3297e Update CHANGELOG.md 2022-11-28 21:22:09 +01:00
Moritz KlackandGitHub 983893b7f1 Update CHANGELOG.md 2022-11-28 21:21:51 +01:00
moklick 780710da24 chore(packages): bump 2022-11-28 21:15:17 +01:00
moklick cf3ac02ecc Merge branch 'patch-1' of github.com:lounsbrough/react-flow into lounsbrough-patch-1 2022-11-28 21:12:02 +01:00
David LounsbroughandGitHub 686fb87b35 Fix y position on minimap 2022-11-28 13:05:27 -06:00
moklick 8b3d125115 chore(packages): bump 2022-11-25 22:17:29 +01:00
Moritz KlackandGitHub 144ce394ab Merge pull request #2602 from wbkd/sdegueldre-main-dont-use-try-catch-control-flow
Refactor wrapper: don't use try catch control flow
2022-11-25 22:06:23 +01:00
moklick 22db82c8b8 chore(wrapper): cleanup 2022-11-25 22:03:48 +01:00
Moritz KlackandGitHub cd18c9a0ce Merge pull request #2601 from wbkd/fix/isRectObject
fix(isRectObj): repair test for rect closes #2597
2022-11-25 21:50:38 +01:00
moklick d142725ecc fix(isRectObj): repair test for rect closes #2597 2022-11-25 21:48:33 +01:00
Moritz KlackandGitHub 49278ab056 Merge pull request #2594 from wbkd/feat/multi-node-toolbar
Feat/multi node toolbar
2022-11-25 21:39:40 +01:00
moklick 1363d1e398 chore(node-toolbar): cleanup 2022-11-25 21:35:39 +01:00
moklick a8d590a60b chore(nodeOriginHelper): cleanup 2022-11-25 21:25:00 +01:00
Christopher Möller d00c8536db fix(subflow-node-origin): use helper function in minimap, calculate extent corrrectly when using nodeOrigin and subflows 2022-11-24 22:36:00 +01:00
Christopher Möller 3685420ebf fix(subflow-node-origin): use node origin in node position calculation 2022-11-24 16:55:51 +01:00
Christopher Möller d4b00452a0 feat(node-toolbar): allow multiple nodeIds as property to enable multi selection 2022-11-24 12:51:17 +01:00
Samuel Degueldre 2adf37849b ref: stop using try..catch as control flow in Wrapper
Previously, Wrapper used try..catch around a call to useStoreApi to
check whether there was an available StoreContext, instead of simply
using useContext and checking the value. This leads to poor developer
experience when using the devtools feature "pause on caught exceptions"
as it causes the devtools to break on every render of a Wrapper that is
not within a StoreContext provider. The catch is also universal, meaning
that it could catch a completely unrelated error and happily keep going
instead of crashing which is undesirable.

This commit changes this try..catch into a simple call to useContext to
check if a StoreContext is available.
2022-11-23 13:23:28 +01:00
Christopher Möller f776239ecb feat(resize-node): example implementation of resize component 2022-11-22 16:13:23 +01:00
Jack Fishwick 2f767408ca chore: fix typing on 'isSelectionMode'. 2022-11-22 11:05:48 +00:00
Jack Fishwick a8e414e4a2 feat: display the pointer when in selection mode. 2022-11-22 11:05:48 +00:00
Jack Fishwick 64c8491761 bug fix: more post rebase fixes. 2022-11-22 11:05:48 +00:00
Jack Fishwick 35bc158ade bug fix: fixes post rebase. 2022-11-22 11:05:48 +00:00
Jack Fishwick 09ebd0c84a feat: allow customisation of how the select box works. 2022-11-22 11:05:45 +00:00
Jack Fishwick f25c7fe8a2 feat: pass through onSelectionStart in GraphView. 2022-11-22 11:05:13 +00:00
Jack Fishwick 1de6de1f96 feat: add events for when selection starts and ends. 2022-11-22 11:04:01 +00:00
Jack Fishwick 4e874b90a8 feat: select overlapping nodes, even if not fully within box. 2022-11-22 10:56:18 +00:00
Jack Fishwick 6fe85b2cbe bug fix: handle all mouse move events not just ones on the target. 2022-11-22 10:55:07 +00:00
Jack Fishwick 44097c15c9 tests: start fixing cypress tests. 2022-11-22 10:55:06 +00:00
Jack Fishwick 3c94b22ac1 bug fix: fix not panning on selection button press. 2022-11-22 10:55:06 +00:00
Jack Fishwick 1c6ac9193f bug fix: do not panOnDrag if the selection button is pressed. 2022-11-22 10:55:06 +00:00
Jack Fishwick f0baf64725 bug fix: only handle mouse events that were targeted at the selection pane. 2022-11-22 10:55:06 +00:00
Jack Fishwick 45dfcfd4ee feat: don't ignore user selection on mouse leave as we may have selected nodes. 2022-11-22 10:55:06 +00:00
Jack Fishwick a2eff8f834 feat: clear selection when starting new selection. 2022-11-22 10:55:06 +00:00
Jack Fishwick a1c830c086 feat: make sure 'onPaneContextMenu' still works with panOnDrag = 'RightClick'. 2022-11-22 10:55:06 +00:00
Jack Fishwick e22938b49f feat: do not remove node selection on leave. 2022-11-22 10:55:06 +00:00
Jack Fishwick 3969544fdf feat: do not clear the selection when you mouse out. 2022-11-22 10:55:06 +00:00
Jack Fishwick 00282c2cb4 feat: only trigger a pane 'click' if there is no movement. 2022-11-22 10:55:06 +00:00
Jack Fishwick b65cc1229d feat: add option for right click movement. 2022-11-22 10:55:06 +00:00