Merge pull request #32127 from bndynet/recharts

[recharts] Add missing Surface and Symbols definitions, 'fill' prop for PresentationAttributes
This commit is contained in:
Daniel Rosenwasser
2019-01-18 13:25:02 -08:00
committed by GitHub
+23
View File
@@ -129,6 +129,7 @@ export interface PresentationAttributes<X = number, Y = number> extends Pick<CSS
colorInterpolation: string;
colorProfile: string;
colorRendering: string;
fill: string;
fillOpacity: number | string;
fontSize: number | string;
fontSizeAdjust: number | string;
@@ -1004,3 +1005,25 @@ export interface ZAxisProps {
}
export class ZAxis extends React.Component<ZAxisProps> { }
export interface SurfaceProps {
width?: number;
height?: number;
viewBox?: ViewBox;
className?: string;
style?: object;
children?: React.ReactNode[] | React.ReactNode;
}
export class Surface extends React.Component<SurfaceProps> { }
export interface SymbolsProps extends Partial<PresentationAttributes> {
className?: string;
type?: 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
cx?: number;
cy?: number;
size?: number;
sizeType?: 'area' | 'diameter';
}
export class Symbols extends React.Component<SymbolsProps> { }