@visx/axis
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -58,3 +58,5 @@ import _pt from "prop-types"; | ||
}, horizontal); | ||
var filteredTickValues = (tickValues != null ? tickValues : getTicks(scale, numTicks)).map(function (value, index) { | ||
var filteredTickValues = (tickValues != null ? tickValues : getTicks(scale, numTicks)).filter(function (value) { | ||
return !hideZero || value !== 0 && value !== '0'; | ||
}).map(function (value, index) { | ||
return { | ||
@@ -64,9 +66,6 @@ value: value, | ||
}; | ||
}).filter(function (_ref2) { | ||
var value = _ref2.value; | ||
return !hideZero || value !== 0 && value !== '0'; | ||
}); | ||
var ticks = filteredTickValues.map(function (_ref3) { | ||
var value = _ref3.value, | ||
index = _ref3.index; | ||
var ticks = filteredTickValues.map(function (_ref2) { | ||
var value = _ref2.value, | ||
index = _ref2.index; | ||
var scaledValue = coerceNumber(tickPosition(value)); | ||
@@ -73,0 +72,0 @@ return { |
@@ -74,3 +74,5 @@ "use strict"; | ||
}, horizontal); | ||
var filteredTickValues = (tickValues != null ? tickValues : (0, _scale.getTicks)(scale, numTicks)).map(function (value, index) { | ||
var filteredTickValues = (tickValues != null ? tickValues : (0, _scale.getTicks)(scale, numTicks)).filter(function (value) { | ||
return !hideZero || value !== 0 && value !== '0'; | ||
}).map(function (value, index) { | ||
return { | ||
@@ -80,9 +82,6 @@ value: value, | ||
}; | ||
}).filter(function (_ref2) { | ||
var value = _ref2.value; | ||
return !hideZero || value !== 0 && value !== '0'; | ||
}); | ||
var ticks = filteredTickValues.map(function (_ref3) { | ||
var value = _ref3.value, | ||
index = _ref3.index; | ||
var ticks = filteredTickValues.map(function (_ref2) { | ||
var value = _ref2.value, | ||
index = _ref2.index; | ||
var scaledValue = (0, _scale.coerceNumber)(tickPosition(value)); | ||
@@ -89,0 +88,0 @@ return { |
{ | ||
"name": "@visx/axis", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "visx axis", | ||
@@ -35,5 +35,5 @@ "sideEffects": false, | ||
"@visx/point": "1.0.0", | ||
"@visx/scale": "1.0.0", | ||
"@visx/shape": "1.0.0", | ||
"@visx/text": "1.0.0", | ||
"@visx/scale": "1.1.0", | ||
"@visx/shape": "1.1.0", | ||
"@visx/text": "1.1.0", | ||
"classnames": "^2.2.5", | ||
@@ -48,3 +48,3 @@ "prop-types": "^15.6.0" | ||
}, | ||
"gitHead": "598445514c93f22b1b7c399efa894b0778fd6ca6" | ||
"gitHead": "2370dc7ace913ffbcf729f64059fee50498d66a4" | ||
} |
68193
1222
+ Added@types/d3-scale@3.3.5(transitive)
+ Added@types/d3-time@2.1.4(transitive)
+ Added@visx/scale@1.1.0(transitive)
+ Added@visx/shape@1.1.0(transitive)
+ Added@visx/text@1.1.0(transitive)
- Removed@types/d3-scale@2.2.10(transitive)
- Removed@visx/scale@1.0.0(transitive)
- Removed@visx/shape@1.0.0(transitive)
- Removed@visx/text@1.0.0(transitive)
Updated@visx/scale@1.1.0
Updated@visx/shape@1.1.0
Updated@visx/text@1.1.0