UNPKG

reagraph

Version:

WebGL Node-based Graph for React

16 lines (15 loc) 470 B
import { LayoutFactoryProps } from './types'; export interface ConcentricLayoutInputs extends LayoutFactoryProps { /** * Base radius of the innermost circle. */ radius: number; /** * Distance between circles. */ concentricSpacing?: number; } export declare function concentricLayout({ graph, radius, drags, getNodePosition, concentricSpacing }: ConcentricLayoutInputs): { step(): boolean; getNodePosition(id: string): any; };