@visactor/vchart 1.8.10 → 1.8.11

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 CHANGED
@@ -58332,7 +58332,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58332
58332
  registerChartPlugin(MediaQuery);
58333
58333
  };
58334
58334
 
58335
- const version = "1.8.10";
58335
+ const version = "1.8.11";
58336
58336
 
58337
58337
  const addVChartProperty = (data, op) => {
58338
58338
  const context = op.beforeCall();
@@ -60286,6 +60286,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60286
60286
  getStackGroupFields() {
60287
60287
  return this.getGroupFields();
60288
60288
  }
60289
+ getStackValue() {
60290
+ var _a;
60291
+ return ((_a = this._spec.stackValue) !== null && _a !== void 0 ? _a : `${PREFIX}_series_${this.type}_${(this.direction === "horizontal"
60292
+ ? this.getXAxisHelper()
60293
+ : this.getYAxisHelper()).getAxisId()}`);
60294
+ }
60289
60295
  getStackValueField() {
60290
60296
  if (this.direction === "vertical") {
60291
60297
  return array(this._spec.yField)[0];
@@ -80401,7 +80407,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80401
80407
  if (!targetAxis) {
80402
80408
  return;
80403
80409
  }
80404
- axis.event.on(exports.ChartEvent.scaleDomainUpdate, { filter: ({ model }) => model.id === axis.id }, () => {
80410
+ axis.event.on(exports.ChartEvent.scaleDomainUpdate, { filter: ({ model }) => model.id === axis.id || model.id === targetAxis.id }, () => {
80405
80411
  zeroAlign(targetAxis, axis);
80406
80412
  });
80407
80413
  }