Commit Graph
120 Commits
Author SHA1 Message Date
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
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 KlackandGitHub 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 LiandGitHub 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 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 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 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
chang_su a22229eb14 chore: update deleteElements param 2022-10-25 16:17:16 +08:00
chang_su 87a1b644f6 chore: fix conflicts 2022-10-25 14:56:37 +08:00
chang_su b6ec8b70b2 chore: remove deleteSelectedElements method 2022-10-25 14:43:44 +08:00
chang_su f39936e508 feature(deleteElements): add deleteElements method 2022-10-24 23:37:46 +08:00
moklick 1e5ea41bda fix(base-edge): dont apply animation to edge helper closes #2517 2022-10-21 12:20:23 +02:00
moklick 81c42ae00c fix(onlyRenderVisibleElements): always render nodes with dragging=true closes #2444 2022-10-21 12:05:25 +02: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 0feb847b76 chore(types): pro options acc optional closes #2492 2022-10-19 16:46: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 c44413d816 chore(panel): dont break user selection above panel 2022-10-10 11:40:25 +02: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
Moritz KlackandGitHub 5abc51322d Merge pull request #2469 from Alireza29675/feat/cancel-connection-example
feat(examples): example added for cancelConnection
2022-10-04 17:41:43 +02:00
Alireza Sheikholmolouki ab9e340b7b feat(examples): added an example for cancelling the connection 2022-10-04 14:29:41 +02:00
moklick be6590a5d6 feat(nodes-edges): add nodesFocusable, edgesFocusable, cleanup keyboard controls 2022-10-03 14:31:34 +02:00
moklick a3147dc4b8 refactor(nodes): make nopan class overwritable 2022-10-03 13:01:42 +02:00
Moritz KlackandGitHub 2e0bd96f41 Merge pull request #2437 from Alireza29675/feat/cancel-connection
feat(store): cancelConnection method created
2022-09-27 17:30:11 +02:00
chang_su 7cb586bbe5 feature(deleteSelectedElements): add deleteSelectedElements method 2022-09-27 23:16:22 +08:00
moklick 7542275ccc refactor(edge-label): prevent junpming 2022-09-27 16:09:32 +02:00
moklick 90418e36fa chore(edges): cleanup types 2022-09-27 16:00:02 +02:00
moklick e634e7296a refactor(edges): siplify edge path / label position handling, repair edge labels 2022-09-27 14:17:02 +02:00
moklick aef8b477c2 chore(packages): bump deps 2022-09-26 12:48:44 +02:00