@visactor/vchart 2.0.20-alpha.4 → 2.0.20-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/es5/index.js +1 -1
- package/build/index.es.js +3 -0
- package/build/index.js +3 -0
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/index.js +1 -1
- package/cjs/chart/stack.js +1 -1
- package/cjs/chart/util.js +1 -1
- package/cjs/component/util.js +1 -2
- package/cjs/constant/base.js +2 -1
- package/cjs/constant/scroll-bar.js +1 -2
- package/cjs/constant/word-cloud.js +2 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/util.js +1 -1
- package/cjs/core/vchart.js +1 -1
- package/cjs/mark/base/base-mark.js +2 -2
- package/cjs/mark/base/base-mark.js.map +1 -1
- package/esm/chart/index.js +1 -1
- package/esm/chart/stack.js +1 -1
- package/esm/chart/util.js +1 -1
- package/esm/component/util.js +1 -2
- package/esm/constant/base.js +2 -1
- package/esm/constant/scroll-bar.js +1 -2
- package/esm/constant/word-cloud.js +2 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/util.js +1 -1
- package/esm/core/vchart.js +1 -1
- package/esm/mark/base/base-mark.js +2 -2
- package/esm/mark/base/base-mark.js.map +1 -1
- package/package.json +5 -5
package/esm/component/util.js
CHANGED
package/esm/constant/base.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export const SCROLL_BAR_DEFAULT_SIZE = 12;
|
|
2
|
-
//# sourceMappingURL=scroll-bar.js.map
|
|
1
|
+
export const SCROLL_BAR_DEFAULT_SIZE = 12;
|
|
@@ -12,4 +12,5 @@ export const WORDCLOUD_DATA_TOTAL = `${PREFIX}_WORDCLOUD_DATA_TOTAL`;
|
|
|
12
12
|
|
|
13
13
|
export const WORD_CLOUD_TEXT = `${PREFIX}_WORD_CLOUD_TEXT`;
|
|
14
14
|
|
|
15
|
-
export const WORDCLOUD_SHAPE_DATA_TOTAL = `${PREFIX}_WORDCLOUD_SHAPE_DATA_TOTAL`;
|
|
15
|
+
export const WORDCLOUD_SHAPE_DATA_TOTAL = `${PREFIX}_WORDCLOUD_SHAPE_DATA_TOTAL`;
|
|
16
|
+
//# sourceMappingURL=word-cloud.js.map
|
package/esm/core/interface.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { };
|
|
2
|
-
//# sourceMappingURL=interface.js.map
|
|
2
|
+
//# sourceMappingURL=interface.js.map
|
package/esm/core/util.js
CHANGED
package/esm/core/vchart.js
CHANGED
|
@@ -1016,4 +1016,4 @@ export const registerVChartCore = () => {
|
|
|
1016
1016
|
Factory.registerRegion("region", Region), Factory.registerLayout("base", Layout),
|
|
1017
1017
|
registerGroupMark(), registerGesturePlugin(), registerElementHighlight(), registerElementSelect(),
|
|
1018
1018
|
registerTheme(darkTheme.name, darkTheme);
|
|
1019
|
-
//# sourceMappingURL=vchart.js.map
|
|
1019
|
+
//# sourceMappingURL=vchart.js.map
|
|
@@ -485,13 +485,13 @@ export class BaseMark extends GrammarItem {
|
|
|
485
485
|
this._lastMark = mark;
|
|
486
486
|
}
|
|
487
487
|
reuse(mark) {
|
|
488
|
-
this.type === mark.type && (this._product = mark.getProduct(), this._product.clearStates(),
|
|
488
|
+
this.type === mark.type && (this._product = mark.getProduct(), this._product && (this._product.clearStates(),
|
|
489
489
|
this._graphics = mark.getGraphics(), this._graphics.forEach((g => {
|
|
490
490
|
g.clearStates();
|
|
491
491
|
})), this._graphicMap = mark._graphicMap, this._graphicMap.forEach((g => {
|
|
492
492
|
g.context = Object.assign(Object.assign({}, g.context), this._getCommonContext());
|
|
493
493
|
})), this._dataByKey = mark._dataByKey, this._prevDataByKey = mark._prevDataByKey,
|
|
494
|
-
this.needClear = mark.needClear);
|
|
494
|
+
this.needClear = mark.needClear));
|
|
495
495
|
}
|
|
496
496
|
_parseProgressiveContext(data) {
|
|
497
497
|
const enableProgressive = this._markConfig.progressiveStep > 0 && this._markConfig.progressiveThreshold > 0 && this._markConfig.progressiveStep < this._markConfig.progressiveThreshold, large = this._markConfig.large && this._markConfig.largeThreshold > 0 && data.length >= this._markConfig.largeThreshold;
|