UNPKG

reaviz

Version:

Data Visualization using React

58 lines (57 loc) 1.44 kB
import { FC, ReactElement } from 'react'; import { IVennLayout } from '@upsetjs/venn.js'; import { ColorSchemeType } from '../common/color'; import { VennArc, VennArcProps } from './VennArc'; import { VennLabel, VennLabelProps } from './VennLabel'; import { VennOuterLabel, VennOuterLabelProps } from './VennOuterLabel'; export interface VennSeriesProps { /** * Id set by the parent. */ id: string; /** * Active managed selections. */ selections?: string[]; /** * The internal data object built by venn.js */ data: IVennLayout<any>[]; /** * Color scheme for the chart. * * @default 'cybertron' */ colorScheme: ColorSchemeType; /** * Whether the chart is disabled. * * @default false */ disabled?: boolean; /** * Whether the chart is animated or not. * * @default true */ animated?: boolean; /** * Label element. * * @default `<VennLabel />` */ label?: ReactElement<VennLabelProps, typeof VennLabel> | null; /** * Label element. * * @default `<VennOuterLabel />` */ outerLabel?: ReactElement<VennOuterLabelProps, typeof VennOuterLabel> | null; /** * Arc element. * * @default `<VennArc />` */ arc?: ReactElement<VennArcProps, typeof VennArc> | null; } export declare const VennSeries: FC<Partial<VennSeriesProps>>;