@visactor/react-vchart 2.0.20-alpha.7 → 2.0.20
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/index.js +7 -5
- package/build/index.min.js +3 -3
- package/cjs/components/MarkArea.js +1 -2
- package/cjs/components/ScrollBar.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/esm/components/MarkArea.js +1 -2
- package/esm/components/ScrollBar.js +2 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -49920,11 +49920,11 @@
|
|
|
49920
49920
|
this._lastMark = mark;
|
|
49921
49921
|
}
|
|
49922
49922
|
reuse(mark) {
|
|
49923
|
-
this.type === mark.type && (this._product = mark.getProduct(), this._product.clearStates(), this._graphics = mark.getGraphics(), this._graphics.forEach(g => {
|
|
49923
|
+
this.type === mark.type && (this._product = mark.getProduct(), this._product && (this._product.clearStates(), this._graphics = mark.getGraphics(), this._graphics.forEach(g => {
|
|
49924
49924
|
g.clearStates();
|
|
49925
49925
|
}), this._graphicMap = mark._graphicMap, this._graphicMap.forEach(g => {
|
|
49926
49926
|
g.context = Object.assign(Object.assign({}, g.context), this._getCommonContext());
|
|
49927
|
-
}), this._dataByKey = mark._dataByKey, this._prevDataByKey = mark._prevDataByKey, this.needClear = mark.needClear);
|
|
49927
|
+
}), this._dataByKey = mark._dataByKey, this._prevDataByKey = mark._prevDataByKey, this.needClear = mark.needClear));
|
|
49928
49928
|
}
|
|
49929
49929
|
_parseProgressiveContext(data) {
|
|
49930
49930
|
const enableProgressive = this._markConfig.progressiveStep > 0 && this._markConfig.progressiveThreshold > 0 && this._markConfig.progressiveStep < this._markConfig.progressiveThreshold,
|
|
@@ -80478,8 +80478,10 @@
|
|
|
80478
80478
|
const isSameScrollValue = isClose(this._start, start) && isClose(this._end, end);
|
|
80479
80479
|
if (this._shouldChange && (!isSameScrollValue || !1 === this._spec.realTime)) {
|
|
80480
80480
|
updateComponent && this._component && this._component.setAttribute("range", [start, end]), this._start = start, this._end = end;
|
|
80481
|
-
const
|
|
80482
|
-
|
|
80481
|
+
const axis = this._relatedAxisComponent,
|
|
80482
|
+
reverse = isReverse(axis, this._isHorizontal),
|
|
80483
|
+
startValue = statePointToData(start, this._stateScale, reverse),
|
|
80484
|
+
endValue = statePointToData(end, this._stateScale, reverse);
|
|
80483
80485
|
(isFunction$1(this._spec.updateDataAfterChange) ? this._spec.updateDataAfterChange(start, end, startValue, endValue) : this._handleStateChange(startValue, endValue)) && this.event.emit(ChartEvent.scrollBarChange, {
|
|
80484
80486
|
model: this,
|
|
80485
80487
|
value: {
|
|
@@ -88971,7 +88973,7 @@
|
|
|
88971
88973
|
|
|
88972
88974
|
const VChartSimple = createChart('VChartSimple');
|
|
88973
88975
|
|
|
88974
|
-
const version = "2.0.
|
|
88976
|
+
const version = "2.0.20";
|
|
88975
88977
|
|
|
88976
88978
|
exports.Area = Area;
|
|
88977
88979
|
exports.AreaChart = AreaChart;
|