tvcharts 0.6.88 → 0.6.89

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.
@@ -54,9 +54,11 @@ export default function installDataZoomAction(registers) {
54
54
  var startValue = modal.get('startValue');
55
55
  var endValue = modal.get('endValue');
56
56
  var diff = (endValue - startValue) * payload.scale;
57
+ var newStartValue = startValue + diff;
58
+ var newEndValue = endValue - diff;
57
59
  modal.setRawRange({
58
- startValue: startValue + diff,
59
- endValue: endValue - diff
60
+ startValue: Math.min(newStartValue, newEndValue),
61
+ endValue: Math.max(newStartValue, newEndValue)
60
62
  });
61
63
  });
62
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.6.88",
3
+ "version": "0.6.89",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [