@visactor/react-vchart 2.0.20-alpha.0 → 2.0.20-alpha.1
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 +6 -2
- package/build/index.min.js +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -49858,7 +49858,9 @@
|
|
|
49858
49858
|
this._lastMark = mark;
|
|
49859
49859
|
}
|
|
49860
49860
|
reuse(mark) {
|
|
49861
|
-
this.type === mark.type && (this._product = mark.getProduct(), this.
|
|
49861
|
+
this.type === mark.type && (this._product = mark.getProduct(), this._product.clearStates(), this._graphics = mark.getGraphics(), this._graphics.forEach(g => {
|
|
49862
|
+
g.clearStates();
|
|
49863
|
+
}), this._graphicMap = mark._graphicMap, this._graphicMap.forEach(g => {
|
|
49862
49864
|
g.context = Object.assign(Object.assign({}, g.context), this._getCommonContext());
|
|
49863
49865
|
}), this._dataByKey = mark._dataByKey, this._prevDataByKey = mark._prevDataByKey, this.needClear = mark.needClear);
|
|
49864
49866
|
}
|
|
@@ -50305,7 +50307,9 @@
|
|
|
50305
50307
|
this._runStateAnimation(this.getGraphics());
|
|
50306
50308
|
}
|
|
50307
50309
|
clearBeforeReInit() {
|
|
50308
|
-
this.state.clearAllStateInfo(), this.uncommit(), this.stateStyle = {}
|
|
50310
|
+
this.state.clearAllStateInfo(), this.uncommit(), this.stateStyle = {}, this.getGraphics().forEach(g => {
|
|
50311
|
+
g.clearStates();
|
|
50312
|
+
});
|
|
50309
50313
|
}
|
|
50310
50314
|
}
|
|
50311
50315
|
|