Commit Graph
87 Commits
Author SHA1 Message Date
moklick 656eea88c1 fix(context-menu): dont trigger when doing right mouse button drag closes #2734 2023-01-10 12:50:19 +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
Jack Fishwick 707ee19875 feat: block pan on scroll if we are making a selection. 2022-11-22 10:55:06 +00:00
Jack Fishwick 33e730d7b4 bug fix: make sure we actually update event handlers when selection begins. 2022-11-22 10:55:06 +00:00
Jack Fishwick 685ff76ee8 feat: add a selectBoxOnDrag prop which allows select box to be triggered without an additional key press. 2022-11-22 10:55:06 +00:00
GeoffreyLiu 23aa8bb270 refactor: use existing d3Selection to get the element ref 2022-11-14 08:30:09 +08:00
GeoffreyLiu 3170f875e5 refactor: access edge-label-renderer by storing the root element 2022-11-11 10:44:59 +08:00
GeoffreyLiu 55cf7560c0 fix: access the edge-label-renderer by reactflow's id 2022-11-08 15:46:05 +08:00
Moritz KlackandGitHub e04973c10b Merge pull request #2538 from wbkd/neo-patch-3
Refactor: Add isolated stacking context
2022-11-02 16:22:33 +01:00
moklick cda039fc8d Merge branch 'patch-3' of github.com:neo/react-flow into neo-patch-3 2022-11-02 16:16:28 +01:00
Moritz KlackandGitHub 91f1f83d07 Merge pull request #2535 from wbkd/feat/edge-label-renderer
Feat: Add div based renderer for edge labels
2022-11-02 16:04:04 +01:00
moklick 095e1fbe81 feat(edge-labels): add div based renderer 2022-11-02 14:38:37 +01:00
moklick 322ea0ebed feat(interactive-minimap): add zoom and pan 2022-10-31 17:55:32 +01:00
moklick 7b1dc1b18c chore(types): cleanup 2022-10-21 11:35:56 +02:00
moklick 74cacd29cb chore(rfId): cleanup id handling 2022-10-19 16:58:36 +02:00
moklick 7d93d4e46b chore(rf-props): pass id to wrapper closes #2510 2022-10-19 16:43:49 +02:00
Wenchen LiandGitHub eccd567347 Put wrapper container in its own stacking context 2022-10-14 11:33:50 -04:00
moklick 48c402c4d3 refactor(aria-descriptions): render when disableKeyboardA11y is true 2022-10-10 11:30:15 +02:00
moklick 3a1a365a63 fix(useOnSelectionChange): repair hook closes #2484 2022-10-09 20:40:11 +02:00
moklick be6590a5d6 feat(nodes-edges): add nodesFocusable, edgesFocusable, cleanup keyboard controls 2022-10-03 14:31:34 +02:00