From c923849a860cf003fa2dff55c09d92faefc63f16 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 23 Dec 2019 18:07:56 +0000 Subject: [PATCH] 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. --- types/recharts/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index dfb5715598..a83053ce96 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -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> & { x1: number; y1: number; x2: number; y2: number; } > | React.ReactElement; + position?: ReferenceLinePosition; } export class ReferenceLine extends React.Component { }