@visactor/vchart 1.9.4-alpha.2 → 1.9.4-alpha.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 +13 -16
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/stack.js +2 -1
- package/cjs/compile/grammar-item.js +1 -2
- package/cjs/component/axis/cartesian/axis.d.ts +1 -1
- package/cjs/component/axis/cartesian/axis.js +13 -16
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/esm/chart/stack.js +2 -1
- package/esm/compile/grammar-item.js +1 -2
- package/esm/component/axis/cartesian/axis.d.ts +1 -1
- package/esm/component/axis/cartesian/axis.js +12 -15
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -58832,7 +58832,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58832
58832
|
registerChartPlugin(MediaQuery);
|
|
58833
58833
|
};
|
|
58834
58834
|
|
|
58835
|
-
const version = "1.9.4-alpha.
|
|
58835
|
+
const version = "1.9.4-alpha.3";
|
|
58836
58836
|
|
|
58837
58837
|
const addVChartProperty = (data, op) => {
|
|
58838
58838
|
const context = op.beforeCall();
|
|
@@ -81402,6 +81402,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81402
81402
|
result.height = Math.ceil(result.height);
|
|
81403
81403
|
return this._layout.setRectInSpec(this._layoutCacheProcessing(result));
|
|
81404
81404
|
};
|
|
81405
|
+
this._updateAxisLayout = () => {
|
|
81406
|
+
const startPoint = this.getLayoutStartPoint();
|
|
81407
|
+
const _a = this._getUpdateAttribute(false), { grid: updateGridAttrs } = _a, updateAxisAttrs = __rest$7(_a, ["grid"]);
|
|
81408
|
+
const axisProduct = this._axisMark.getProduct();
|
|
81409
|
+
const axisAttrs = mergeSpec({ x: startPoint.x, y: startPoint.y }, this._axisStyle, updateAxisAttrs);
|
|
81410
|
+
axisProduct.encode(axisAttrs);
|
|
81411
|
+
if (this._gridMark) {
|
|
81412
|
+
const gridProduct = this._gridMark.getProduct();
|
|
81413
|
+
gridProduct.encode(mergeSpec({ x: startPoint.x, y: startPoint.y }, this._getGridAttributes(), updateGridAttrs));
|
|
81414
|
+
}
|
|
81415
|
+
};
|
|
81405
81416
|
this._fixAxisOnZero = () => {
|
|
81406
81417
|
const { onZero, visible } = this._spec.domainLine;
|
|
81407
81418
|
if (this.visible && onZero && visible !== false) {
|
|
@@ -81810,21 +81821,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81810
81821
|
}
|
|
81811
81822
|
return result;
|
|
81812
81823
|
}
|
|
81813
|
-
updateLayoutAttribute() {
|
|
81814
|
-
if (!this.visible) {
|
|
81815
|
-
return;
|
|
81816
|
-
}
|
|
81817
|
-
const startPoint = this.getLayoutStartPoint();
|
|
81818
|
-
const _a = this._getUpdateAttribute(false), { grid: updateGridAttrs } = _a, updateAxisAttrs = __rest$7(_a, ["grid"]);
|
|
81819
|
-
const axisProduct = this._axisMark.getProduct();
|
|
81820
|
-
const axisAttrs = mergeSpec({ x: startPoint.x, y: startPoint.y }, this._axisStyle, updateAxisAttrs);
|
|
81821
|
-
axisProduct.encode(axisAttrs);
|
|
81822
|
-
if (this._gridMark) {
|
|
81823
|
-
const gridProduct = this._gridMark.getProduct();
|
|
81824
|
-
gridProduct.encode(mergeSpec({ x: startPoint.x, y: startPoint.y }, this._getGridAttributes(), updateGridAttrs));
|
|
81825
|
-
}
|
|
81826
|
-
super.updateLayoutAttribute();
|
|
81827
|
-
}
|
|
81828
81824
|
_getTitleLimit(isX) {
|
|
81829
81825
|
var _a, _b, _c, _d, _e;
|
|
81830
81826
|
if (this._spec.title.visible && isNil$1((_a = this._spec.title.style) === null || _a === void 0 ? void 0 : _a.maxLineWidth)) {
|
|
@@ -81971,6 +81967,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81971
81967
|
this.event.on(exports.ChartEvent.layoutRectUpdate, () => {
|
|
81972
81968
|
this._clearLayoutCache();
|
|
81973
81969
|
});
|
|
81970
|
+
this.event.on(exports.ChartEvent.layoutEnd, this._updateAxisLayout);
|
|
81974
81971
|
}
|
|
81975
81972
|
}
|
|
81976
81973
|
_getNormalizedValue(values, length) {
|