From 4cb317b3c950fbf7b69dd27f0dcd584ebc381bff Mon Sep 17 00:00:00 2001 From: Garrett McCullough Date: Fri, 7 Dec 2018 15:52:07 -0800 Subject: [PATCH 1/2] add fixLabelOverlap property to VictoryAxisProps interface --- types/victory/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index 5670547317..636dcb1c29 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -1143,8 +1143,15 @@ declare module "victory" { * } * ]} *}} - */ + */ events?: EventPropTypeInterface<"axis" | "axisLabel" | "grid" | "ticks" | "tickLabels" | "parent", number | string>[]; + /** + * When true, this prop reduces the number of tick labels to fit the length of the axis. + * Labels are removed at approximately even intervals from the original array of labels. + * This feature only works well for labels that are approximately evenly spaced. + * @default false + */ + fixLabelOverlap?: boolean; /** * The gridComponent prop takes in an entire component which will be used * to create grid lines. The new element created from the passed gridComponent From 9b44edaff66e035bd0ad495e9466447e778297d4 Mon Sep 17 00:00:00 2001 From: Garrett McCullough Date: Fri, 7 Dec 2018 16:04:06 -0800 Subject: [PATCH 2/2] update version number --- types/victory/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index 636dcb1c29..9459c9e5b1 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Victory 0.9.3 +// Type definitions for Victory 0.9.4 // Project: https://github.com/FormidableLabs/victory // Definitions by: Alexey Svetliakov // snerks