victory-axis
Advanced tools
Comparing version 36.8.4 to 36.8.5-next.0
# victory-axis | ||
## 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 @@ import { VictoryAxisProps } from "./victory-axis"; |
import _defaults from "lodash/defaults"; | ||
import _assign from "lodash/assign"; | ||
@@ -267,3 +266,3 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
var tick = stringTicks ? props.tickValues[data - 1] : data; | ||
var tickStyle = Helpers.evaluateStyle(style.ticks, _assign({}, sharedProps, { | ||
var tickStyle = Helpers.evaluateStyle(style.ticks, Object.assign({}, sharedProps, { | ||
tick: tick, | ||
@@ -574,3 +573,3 @@ index: index | ||
var initialChildProps = { | ||
parent: _assign({ | ||
parent: Object.assign({ | ||
style: style.parent, | ||
@@ -597,3 +596,3 @@ ticks: ticks, | ||
var text = tickFormat(tickValue, index, ticks); | ||
var styles = getEvaluatedStyles(style, _assign({}, sharedProps, { | ||
var styles = getEvaluatedStyles(style, Object.assign({}, sharedProps, { | ||
tick: tick, | ||
@@ -616,9 +615,9 @@ tickValue: tickValue, | ||
childProps[index] = { | ||
axis: _assign({ | ||
axis: Object.assign({ | ||
dimension: axis | ||
}, sharedProps, axisProps), | ||
axisLabel: _assign({}, sharedProps, axisLabelProps), | ||
ticks: _assign({}, sharedProps, getTickProps(tickLayout, styles.tickStyle, tickValue)), | ||
tickLabels: _assign({}, sharedProps, getTickLabelProps(tickLayout, styles.labelStyle, anchors, tickValue, text)), | ||
grid: _assign({}, sharedProps, gridProps, getGridProps(gridLayout, styles.gridStyle, tickValue)) | ||
axisLabel: Object.assign({}, sharedProps, axisLabelProps), | ||
ticks: Object.assign({}, sharedProps, getTickProps(tickLayout, styles.tickStyle, tickValue)), | ||
tickLabels: Object.assign({}, sharedProps, getTickLabelProps(tickLayout, styles.labelStyle, anchors, tickValue, text)), | ||
grid: Object.assign({}, sharedProps, gridProps, getGridProps(gridLayout, styles.gridStyle, tickValue)) | ||
}; | ||
@@ -625,0 +624,0 @@ return childProps; |
export * from "./victory-axis"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import PropTypes from "prop-types"; |
import _isEmpty from "lodash/isEmpty"; | ||
import _assign from "lodash/assign"; | ||
@@ -159,3 +158,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
var paddingToObject = function (padding) { | ||
return typeof padding === "object" ? _assign({}, { | ||
return typeof padding === "object" ? Object.assign({}, { | ||
top: 0, | ||
@@ -162,0 +161,0 @@ right: 0, |
@@ -0,0 +0,0 @@ import { VictoryAxisProps } from "./victory-axis"; |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _victoryCore = require("victory-core"); | ||
@@ -286,3 +284,3 @@ | ||
var tickStyle = _victoryCore.Helpers.evaluateStyle(style.ticks, (0, _assign2.default)({}, sharedProps, { | ||
var tickStyle = _victoryCore.Helpers.evaluateStyle(style.ticks, Object.assign({}, sharedProps, { | ||
tick: tick, | ||
@@ -607,3 +605,3 @@ index: index | ||
var initialChildProps = { | ||
parent: (0, _assign2.default)({ | ||
parent: Object.assign({ | ||
style: style.parent, | ||
@@ -630,3 +628,3 @@ ticks: ticks, | ||
var text = tickFormat(tickValue, index, ticks); | ||
var styles = getEvaluatedStyles(style, (0, _assign2.default)({}, sharedProps, { | ||
var styles = getEvaluatedStyles(style, Object.assign({}, sharedProps, { | ||
tick: tick, | ||
@@ -649,9 +647,9 @@ tickValue: tickValue, | ||
childProps[index] = { | ||
axis: (0, _assign2.default)({ | ||
axis: Object.assign({ | ||
dimension: axis | ||
}, sharedProps, axisProps), | ||
axisLabel: (0, _assign2.default)({}, sharedProps, axisLabelProps), | ||
ticks: (0, _assign2.default)({}, sharedProps, getTickProps(tickLayout, styles.tickStyle, tickValue)), | ||
tickLabels: (0, _assign2.default)({}, sharedProps, getTickLabelProps(tickLayout, styles.labelStyle, anchors, tickValue, text)), | ||
grid: (0, _assign2.default)({}, sharedProps, gridProps, getGridProps(gridLayout, styles.gridStyle, tickValue)) | ||
axisLabel: Object.assign({}, sharedProps, axisLabelProps), | ||
ticks: Object.assign({}, sharedProps, getTickProps(tickLayout, styles.tickStyle, tickValue)), | ||
tickLabels: Object.assign({}, sharedProps, getTickLabelProps(tickLayout, styles.labelStyle, anchors, tickValue, text)), | ||
grid: Object.assign({}, sharedProps, gridProps, getGridProps(gridLayout, styles.gridStyle, tickValue)) | ||
}; | ||
@@ -658,0 +656,0 @@ return childProps; |
export * from "./victory-axis"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import PropTypes from "prop-types"; |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
@@ -178,3 +176,3 @@ | ||
var paddingToObject = function (padding) { | ||
return typeof padding === "object" ? (0, _assign2.default)({}, { | ||
return typeof padding === "object" ? Object.assign({}, { | ||
top: 0, | ||
@@ -181,0 +179,0 @@ right: 0, |
{ | ||
"name": "victory-axis", | ||
"version": "36.8.4", | ||
"version": "36.8.5-next.0", | ||
"description": "Axis 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,7 +32,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"victory-axis": "*", | ||
"victory-chart": "*" | ||
"victory-axis": "36.8.5-next.0", | ||
"victory-chart": "36.8.5-next.0" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
"provenance": false | ||
}, | ||
@@ -39,0 +39,0 @@ "wireit": { |
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
Sorry, the diff of this file is not supported yet
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
1363993
23301
2
4
Updatedvictory-core@^36.8.5-next.0