UNPKG

@jalez/react-flow-automated-layout

Version:

A React library for automated layout of nested node graphs with parent-child relationships using React Flow

10 lines (9 loc) 781 B
import { LayoutProvider, useLayoutContext } from './context/LayoutProvider'; import LayoutControls from './components/LayoutControls'; import DirectionControls from './components/controls/DirectionControls'; import SpacingControls from './components/controls/SpacingControls'; import AutoLayoutToggle from './components/controls/AutoLayoutToggle'; import { DagreEngine, engines } from './engines'; import type { LayoutDirection, LayoutAlgorithm, LayoutEngine, LayoutContextState, ParentResizingOptions } from './context/LayoutContext'; export { LayoutProvider, LayoutControls, useLayoutContext, DirectionControls, SpacingControls, AutoLayoutToggle, DagreEngine, engines, }; export type { LayoutDirection, LayoutAlgorithm, LayoutEngine, LayoutContextState, ParentResizingOptions };