victory-core
Advanced tools
Comparing version 34.3.5 to 34.3.6
@@ -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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2066826
28156