UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

63 lines (62 loc) 1.44 kB
import { PureComponent } from 'react'; export interface GridlineProps { /** * Height of the line set by the `GridlineSeries`. */ height: number; /** * Width of the line set by the `GridlineSeries`. */ width: number; /** * Direction set by the `GridlineSeries`. */ direction: 'all' | 'x' | 'y'; /** * D3 Scale set by `GridlineSeries`. */ scale: any; /** * SVG Stroke Width Property. */ strokeWidth: number; /** * SVG Stroke Color Property. */ strokeColor: string; /** * Data point for the position set by the `GridlineSeries`. */ data: number; /** * Index set by the `GridlineSeries`. */ index: number; /** * SVG Stroke Dash Array Property. */ strokeDasharray: string; } export declare class Gridline extends PureComponent<GridlineProps> { static defaultProps: Partial<GridlineProps>; getCoords(): { x1: any; x2: any; y1: number; y2: number; fill: string; stroke: string; strokeDasharray: string; strokeWidth: number; } | { y1: any; y2: any; x1: number; x2: number; fill: string; stroke: string; strokeDasharray: string; strokeWidth: number; }; render(): JSX.Element; }