@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.
@@ -29,5 +29,4 @@ export const getSpecInfo = (chartSpec, specKey, compType, filter) => {
29
29
  type: compType
30
30
  });
31
31
  })), specInfos;
32
- };
33
- //# sourceMappingURL=util.js.map
32
+ };
@@ -2,4 +2,5 @@ export const PREFIX = "__VCHART";
2
2
 
3
3
  export const DEFAULT_CHART_WIDTH = 500;
4
4
 
5
- export const DEFAULT_CHART_HEIGHT = 500;
5
+ export const DEFAULT_CHART_HEIGHT = 500;
6
+ //# sourceMappingURL=base.js.map
@@ -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
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=interface.js.map
2
+ //# sourceMappingURL=interface.js.map
package/esm/core/util.js CHANGED
@@ -3,4 +3,4 @@ import { measureText } from "../util";
3
3
  export const VCHART_UTILS = {
4
4
  measureText: measureText
5
5
  };
6
- //# sourceMappingURL=util.js.map
6
+ //# sourceMappingURL=util.js.map
@@ -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;