@visactor/vchart 1.11.7-alpha.1 → 1.11.7-alpha.3

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
@@ -61416,19 +61416,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61416
61416
  this._isReleased = true;
61417
61417
  InstanceManager.unregisterInstance(this);
61418
61418
  }
61419
- updateData(id, data, options) {
61419
+ updateData(id, data, parserOptions, userUpdateOptions) {
61420
61420
  return __awaiter$7(this, void 0, void 0, function* () {
61421
- return this.updateDataSync(id, data, options);
61421
+ return this.updateDataSync(id, data, parserOptions, userUpdateOptions);
61422
61422
  });
61423
61423
  }
61424
- _updateDataById(id, data, options) {
61424
+ _updateDataById(id, data, parserOptions) {
61425
61425
  const preDV = this._spec.data.find((dv) => dv.name === id || dv.id === id);
61426
61426
  if (preDV) {
61427
61427
  if (preDV.id === id) {
61428
61428
  preDV.values = data;
61429
61429
  }
61430
61430
  else if (preDV.name === id) {
61431
- preDV.parse(data, options);
61431
+ preDV.parse(data, parserOptions);
61432
61432
  }
61433
61433
  }
61434
61434
  else {
@@ -61460,21 +61460,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61460
61460
  return this;
61461
61461
  });
61462
61462
  }
61463
- updateDataSync(id, data, options) {
61463
+ updateDataSync(id, data, parserOptions, userUpdateOptions) {
61464
61464
  if (isNil$1(this._dataSet)) {
61465
61465
  return this;
61466
61466
  }
61467
61467
  if (this._chart) {
61468
- this._chart.updateData(id, data, true, options);
61468
+ if (userUpdateOptions === null || userUpdateOptions === void 0 ? void 0 : userUpdateOptions.reAnimate) {
61469
+ this.stopAnimation();
61470
+ this._updateAnimateState(true);
61471
+ }
61472
+ this._chart.updateData(id, data, true, parserOptions);
61469
61473
  this._compiler.render();
61470
61474
  return this;
61471
61475
  }
61472
61476
  this._spec.data = array(this._spec.data);
61473
- this._updateDataById(id, data, options);
61477
+ this._updateDataById(id, data, parserOptions);
61474
61478
  return this;
61475
61479
  }
61476
- updateFullDataSync(data, reRender = true) {
61480
+ updateFullDataSync(data, reRender = true, userUpdateOptions) {
61477
61481
  if (this._chart) {
61482
+ if (userUpdateOptions === null || userUpdateOptions === void 0 ? void 0 : userUpdateOptions.reAnimate) {
61483
+ this.stopAnimation();
61484
+ this._updateAnimateState(true);
61485
+ }
61478
61486
  this._chart.updateFullData(data);
61479
61487
  if (reRender) {
61480
61488
  this._compiler.render();
@@ -66442,7 +66450,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66442
66450
  registerComponentPlugin(CanvasTooltipHandler);
66443
66451
  };
66444
66452
 
66445
- const version = "1.11.7-alpha.1";
66453
+ const version = "1.11.7-alpha.3";
66446
66454
 
66447
66455
  const addVChartProperty = (data, op) => {
66448
66456
  const context = op.beforeCall();