victory-legend
Advanced tools
Comparing version 36.8.4 to 36.8.5-next.0
# victory-legend | ||
## 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 | ||
## 36.8.4 | ||
@@ -4,0 +13,0 @@ |
@@ -0,0 +0,0 @@ export declare const getDimensions: (initialProps: any, fallbackProps: any) => { |
@@ -6,3 +6,2 @@ import _isNil from "lodash/isNil"; | ||
import _groupBy from "lodash/groupBy"; | ||
import _assign from "lodash/assign"; | ||
import _defaults from "lodash/defaults"; | ||
@@ -75,3 +74,3 @@ | ||
}); | ||
return _assign({}, props, { | ||
return Object.assign({}, props, { | ||
style: style, | ||
@@ -256,3 +255,3 @@ isHorizontal: isHorizontal, | ||
width: width, | ||
style: _assign({ | ||
style: Object.assign({ | ||
fill: "none" | ||
@@ -265,5 +264,3 @@ }, style.border) | ||
var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "legend"); | ||
var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var title = props.title, | ||
@@ -285,5 +282,3 @@ titleOrientation = props.titleOrientation; | ||
var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "legend"); | ||
var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var data = props.data, | ||
@@ -290,0 +285,0 @@ standalone = props.standalone, |
export * from "./victory-legend"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -0,0 +0,0 @@ export declare const getDimensions: (initialProps: any, fallbackProps: any) => { |
@@ -18,4 +18,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _defaults2 = _interopRequireDefault(require("lodash/defaults")); | ||
@@ -91,3 +89,3 @@ | ||
return (0, _assign2.default)({}, props, { | ||
return Object.assign({}, props, { | ||
style: style, | ||
@@ -269,3 +267,3 @@ isHorizontal: isHorizontal, | ||
width: width, | ||
style: (0, _assign2.default)({ | ||
style: Object.assign({ | ||
fill: "none" | ||
@@ -279,3 +277,3 @@ }, style.border) | ||
var props = (0, _assign2.default)({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var title = props.title, | ||
@@ -301,3 +299,3 @@ titleOrientation = props.titleOrientation; | ||
var props = (0, _assign2.default)({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
var data = props.data, | ||
@@ -304,0 +302,0 @@ standalone = props.standalone, |
export * from "./victory-legend"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
{ | ||
"name": "victory-legend", | ||
"version": "36.8.4", | ||
"version": "36.8.5-next.0", | ||
"description": "Legend Component for Victory", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.8.4" | ||
"victory-core": "^36.8.5-next.0" | ||
}, | ||
@@ -32,6 +32,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"victory-legend": "*" | ||
"victory-legend": "36.8.5-next.0" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
"provenance": false | ||
}, | ||
@@ -38,0 +38,0 @@ "wireit": { |
@@ -1,2 +0,2 @@ | ||
import { defaults, assign, groupBy, keys, sum, range, isNil } from "lodash"; | ||
import { defaults, groupBy, keys, sum, range, isNil } from "lodash"; | ||
import { Helpers, Style, TextSize } from "victory-core"; | ||
@@ -40,3 +40,8 @@ import { VictoryLegendProps } from "./victory-legend"; | ||
const borderPadding = Helpers.getPadding({ padding: props.borderPadding }); | ||
return assign({}, props, { style, isHorizontal, colorScale, borderPadding }); | ||
return Object.assign({}, props, { | ||
style, | ||
isHorizontal, | ||
colorScale, | ||
borderPadding, | ||
}); | ||
}; | ||
@@ -200,3 +205,9 @@ | ||
const width = (contentWidth || 0) + borderPadding.left + borderPadding.right; | ||
return { x, y, height, width, style: assign({ fill: "none" }, style.border) }; | ||
return { | ||
x, | ||
y, | ||
height, | ||
width, | ||
style: Object.assign({ fill: "none" }, style.border), | ||
}; | ||
}; | ||
@@ -210,3 +221,7 @@ | ||
); | ||
const props = assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
const props = Object.assign( | ||
{}, | ||
modifiedProps, | ||
getCalculatedValues(modifiedProps), | ||
); | ||
const { title, titleOrientation } = props; | ||
@@ -238,3 +253,7 @@ const groupedData = groupData(props); | ||
); | ||
const props = assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
const props = Object.assign( | ||
{}, | ||
modifiedProps, | ||
getCalculatedValues(modifiedProps), | ||
); | ||
const { | ||
@@ -241,0 +260,0 @@ data, |
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
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
1144981
19503
2
4
Updatedvictory-core@^36.8.5-next.0