[recharts] adds allowEscapeViewBox type to Tooltip (#39230)

* adds allowEscapeViewBox type to Tooltip

now that https://github.com/recharts/recharts/pull/1908 is merged

* [recharts] increments minor version to 1.8.0

* Update types/recharts/index.d.ts

oops.  habit! heh.

Co-Authored-By: Konstantin Azizov <konstantin.azizov@theagilehub.net>

* [recharts] adds Dimitri Mitropoulos to authors
This commit is contained in:
Dimitri Mitropoulos
2019-10-22 13:38:33 -07:00
committed by Wesley Wigham
co-authored by Konstantin Azizov
parent eed3f51121
commit 37c2494d5d
+5 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for Recharts 1.7
// Type definitions for Recharts 1.8
// Project: http://recharts.org/, https://github.com/recharts/recharts
// Definitions by: Raphael Mueller <https://github.com/rapmue>
// Roy Xue <https://github.com/royxue>
@@ -15,6 +15,7 @@
// Dave Vedder <https://github.com/veddermatic>
// Konstantin Azizov <https://github.com/g07cha>
// Gonzalo Nicolas D'Elia <https://github.com/gndelia>
// Dimitri Mitropoulos <https://github.com/dimitropoulos>
// Eliot Ball <https://github.com/eliotball>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -836,6 +837,8 @@ export interface Coordinate {
y: number;
}
export type AllowEscapeViewBox = { x: boolean } | { y: boolean } | { x: boolean, y: boolean };
export interface TooltipPayload {
name: string;
value: string | number | Array<string | number>;
@@ -850,6 +853,7 @@ export interface TooltipPayload {
export interface TooltipProps extends Animatable {
content?: React.ReactElement | React.StatelessComponent<any> | ContentRenderer<TooltipProps>;
viewBox?: ViewBox;
allowEscapeViewBox?: AllowEscapeViewBox;
active?: boolean;
separator?: string;
formatter?: TooltipFormatter;