New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

victory-core

Package Overview
Dependencies
Maintainers
8
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-core - npm Package Compare versions

Comparing version 34.3.5 to 34.3.6

11

es/victory-util/label-helpers.js

@@ -55,3 +55,3 @@ /* eslint-disable func-style */

function getOffset(props, datum, offset) {
function getOffset(props, datum) {
if (props.polar) {

@@ -62,7 +62,5 @@ return {};

var padding = getPadding(props, datum);
var xOffset = props.horizontal ? -offset[1] : offset[0];
var yOffset = props.horizontal ? -offset[0] : offset[1];
return {
dx: padding.x + xOffset,
dy: padding.y + yOffset
dx: padding.x,
dy: padding.y
};

@@ -189,3 +187,2 @@ }

function getProps(props, index) {
var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [0, 0];
var scale = props.scale,

@@ -210,3 +207,3 @@ data = props.data,

var _getOffset = getOffset(props, datum, offset),
var _getOffset = getOffset(props, datum),
dx = _getOffset.dx,

@@ -213,0 +210,0 @@ dy = _getOffset.dy;

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

function getOffset(props, datum, offset) {
function getOffset(props, datum) {
if (props.polar) {

@@ -72,7 +72,5 @@ return {};

var padding = getPadding(props, datum);
var xOffset = props.horizontal ? -offset[1] : offset[0];
var yOffset = props.horizontal ? -offset[0] : offset[1];
return {
dx: padding.x + xOffset,
dy: padding.y + yOffset
dx: padding.x,
dy: padding.y
};

@@ -201,3 +199,2 @@ }

function getProps(props, index) {
var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [0, 0];
var scale = props.scale,

@@ -222,3 +219,3 @@ data = props.data,

var _getOffset = getOffset(props, datum, offset),
var _getOffset = getOffset(props, datum),
dx = _getOffset.dx,

@@ -225,0 +222,0 @@ dy = _getOffset.dy;

{
"name": "victory-core",
"version": "34.3.5",
"version": "34.3.6",
"description": "Victory Core",

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

@@ -52,3 +52,3 @@ /* eslint-disable func-style */

function getOffset(props, datum, offset) {
function getOffset(props, datum) {
if (props.polar) {

@@ -58,8 +58,6 @@ return {};

const padding = getPadding(props, datum);
const xOffset = props.horizontal ? -offset[1] : offset[0];
const yOffset = props.horizontal ? -offset[0] : offset[1];
return {
dx: padding.x + xOffset,
dy: padding.y + yOffset
dx: padding.x,
dy: padding.y
};

@@ -171,3 +169,3 @@ }

function getProps(props, index, offset = [0, 0]) {
function getProps(props, index) {
const { scale, data, style, horizontal, polar, width, height } = props;

@@ -184,3 +182,3 @@ const datum = data[index];

const { x, y } = getPosition(props, datum);
const { dx, dy } = getOffset(props, datum, offset);
const { dx, dy } = getOffset(props, datum);
return {

@@ -187,0 +185,0 @@ angle,

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