UNPKG

1.71 kBTypeScriptView Raw
1import React, { ReactElement } from 'react';
2import { Props as DotProps } from '../shape/Dot';
3import { ImplicitLabelType } from '../component/Label';
4import { IfOverflow } from '../util/IfOverflowMatches';
5import { D3Scale } from '../util/types';
6import { Props as XAxisProps } from './XAxis';
7import { Props as YAxisProps } from './YAxis';
8interface InternalReferenceDotProps {
9 xAxis?: Omit<XAxisProps, 'scale'> & {
10 scale: D3Scale<string | number>;
11 };
12 yAxis?: Omit<YAxisProps, 'scale'> & {
13 scale: D3Scale<string | number>;
14 };
15 clipPathId?: number | string;
16}
17interface ReferenceDotProps extends InternalReferenceDotProps {
18 r?: number;
19 isFront?: boolean;
20 alwaysShow?: boolean;
21 ifOverflow?: IfOverflow;
22 x?: number | string;
23 y?: number | string;
24 className?: number | string;
25 yAxisId?: number | string;
26 xAxisId?: number | string;
27 shape?: ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>);
28 label?: ImplicitLabelType;
29}
30export type Props = DotProps & ReferenceDotProps;
31export declare function ReferenceDot(props: Props): React.JSX.Element;
32export declare namespace ReferenceDot {
33 var displayName: string;
34 var defaultProps: {
35 isFront: boolean;
36 ifOverflow: string;
37 xAxisId: number;
38 yAxisId: number;
39 r: number;
40 fill: string;
41 stroke: string;
42 fillOpacity: number;
43 strokeWidth: number;
44 };
45 var renderDot: (option: React.ReactElement<SVGElement, string | React.JSXElementConstructor<any>> | ((props: any) => React.ReactElement<SVGElement, string | React.JSXElementConstructor<any>>), props: any) => React.JSX.Element;
46}
47export {};