@visactor/vchart 1.10.6 → 1.10.7-alpha.0

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.
package/build/index.js CHANGED
@@ -54986,6 +54986,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
54986
54986
  this._canvasListeners = new Map();
54987
54987
  this.isInited = false;
54988
54988
  this._isRunning = false;
54989
+ this._released = false;
54989
54990
  this._model = {
54990
54991
  [GrammarType.signal]: {},
54991
54992
  [GrammarType.data]: {},
@@ -55013,6 +55014,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55013
55014
  }
55014
55015
  initView() {
55015
55016
  var _a, _b, _c, _d;
55017
+ if (this._released) {
55018
+ return;
55019
+ }
55016
55020
  this.isInited = true;
55017
55021
  if (this._view) {
55018
55022
  return;
@@ -55087,6 +55091,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55087
55091
  }
55088
55092
  }
55089
55093
  compile(ctx, option) {
55094
+ if (this._released) {
55095
+ return;
55096
+ }
55090
55097
  const { chart } = ctx;
55091
55098
  this._compileChart = chart;
55092
55099
  this.initView();
@@ -55104,6 +55111,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55104
55111
  this.releaseGrammar(removeGraphicItems);
55105
55112
  }
55106
55113
  renderNextTick(morphConfig) {
55114
+ if (this._released) {
55115
+ return;
55116
+ }
55107
55117
  if (!this._nextRafId) {
55108
55118
  this._nextRafId = VChart.vglobal.getRequestAnimationFrame()(() => {
55109
55119
  this._nextRafId = null;
@@ -55113,6 +55123,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55113
55123
  }
55114
55124
  render(morphConfig) {
55115
55125
  var _a;
55126
+ if (this._released) {
55127
+ return;
55128
+ }
55116
55129
  if (this._nextRafId) {
55117
55130
  VChart.vglobal.getCancelAnimationFrame()(this._nextRafId);
55118
55131
  this._nextRafId = null;
@@ -55273,6 +55286,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55273
55286
  this._view = null;
55274
55287
  this.isInited = false;
55275
55288
  this._compileChart = null;
55289
+ this._released = true;
55276
55290
  }
55277
55291
  releaseGrammar(removeGraphicItems = false) {
55278
55292
  var _a, _b;
@@ -64562,7 +64576,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64562
64576
  registerComponentPlugin(CanvasTooltipHandler);
64563
64577
  };
64564
64578
 
64565
- const version = "1.10.6";
64579
+ const version = "1.10.7-alpha.0";
64566
64580
 
64567
64581
  const addVChartProperty = (data, op) => {
64568
64582
  const context = op.beforeCall();