@easyv/charts 1.10.21 → 1.10.22

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.
@@ -637,7 +637,7 @@ var reverseGradientStops = function reverseGradientStops(gradient) {
637
637
  };
638
638
  var getBandBackground = exports.getBandBackground = function getBandBackground(pattern, fill, y) {
639
639
  if (!(pattern && pattern.path)) {
640
- return (0, _utils.getColor)(y < 0 ? reverseGradientStops(fill) : fill); //小于0颜色翻转
640
+ return (0, _utils.getColor)(y > 0 ? reverseGradientStops(fill) : fill); //小于0颜色翻转
641
641
  }
642
642
  try {
643
643
  var _pattern$backgroundSi = pattern.backgroundSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.10.21",
3
+ "version": "1.10.22",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -621,7 +621,7 @@ const reverseGradientStops = (gradient) => {
621
621
  };
622
622
  const getBandBackground = (pattern, fill, y) => {
623
623
  if (!(pattern && pattern.path)) {
624
- return getColor(y < 0 ? reverseGradientStops(fill) : fill); //小于0颜色翻转
624
+ return getColor(y > 0 ? reverseGradientStops(fill) : fill); //小于0颜色翻转
625
625
  }
626
626
  try {
627
627
  const { backgroundSize = "100% 100%", ..._pattern } = pattern;