victory-polar-axis
Advanced tools
Comparing version 35.9.3 to 35.10.0
@@ -85,3 +85,3 @@ import _defaults from "lodash/defaults"; | ||
var getScale = function (props) { | ||
export var getScale = function (props) { | ||
var axis = Axis.getAxis(props); | ||
@@ -95,4 +95,3 @@ var scale = Scale.getBaseScale(props, axis); | ||
}; | ||
var getStyles = function (props, styleObject) { | ||
export var getStyles = function (props, styleObject) { | ||
if (props.disableInlineStyles) { | ||
@@ -304,3 +303,3 @@ return {}; | ||
var labelRadius = radius + (labelStyle.padding || 0); | ||
var textAnchor = labelStyle.textAnchor || LabelHelpers.getTextPolarAnchor(_assign({}, props, { | ||
var textAnchor = labelStyle.textAnchor || LabelHelpers.getPolarTextAnchor(_assign({}, props, { | ||
labelPlacement: labelPlacement | ||
@@ -383,3 +382,3 @@ }), axisAngle); | ||
var getBaseProps = function (props, fallbackProps) { | ||
export var getBaseProps = function (props, fallbackProps) { | ||
props = Axis.modifyProps(props, fallbackProps); | ||
@@ -422,4 +421,2 @@ var calculatedValues = getCalculatedValues(props); | ||
}, initialChildProps); | ||
}; | ||
export { getScale, getStyles, getBaseProps }; | ||
}; |
@@ -329,3 +329,3 @@ "use strict"; | ||
var textAnchor = labelStyle.textAnchor || _victoryCore.LabelHelpers.getTextPolarAnchor((0, _assign2.default)({}, props, { | ||
var textAnchor = labelStyle.textAnchor || _victoryCore.LabelHelpers.getPolarTextAnchor((0, _assign2.default)({}, props, { | ||
labelPlacement: labelPlacement | ||
@@ -332,0 +332,0 @@ }), axisAngle); |
{ | ||
"name": "victory-polar-axis", | ||
"version": "35.9.3", | ||
"version": "35.10.0", | ||
"description": "Polar Axis Component for Victory", | ||
@@ -24,4 +24,7 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^35.9.3" | ||
"victory-core": "^35.10.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.6.0 || ^17.0.0" | ||
}, | ||
"scripts": { | ||
@@ -28,0 +31,0 @@ "version": "nps build-libs && nps build-dists" |
@@ -88,3 +88,3 @@ import { assign, uniqBy, defaults } from "lodash"; | ||
// exposed for use by VictoryChart (necessary?) | ||
const getScale = (props) => { | ||
export const getScale = (props) => { | ||
const axis = Axis.getAxis(props); | ||
@@ -99,3 +99,3 @@ const scale = Scale.getBaseScale(props, axis); | ||
const getStyles = (props, styleObject) => { | ||
export const getStyles = (props, styleObject) => { | ||
if (props.disableInlineStyles) { | ||
@@ -332,3 +332,3 @@ return {}; | ||
labelStyle.textAnchor || | ||
LabelHelpers.getTextPolarAnchor( | ||
LabelHelpers.getPolarTextAnchor( | ||
assign({}, props, { labelPlacement }), | ||
@@ -416,3 +416,3 @@ axisAngle | ||
const getBaseProps = (props, fallbackProps) => { | ||
export const getBaseProps = (props, fallbackProps) => { | ||
props = Axis.modifyProps(props, fallbackProps); | ||
@@ -450,3 +450,1 @@ const calculatedValues = getCalculatedValues(props); | ||
}; | ||
export { getScale, getStyles, getBaseProps }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1147940
4
21218
8
4
Updatedvictory-core@^35.10.0