Moritz Klack and GitHub
6526e3297e
Update CHANGELOG.md
2022-11-28 21:22:09 +01:00
Moritz Klack and GitHub
983893b7f1
Update CHANGELOG.md
2022-11-28 21:21:51 +01:00
Moritz Klack and GitHub
ee7c9f28eb
Merge pull request #2617 from wbkd/next-release
...
Next release
2022-11-28 21:21:06 +01:00
Moritz Klack and GitHub
4eef4f9103
Merge pull request #2616 from wbkd/lounsbrough-patch-1
...
Fix minimap node
2022-11-28 21:17:04 +01:00
moklick
780710da24
chore(packages): bump
2022-11-28 21:15:17 +01:00
moklick
7ece618d94
chore(changeset): add
2022-11-28 21:13:27 +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
Moritz Klack and GitHub
caeda65bd3
Merge pull request #2615 from wbkd/next-release
...
chore(packages): bump
2022-11-28 21:08:13 +01:00
David Lounsbrough
f05c0d19c3
Add assertion to cover path that I fixed
2022-11-28 13:58:28 -06:00
David Lounsbrough and GitHub
686fb87b35
Fix y position on minimap
2022-11-28 13:05:27 -06:00
Moritz Klack and GitHub
d399bfb0ed
Merge pull request #2600 from wbkd/next-release
...
Next release
2022-11-25 22:46:00 +01:00
moklick
8b3d125115
chore(packages): bump
2022-11-25 22:17:29 +01:00
Moritz Klack and GitHub
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
b0302ce426
chore(changeset): add
2022-11-25 22:05:51 +01:00
moklick
22db82c8b8
chore(wrapper): cleanup
2022-11-25 22:03:48 +01:00
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
b2c728137d
chore(changest): add
2022-11-25 21:50:15 +01:00
moklick
d142725ecc
fix(isRectObj): repair test for rect closes #2597
2022-11-25 21:48:33 +01:00
Moritz Klack and GitHub
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
Moritz Klack and GitHub
2b5e1a1854
Merge pull request #2595 from wbkd/fix/subflow-node-origin
...
fix(subflow-node-origin): use node origin in node position calculation
2022-11-25 21:26:12 +01:00
moklick
a8d590a60b
chore(nodeOriginHelper): cleanup
2022-11-25 21:25:00 +01:00
Christopher Möller
c828bfda0a
chore(subflow-node-origin): create changeset
2022-11-24 22:38:05 +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
ec94d9ecdc
chore(node-toolbar): add changeset
2022-11-24 12:59:32 +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
6c7f18c0a0
tests: add tests for the new features.
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
5a192e0068
chore: add select box mode to figma example.
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
27a746bf57
tests: fix minimap test.
2022-11-22 10:55:07 +00:00
Jack Fishwick
42309fbf0b
tests: fix interaction test.
2022-11-22 10:55:07 +00:00
Jack Fishwick
28865d0e21
tests: fix basics cypress test.
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
b478243931
chore: add onPaneContextMenu to figma example.
2022-11-22 10:55:06 +00:00