@visx/axis
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -43,3 +43,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
return ( | ||
/** tickValue, index */ | ||
/** tickValue, index, tickValues */ | ||
defaultTextProps | ||
@@ -60,3 +60,3 @@ ); | ||
index = _ref2.index; | ||
return tickLabelProps(value, index); | ||
return tickLabelProps(value, index, ticks); | ||
}); | ||
@@ -63,0 +63,0 @@ var maxTickLabelFontSize = Math.max.apply(Math, [10].concat(allTickLabelProps.map(function (props) { |
@@ -58,3 +58,3 @@ "use strict"; | ||
return ( | ||
/** tickValue, index */ | ||
/** tickValue, index, tickValues */ | ||
defaultTextProps | ||
@@ -75,3 +75,3 @@ ); | ||
index = _ref2.index; | ||
return tickLabelProps(value, index); | ||
return tickLabelProps(value, index, ticks); | ||
}); | ||
@@ -78,0 +78,0 @@ var maxTickLabelFontSize = Math.max.apply(Math, [10].concat(allTickLabelProps.map(function (props) { |
@@ -13,3 +13,6 @@ /// <reference types="react" /> | ||
}[]) => FormattedValue; | ||
export declare type TickLabelProps<T> = (value: T, index: number) => Partial<TextProps>; | ||
export declare type TickLabelProps<T> = (value: T, index: number, values: { | ||
value: T; | ||
index: number; | ||
}[]) => Partial<TextProps>; | ||
export declare type TickRendererProps = Partial<TextProps> & { | ||
@@ -16,0 +19,0 @@ x: number; |
{ | ||
"name": "@visx/axis", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "visx axis", | ||
@@ -47,3 +47,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "6cd86b66b6c5ba9ec9bcaa0a6f25f9523354a70a" | ||
"gitHead": "cab0896d0b7b4f89067587d2160e0e3ed85ef0be" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68356
1225