tvcharts 0.8.52 → 0.8.54

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.
@@ -37,7 +37,10 @@ function getFontSize(size, barWidth) {
37
37
  return charFontSizeMapping[size] || getFontSizeByBarWidth(barWidth);
38
38
  }
39
39
  function getDistance(location, fontSize) {
40
- if (location === 'abovebar' || location === 'bottom' || location === 'absolute') {
40
+ if (location === 'absolute') {
41
+ return 0;
42
+ }
43
+ if (location === 'abovebar' || location === 'bottom') {
41
44
  return -fontSize;
42
45
  } else {
43
46
  return fontSize;
@@ -67,7 +67,7 @@ var TableModel = /** @class */function (_super) {
67
67
  return !item.isDelete;
68
68
  });
69
69
  each(newTableById, function (table) {
70
- if (table) {
70
+ if (table && !table.isDelete) {
71
71
  this.option.tables.push(table);
72
72
  }
73
73
  }, this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.8.52",
3
+ "version": "0.8.54",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [