victory 37.1.0 → 37.1.1

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
2
2
 
3
+ ## 37.1.1
4
+
3
5
  ## 37.1.0
4
6
 
5
7
  ### Minor Changes
package/dist/victory.js CHANGED
@@ -29684,8 +29684,8 @@ const RawZoomHelpers = {
29684
29684
  const [from, to] = currentDomain;
29685
29685
  const range = Math.abs(to - from);
29686
29686
  const diff = range - range * factor;
29687
- const newMin = Number(from) + diff * percent;
29688
- const newMax = Number(to) - diff * (1 - percent);
29687
+ const newMin = Number(from) + diff * Math.max(percent, 0);
29688
+ const newMax = Number(to) - diff * Math.max(1 - percent, 0);
29689
29689
  return [Math.min(newMin, newMax), Math.max(newMin, newMax)];
29690
29690
  },
29691
29691
  getMinimumDomain(point, props, axis) {