Socket
Socket
Sign inDemoInstall

@visx/axis

Package Overview
Dependencies
44
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.0 to 3.4.0

4

esm/axis/Axis.js
import _pt from "prop-types";
var _excluded = ["children", "axisClassName", "hideAxisLine", "hideTicks", "hideZero", "left", "numTicks", "orientation", "rangePadding", "scale", "tickFormat", "tickLength", "tickValues", "top"];
var _excluded = ["children", "axisClassName", "hideAxisLine", "hideTicks", "hideZero", "innerRef", "left", "numTicks", "orientation", "rangePadding", "scale", "tickFormat", "tickLength", "tickValues", "top"];
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }

@@ -25,2 +25,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

hideZero = _ref$hideZero === void 0 ? false : _ref$hideZero,
innerRef = _ref.innerRef,
_ref$left = _ref.left,

@@ -86,2 +87,3 @@ left = _ref$left === void 0 ? 0 : _ref$left,

className: cx('visx-axis', axisClassName),
innerRef: innerRef,
top: top,

@@ -88,0 +90,0 @@ left: left

@@ -7,3 +7,3 @@ /// <reference types="react" />

};
export default function Axis<Scale extends AxisScale>({ children, axisClassName, hideAxisLine, hideTicks, hideZero, left, numTicks, orientation, rangePadding, scale, tickFormat, tickLength, tickValues, top, ...restProps }: AxisProps<Scale>): JSX.Element;
export default function Axis<Scale extends AxisScale>({ children, axisClassName, hideAxisLine, hideTicks, hideZero, innerRef, left, numTicks, orientation, rangePadding, scale, tickFormat, tickLength, tickValues, top, ...restProps }: AxisProps<Scale>): JSX.Element;
//# sourceMappingURL=Axis.d.ts.map

@@ -16,3 +16,3 @@ "use strict";

var _getAxisRangePaddingConfig = _interopRequireDefault(require("../utils/getAxisRangePaddingConfig"));
var _excluded = ["children", "axisClassName", "hideAxisLine", "hideTicks", "hideZero", "left", "numTicks", "orientation", "rangePadding", "scale", "tickFormat", "tickLength", "tickValues", "top"];
var _excluded = ["children", "axisClassName", "hideAxisLine", "hideTicks", "hideZero", "innerRef", "left", "numTicks", "orientation", "rangePadding", "scale", "tickFormat", "tickLength", "tickValues", "top"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -31,2 +31,3 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }

hideZero = _ref$hideZero === void 0 ? false : _ref$hideZero,
innerRef = _ref.innerRef,
_ref$left = _ref.left,

@@ -92,2 +93,3 @@ left = _ref$left === void 0 ? 0 : _ref$left,

className: (0, _classnames.default)('visx-axis', axisClassName),
innerRef: innerRef,
top: top,

@@ -94,0 +96,0 @@ left: left

import { D3Scale, NumberLike, ScaleInput, ValueOf } from '@visx/scale';
import { TextProps } from '@visx/text/lib/Text';
import { ReactNode, SVGProps } from 'react';
import { ReactNode, Ref, SVGProps } from 'react';
import Orientation from './constants/orientation';

@@ -109,2 +109,4 @@ export declare type AxisScaleOutput = number | NumberLike | undefined;

left?: number;
/** The ref to the outermost axis group element. */
innerRef?: Ref<SVGGElement>;
/** A [d3](https://github.com/d3/d3-scale) or [visx](https://github.com/airbnb/visx/tree/master/packages/visx-scale) scale function. */

@@ -111,0 +113,0 @@ scale: Scale;

{
"name": "@visx/axis",
"version": "3.3.0",
"version": "3.4.0",
"description": "visx axis",

@@ -46,3 +46,3 @@ "sideEffects": false,

},
"gitHead": "cb0efd78bc5b818e318a0872162e75d3601c9dc8"
"gitHead": "f14ef84163e700bdb9891d0b19d9beff81b5d81f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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