Commit Graph
215 Commits
Author SHA1 Message Date
moklick 3cc7bdcb5c chore(base-edge): check labelX labelY 2022-12-15 17:33:22 +01:00
moklick eaaf4f6d08 chore(base-edge): label coords optional 2022-12-15 17:30:35 +01:00
moklick 7ef2910808 chore(versions): bump 2022-12-15 12:48:16 +01:00
moklick dca41aaf0b refactor(panOnDrag): boolean or numbers for configuration 2022-12-15 12:43:52 +01:00
moklick 72a4f4a5fb refactor(key-handling): multi sleect when input focused closes #2650 2022-12-15 11:06:24 +01:00
moklick 2a7effd291 fix(selection): do not select hidden nodes closes #2679 2022-12-15 10:54:40 +01:00
moklick 0342cd475f chore(changesets): enter prerelease mode and bump packages 2022-12-13 17:25:41 +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 08faffacee refactor(selection): improve performance 2022-12-08 21:58:24 +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
Moritz KlackandGitHub 4d5e2ac3a6 Merge pull request #2657 from wbkd/refactor/node-drag
Refactor Nodes: only trigger drag event when change happened
2022-12-08 18:27:29 +01:00
Moritz KlackandGitHub 5940af2e30 Merge pull request #2659 from wbkd/fix/translate-extent
fix(minimap): use translateExtent on pan
2022-12-08 18:27:17 +01:00
moklick c51ae89eeb refactor(store): use getNodes function 2022-12-08 18:13:35 +01:00
moklick 860af7caed fix(minimap): use translateExtent on pan 2022-12-08 17:02:55 +01:00
moklick b34ccd19e9 refactor(nodes): only trigger drag event when change happened 2022-12-08 13:44:25 +01:00
moklick 7d7660f735 chore(packages): bump versions 2022-12-06 18:43:33 +01:00
moklick 8bb0945514 style(nodes): no outline for custom nodes 2022-12-06 18:32:22 +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
Christopher Möller 0892e2ea9a refactor(node-resizer): use nodeId from context, fix glitches while resizing 2022-12-06 17:56:56 +01:00
moklick 0a2c13d468 refactor(panning): allow middle mouse pan over edge closes #2621 2022-12-06 17:20:12 +01:00
moklick 13f024c64b Merge branch 'patch-5' of github.com:neo/react-flow into neo-patch-5 2022-12-06 17:10:39 +01:00
moklick 42f64b214c chore(getNodePosOrigin): cleanup 2022-12-06 16:52:38 +01:00
moklick 851b8e3e0f fix(getRectOfNodes): handle node pos correctly closes #2641 2022-12-06 16:50:20 +01:00
moklick 7d57c46571 refactor(nodes): don't move or select nodes when input is focused 2022-12-06 13:41:39 +01:00
moklick 9da984f3e4 refactor(resizer): handle default nodes 2022-12-04 15:18:32 +01:00
moklick b511b15ef8 refactor(core): make it possible to batch changes 2022-12-01 20:28:37 +01:00
moklick 51294c1522 Merge branch 'main' into feat/resize-node 2022-12-01 14:53:19 +01:00
moklick 6ee4eb4c42 refactor(node-resizer): use package, update resize behaviour 2022-12-01 14:53:04 +01:00
Wenchen LiandGitHub c6b5122d0f Invalidate a Node trying to connect itself with the same handle
It also be written as `!(elementBelowNodeId === nodeId && elementBelowHandleId === handleId)`
2022-11-28 17:31:57 -05:00
moklick 8b3d125115 chore(packages): bump 2022-11-25 22:17:29 +01:00
Moritz KlackandGitHub 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 22db82c8b8 chore(wrapper): cleanup 2022-11-25 22:03:48 +01:00
Moritz KlackandGitHub 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