@visactor/vchart 2.0.1-alpha.3 → 2.0.1-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.
Files changed (52) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +79 -36
  3. package/build/index.js +79 -36
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/chart/base/base-chart.js +2 -8
  7. package/cjs/chart/base/base-chart.js.map +1 -1
  8. package/cjs/compile/compiler.d.ts +1 -0
  9. package/cjs/compile/compiler.js +3 -0
  10. package/cjs/compile/compiler.js.map +1 -1
  11. package/cjs/compile/interface/compilable-item.d.ts +1 -0
  12. package/cjs/compile/interface/compilable-item.js.map +1 -1
  13. package/cjs/component/axis/cartesian/band-axis.d.ts +8 -0
  14. package/cjs/component/axis/cartesian/band-axis.js +9 -0
  15. package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
  16. package/cjs/component/axis/mixin/band-axis-mixin.d.ts +2 -0
  17. package/cjs/component/axis/mixin/band-axis-mixin.js +15 -1
  18. package/cjs/component/axis/mixin/band-axis-mixin.js.map +1 -1
  19. package/cjs/core/index.d.ts +1 -1
  20. package/cjs/core/index.js +1 -1
  21. package/cjs/core/index.js.map +1 -1
  22. package/cjs/core/vchart.js +8 -4
  23. package/cjs/core/vchart.js.map +1 -1
  24. package/cjs/mark/base/base-mark.d.ts +4 -0
  25. package/cjs/mark/base/base-mark.js +31 -17
  26. package/cjs/mark/base/base-mark.js.map +1 -1
  27. package/cjs/mark/interface/common.d.ts +4 -0
  28. package/cjs/mark/interface/common.js.map +1 -1
  29. package/esm/chart/base/base-chart.js +2 -8
  30. package/esm/chart/base/base-chart.js.map +1 -1
  31. package/esm/compile/compiler.d.ts +1 -0
  32. package/esm/compile/compiler.js +3 -0
  33. package/esm/compile/compiler.js.map +1 -1
  34. package/esm/compile/interface/compilable-item.d.ts +1 -0
  35. package/esm/compile/interface/compilable-item.js.map +1 -1
  36. package/esm/component/axis/cartesian/band-axis.d.ts +8 -0
  37. package/esm/component/axis/cartesian/band-axis.js +9 -1
  38. package/esm/component/axis/cartesian/band-axis.js.map +1 -1
  39. package/esm/component/axis/mixin/band-axis-mixin.d.ts +2 -0
  40. package/esm/component/axis/mixin/band-axis-mixin.js +15 -1
  41. package/esm/component/axis/mixin/band-axis-mixin.js.map +1 -1
  42. package/esm/core/index.d.ts +1 -1
  43. package/esm/core/index.js +1 -1
  44. package/esm/core/index.js.map +1 -1
  45. package/esm/core/vchart.js +8 -4
  46. package/esm/core/vchart.js.map +1 -1
  47. package/esm/mark/base/base-mark.d.ts +4 -0
  48. package/esm/mark/base/base-mark.js +30 -17
  49. package/esm/mark/base/base-mark.js.map +1 -1
  50. package/esm/mark/interface/common.d.ts +4 -0
  51. package/esm/mark/interface/common.js.map +1 -1
  52. package/package.json +3 -3
package/build/index.es.js CHANGED
@@ -50243,6 +50243,9 @@ class Compiler {
50243
50243
  this._container = container;
50244
50244
  this._option = option;
50245
50245
  }
50246
+ getChart() {
50247
+ return this._compileChart;
50248
+ }
50246
50249
  getCanvas() {
50247
50250
  var _a;
50248
50251
  return (_a = this._stage) === null || _a === void 0 ? void 0 : _a.window.getNativeHandler().nativeCanvas;
@@ -53280,26 +53283,39 @@ class BaseMark extends GrammarItem {
53280
53283
  }
53281
53284
  setAnimationConfig(config) {
53282
53285
  const defaultPrams = this.type === 'group' ? { selfOnly: true } : {};
53286
+ const formatAnimationCfg = (cfg) => {
53287
+ var _a;
53288
+ const options = (_a = cfg.options) !== null && _a !== void 0 ? _a : {};
53289
+ return Object.assign(Object.assign(Object.assign({}, defaultPrams), cfg), { options: (datum, graphic, customParams) => {
53290
+ var _a, _b;
53291
+ const _options = typeof options === 'function' ? options(datum, graphic, customParams) : options;
53292
+ if (graphic && graphic.context && graphic.context.compiler && isValid$1(graphic.context.modelId)) {
53293
+ const model = (_a = graphic.context.compiler.getChart()) === null || _a === void 0 ? void 0 : _a.getModelById(graphic.context.modelId);
53294
+ return Object.assign(Object.assign({}, _options), { layoutRect: (_b = model === null || model === void 0 ? void 0 : model.getLayoutRect) === null || _b === void 0 ? void 0 : _b.call(model) });
53295
+ }
53296
+ return Object.assign({}, _options);
53297
+ } });
53298
+ };
53283
53299
  const animationConfig = {};
53284
53300
  Object.keys(config).forEach(key => {
53285
53301
  const value = config[key];
53286
53302
  if (isArray$1(value)) {
53287
- animationConfig[key] = value.map(item => {
53288
- var _a;
53289
- const options = (_a = item.options) !== null && _a !== void 0 ? _a : {};
53290
- return Object.assign(Object.assign(Object.assign({}, defaultPrams), item), { options: (...args) => {
53291
- var _a, _b;
53292
- const _options = typeof options === 'function' ? options(...args) : options;
53293
- return Object.assign(Object.assign({}, _options), { layoutRect: (_b = (_a = this.model).getLayoutRect) === null || _b === void 0 ? void 0 : _b.call(_a) });
53294
- } });
53295
- });
53303
+ animationConfig[key] = value.map(formatAnimationCfg);
53296
53304
  }
53297
- else {
53298
- animationConfig[key] = Object.assign(Object.assign({}, defaultPrams), config[key]);
53305
+ else if (isValid$1(value)) {
53306
+ animationConfig[key] = formatAnimationCfg(value);
53299
53307
  }
53300
53308
  });
53301
53309
  this._animationConfig = animationConfig;
53302
53310
  }
53311
+ disableAnimationByState(state) {
53312
+ const states = array(state);
53313
+ this._disabledAnimationStates = [...new Set([...this._disabledAnimationStates, ...states])];
53314
+ }
53315
+ enableAnimationByState(state) {
53316
+ const states = array(state);
53317
+ this._disabledAnimationStates = this._disabledAnimationStates.filter(s => !states.includes(s));
53318
+ }
53303
53319
  setSkipBeforeLayouted(skip) {
53304
53320
  this._skipBeforeLayouted = skip;
53305
53321
  }
@@ -53434,6 +53450,7 @@ class BaseMark extends GrammarItem {
53434
53450
  this._visible = true;
53435
53451
  this.stateStyle = {};
53436
53452
  this._unCompileChannel = {};
53453
+ this._disabledAnimationStates = [];
53437
53454
  this._skipBeforeLayouted = false;
53438
53455
  this._extensionChannel = {};
53439
53456
  this._computeExChannel = {};
@@ -53851,6 +53868,7 @@ class BaseMark extends GrammarItem {
53851
53868
  }
53852
53869
  _getCommonContext() {
53853
53870
  return {
53871
+ compiler: this.getCompiler(),
53854
53872
  markType: this.type,
53855
53873
  markId: this.id,
53856
53874
  modelId: this.model.id,
@@ -54538,7 +54556,10 @@ class BaseMark extends GrammarItem {
54538
54556
  }
54539
54557
  }
54540
54558
  hasAnimationByState(state) {
54541
- if (!state || !this._animationConfig || !this._animationConfig[state]) {
54559
+ if (!state ||
54560
+ !this._animationConfig ||
54561
+ !this._animationConfig[state] ||
54562
+ this._disabledAnimationStates.includes(state)) {
54542
54563
  return false;
54543
54564
  }
54544
54565
  const stateAnimationConfig = this._animationConfig[state];
@@ -55872,7 +55893,7 @@ class VChart {
55872
55893
  return this._beforeRender(option);
55873
55894
  }
55874
55895
  _reCompile(updateResult, morphConfig) {
55875
- var _a, _b, _c, _d, _e;
55896
+ var _a, _b, _c, _d, _e, _f, _g;
55876
55897
  if (updateResult.reMake) {
55877
55898
  this._releaseData();
55878
55899
  this._initDataSet();
@@ -55892,20 +55913,16 @@ class VChart {
55892
55913
  if (updateResult.reMake) {
55893
55914
  (_c = this._compiler) === null || _c === void 0 ? void 0 : _c.releaseGrammar();
55894
55915
  this._userEvents.forEach(e => { var _a; return (_a = this._event) === null || _a === void 0 ? void 0 : _a.on(e.eType, e.query, e.handler); });
55895
- if (updateResult.reSize) {
55896
- this._doResize();
55897
- }
55898
55916
  }
55899
- else {
55900
- if (updateResult.reCompile) {
55901
- (_d = this._compiler) === null || _d === void 0 ? void 0 : _d.clear({ chart: this._chart, vChart: this });
55902
- (_e = this._compiler) === null || _e === void 0 ? void 0 : _e.compile({ chart: this._chart, vChart: this });
55903
- }
55904
- if (updateResult.reSize) {
55905
- const { width, height } = this.getCurrentSize();
55906
- this._chart.onResize(width, height, false);
55907
- this._compiler.resize(width, height, false);
55908
- }
55917
+ else if (updateResult.reCompile) {
55918
+ (_d = this._compiler) === null || _d === void 0 ? void 0 : _d.clear({ chart: this._chart, vChart: this });
55919
+ (_e = this._compiler) === null || _e === void 0 ? void 0 : _e.compile({ chart: this._chart, vChart: this });
55920
+ }
55921
+ if (updateResult.reSize) {
55922
+ const { width, height } = this.getCurrentSize();
55923
+ this._currentSize = { width, height };
55924
+ (_f = this._chart) === null || _f === void 0 ? void 0 : _f.onResize(width, height, false);
55925
+ (_g = this._compiler) === null || _g === void 0 ? void 0 : _g.resize(width, height, false);
55909
55926
  }
55910
55927
  }
55911
55928
  _beforeRender(option = {}) {
@@ -56898,7 +56915,7 @@ const lookup = (data, opt) => {
56898
56915
  });
56899
56916
  };
56900
56917
 
56901
- const version = "2.0.1-alpha.3";
56918
+ const version = "2.0.1-alpha.4";
56902
56919
 
56903
56920
  const addVChartProperty = (data, op) => {
56904
56921
  const context = op.beforeCall();
@@ -63106,6 +63123,24 @@ class BandAxisMixin {
63106
63123
  };
63107
63124
  }
63108
63125
  }
63126
+ _updateData() {
63127
+ var _a, _b, _c;
63128
+ const tickTransformType = this.registerTicksTransform();
63129
+ if (this._spec.showAllGroupLayers && this._scales.length > 1) {
63130
+ const layers = (_a = this._spec.layers) !== null && _a !== void 0 ? _a : [];
63131
+ Object.keys(this._tickDataMap).forEach(layer => {
63132
+ const layerConfig = layers[this._scales.length - 1 - +layer] || {};
63133
+ const tickData = this._tickDataMap[layer];
63134
+ const tickTransform = tickData === null || tickData === void 0 ? void 0 : tickData.getDataView().transformsArr.find((t) => t.type === tickTransformType);
63135
+ tickTransform &&
63136
+ (tickTransform.options = Object.assign(Object.assign({}, this._tickTransformOption()), layerConfig));
63137
+ });
63138
+ }
63139
+ else {
63140
+ const tickTransform = (_c = (_b = this._tickData) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.getDataView().transformsArr.find(t => t.type === tickTransformType);
63141
+ tickTransform && (tickTransform.options = this._tickTransformOption());
63142
+ }
63143
+ }
63109
63144
  dataToPosition(values, cfg = {}) {
63110
63145
  var _a, _b;
63111
63146
  if (values.length === 0 || this._scales.length === 0) {
@@ -63198,7 +63233,7 @@ class BandAxisMixin {
63198
63233
  getLabelItems(length) {
63199
63234
  const labelItems = [];
63200
63235
  let preData = [];
63201
- this._scales.forEach((scale, index) => {
63236
+ (this._spec.showAllGroupLayers ? this._scales : [this._scales[0]]).forEach((scale, index) => {
63202
63237
  var _a;
63203
63238
  const tickData = this._tickDataMap[index];
63204
63239
  const isTickDataHaveData = (_a = tickData === null || tickData === void 0 ? void 0 : tickData.getLatestData()) === null || _a === void 0 ? void 0 : _a.length;
@@ -63380,6 +63415,20 @@ class CartesianBandAxis extends CartesianAxis {
63380
63415
  minBandSize
63381
63416
  };
63382
63417
  }
63418
+ _compareSpec(spec, prevSpec) {
63419
+ const result = super._compareSpec(spec, prevSpec);
63420
+ if (result.reMake) {
63421
+ return result;
63422
+ }
63423
+ if ((prevSpec === null || prevSpec === void 0 ? void 0 : prevSpec.showAllGroupLayers) !== (spec === null || spec === void 0 ? void 0 : spec.showAllGroupLayers) || !isEqual(prevSpec === null || prevSpec === void 0 ? void 0 : prevSpec.layers, spec === null || spec === void 0 ? void 0 : spec.layers)) {
63424
+ result.reMake = true;
63425
+ }
63426
+ return result;
63427
+ }
63428
+ reInit(spec) {
63429
+ super.reInit();
63430
+ this === null || this === void 0 ? void 0 : this._updateData();
63431
+ }
63383
63432
  }
63384
63433
  CartesianBandAxis.type = ComponentTypeEnum.cartesianBandAxis;
63385
63434
  CartesianBandAxis.specKey = 'axes';
@@ -65491,17 +65540,11 @@ class BaseChart extends CompilableBase {
65491
65540
  }
65492
65541
  _enableMarkAnimation(states) {
65493
65542
  const marks = this.getAllMarks();
65494
- marks.forEach(mark => {
65495
- const product = mark.getProduct();
65496
- if (product && product.animate) ;
65497
- });
65543
+ marks.forEach(mark => mark.enableAnimationByState(states));
65498
65544
  }
65499
65545
  _disableMarkAnimation(states) {
65500
65546
  const marks = this.getAllMarks();
65501
- marks.forEach(mark => {
65502
- const product = mark.getProduct();
65503
- if (product && product.animate) ;
65504
- });
65547
+ marks.forEach(mark => mark.disableAnimationByState(states));
65505
65548
  }
65506
65549
  filterGraphicsByDatum(datum, opt = {}) {
65507
65550
  var _a;
package/build/index.js CHANGED
@@ -50249,6 +50249,9 @@
50249
50249
  this._container = container;
50250
50250
  this._option = option;
50251
50251
  }
50252
+ getChart() {
50253
+ return this._compileChart;
50254
+ }
50252
50255
  getCanvas() {
50253
50256
  var _a;
50254
50257
  return (_a = this._stage) === null || _a === void 0 ? void 0 : _a.window.getNativeHandler().nativeCanvas;
@@ -53286,26 +53289,39 @@
53286
53289
  }
53287
53290
  setAnimationConfig(config) {
53288
53291
  const defaultPrams = this.type === 'group' ? { selfOnly: true } : {};
53292
+ const formatAnimationCfg = (cfg) => {
53293
+ var _a;
53294
+ const options = (_a = cfg.options) !== null && _a !== void 0 ? _a : {};
53295
+ return Object.assign(Object.assign(Object.assign({}, defaultPrams), cfg), { options: (datum, graphic, customParams) => {
53296
+ var _a, _b;
53297
+ const _options = typeof options === 'function' ? options(datum, graphic, customParams) : options;
53298
+ if (graphic && graphic.context && graphic.context.compiler && isValid$1(graphic.context.modelId)) {
53299
+ const model = (_a = graphic.context.compiler.getChart()) === null || _a === void 0 ? void 0 : _a.getModelById(graphic.context.modelId);
53300
+ return Object.assign(Object.assign({}, _options), { layoutRect: (_b = model === null || model === void 0 ? void 0 : model.getLayoutRect) === null || _b === void 0 ? void 0 : _b.call(model) });
53301
+ }
53302
+ return Object.assign({}, _options);
53303
+ } });
53304
+ };
53289
53305
  const animationConfig = {};
53290
53306
  Object.keys(config).forEach(key => {
53291
53307
  const value = config[key];
53292
53308
  if (isArray$1(value)) {
53293
- animationConfig[key] = value.map(item => {
53294
- var _a;
53295
- const options = (_a = item.options) !== null && _a !== void 0 ? _a : {};
53296
- return Object.assign(Object.assign(Object.assign({}, defaultPrams), item), { options: (...args) => {
53297
- var _a, _b;
53298
- const _options = typeof options === 'function' ? options(...args) : options;
53299
- return Object.assign(Object.assign({}, _options), { layoutRect: (_b = (_a = this.model).getLayoutRect) === null || _b === void 0 ? void 0 : _b.call(_a) });
53300
- } });
53301
- });
53309
+ animationConfig[key] = value.map(formatAnimationCfg);
53302
53310
  }
53303
- else {
53304
- animationConfig[key] = Object.assign(Object.assign({}, defaultPrams), config[key]);
53311
+ else if (isValid$1(value)) {
53312
+ animationConfig[key] = formatAnimationCfg(value);
53305
53313
  }
53306
53314
  });
53307
53315
  this._animationConfig = animationConfig;
53308
53316
  }
53317
+ disableAnimationByState(state) {
53318
+ const states = array(state);
53319
+ this._disabledAnimationStates = [...new Set([...this._disabledAnimationStates, ...states])];
53320
+ }
53321
+ enableAnimationByState(state) {
53322
+ const states = array(state);
53323
+ this._disabledAnimationStates = this._disabledAnimationStates.filter(s => !states.includes(s));
53324
+ }
53309
53325
  setSkipBeforeLayouted(skip) {
53310
53326
  this._skipBeforeLayouted = skip;
53311
53327
  }
@@ -53440,6 +53456,7 @@
53440
53456
  this._visible = true;
53441
53457
  this.stateStyle = {};
53442
53458
  this._unCompileChannel = {};
53459
+ this._disabledAnimationStates = [];
53443
53460
  this._skipBeforeLayouted = false;
53444
53461
  this._extensionChannel = {};
53445
53462
  this._computeExChannel = {};
@@ -53857,6 +53874,7 @@
53857
53874
  }
53858
53875
  _getCommonContext() {
53859
53876
  return {
53877
+ compiler: this.getCompiler(),
53860
53878
  markType: this.type,
53861
53879
  markId: this.id,
53862
53880
  modelId: this.model.id,
@@ -54544,7 +54562,10 @@
54544
54562
  }
54545
54563
  }
54546
54564
  hasAnimationByState(state) {
54547
- if (!state || !this._animationConfig || !this._animationConfig[state]) {
54565
+ if (!state ||
54566
+ !this._animationConfig ||
54567
+ !this._animationConfig[state] ||
54568
+ this._disabledAnimationStates.includes(state)) {
54548
54569
  return false;
54549
54570
  }
54550
54571
  const stateAnimationConfig = this._animationConfig[state];
@@ -55878,7 +55899,7 @@
55878
55899
  return this._beforeRender(option);
55879
55900
  }
55880
55901
  _reCompile(updateResult, morphConfig) {
55881
- var _a, _b, _c, _d, _e;
55902
+ var _a, _b, _c, _d, _e, _f, _g;
55882
55903
  if (updateResult.reMake) {
55883
55904
  this._releaseData();
55884
55905
  this._initDataSet();
@@ -55898,20 +55919,16 @@
55898
55919
  if (updateResult.reMake) {
55899
55920
  (_c = this._compiler) === null || _c === void 0 ? void 0 : _c.releaseGrammar();
55900
55921
  this._userEvents.forEach(e => { var _a; return (_a = this._event) === null || _a === void 0 ? void 0 : _a.on(e.eType, e.query, e.handler); });
55901
- if (updateResult.reSize) {
55902
- this._doResize();
55903
- }
55904
55922
  }
55905
- else {
55906
- if (updateResult.reCompile) {
55907
- (_d = this._compiler) === null || _d === void 0 ? void 0 : _d.clear({ chart: this._chart, vChart: this });
55908
- (_e = this._compiler) === null || _e === void 0 ? void 0 : _e.compile({ chart: this._chart, vChart: this });
55909
- }
55910
- if (updateResult.reSize) {
55911
- const { width, height } = this.getCurrentSize();
55912
- this._chart.onResize(width, height, false);
55913
- this._compiler.resize(width, height, false);
55914
- }
55923
+ else if (updateResult.reCompile) {
55924
+ (_d = this._compiler) === null || _d === void 0 ? void 0 : _d.clear({ chart: this._chart, vChart: this });
55925
+ (_e = this._compiler) === null || _e === void 0 ? void 0 : _e.compile({ chart: this._chart, vChart: this });
55926
+ }
55927
+ if (updateResult.reSize) {
55928
+ const { width, height } = this.getCurrentSize();
55929
+ this._currentSize = { width, height };
55930
+ (_f = this._chart) === null || _f === void 0 ? void 0 : _f.onResize(width, height, false);
55931
+ (_g = this._compiler) === null || _g === void 0 ? void 0 : _g.resize(width, height, false);
55915
55932
  }
55916
55933
  }
55917
55934
  _beforeRender(option = {}) {
@@ -56904,7 +56921,7 @@
56904
56921
  });
56905
56922
  };
56906
56923
 
56907
- const version = "2.0.1-alpha.3";
56924
+ const version = "2.0.1-alpha.4";
56908
56925
 
56909
56926
  const addVChartProperty = (data, op) => {
56910
56927
  const context = op.beforeCall();
@@ -63112,6 +63129,24 @@
63112
63129
  };
63113
63130
  }
63114
63131
  }
63132
+ _updateData() {
63133
+ var _a, _b, _c;
63134
+ const tickTransformType = this.registerTicksTransform();
63135
+ if (this._spec.showAllGroupLayers && this._scales.length > 1) {
63136
+ const layers = (_a = this._spec.layers) !== null && _a !== void 0 ? _a : [];
63137
+ Object.keys(this._tickDataMap).forEach(layer => {
63138
+ const layerConfig = layers[this._scales.length - 1 - +layer] || {};
63139
+ const tickData = this._tickDataMap[layer];
63140
+ const tickTransform = tickData === null || tickData === void 0 ? void 0 : tickData.getDataView().transformsArr.find((t) => t.type === tickTransformType);
63141
+ tickTransform &&
63142
+ (tickTransform.options = Object.assign(Object.assign({}, this._tickTransformOption()), layerConfig));
63143
+ });
63144
+ }
63145
+ else {
63146
+ const tickTransform = (_c = (_b = this._tickData) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.getDataView().transformsArr.find(t => t.type === tickTransformType);
63147
+ tickTransform && (tickTransform.options = this._tickTransformOption());
63148
+ }
63149
+ }
63115
63150
  dataToPosition(values, cfg = {}) {
63116
63151
  var _a, _b;
63117
63152
  if (values.length === 0 || this._scales.length === 0) {
@@ -63204,7 +63239,7 @@
63204
63239
  getLabelItems(length) {
63205
63240
  const labelItems = [];
63206
63241
  let preData = [];
63207
- this._scales.forEach((scale, index) => {
63242
+ (this._spec.showAllGroupLayers ? this._scales : [this._scales[0]]).forEach((scale, index) => {
63208
63243
  var _a;
63209
63244
  const tickData = this._tickDataMap[index];
63210
63245
  const isTickDataHaveData = (_a = tickData === null || tickData === void 0 ? void 0 : tickData.getLatestData()) === null || _a === void 0 ? void 0 : _a.length;
@@ -63386,6 +63421,20 @@
63386
63421
  minBandSize
63387
63422
  };
63388
63423
  }
63424
+ _compareSpec(spec, prevSpec) {
63425
+ const result = super._compareSpec(spec, prevSpec);
63426
+ if (result.reMake) {
63427
+ return result;
63428
+ }
63429
+ if ((prevSpec === null || prevSpec === void 0 ? void 0 : prevSpec.showAllGroupLayers) !== (spec === null || spec === void 0 ? void 0 : spec.showAllGroupLayers) || !isEqual(prevSpec === null || prevSpec === void 0 ? void 0 : prevSpec.layers, spec === null || spec === void 0 ? void 0 : spec.layers)) {
63430
+ result.reMake = true;
63431
+ }
63432
+ return result;
63433
+ }
63434
+ reInit(spec) {
63435
+ super.reInit();
63436
+ this === null || this === void 0 ? void 0 : this._updateData();
63437
+ }
63389
63438
  }
63390
63439
  CartesianBandAxis.type = ComponentTypeEnum.cartesianBandAxis;
63391
63440
  CartesianBandAxis.specKey = 'axes';
@@ -65497,17 +65546,11 @@
65497
65546
  }
65498
65547
  _enableMarkAnimation(states) {
65499
65548
  const marks = this.getAllMarks();
65500
- marks.forEach(mark => {
65501
- const product = mark.getProduct();
65502
- if (product && product.animate) ;
65503
- });
65549
+ marks.forEach(mark => mark.enableAnimationByState(states));
65504
65550
  }
65505
65551
  _disableMarkAnimation(states) {
65506
65552
  const marks = this.getAllMarks();
65507
- marks.forEach(mark => {
65508
- const product = mark.getProduct();
65509
- if (product && product.animate) ;
65510
- });
65553
+ marks.forEach(mark => mark.disableAnimationByState(states));
65511
65554
  }
65512
65555
  filterGraphicsByDatum(datum, opt = {}) {
65513
65556
  var _a;