UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

53 lines (52 loc) 1.21 kB
import { PureComponent } from 'react'; export interface GridStripeProps { /** * Position set by the `GridlineSeries`. */ position: 'horizontal' | 'vertical'; /** * Stripe fill color. */ fill: string; /** * 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; /** * Data point for the position set by the `GridlineSeries`. */ data: number; /** * Index set by the `GridlineSeries`. */ index: number; } export declare class GridStripe extends PureComponent<GridStripeProps> { static defaultProps: Partial<GridStripeProps>; getCoords(): { y: number; x: any; height: number; width: any; fill: string; } | { y: any; x: number; height: any; width: number; fill: string; }; render(): JSX.Element; }