Commit Graph
105 Commits
Author SHA1 Message Date
Moritz KlackandGitHub 5bcf586694 Merge pull request #2934 from wbkd/fix/wheel-violation
Fix/wheel violation
2023-03-20 11:36:23 +01:00
moklick e09dd87e77 refactor(error-messages): prefix error keys with error closes #2919 2023-03-20 11:19:32 +01:00
Artyom Sovetnikov 9fab9b82b4 make wheel listener non-passive explicitly 2023-03-18 19:14:16 +03:00
moklick 05b5781881 chore(edge-renderer): accept invalid handleid config 2023-03-13 13:34:37 +01:00
moklick 99ec9f0f03 feat(reactflow): add isValidConnection prop closes #2876 2023-03-02 17:42:07 +01:00
moklick 88d4dda260 fix(PropsWithChildren): pass default generic 2023-02-13 16:05:15 +01:00
moklick b80efb7dd3 chore(app): cleanup 2023-01-26 10:42:50 +01:00
moklick 3078777b28 fix(connectionRadius): pass prop to store 2023-01-26 10:24:58 +01:00
moklick 54010e7ee6 refactor(errors): put in constants 2023-01-25 18:32:13 +01:00
moklick 9527261719 feat(onError): add onError prop #2772 2023-01-25 17:47:42 +01:00
moklick 3d6937b3e4 refactor(connectionline): separate edge renderer and connectionline 2023-01-25 17:47:13 +01:00
moklick 0a2c96fe3e feat(connections): support touch 2023-01-23 17:58:15 +01:00
moklick 5af609696b feat(connection-radius): use closest handle / snappy edges #2759 2023-01-18 17:51:43 +01:00
moklick f2a4260ac9 feat(autoPan): add props, handle scale 2023-01-17 16:26:04 +01:00
moklick f43c7eba55 refactor(selection): keep node selection on right click #2733 2023-01-11 14:55:02 +01:00
moklick ab91fcce43 chore(zustand): update 2023-01-10 19:24:01 +01:00
Moritz KlackandGitHub ec10422fae Merge pull request #2740 from wbkd/michaelspiss-patch-1
EdgeRenderer: check both handles for connection mode loose
2023-01-10 17:11:37 +01:00
moklick 656eea88c1 fix(context-menu): dont trigger when doing right mouse button drag closes #2734 2023-01-10 12:50:19 +01:00
Michael SpissandGitHub 71c77bd70b Check both handle types in if ConnectionType is Loose
Fixes #2630 by concatenating both handle types instead of only looking at targets if any exist. The initial behavior does not change, as targets get chosen preferred if no handle id is given. This applies only to `ConnectionType.Loose`
2022-12-22 00:25:46 +01:00
moklick 43a16e61e6 chore(selection): cleanup 2022-12-19 12:22:42 +01:00
Christopher Möller 7318210a2c feat(nodes): add prop to disable automatic elevation of nodes on select 2022-12-15 18:57:01 +01:00
moklick dca41aaf0b refactor(panOnDrag): boolean or numbers for configuration 2022-12-15 12:43:52 +01:00
moklick 9ba39ae49f fix(defaultViewport): clamp invalid zoom values 2022-12-12 17:43:33 +01:00
moklick 0a2529d26e chore(figma-controls): cleanup 2022-12-12 16:52:31 +01:00
moklick ee2f39f2fe feat(props): add panActivationKeyCode 2022-12-12 16:35:39 +01:00
moklick d34ecbf802 refactor(selectionMode): rename options 2022-12-12 16:19:06 +01:00
moklick aaa0854c62 chore(figma-controls): rename props 2022-12-08 22:06:07 +01:00
moklick 36e4e773ce chore(flow-renderer): cleanup 2022-12-08 21:12:16 +01:00
moklick 0c890c3137 Merge branch 'next-release' into jackfishwick-main 2022-12-08 21:10:50 +01:00
moklick 57064ff096 refactor(figma-controls): update prop names and types 2022-12-08 21:08:45 +01:00
moklick badacf763b Merge branch 'main' of github.com:jackfishwick/react-flow into jackfishwick-main 2022-12-08 18:32:33 +01:00
moklick 860af7caed fix(minimap): use translateExtent on pan 2022-12-08 17:02:55 +01:00
Moritz KlackandGitHub e0fc4ae08f Merge pull request #2626 from wbkd/feat/resize-node
Feat: Add NodeResizer package
2022-12-06 18:17:27 +01:00
moklick 449e468cd9 chore(zoompane): use isWrapped helper func 2022-12-06 18:14:06 +01:00
moklick 0a2c13d468 refactor(panning): allow middle mouse pan over edge closes #2621 2022-12-06 17:20:12 +01:00
moklick b511b15ef8 refactor(core): make it possible to batch changes 2022-12-01 20:28:37 +01:00
moklick 22db82c8b8 chore(wrapper): cleanup 2022-11-25 22:03:48 +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
Jack Fishwick 2f767408ca chore: fix typing on 'isSelectionMode'. 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 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 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 a1c830c086 feat: make sure 'onPaneContextMenu' still works with panOnDrag = 'RightClick'. 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
Jack Fishwick 3169589fbc feat: make sure 'panOnDrag' overrides 'selectBoxOnDrag'. 2022-11-22 10:55:06 +00:00
Jack Fishwick 55811169da feat: handle selection mode properly. Up z-index for selection box. 2022-11-22 10:55:06 +00:00
Jack Fishwick da08e69e78 feat: condense user selection into pane. 2022-11-22 10:55:06 +00:00