@visactor/vchart 1.13.1 → 1.13.2-alpha.0

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.es.js CHANGED
@@ -62504,7 +62504,7 @@ const registerVChartCore = () => {
62504
62504
  };
62505
62505
  registerVChartCore();
62506
62506
 
62507
- const version = "1.13.1";
62507
+ const version = "1.13.2-alpha.0";
62508
62508
 
62509
62509
  const addVChartProperty = (data, op) => {
62510
62510
  const context = op.beforeCall();
@@ -98318,18 +98318,20 @@ class Brush extends BaseComponent {
98318
98318
  this._needInitOutState = true;
98319
98319
  this._needDisablePickable = false;
98320
98320
  const { operateMask } = e.detail;
98321
+ const { updateElementsState = true } = this._spec;
98321
98322
  this._handleBrushChange(ChartEvent.brushEnd, region, e);
98322
98323
  const inBrushData = this._extendDataInBrush(this._inBrushElementsMap);
98323
- if (!this._spec.zoomWhenEmpty && inBrushData.length > 0) {
98324
+ if ((!this._spec.zoomWhenEmpty && inBrushData.length > 0) || !updateElementsState) {
98324
98325
  this._setAxisAndDataZoom(operateMask, region);
98325
98326
  }
98326
98327
  this._emitEvent(ChartEvent.brushEnd, region);
98327
98328
  });
98328
98329
  brush.addEventListener(IOperateType.moveEnd, (e) => {
98329
98330
  const { operateMask } = e.detail;
98331
+ const { updateElementsState = true } = this._spec;
98330
98332
  this._handleBrushChange(ChartEvent.brushEnd, region, e);
98331
98333
  const inBrushData = this._extendDataInBrush(this._inBrushElementsMap);
98332
- if (!this._spec.zoomWhenEmpty && inBrushData.length > 0) {
98334
+ if ((!this._spec.zoomWhenEmpty && inBrushData.length > 0) || !updateElementsState) {
98333
98335
  this._setAxisAndDataZoom(operateMask, region);
98334
98336
  }
98335
98337
  this._emitEvent(ChartEvent.brushEnd, region);
@@ -98337,8 +98339,11 @@ class Brush extends BaseComponent {
98337
98339
  }
98338
98340
  _handleBrushChange(eventType, region, e) {
98339
98341
  const { operateMask } = e.detail;
98340
- this._reconfigItem(operateMask, region);
98341
- this._reconfigLinkedItem(operateMask, region);
98342
+ const { updateElementsState = true } = this._spec;
98343
+ if (updateElementsState) {
98344
+ this._reconfigItem(operateMask, region);
98345
+ this._reconfigLinkedItem(operateMask, region);
98346
+ }
98342
98347
  }
98343
98348
  _emitEvent(eventType, region) {
98344
98349
  this.event.emit(eventType, {
package/build/index.js CHANGED
@@ -62510,7 +62510,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62510
62510
  };
62511
62511
  registerVChartCore();
62512
62512
 
62513
- const version = "1.13.1";
62513
+ const version = "1.13.2-alpha.0";
62514
62514
 
62515
62515
  const addVChartProperty = (data, op) => {
62516
62516
  const context = op.beforeCall();
@@ -98324,18 +98324,20 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
98324
98324
  this._needInitOutState = true;
98325
98325
  this._needDisablePickable = false;
98326
98326
  const { operateMask } = e.detail;
98327
+ const { updateElementsState = true } = this._spec;
98327
98328
  this._handleBrushChange(ChartEvent.brushEnd, region, e);
98328
98329
  const inBrushData = this._extendDataInBrush(this._inBrushElementsMap);
98329
- if (!this._spec.zoomWhenEmpty && inBrushData.length > 0) {
98330
+ if ((!this._spec.zoomWhenEmpty && inBrushData.length > 0) || !updateElementsState) {
98330
98331
  this._setAxisAndDataZoom(operateMask, region);
98331
98332
  }
98332
98333
  this._emitEvent(ChartEvent.brushEnd, region);
98333
98334
  });
98334
98335
  brush.addEventListener(IOperateType.moveEnd, (e) => {
98335
98336
  const { operateMask } = e.detail;
98337
+ const { updateElementsState = true } = this._spec;
98336
98338
  this._handleBrushChange(ChartEvent.brushEnd, region, e);
98337
98339
  const inBrushData = this._extendDataInBrush(this._inBrushElementsMap);
98338
- if (!this._spec.zoomWhenEmpty && inBrushData.length > 0) {
98340
+ if ((!this._spec.zoomWhenEmpty && inBrushData.length > 0) || !updateElementsState) {
98339
98341
  this._setAxisAndDataZoom(operateMask, region);
98340
98342
  }
98341
98343
  this._emitEvent(ChartEvent.brushEnd, region);
@@ -98343,8 +98345,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
98343
98345
  }
98344
98346
  _handleBrushChange(eventType, region, e) {
98345
98347
  const { operateMask } = e.detail;
98346
- this._reconfigItem(operateMask, region);
98347
- this._reconfigLinkedItem(operateMask, region);
98348
+ const { updateElementsState = true } = this._spec;
98349
+ if (updateElementsState) {
98350
+ this._reconfigItem(operateMask, region);
98351
+ this._reconfigLinkedItem(operateMask, region);
98352
+ }
98348
98353
  }
98349
98354
  _emitEvent(eventType, region) {
98350
98355
  this.event.emit(eventType, {