1 | import React, { ReactElement } from 'react';
|
2 | import { Props as DotProps } from '../shape/Dot';
|
3 | import { ImplicitLabelType } from '../component/Label';
|
4 | import { IfOverflow } from '../util/IfOverflowMatches';
|
5 | import { D3Scale } from '../util/types';
|
6 | import { Props as XAxisProps } from './XAxis';
|
7 | import { Props as YAxisProps } from './YAxis';
|
8 | interface 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 | }
|
17 | interface 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 | }
|
30 | export type Props = DotProps & ReferenceDotProps;
|
31 | export declare function ReferenceDot(props: Props): React.JSX.Element;
|
32 | export 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 | }
|
47 | export {};
|