Socket
Socket
Sign inDemoInstall

@visx/axis

Package Overview
Dependencies
39
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

13

esm/axis/Axis.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc