tvcharts 0.7.89 → 0.7.91

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.
@@ -48,7 +48,7 @@ function getKey(itemModel) {
48
48
  var _a;
49
49
  // const color = itemModel.option?.color
50
50
  var key = (_a = itemModel.option) === null || _a === void 0 ? void 0 : _a.color;
51
- if (!key && itemModel.get('topValue', true) !== void 0) {
51
+ if (itemModel.get('topValue', true) !== void 0) {
52
52
  key = (itemModel.get('topColor', true) || 'rgba(255,255,255,0)') + ":" + itemModel.get('topValue', true) + ":" + (itemModel.get('bottomColor', true) || 'rgba(255,255,255,0)') + ":" + itemModel.get('bottomValue', true);
53
53
  }
54
54
  return key || 'transparent';
@@ -103,6 +103,9 @@ function changeLabelOffsetBySymbol(symbol, symbolRect, shape, oldOffset) {
103
103
  }
104
104
  // const computedText = new graphic.Text();
105
105
  var getTextRect = function (text, font) {
106
+ if (text === void 0) {
107
+ text = '';
108
+ }
106
109
  var width = 0;
107
110
  var height = 0;
108
111
  text.split('\n').forEach(function (item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.7.89",
3
+ "version": "0.7.91",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [