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
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
86a0d7b5ba
feat: update the example
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
920136b807
feat: add a Figma example.
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
Moritz Klack and GitHub
6bbc004315
Merge pull request #2559 from wbkd/next-release
...
Next release
2022-11-21 14:58:42 +01:00
moklick
a458564bfc
chore(packages): bump versions
2022-11-21 14:53:18 +01:00
Moritz Klack and GitHub
6febbd67a6
Merge pull request #2573 from wbkd/fix/edge-update-loose
...
fix(updatable-edge): fix disappearing connection line for loose flows
2022-11-17 14:54:55 +01:00
moklick
5e8b67dd41
chore(changeset): add
2022-11-17 14:54:23 +01: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
Christopher Möller
c793433caf
chore(node-toolbar): add changeset for node-toolbar
2022-11-17 11:39:45 +01:00
Christopher Möller
4ebbea1960
chore(node-toolbar): set initial package version
2022-11-17 11:36:12 +01:00
Christopher Möller and GitHub
b2acca333f
Merge pull request #2563 from wbkd/feat/node-toolbar
...
feat(node-toolbar): add node-toolbar component
2022-11-17 11:29:31 +01:00
Christopher Möller
98116d431f
chore(reactflow): add changeset for reactflow package
2022-11-17 11:28:41 +01:00
Christopher Möller
b31d8e9dc2
feat(node-toolbar): remove css from node-toolbar component, set version to 1.0.0
2022-11-17 09:59:28 +01:00