UNPKG

cl-react-graph

Version:
16 lines (15 loc) 763 B
import { Selection } from 'd3-selection'; import { IMargin } from '../legacy/types'; export declare type TSelection = Selection<any, any, any, any>; export declare type TTextSelection = Selection<SVGTextElement, any, any, any>; interface ISizeProps { margin: IMargin; width: number | string; height: number | string; className: string; } export declare const makeSvg: (el: Element, svg: TSelection | undefined, svgId?: string) => TSelection; export declare const sizeSVG: (svg: TSelection | undefined, props: ISizeProps) => void; export declare const makeGrid: (svg: TSelection) => [TSelection, TSelection]; export declare const makeScales: (svg: TSelection) => [TSelection, TSelection, TSelection, TSelection, TSelection, TSelection]; export {};