@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.
@@ -485,4 +485,4 @@ Object.defineProperty(exports, "setDefaultCrosshairForCartesianChart", {
485
485
  return util_1.setDefaultCrosshairForCartesianChart;
486
486
  }
487
487
  });
488
- //# sourceMappingURL=index.js.map
488
+ //# sourceMappingURL=index.js.map
@@ -55,4 +55,4 @@ class StackChartMixin {
55
55
  }
56
56
 
57
57
  exports.StackChartMixin = StackChartMixin;
58
- //# sourceMappingURL=stack.js.map
58
+ //# sourceMappingURL=stack.js.map
package/cjs/chart/util.js CHANGED
@@ -73,4 +73,4 @@ function getTrimPaddingConfig(chartType, spec) {
73
73
  exports.setDefaultCrosshairForCartesianChart = setDefaultCrosshairForCartesianChart,
74
74
  exports.calculateChartSize = calculateChartSize, exports.mergeUpdateResult = mergeUpdateResult,
75
75
  exports.getTrimPaddingConfig = getTrimPaddingConfig;
76
- //# sourceMappingURL=util.js.map
76
+ //# sourceMappingURL=util.js.map
@@ -37,5 +37,4 @@ const getSpecInfo = (chartSpec, specKey, compType, filter) => {
37
37
  })), specInfos;
38
38
  };
39
39
 
40
- exports.getSpecInfo = getSpecInfo;
41
- //# sourceMappingURL=util.js.map
40
+ exports.getSpecInfo = getSpecInfo;
@@ -3,4 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.DEFAULT_CHART_HEIGHT = exports.DEFAULT_CHART_WIDTH = exports.PREFIX = void 0,
6
- exports.PREFIX = "__VCHART", exports.DEFAULT_CHART_WIDTH = 500, exports.DEFAULT_CHART_HEIGHT = 500;
6
+ exports.PREFIX = "__VCHART", exports.DEFAULT_CHART_WIDTH = 500, exports.DEFAULT_CHART_HEIGHT = 500;
7
+ //# sourceMappingURL=base.js.map
@@ -2,5 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.SCROLL_BAR_DEFAULT_SIZE = void 0, exports.SCROLL_BAR_DEFAULT_SIZE = 12;
6
- //# sourceMappingURL=scroll-bar.js.map
5
+ }), exports.SCROLL_BAR_DEFAULT_SIZE = void 0, exports.SCROLL_BAR_DEFAULT_SIZE = 12;
@@ -9,4 +9,5 @@ const base_1 = require("./base");
9
9
  exports.WORD_CLOUD_ANGLE = `${base_1.PREFIX}_WORD_CLOUD_ANGLE`, exports.WORD_CLOUD_FILLING_ANGLE = `${base_1.PREFIX}_WORD_CLOUD_FILLING_ANGLE`,
10
10
  exports.WORD_CLOUD_WEIGHT = `${base_1.PREFIX}_WORD_CLOUD_WEIGHT`, exports.WORDCLOUD_COLOR = `${base_1.PREFIX}_WORDCLOUD_COLOR`,
11
11
  exports.WORDCLOUD_DATA_TOTAL = `${base_1.PREFIX}_WORDCLOUD_DATA_TOTAL`, exports.WORD_CLOUD_TEXT = `${base_1.PREFIX}_WORD_CLOUD_TEXT`,
12
- exports.WORDCLOUD_SHAPE_DATA_TOTAL = `${base_1.PREFIX}_WORDCLOUD_SHAPE_DATA_TOTAL`;
12
+ exports.WORDCLOUD_SHAPE_DATA_TOTAL = `${base_1.PREFIX}_WORDCLOUD_SHAPE_DATA_TOTAL`;
13
+ //# sourceMappingURL=word-cloud.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=interface.js.map
6
+ //# sourceMappingURL=interface.js.map
package/cjs/core/util.js CHANGED
@@ -9,4 +9,4 @@ const util_1 = require("../util");
9
9
  exports.VCHART_UTILS = {
10
10
  measureText: util_1.measureText
11
11
  };
12
- //# sourceMappingURL=util.js.map
12
+ //# sourceMappingURL=util.js.map
@@ -949,4 +949,4 @@ const registerVChartCore = () => {
949
949
  };
950
950
 
951
951
  exports.registerVChartCore = registerVChartCore, (0, exports.registerVChartCore)();
952
- //# sourceMappingURL=vchart.js.map
952
+ //# sourceMappingURL=vchart.js.map
@@ -451,13 +451,13 @@ class BaseMark extends grammar_item_1.GrammarItem {
451
451
  this._lastMark = mark;
452
452
  }
453
453
  reuse(mark) {
454
- this.type === mark.type && (this._product = mark.getProduct(), this._product.clearStates(),
454
+ this.type === mark.type && (this._product = mark.getProduct(), this._product && (this._product.clearStates(),
455
455
  this._graphics = mark.getGraphics(), this._graphics.forEach((g => {
456
456
  g.clearStates();
457
457
  })), this._graphicMap = mark._graphicMap, this._graphicMap.forEach((g => {
458
458
  g.context = Object.assign(Object.assign({}, g.context), this._getCommonContext());
459
459
  })), this._dataByKey = mark._dataByKey, this._prevDataByKey = mark._prevDataByKey,
460
- this.needClear = mark.needClear);
460
+ this.needClear = mark.needClear));
461
461
  }
462
462
  _parseProgressiveContext(data) {
463
463
  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;