@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.
- package/build/es5/index.js +1 -1
- package/build/index.es.js +18 -9
- package/build/index.js +18 -9
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/compile/compiler.js +9 -7
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/constant/funnel.js +2 -1
- package/cjs/constant/scatter.js +1 -2
- package/cjs/constant/scroll-bar.js +1 -1
- package/cjs/constant/sunburst.js +1 -1
- package/cjs/constant/waterfall.js +1 -1
- package/cjs/constant/word-cloud.js +1 -1
- package/cjs/core/expression-function.js +1 -1
- package/cjs/core/factory.js +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/instance-manager.js +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/util.js +1 -1
- package/cjs/core/vchart.js +1 -1
- package/cjs/data/data-view-utils.js +1 -1
- package/cjs/data/initialize.js +1 -1
- package/cjs/data/register.js +1 -1
- package/esm/compile/compiler.js +9 -7
- package/esm/compile/compiler.js.map +1 -1
- package/esm/constant/funnel.js +2 -1
- package/esm/constant/scatter.js +1 -2
- package/esm/constant/scroll-bar.js +1 -1
- package/esm/constant/sunburst.js +1 -1
- package/esm/constant/waterfall.js +1 -1
- package/esm/constant/word-cloud.js +1 -1
- package/esm/core/expression-function.js +1 -1
- package/esm/core/factory.js +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/instance-manager.js +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/util.js +1 -1
- package/esm/core/vchart.js +1 -1
- package/esm/data/data-view-utils.js +1 -1
- package/esm/data/initialize.js +1 -1
- package/esm/data/register.js +1 -1
- 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
|
-
|
|
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
|
-
|
|
60795
|
-
|
|
60796
|
-
|
|
60797
|
-
|
|
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
|
-
|
|
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
|
-
|
|
60809
|
-
|
|
60813
|
+
if (hasCommitedMark) {
|
|
60814
|
+
this.findProgressiveMarks();
|
|
60815
|
+
this.updateStateAnimation();
|
|
60816
|
+
}
|
|
60810
60817
|
this._doRender(true);
|
|
60811
|
-
|
|
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
|
-
|
|
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
|
-
|
|
60801
|
-
|
|
60802
|
-
|
|
60803
|
-
|
|
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
|
-
|
|
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
|
-
|
|
60815
|
-
|
|
60819
|
+
if (hasCommitedMark) {
|
|
60820
|
+
this.findProgressiveMarks();
|
|
60821
|
+
this.updateStateAnimation();
|
|
60822
|
+
}
|
|
60816
60823
|
this._doRender(true);
|
|
60817
|
-
|
|
60824
|
+
if (hasCommitedMark) {
|
|
60825
|
+
this.doPreProgressive();
|
|
60826
|
+
}
|
|
60818
60827
|
log(`--- start of renderMarks(${this._count}) ---`);
|
|
60819
60828
|
this._count++;
|
|
60820
60829
|
}
|