@visactor/vchart-extension 1.13.5-alpha.4 → 1.13.5-alpha.6

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
@@ -502,6 +502,7 @@
502
502
  spec.data.forEach((datum, index) => (datum[ORDER_KEY] = index + 1 < 10 ? `0${index + 1}` : index + 1));
503
503
  const pagerData = this.paginateDataArr(spec).result;
504
504
  const orderCount = this.paginateDataArr(spec).orderCount;
505
+ this.orderCount = orderCount;
505
506
  const supplyCount = spec.pageSize - pagerData[`page${orderCount}`].length;
506
507
  pagerData[`page${orderCount}`].push(...Array.from({ length: supplyCount }, _ => {
507
508
  return {
@@ -616,14 +617,14 @@
616
617
  }
617
618
  transformAnimationSpec(spec) {
618
619
  var _a, _b, _c;
619
- if (spec.animationUpdate.enable) {
620
- spec.player = Object.assign(Object.assign({}, spec.player), { specs: this.dataSpecs, auto: true, visible: false, interval: ((_b = (_a = spec.animationNormal) === null || _a === void 0 ? void 0 : _a.interval) !== null && _b !== void 0 ? _b : 1000) + ((_c = spec.animationUpdate.duration) !== null && _c !== void 0 ? _c : 1000) / 2, loop: true });
620
+ if (spec.animationUpdate.enable && this.orderCount > 1) {
621
+ spec.player = Object.assign({ specs: this.dataSpecs, auto: true, visible: false, interval: ((_b = (_a = spec.animationNormal) === null || _a === void 0 ? void 0 : _a.interval) !== null && _b !== void 0 ? _b : 1000) + ((_c = spec.animationUpdate.duration) !== null && _c !== void 0 ? _c : 1000) / 2, loop: true }, spec.player);
621
622
  spec.animationExit = this.getAnimationExit(this.originalSpec);
622
- spec.animationAppear = this.getAnimationAppear(this.originalSpec, 'rect');
623
623
  spec.animationEnter = this.getAnimationEnter(this.originalSpec);
624
624
  spec.animationUpdate = this.getAnimationUpdate(this.originalSpec);
625
- spec.animationNormal = this.originalSpec.animationNormal;
626
625
  }
626
+ spec.animationNormal = this.originalSpec.animationNormal;
627
+ spec.animationAppear = this.getAnimationAppear(this.originalSpec, 'rect');
627
628
  }
628
629
  transformAxesSpec(spec) {
629
630
  const { min, max } = computeDataRange(this.originalData, spec.xField);