Commit Graph
59 Commits
Author SHA1 Message Date
moklick 860af7caed fix(minimap): use translateExtent on pan 2022-12-08 17:02:55 +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
moklick 0a2c13d468 refactor(panning): allow middle mouse pan over edge closes #2621 2022-12-06 17:20:12 +01:00
moklick b511b15ef8 refactor(core): make it possible to batch changes 2022-12-01 20:28:37 +01:00
moklick 22db82c8b8 chore(wrapper): cleanup 2022-11-25 22:03:48 +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
GeoffreyLiu 23aa8bb270 refactor: use existing d3Selection to get the element ref 2022-11-14 08:30:09 +08: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
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 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
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 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 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
moklick be6590a5d6 feat(nodes-edges): add nodesFocusable, edgesFocusable, cleanup keyboard controls 2022-10-03 14:31:34 +02:00
moklick fad6cf706e refactor(packages) support react 17 and 18 2022-09-19 16:07:30 +02:00
moklick dea46511c3 chore(nodes-edges): add data testids 2022-09-14 13:08:57 +02:00
moklick ead4d75c40 fix(nodes): handle double click 2022-09-13 14:52:07 +02:00
moklick 17ef4ff05f refactor(repo): use turbo + rollup + vite 2022-09-12 17:24:49 +02:00
moklick 51e957e5db feat(edges): add interactionWidth option #1580 #1114 2022-09-07 17:43:36 +02:00
Moritz KlackandGitHub 7a96817114 Refactor: Better routing for smoothstep and step edge (#2407)
* refactor(step/smoothstep-edge): better default routing
* chore(edges): pass options
* chore(exports): add BaseEdge
2022-09-07 17:40:18 +02:00
moklick 23fdd20658 fix(nodeOrigin): use origin for calculating handle position 2022-09-01 12:37:13 +02:00
moklick 2172522a0b refactor(panning): enable panning when nodesDraggable is false #1457 2022-09-01 12:12:16 +02:00
moklick e5f483300a refactor(zoompane): cleanup 2022-08-31 17:53:30 +02:00
moklick 693a71cc63 fix(panOnScroll): only trigger onMoveEnd once closes #675 2022-08-31 17:30:38 +02:00
moklick a9b3ef1d5e text(event-handler): add tests for pane handlers 2022-08-31 15:58:49 +02:00
moklick ba9df1035b refactor(drag-pane): handle middle mouse closes #784, #1767 2022-08-29 18:00:04 +02:00
moklick 22cb21a4ae fix(nodeExtent): use for initial rendering closes #2384 2022-08-29 17:17:48 +02:00
moklick 55c81362bb refactor(zomm): simplify 2022-08-24 14:35:38 +02:00
moklick ecf0476939 fix(edges): use default type if type is invalid 2022-08-23 18:09:57 +02:00
moklick 86ea34b470 refactor(dev-warnings): cleanup 2022-08-17 11:55:37 +02:00
moklick ab14be02f4 feat(nodes): add nodeOrigin prop 2022-08-17 11:43:52 +02:00
moklick d2d4b76e65 feat(a11y): add aria live message on move by keyboard 2022-08-16 18:21:20 +02:00
moklick 820cb1c880 feat(hooks): add useOnViewportChange 2022-08-10 16:01:29 +02:00
moklick 94463cd0be refactor(styling): dont inject styles 2022-08-09 18:42:12 +02:00
moklick b21e126c2e chore(node-renderer): cleanup types 2022-08-08 17:34:55 +02:00
moklick ff79bb8f03 chore(edge-renderer): cleanup types 2022-08-08 17:31:04 +02:00
moklick 7150e0369e feat(linting): add eslint 2022-08-08 13:34:00 +02:00
moklick 29013155fd chore(store-updater): cleanup 2022-08-06 18:00:07 +02:00
moklick 753f442468 chore(zustand): upgrade to v4 2022-08-06 16:57:32 +02:00
moklick 6f6af23bf5 Merge branch 'main' into v11 2022-08-05 19:09:09 +02:00
Moritz KlackandGitHub 97c22ace71 Refactor: CSS handling (#2344)
* refactor(css): only load base styles, add css task, cleanup exports
* style(base): add edge label bg
* refactor(css): use css-utils
* feat(core): add Panel component
* refactor(background): cleanup
* refactor(css-handling): cleanup
2022-08-05 18:36:32 +02:00
Moritz KlackandGitHub f7dc75b0f3 Feat: basic keyboard controls and better WAI-ARIA defaults (#2333)
* feat(nodes): focusable and moveable with keys
* refactor(key-handling): cleanup, handle selections
* feat(edges): selectable with keys
* refactor(nodes-edges): cleanup keyboard controls and aria- attrs
* refactor(nodes): node needs to be selected for arrow keys
* refactor(minimap): create const for labelledby

closes #1033
2022-08-01 13:58:18 +02:00