@visactor/vchart 2.1.0-alpha.4 → 2.1.0-alpha.5

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.
Files changed (42) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +18 -9
  3. package/build/index.js +18 -9
  4. package/build/index.min.js +1 -1
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/compile/compiler.js +9 -7
  7. package/cjs/compile/compiler.js.map +1 -1
  8. package/cjs/constant/funnel.js +2 -1
  9. package/cjs/constant/scatter.js +1 -2
  10. package/cjs/constant/scroll-bar.js +1 -1
  11. package/cjs/constant/sunburst.js +1 -1
  12. package/cjs/constant/waterfall.js +1 -1
  13. package/cjs/constant/word-cloud.js +1 -1
  14. package/cjs/core/expression-function.js +1 -1
  15. package/cjs/core/factory.js +1 -1
  16. package/cjs/core/index.js +1 -1
  17. package/cjs/core/instance-manager.js +1 -1
  18. package/cjs/core/interface.js +1 -1
  19. package/cjs/core/util.js +1 -1
  20. package/cjs/core/vchart.js +1 -1
  21. package/cjs/data/data-view-utils.js +1 -1
  22. package/cjs/data/initialize.js +1 -1
  23. package/cjs/data/register.js +1 -1
  24. package/esm/compile/compiler.js +9 -7
  25. package/esm/compile/compiler.js.map +1 -1
  26. package/esm/constant/funnel.js +2 -1
  27. package/esm/constant/scatter.js +1 -2
  28. package/esm/constant/scroll-bar.js +1 -1
  29. package/esm/constant/sunburst.js +1 -1
  30. package/esm/constant/waterfall.js +1 -1
  31. package/esm/constant/word-cloud.js +1 -1
  32. package/esm/core/expression-function.js +1 -1
  33. package/esm/core/factory.js +1 -1
  34. package/esm/core/index.js +1 -1
  35. package/esm/core/instance-manager.js +1 -1
  36. package/esm/core/interface.js +1 -1
  37. package/esm/core/util.js +1 -1
  38. package/esm/core/vchart.js +1 -1
  39. package/esm/data/data-view-utils.js +1 -1
  40. package/esm/data/initialize.js +1 -1
  41. package/esm/data/register.js +1 -1
  42. package/package.json +4 -4
package/build/index.es.js CHANGED
@@ -60786,29 +60786,38 @@ class Compiler {
60786
60786
  }
60787
60787
  renderMarks() {
60788
60788
  var _a;
60789
- if (!this._hasCommitedMark()) {
60789
+ let hasCommitedMark = this._hasCommitedMark();
60790
+ const needsLayout = this._layoutState === LayoutState.before;
60791
+ if (!hasCommitedMark && !needsLayout) {
60790
60792
  return;
60791
60793
  }
60792
60794
  log(`--- start of renderMarks(${this._count}) ---`);
60793
60795
  this.clearProgressive();
60794
- this._rootMarks.forEach(mark => {
60795
- mark.render();
60796
- });
60797
- if (this._layoutState === LayoutState.before) {
60796
+ if (hasCommitedMark) {
60797
+ this._rootMarks.forEach(mark => {
60798
+ mark.render();
60799
+ });
60800
+ }
60801
+ if (needsLayout) {
60798
60802
  this._layoutState = LayoutState.layouting;
60799
60803
  (_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.onLayout();
60800
60804
  this._layoutState = LayoutState.reevaluate;
60801
- if (this._hasCommitedMark()) {
60805
+ hasCommitedMark = this._hasCommitedMark();
60806
+ if (hasCommitedMark) {
60802
60807
  this._rootMarks.forEach(mark => {
60803
60808
  mark.render();
60804
60809
  });
60805
60810
  }
60806
60811
  this.handleLayoutEnd();
60807
60812
  }
60808
- this.findProgressiveMarks();
60809
- this.updateStateAnimation();
60813
+ if (hasCommitedMark) {
60814
+ this.findProgressiveMarks();
60815
+ this.updateStateAnimation();
60816
+ }
60810
60817
  this._doRender(true);
60811
- this.doPreProgressive();
60818
+ if (hasCommitedMark) {
60819
+ this.doPreProgressive();
60820
+ }
60812
60821
  log(`--- start of renderMarks(${this._count}) ---`);
60813
60822
  this._count++;
60814
60823
  }
package/build/index.js CHANGED
@@ -60792,29 +60792,38 @@
60792
60792
  }
60793
60793
  renderMarks() {
60794
60794
  var _a;
60795
- if (!this._hasCommitedMark()) {
60795
+ let hasCommitedMark = this._hasCommitedMark();
60796
+ const needsLayout = this._layoutState === LayoutState.before;
60797
+ if (!hasCommitedMark && !needsLayout) {
60796
60798
  return;
60797
60799
  }
60798
60800
  log(`--- start of renderMarks(${this._count}) ---`);
60799
60801
  this.clearProgressive();
60800
- this._rootMarks.forEach(mark => {
60801
- mark.render();
60802
- });
60803
- if (this._layoutState === LayoutState.before) {
60802
+ if (hasCommitedMark) {
60803
+ this._rootMarks.forEach(mark => {
60804
+ mark.render();
60805
+ });
60806
+ }
60807
+ if (needsLayout) {
60804
60808
  this._layoutState = LayoutState.layouting;
60805
60809
  (_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.onLayout();
60806
60810
  this._layoutState = LayoutState.reevaluate;
60807
- if (this._hasCommitedMark()) {
60811
+ hasCommitedMark = this._hasCommitedMark();
60812
+ if (hasCommitedMark) {
60808
60813
  this._rootMarks.forEach(mark => {
60809
60814
  mark.render();
60810
60815
  });
60811
60816
  }
60812
60817
  this.handleLayoutEnd();
60813
60818
  }
60814
- this.findProgressiveMarks();
60815
- this.updateStateAnimation();
60819
+ if (hasCommitedMark) {
60820
+ this.findProgressiveMarks();
60821
+ this.updateStateAnimation();
60822
+ }
60816
60823
  this._doRender(true);
60817
- this.doPreProgressive();
60824
+ if (hasCommitedMark) {
60825
+ this.doPreProgressive();
60826
+ }
60818
60827
  log(`--- start of renderMarks(${this._count}) ---`);
60819
60828
  this._count++;
60820
60829
  }