Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-axis

Package Overview
Dependencies
Maintainers
42
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-axis - npm Package Compare versions

Comparing version 35.8.1 to 35.8.3

12

es/helper-methods.js

@@ -22,2 +22,6 @@ import _defaults from "lodash/defaults";

var exists = function (val) {
return val !== null && val !== undefined;
};
var getCurrentAxis = function (props, axis) {

@@ -308,4 +312,4 @@ var orientation = props.orientation,

var y = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
var offsetX = props.offsetX !== null && props.offsetX !== undefined ? x - props.offsetX : x;
var offsetY = props.offsetY !== null && props.offsetY !== undefined ? y - props.offsetY : y;
var offsetX = exists(props.offsetX) ? props.offsetX : x;
var offsetY = exists(props.offsetY) ? props.offsetY : y;
return {

@@ -348,4 +352,4 @@ x: offsetX,

var x = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
var offsetX = props.offsetX !== null && props.offsetX !== undefined ? x - props.offsetX : x;
var offsetY = props.offsetY !== null && props.offsetY !== undefined ? y - props.offsetY : y;
var offsetX = exists(props.offsetX) ? props.offsetX : x;
var offsetY = exists(props.offsetY) ? props.offsetY : y;
return {

@@ -352,0 +356,0 @@ x: offsetX,

@@ -33,2 +33,6 @@ "use strict";

var exists = function (val) {
return val !== null && val !== undefined;
};
var getCurrentAxis = function (props, axis) {

@@ -327,4 +331,4 @@ var orientation = props.orientation,

var y = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
var offsetX = props.offsetX !== null && props.offsetX !== undefined ? x - props.offsetX : x;
var offsetY = props.offsetY !== null && props.offsetY !== undefined ? y - props.offsetY : y;
var offsetX = exists(props.offsetX) ? props.offsetX : x;
var offsetY = exists(props.offsetY) ? props.offsetY : y;
return {

@@ -367,4 +371,4 @@ x: offsetX,

var x = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
var offsetX = props.offsetX !== null && props.offsetX !== undefined ? x - props.offsetX : x;
var offsetY = props.offsetY !== null && props.offsetY !== undefined ? y - props.offsetY : y;
var offsetX = exists(props.offsetX) ? props.offsetX : x;
var offsetY = exists(props.offsetY) ? props.offsetY : y;
return {

@@ -371,0 +375,0 @@ x: offsetX,

{
"name": "victory-axis",
"version": "35.8.1",
"version": "35.8.3",
"description": "Axis Component for Victory",

@@ -5,0 +5,0 @@ "keywords": [

@@ -11,2 +11,4 @@ import { assign, defaults } from "lodash";

const exists = (val) => val !== null && val !== undefined;
const getCurrentAxis = (props, axis) => {

@@ -247,4 +249,4 @@ const { orientation, horizontal } = props;

const y = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
const offsetX = props.offsetX !== null && props.offsetX !== undefined ? x - props.offsetX : x;
const offsetY = props.offsetY !== null && props.offsetY !== undefined ? y - props.offsetY : y;
const offsetX = exists(props.offsetX) ? props.offsetX : x;
const offsetY = exists(props.offsetY) ? props.offsetY : y;

@@ -283,4 +285,4 @@ return {

const x = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
const offsetX = props.offsetX !== null && props.offsetX !== undefined ? x - props.offsetX : x;
const offsetY = props.offsetY !== null && props.offsetY !== undefined ? y - props.offsetY : y;
const offsetX = exists(props.offsetX) ? props.offsetX : x;
const offsetY = exists(props.offsetY) ? props.offsetY : y;

@@ -287,0 +289,0 @@ return {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc