Moritz Klack and GitHub
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
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
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
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
45c407755f
feat: only click when not moved.
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
moklick
493d748c18
chore(connection-line): use type for imports
2022-11-17 14:53:32 +01:00
moklick
8e6a353d58
fix(updatable-edge): fix disappearing connection line for loose flows closes #2529
2022-11-17 14:51:26 +01:00
moklick
7fab7b6a54
Merge branch 'next-release' into fix/selection-rect
2022-11-15 16:09:35 +01:00
moklick
b70ede04f3
fix(nodeOrigin): repair multi selection and fitView
2022-11-15 16:00:21 +01:00
Moritz Klack and GitHub
5211b5a0d5
Merge pull request #2560 from wbkd/neo-patch-4
...
Always elevate 1000 in `zIndex` when node is selected
2022-11-15 11:55:54 +01:00
moklick
be89fe0020
refactor(edge-label-renderer): simplify selector
2022-11-15 11:18:12 +01:00
GeoffreyLiu
038835772f
refactor: use domNode prop to get edge-label-renderer
2022-11-14 19:55:56 +08:00
GeoffreyLiu
23aa8bb270
refactor: use existing d3Selection to get the element ref
2022-11-14 08:30:09 +08:00
Wenchen Li and GitHub
d586202d97
Always elevate 1000 in zIndex when node is selected
...
Instead of only elevating when `zIndex` is unset
2022-11-11 17:30:31 -05: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
moklick
8f55c21cd7
feat(useReactFlow): add intersection helpers
2022-11-02 19:38:02 +01:00
Moritz Klack and GitHub
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 Klack and GitHub
4c21915c34
Merge pull request #2536 from wbkd/pengfu-v11_deleteSelectedElements
...
Feat: add delete elements helper function
2022-11-02 16:04:24 +01:00
Moritz Klack and GitHub
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