@visactor/vchart 1.12.0 → 1.12.1-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
@@ -60732,7 +60732,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60732
60732
  };
60733
60733
  registerVChartCore();
60734
60734
 
60735
- const version = "1.12.0";
60735
+ const version = "1.12.1-alpha.0";
60736
60736
 
60737
60737
  const addVChartProperty = (data, op) => {
60738
60738
  const context = op.beforeCall();
@@ -95360,19 +95360,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
95360
95360
  });
95361
95361
  this._playerComponent.addEventListener(PlayerEventEnum.change, (e) => {
95362
95362
  const { index } = e.detail;
95363
- const spec = this._specs[index];
95364
- array(spec.data).forEach(data => {
95365
- var _a, _b;
95366
- (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.globalInstance) === null || _b === void 0 ? void 0 : _b.updateData(data.id, data.values);
95367
- });
95368
- this.event.emit(ChartEvent.playerChange, {
95369
- model: this,
95370
- value: {
95371
- spec: spec,
95372
- index: index,
95373
- specs: this._specs
95374
- }
95375
- });
95363
+ this.changePlayerIndex(index);
95376
95364
  });
95377
95365
  this._playerComponent.addEventListener(PlayerEventEnum.backward, (e) => {
95378
95366
  const { index } = e.detail;
@@ -95546,6 +95534,21 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
95546
95534
  }
95547
95535
  return rect.height - this._height;
95548
95536
  }
95537
+ changePlayerIndex(index) {
95538
+ const spec = this._specs[index];
95539
+ array(spec.data).forEach(data => {
95540
+ var _a, _b;
95541
+ (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.globalInstance) === null || _b === void 0 ? void 0 : _b.updateData(data.id, data.values);
95542
+ });
95543
+ this.event.emit(ChartEvent.playerChange, {
95544
+ model: this,
95545
+ value: {
95546
+ spec: spec,
95547
+ index: index,
95548
+ specs: this._specs
95549
+ }
95550
+ });
95551
+ }
95549
95552
  }
95550
95553
  Player.specKey = 'player';
95551
95554
  Player.type = ComponentTypeEnum.player;