- Updated dependencies [
ab2ff374
,50032c3d
,baa8689e
,4244bae2
,7ef29108
,23afb3ab
]:- @reactflow/core@11.4.0
- panOnDrag: Use numbers for prop ([1,2] = drag via middle or right mouse button)
- selection: do not include hidden nodes
- minimap: fix onNodeClick for nodes outside the viewport
- keys: allow multi select when input is focused
- Updated dependencies []:
- @reactflow/core@11.4.0-next.1
- cleanup types
- Updated dependencies:
- @reactflow/core@11.1.2
- Updated dependencies:
- @reactflow/core@11.1.1
- Better Accessibility
- Nodes and edges are focusable, selectable, moveable and deleteable with the keyboard.
aria-
default attributes for all elements and controllable viaariaLabel
options- Keyboard controls can be disabled with the new
disableKeyboardA11y
prop
- Better selectable edges via new edge option:
interactionWidth
- renders invisible edge that makes it easier to interact - Better routing for smoothstep and step edges: https://twitter.com/reactflowdev/status/1567535405284614145
- Nicer edge updating behaviour: https://twitter.com/reactflowdev/status/1564966917517021184
- Node origin: The new
nodeOrigin
prop lets you control the origin of a node. Useful for layouting. - New background pattern:
BackgroundVariant.Cross
variant useOnViewportChange
hook - handle viewport changes within a componentuseOnSelectionChange
hook - handle selection changes within a componentuseNodesInitialized
hook - returns true if all nodes are initialized and if there is more than one node- Deletable option for Nodes and edges
- New Event handlers:
onPaneMouseEnter
,onPaneMouseMove
andonPaneMouseLeave
- Edge
pathOptions
forsmoothstep
anddefault
edges - Nicer cursor defaults: Cursor is grabbing, while dragging a node or panning
- Pane moveable with middle mouse button
- Pan over nodes when they are not draggable (
draggable=false
ornodesDraggable
false) <BaseEdge />
component that makes it easier to build custom edges- Separately installable packages
- @reactflow/core
- @reactflow/background
- @reactflow/controls
- @reactflow/minimap
- Updated dependencies:
- @reactflow/core@11.0.0