UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

19 lines (18 loc) 565 B
import { Component, ReactElement } from 'react'; import { GradientStop, GradientStopProps } from './GradientStop'; export interface GradientProps { id: string; stops: ReactElement<GradientStopProps, typeof GradientStop>[]; color?: string; direction: 'vertical' | 'horizontal'; } export declare class Gradient extends Component<GradientProps> { static defaultProps: Partial<GradientProps>; getDirection(): { x1: string; x2: string; y1: string; y2: string; }; render(): JSX.Element; }