mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
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:
committed by
Andrew Branch
parent
24029cc4f3
commit
c923849a86
2
types/recharts/index.d.ts
vendored
2
types/recharts/index.d.ts
vendored
@@ -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> { }
|
||||
|
||||
Reference in New Issue
Block a user