victory-stack 36.6.12 → 36.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # victory-stack
2
2
 
3
+ ## 36.7.0
4
+
3
5
  ## 36.6.12
4
6
 
5
7
  ## 36.6.11
@@ -8891,6 +8891,11 @@ function getStringTicks(props) {
8891
8891
  function getTickArray(props) {
8892
8892
  var tickValues = props.tickValues,
8893
8893
  tickFormat = props.tickFormat;
8894
+
8895
+ if ((tickValues === null || tickValues === void 0 ? void 0 : tickValues.length) === 0) {
8896
+ return [];
8897
+ }
8898
+
8894
8899
  var axis = getAxis(props);
8895
8900
  var stringMap = props.stringMap && props.stringMap[axis];
8896
8901
 
@@ -9005,6 +9010,11 @@ function getTicks(props, scale) {
9005
9010
  var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
9006
9011
  var tickCount = props.tickCount;
9007
9012
  var tickArray = getTickArray(props);
9013
+
9014
+ if ((tickArray === null || tickArray === void 0 ? void 0 : tickArray.length) === 0) {
9015
+ return [""];
9016
+ }
9017
+
9008
9018
  var tickValues = tickArray ? tickArray.map(function (v) {
9009
9019
  return v.value;
9010
9020
  }) : undefined;
@@ -9043,7 +9053,7 @@ function getDomainFromData(props, axis) {
9043
9053
  _props$endAngle = props.endAngle,
9044
9054
  endAngle = _props$endAngle === void 0 ? 360 : _props$endAngle;
9045
9055
  var tickArray = getTickArray(props);
9046
- var tickValues = tickArray ? tickArray.map(function (v) {
9056
+ var tickValues = tickArray && (tickArray === null || tickArray === void 0 ? void 0 : tickArray.length) !== 0 ? tickArray.map(function (v) {
9047
9057
  return v.value;
9048
9058
  }) : undefined;
9049
9059
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-stack",
3
- "version": "36.6.12",
3
+ "version": "36.7.0",
4
4
  "description": "Stack Layout Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -23,8 +23,8 @@
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.8.1",
25
25
  "react-fast-compare": "^3.2.0",
26
- "victory-core": "^36.6.12",
27
- "victory-shared-events": "^36.6.12"
26
+ "victory-core": "^36.7.0",
27
+ "victory-shared-events": "^36.7.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.6.0"