@visactor/vchart 1.3.2-hotfix.1 → 1.3.2-hotfix.3
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.js +16 -4
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base-chart.js +8 -4
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/constant/scatter.js +2 -1
- package/cjs/core/factory.js +1 -2
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/series/base/base-series.js +12 -4
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/pie/pie.js +12 -1
- package/cjs/series/pie/pie.js.map +1 -1
- package/esm/chart/base-chart.js +8 -4
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/constant/scatter.js +2 -1
- package/esm/core/factory.js +1 -2
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/series/base/base-series.js +13 -5
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/pie/pie.js +12 -1
- package/esm/series/pie/pie.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -61897,7 +61897,7 @@
|
|
|
61897
61897
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
61898
61898
|
Factory.registerRegion('region', Region);
|
|
61899
61899
|
Factory.registerLayout('base', Layout);
|
|
61900
|
-
const version = "1.3.2-hotfix.
|
|
61900
|
+
const version = "1.3.2-hotfix.3";
|
|
61901
61901
|
Logger.getInstance(LoggerLevel.Error);
|
|
61902
61902
|
|
|
61903
61903
|
const Appear_ClipIn$1 = {
|
|
@@ -64772,7 +64772,8 @@
|
|
|
64772
64772
|
}
|
|
64773
64773
|
updateSpec(spec) {
|
|
64774
64774
|
var _a, _b;
|
|
64775
|
-
const
|
|
64775
|
+
const _c = this._originalSpec, originalSpec = __rest$7(_c, ["data"]);
|
|
64776
|
+
const currentSpec = __rest$7(spec, ["data"]);
|
|
64776
64777
|
const result = super.updateSpec(spec);
|
|
64777
64778
|
if (spec.type !== this.type) {
|
|
64778
64779
|
result.reMake = true;
|
|
@@ -64788,6 +64789,10 @@
|
|
|
64788
64789
|
if (result.reMake) {
|
|
64789
64790
|
return result;
|
|
64790
64791
|
}
|
|
64792
|
+
if (!isEqual$1(originalSpec, currentSpec)) {
|
|
64793
|
+
result.reMake = true;
|
|
64794
|
+
return result;
|
|
64795
|
+
}
|
|
64791
64796
|
if (this._marks.getMarks().some(m => { var _a, _b; return ((_a = originalSpec[m.name]) === null || _a === void 0 ? void 0 : _a.visible) !== ((_b = this._spec[m.name]) === null || _b === void 0 ? void 0 : _b.visible); })) {
|
|
64792
64797
|
result.reCompile = true;
|
|
64793
64798
|
}
|
|
@@ -66761,7 +66766,13 @@
|
|
|
66761
66766
|
componentCount: 0
|
|
66762
66767
|
};
|
|
66763
66768
|
componentCache[c.specKey].componentCount++;
|
|
66764
|
-
|
|
66769
|
+
const cSpec = cmpSpec[c.getSpecIndex()];
|
|
66770
|
+
if (cSpec) {
|
|
66771
|
+
this._mergeUpdateResult(result, c.updateSpec(cSpec, cmpSpec));
|
|
66772
|
+
}
|
|
66773
|
+
else {
|
|
66774
|
+
result.reMake = true;
|
|
66775
|
+
}
|
|
66765
66776
|
}
|
|
66766
66777
|
else {
|
|
66767
66778
|
this._mergeUpdateResult(result, c.updateSpec(cmpSpec));
|
|
@@ -72363,7 +72374,8 @@
|
|
|
72363
72374
|
return this.computeLayoutRadius() * this.getRadius(state) + this._centerOffset;
|
|
72364
72375
|
}
|
|
72365
72376
|
updateSpec(spec) {
|
|
72366
|
-
const
|
|
72377
|
+
const _a = this._originalSpec, originalSpec = __rest$7(_a, ["data"]);
|
|
72378
|
+
__rest$7(spec, ["data"]);
|
|
72367
72379
|
const { centerX, centerY, centerOffset, radius, innerRadius, cornerRadius, startAngle, endAngle, padAngle } = originalSpec;
|
|
72368
72380
|
const result = super.updateSpec(spec);
|
|
72369
72381
|
if ((spec === null || spec === void 0 ? void 0 : spec.centerX) !== centerX ||
|