recharts: Add ReferenceLine position prop (#41087)

Recharts' ReferenceLines have gained the ability for a position
to be specified, https://github.com/recharts/recharts/pull/1685/files.
This commit is contained in:
Phil Jones
2019-12-23 18:07:56 +00:00
committed by Andrew Branch
parent 24029cc4f3
commit c923849a86

View File

@@ -55,6 +55,7 @@ export type LineType =
export type IfOverflowType = 'hidden' | 'visible' | 'discard' | 'extendDomain';
export type AxisInterval = number | 'preserveStart' | 'preserveEnd' | 'preserveStartEnd';
export type BaseValueType = number | 'auto' | 'dataMin' | 'dataMax';
export type ReferenceLinePosition = 'start' | 'middle' | 'end';
export type PickedCSSStyleDeclarationKeys =
'alignmentBaseline' | 'baselineShift' | 'clip' | 'clipPath' | 'clipRule' | 'color' |
@@ -735,6 +736,7 @@ export interface ReferenceLineProps extends Partial<PresentationAttributes<numbe
& Partial<PresentationAttributes<number | string, number | string>>
& { x1: number; y1: number; x2: number; y2: number; }
> | React.ReactElement;
position?: ReferenceLinePosition;
}
export class ReferenceLine extends React.Component<ReferenceLineProps> { }