tvcharts 0.8.93 → 0.8.94

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.
@@ -301,6 +301,7 @@ var LabelsView = /** @class */function (_super) {
301
301
  }
302
302
  };
303
303
  LabelsView.prototype.remove = function () {
304
+ var _a;
304
305
  // this._symbolDraw && this._symbolDraw.remove(true);
305
306
  // this._symbolDraw = null;
306
307
  this._symbolGroup && this._symbolGroup.removeAll();
@@ -309,7 +310,9 @@ var LabelsView = /** @class */function (_super) {
309
310
  this._textGroup = null;
310
311
  this._toolTipGroup && this._toolTipGroup.removeAll();
311
312
  this._toolTipGroup = null;
312
- this.api.getZr().off('mousedown', this._hideTip);
313
+ if (this.api) {
314
+ (_a = this.api.getZr()) === null || _a === void 0 ? void 0 : _a.off('mousedown', this._hideTip);
315
+ }
313
316
  this.seriesModel = null;
314
317
  this.api = null;
315
318
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.8.93",
3
+ "version": "0.8.94",
4
4
  "main": "dist/echarts.js",
5
5
  "module": "index.js",
6
6
  "jsdelivr": "dist/echarts.min.js",