@visactor/react-vchart 2.0.20-alpha.3 → 2.0.20-alpha.4

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
@@ -63928,9 +63928,7 @@
63928
63928
  x: calcLayoutNumber(null === (_a = this._spec) || void 0 === _a ? void 0 : _a.centerX, layoutRect.width, layoutRect, layoutRect.width / 2),
63929
63929
  y: calcLayoutNumber(null === (_b = this._spec) || void 0 === _b ? void 0 : _b.centerY, layoutRect.height, layoutRect, layoutRect.height / 2)
63930
63930
  };
63931
- }, this._startAngle = POLAR_START_RADIAN, this._endAngle = POLAR_END_RADIAN, this._pieMark = null, this._labelMark = null, this._labelLineMark = null, this._emptyArcMark = null, this._pendingViewDataLabelUpdate = !1, this.flushViewDataLabelUpdate = () => {
63932
- this._pendingViewDataLabelUpdate && (this._pendingViewDataLabelUpdate = !1, this._viewDataLabel.getDataView().reRunAllTransform());
63933
- }, this.dataToCentralPosition = datum => {
63931
+ }, this._startAngle = POLAR_START_RADIAN, this._endAngle = POLAR_END_RADIAN, this._pieMark = null, this._labelMark = null, this._labelLineMark = null, this._emptyArcMark = null, this.dataToCentralPosition = datum => {
63934
63932
  const angle = datum[ARC_MIDDLE_ANGLE];
63935
63933
  if (isNil$1(angle)) return null;
63936
63934
  const radius = this.computeDatumRadius(datum),
@@ -64064,11 +64062,11 @@
64064
64062
  }
64065
64063
  initEvent() {
64066
64064
  var _a;
64067
- super.initEvent(), null === (_a = this._viewDataLabel.getDataView()) || void 0 === _a || _a.target.addListener("change", this.viewDataLabelUpdate.bind(this)), this.event.on(ChartEvent.afterRender, this.flushViewDataLabelUpdate);
64065
+ super.initEvent(), null === (_a = this._viewDataLabel.getDataView()) || void 0 === _a || _a.target.addListener("change", this.viewDataLabelUpdate.bind(this));
64068
64066
  }
64069
64067
  initGroups() {}
64070
64068
  onLayoutEnd() {
64071
- this._pendingViewDataLabelUpdate = !0, this.onMarkPositionUpdate(), super.onLayoutEnd();
64069
+ this._viewDataLabel.getDataView().reRunAllTransform(), this.onMarkPositionUpdate(), super.onLayoutEnd();
64072
64070
  }
64073
64071
  getDimensionField() {
64074
64072
  return this._seriesField ? [this._seriesField] : [];
@@ -80452,8 +80450,10 @@
80452
80450
  const isSameScrollValue = isClose(this._start, start) && isClose(this._end, end);
80453
80451
  if (this._shouldChange && (!isSameScrollValue || !1 === this._spec.realTime)) {
80454
80452
  updateComponent && this._component && this._component.setAttribute("range", [start, end]), this._start = start, this._end = end;
80455
- const startValue = statePointToData(start, this._stateScale, !1),
80456
- endValue = statePointToData(end, this._stateScale, !1);
80453
+ const axis = this._relatedAxisComponent,
80454
+ reverse = isReverse(axis, this._isHorizontal),
80455
+ startValue = statePointToData(start, this._stateScale, reverse),
80456
+ endValue = statePointToData(end, this._stateScale, reverse);
80457
80457
  (isFunction$1(this._spec.updateDataAfterChange) ? this._spec.updateDataAfterChange(start, end, startValue, endValue) : this._handleStateChange(startValue, endValue)) && this.event.emit(ChartEvent.scrollBarChange, {
80458
80458
  model: this,
80459
80459
  value: {