victory-pie
Advanced tools
Comparing version 36.8.4 to 36.8.5-next.0
# victory-pie | ||
## 36.8.5-next.0 | ||
### Patch Changes | ||
- c8c2eb2f5: Replace instances of lodash.assign with Object.assign | ||
- Updated dependencies [c8c2eb2f5] | ||
- Updated dependencies [0f3abe234] | ||
- victory-core@36.8.5-next.0 | ||
- victory-vendor@36.8.5-next.0 | ||
## 36.8.4 | ||
@@ -4,0 +14,0 @@ |
@@ -0,0 +0,0 @@ export declare const getXOffsetMultiplayerByAngle: (angle: any) => number; |
@@ -5,3 +5,2 @@ import _isNil from "lodash/isNil"; | ||
import _defaults from "lodash/defaults"; | ||
import _assign from "lodash/assign"; | ||
import * as d3Shape from "victory-vendor/d3-shape"; | ||
@@ -62,3 +61,3 @@ import { Helpers, Data, Style } from "victory-core"; | ||
var slices = getSlices(props, data); | ||
return _assign({}, props, { | ||
return Object.assign({}, props, { | ||
style: style, | ||
@@ -78,3 +77,3 @@ colors: colors, | ||
var fill = getColor(style, colors, index); | ||
return _assign({ | ||
return Object.assign({ | ||
fill: fill | ||
@@ -112,5 +111,3 @@ }, style.data); | ||
}; | ||
var clonedArc = _assign({}, slice, construct); | ||
var clonedArc = Object.assign({}, slice, construct); | ||
return arc.centroid(clonedArc); | ||
@@ -192,17 +189,15 @@ }; | ||
height = calculatedValues.height; | ||
var labelRadius = Helpers.evaluateProp(calculatedValues.labelRadius, _assign({ | ||
var labelRadius = Helpers.evaluateProp(calculatedValues.labelRadius, Object.assign({ | ||
text: text | ||
}, dataProps)); | ||
var labelPosition = Helpers.evaluateProp(calculatedValues.labelPosition, _assign({ | ||
var labelPosition = Helpers.evaluateProp(calculatedValues.labelPosition, Object.assign({ | ||
text: text | ||
}, dataProps)) || "centroid"; | ||
var labelPlacement = Helpers.evaluateProp(calculatedValues.labelPlacement, _assign({ | ||
var labelPlacement = Helpers.evaluateProp(calculatedValues.labelPlacement, Object.assign({ | ||
text: text | ||
}, dataProps)) || "vertical"; | ||
var labelStyle = _assign({ | ||
var labelStyle = Object.assign({ | ||
padding: 0 | ||
}, style.labels); | ||
var evaluatedStyle = Helpers.evaluateStyle(labelStyle, _assign({ | ||
var evaluatedStyle = Helpers.evaluateStyle(labelStyle, Object.assign({ | ||
labelRadius: labelRadius, | ||
@@ -353,3 +348,3 @@ text: text | ||
var evaluatedText = Helpers.evaluateProp(text, dataProps); | ||
childProps[eventKey].labels = getLabelProps(evaluatedText, _assign({}, props, dataProps), calculatedValues); | ||
childProps[eventKey].labels = getLabelProps(evaluatedText, Object.assign({}, props, dataProps), calculatedValues); | ||
@@ -360,3 +355,3 @@ if (labelIndicator) { | ||
if (labelProps.calculatedLabelRadius > radius) { | ||
childProps[eventKey].labelIndicators = getLabelIndicatorPropsForLineSegment(_assign({}, props, dataProps), calculatedValues, labelProps); | ||
childProps[eventKey].labelIndicators = getLabelIndicatorPropsForLineSegment(Object.assign({}, props, dataProps), calculatedValues, labelProps); | ||
} | ||
@@ -363,0 +358,0 @@ } |
export * from "./victory-pie"; | ||
export * from "./slice"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -1,2 +0,1 @@ | ||
import _assign from "lodash/assign"; | ||
import _isFunction from "lodash/isFunction"; | ||
@@ -54,6 +53,6 @@ import _defaults from "lodash/defaults"; | ||
var style = Helpers.evaluateStyle(props.style, props); | ||
var radius = Helpers.evaluateProp(props.radius, _assign({}, props, { | ||
var radius = Helpers.evaluateProp(props.radius, Object.assign({}, props, { | ||
style: style | ||
})); | ||
var innerRadius = Helpers.evaluateProp(props.innerRadius, _assign({}, props, { | ||
var innerRadius = Helpers.evaluateProp(props.innerRadius, Object.assign({}, props, { | ||
style: style, | ||
@@ -69,3 +68,3 @@ radius: radius | ||
var tabIndex = Helpers.evaluateProp(props.tabIndex, props); | ||
return _assign({}, props, { | ||
return Object.assign({}, props, { | ||
ariaLabel: ariaLabel, | ||
@@ -72,0 +71,0 @@ style: style, |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -0,0 +0,0 @@ export declare const getXOffsetMultiplayerByAngle: (angle: any) => number; |
@@ -16,4 +16,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var d3Shape = _interopRequireWildcard(require("victory-vendor/d3-shape")); | ||
@@ -88,3 +86,3 @@ | ||
var slices = getSlices(props, data); | ||
return (0, _assign2.default)({}, props, { | ||
return Object.assign({}, props, { | ||
style: style, | ||
@@ -104,3 +102,3 @@ colors: colors, | ||
var fill = getColor(style, colors, index); | ||
return (0, _assign2.default)({ | ||
return Object.assign({ | ||
fill: fill | ||
@@ -138,3 +136,3 @@ }, style.data); | ||
}; | ||
var clonedArc = (0, _assign2.default)({}, slice, construct); | ||
var clonedArc = Object.assign({}, slice, construct); | ||
return arc.centroid(clonedArc); | ||
@@ -217,17 +215,17 @@ }; | ||
var labelRadius = _victoryCore.Helpers.evaluateProp(calculatedValues.labelRadius, (0, _assign2.default)({ | ||
var labelRadius = _victoryCore.Helpers.evaluateProp(calculatedValues.labelRadius, Object.assign({ | ||
text: text | ||
}, dataProps)); | ||
var labelPosition = _victoryCore.Helpers.evaluateProp(calculatedValues.labelPosition, (0, _assign2.default)({ | ||
var labelPosition = _victoryCore.Helpers.evaluateProp(calculatedValues.labelPosition, Object.assign({ | ||
text: text | ||
}, dataProps)) || "centroid"; | ||
var labelPlacement = _victoryCore.Helpers.evaluateProp(calculatedValues.labelPlacement, (0, _assign2.default)({ | ||
var labelPlacement = _victoryCore.Helpers.evaluateProp(calculatedValues.labelPlacement, Object.assign({ | ||
text: text | ||
}, dataProps)) || "vertical"; | ||
var labelStyle = (0, _assign2.default)({ | ||
var labelStyle = Object.assign({ | ||
padding: 0 | ||
}, style.labels); | ||
var evaluatedStyle = _victoryCore.Helpers.evaluateStyle(labelStyle, (0, _assign2.default)({ | ||
var evaluatedStyle = _victoryCore.Helpers.evaluateStyle(labelStyle, Object.assign({ | ||
labelRadius: labelRadius, | ||
@@ -398,3 +396,3 @@ text: text | ||
childProps[eventKey].labels = getLabelProps(evaluatedText, (0, _assign2.default)({}, props, dataProps), calculatedValues); | ||
childProps[eventKey].labels = getLabelProps(evaluatedText, Object.assign({}, props, dataProps), calculatedValues); | ||
@@ -405,3 +403,3 @@ if (labelIndicator) { | ||
if (labelProps.calculatedLabelRadius > radius) { | ||
childProps[eventKey].labelIndicators = getLabelIndicatorPropsForLineSegment((0, _assign2.default)({}, props, dataProps), calculatedValues, labelProps); | ||
childProps[eventKey].labelIndicators = getLabelIndicatorPropsForLineSegment(Object.assign({}, props, dataProps), calculatedValues, labelProps); | ||
} | ||
@@ -408,0 +406,0 @@ } |
export * from "./victory-pie"; | ||
export * from "./slice"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -8,4 +8,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _isFunction2 = _interopRequireDefault(require("lodash/isFunction")); | ||
@@ -77,7 +75,7 @@ | ||
var radius = _victoryCore.Helpers.evaluateProp(props.radius, (0, _assign2.default)({}, props, { | ||
var radius = _victoryCore.Helpers.evaluateProp(props.radius, Object.assign({}, props, { | ||
style: style | ||
})); | ||
var innerRadius = _victoryCore.Helpers.evaluateProp(props.innerRadius, (0, _assign2.default)({}, props, { | ||
var innerRadius = _victoryCore.Helpers.evaluateProp(props.innerRadius, Object.assign({}, props, { | ||
style: style, | ||
@@ -101,3 +99,3 @@ radius: radius | ||
return (0, _assign2.default)({}, props, { | ||
return Object.assign({}, props, { | ||
ariaLabel: ariaLabel, | ||
@@ -104,0 +102,0 @@ style: style, |
@@ -0,0 +0,0 @@ import React from "react"; |
{ | ||
"name": "victory-pie", | ||
"version": "36.8.4", | ||
"version": "36.8.5-next.0", | ||
"description": "Pie Component for Victory", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.8.4", | ||
"victory-vendor": "^36.8.4" | ||
"victory-core": "^36.8.5-next.0", | ||
"victory-vendor": "^36.8.5-next.0" | ||
}, | ||
@@ -33,6 +33,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"victory-pie": "*" | ||
"victory-pie": "36.8.5-next.0" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
"provenance": false | ||
}, | ||
@@ -39,0 +39,0 @@ "wireit": { |
/* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 90, 135, 180, 225, 270, 315, 360] }]*/ | ||
import { assign, defaults, isFunction, isPlainObject, isNil } from "lodash"; | ||
import { defaults, isFunction, isPlainObject, isNil } from "lodash"; | ||
import * as d3Shape from "victory-vendor/d3-shape"; | ||
@@ -74,3 +74,3 @@ | ||
const slices = getSlices(props, data); | ||
return assign({}, props, { | ||
return Object.assign({}, props, { | ||
style, | ||
@@ -89,3 +89,3 @@ colors, | ||
const fill = getColor(style, colors, index); | ||
return assign({ fill }, style.data); | ||
return Object.assign({ fill }, style.data); | ||
}; | ||
@@ -119,3 +119,3 @@ | ||
}; | ||
const clonedArc = assign({}, slice, construct); | ||
const clonedArc = Object.assign({}, slice, construct); | ||
return arc.centroid(clonedArc); | ||
@@ -187,3 +187,3 @@ }; | ||
calculatedValues.labelRadius, | ||
assign({ text }, dataProps), | ||
Object.assign({ text }, dataProps), | ||
); | ||
@@ -193,3 +193,3 @@ const labelPosition = | ||
calculatedValues.labelPosition, | ||
assign({ text }, dataProps), | ||
Object.assign({ text }, dataProps), | ||
) || "centroid"; | ||
@@ -199,8 +199,8 @@ const labelPlacement = | ||
calculatedValues.labelPlacement, | ||
assign({ text }, dataProps), | ||
Object.assign({ text }, dataProps), | ||
) || "vertical"; | ||
const labelStyle = assign({ padding: 0 }, style.labels); | ||
const labelStyle = Object.assign({ padding: 0 }, style.labels); | ||
const evaluatedStyle = Helpers.evaluateStyle( | ||
labelStyle, | ||
assign({ labelRadius, text }, dataProps), | ||
Object.assign({ labelRadius, text }, dataProps), | ||
); | ||
@@ -355,3 +355,3 @@ const calculatedLabelRadius = getCalculatedLabelRadius( | ||
evaluatedText, | ||
assign({}, props, dataProps), | ||
Object.assign({}, props, dataProps), | ||
calculatedValues, | ||
@@ -364,3 +364,3 @@ ); | ||
getLabelIndicatorPropsForLineSegment( | ||
assign({}, props, dataProps), | ||
Object.assign({}, props, dataProps), | ||
calculatedValues, | ||
@@ -367,0 +367,0 @@ labelProps, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1408554
23794
2
3
Updatedvictory-core@^36.8.5-next.0