tvcharts 0.6.45 → 0.6.46

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.
@@ -201,6 +201,9 @@ function getAreaGradient(data, seriesModel, api) {
201
201
  each(areaGradient, function (item) {
202
202
  var _a;
203
203
  var offset = (_a = valueByType[item.type]) !== null && _a !== void 0 ? _a : axis.toGlobalCoord(axis.dataToCoord(item.value)) / span;
204
+ if (offset < 0 || offset > 1) {
205
+ return;
206
+ }
204
207
  colorStopsInRange.push({
205
208
  color: item.color,
206
209
  offset: offset
@@ -156,11 +156,8 @@ var StrategyView = /** @class */function (_super) {
156
156
  text: text,
157
157
  align: 'center',
158
158
  fill: textColor !== null && textColor !== void 0 ? textColor : '#fff',
159
- // lineHeight: 13,
160
- // fontFamily,
161
159
  fontSize: 12
162
160
  },
163
- // position: position,
164
161
  x: point[0],
165
162
  y: point[1]
166
163
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.6.45",
3
+ "version": "0.6.46",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [