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 +2 -0
- package/dist/victory.js +2 -2
- package/dist/victory.min.js +1 -1
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
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) {
|