@visactor/vchart 2.0.1-alpha.1 → 2.0.1-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.
Files changed (86) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +111 -52
  3. package/build/index.js +111 -52
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/index.js +2 -1
  7. package/cjs/animation/interface.js +1 -2
  8. package/cjs/component/player/player.js +2 -1
  9. package/cjs/component/player/player.js.map +1 -1
  10. package/cjs/component/tooltip/tooltip.js +2 -1
  11. package/cjs/component/tooltip/tooltip.js.map +1 -1
  12. package/cjs/component/util.js +2 -1
  13. package/cjs/constant/attribute.js +1 -2
  14. package/cjs/constant/sunburst.js +2 -1
  15. package/cjs/constant/waterfall.js +1 -2
  16. package/cjs/core/index.d.ts +1 -1
  17. package/cjs/core/index.js +1 -1
  18. package/cjs/core/index.js.map +1 -1
  19. package/cjs/core/instance-manager.js +1 -1
  20. package/cjs/core/interface.js +1 -1
  21. package/cjs/core/util.js +1 -1
  22. package/cjs/core/vchart.d.ts +1 -0
  23. package/cjs/core/vchart.js +21 -5
  24. package/cjs/core/vchart.js.map +1 -1
  25. package/cjs/data/initialize.js +1 -1
  26. package/cjs/data/register.js +1 -1
  27. package/cjs/mark/base/base-mark.d.ts +0 -2
  28. package/cjs/mark/base/base-mark.js +8 -6
  29. package/cjs/mark/base/base-mark.js.map +1 -1
  30. package/cjs/mark/group.d.ts +3 -2
  31. package/cjs/mark/group.js +7 -9
  32. package/cjs/mark/group.js.map +1 -1
  33. package/cjs/mark/interface/common.d.ts +0 -1
  34. package/cjs/mark/interface/common.js.map +1 -1
  35. package/cjs/model/base-model.d.ts +4 -1
  36. package/cjs/model/base-model.js +6 -0
  37. package/cjs/model/base-model.js.map +1 -1
  38. package/cjs/model/interface.d.ts +3 -1
  39. package/cjs/model/interface.js.map +1 -1
  40. package/cjs/plugin/components/tooltip-handler/utils/style.js +4 -4
  41. package/cjs/plugin/components/tooltip-handler/utils/style.js.map +1 -1
  42. package/cjs/region/region.js.map +1 -1
  43. package/esm/animation/index.js +2 -1
  44. package/esm/animation/interface.js +1 -2
  45. package/esm/component/player/player.js +2 -1
  46. package/esm/component/player/player.js.map +1 -1
  47. package/esm/component/tooltip/tooltip.js +2 -1
  48. package/esm/component/tooltip/tooltip.js.map +1 -1
  49. package/esm/component/util.js +2 -1
  50. package/esm/constant/attribute.js +1 -2
  51. package/esm/constant/sunburst.js +2 -1
  52. package/esm/constant/waterfall.js +1 -2
  53. package/esm/core/index.d.ts +1 -1
  54. package/esm/core/index.js +1 -1
  55. package/esm/core/index.js.map +1 -1
  56. package/esm/core/instance-manager.js +1 -1
  57. package/esm/core/interface.js +1 -1
  58. package/esm/core/util.js +1 -1
  59. package/esm/core/vchart.d.ts +1 -0
  60. package/esm/core/vchart.js +21 -5
  61. package/esm/core/vchart.js.map +1 -1
  62. package/esm/data/initialize.js +1 -1
  63. package/esm/data/register.js +1 -1
  64. package/esm/mark/base/base-mark.d.ts +0 -2
  65. package/esm/mark/base/base-mark.js +8 -6
  66. package/esm/mark/base/base-mark.js.map +1 -1
  67. package/esm/mark/group.d.ts +3 -2
  68. package/esm/mark/group.js +7 -9
  69. package/esm/mark/group.js.map +1 -1
  70. package/esm/mark/interface/common.d.ts +0 -1
  71. package/esm/mark/interface/common.js.map +1 -1
  72. package/esm/model/base-model.d.ts +4 -1
  73. package/esm/model/base-model.js +6 -0
  74. package/esm/model/base-model.js.map +1 -1
  75. package/esm/model/interface.d.ts +3 -1
  76. package/esm/model/interface.js.map +1 -1
  77. package/esm/plugin/components/tooltip-handler/utils/style.js +5 -4
  78. package/esm/plugin/components/tooltip-handler/utils/style.js.map +1 -1
  79. package/esm/region/region.js.map +1 -1
  80. package/package.json +8 -8
  81. package/cjs/animation/animate-manager.d.ts +0 -1
  82. package/cjs/animation/animate-manager.js +0 -2
  83. package/cjs/animation/animate-manager.js.map +0 -1
  84. package/esm/animation/animate-manager.d.ts +0 -1
  85. package/esm/animation/animate-manager.js +0 -2
  86. package/esm/animation/animate-manager.js.map +0 -1
package/build/index.js CHANGED
@@ -14739,7 +14739,7 @@
14739
14739
  }
14740
14740
  removeChild(child) {
14741
14741
  const data = super.removeChild(child);
14742
- return child.stage = null, this.getGraphicService().onRemove(child), this.addUpdateBoundTag(), data;
14742
+ return this.getGraphicService().onRemove(child), child.stage = null, this.addUpdateBoundTag(), data;
14743
14743
  }
14744
14744
  removeAllChild(deep = !1) {
14745
14745
  this.forEachChildren(child => {
@@ -22121,7 +22121,7 @@
22121
22121
  return this._cursor;
22122
22122
  }
22123
22123
  eventPointTransform(e) {
22124
- const point = this.global.mapToCanvasPoint(e, this.window.getContext().canvas.nativeCanvas);
22124
+ const point = this.global.mapToCanvasPoint(e, this.window);
22125
22125
  return this.stage.window.pointTransform(point.x, point.y);
22126
22126
  }
22127
22127
  pauseTriggerEvent() {
@@ -32124,7 +32124,8 @@
32124
32124
  this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
32125
32125
  }
32126
32126
  checkSkip(delta) {
32127
- if ("performance" === this.stage.params.optimize.tickRenderMode) return !1;
32127
+ var _a, _b, _c;
32128
+ if ("performance" === (null === (_c = null === (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.params) || void 0 === _b ? void 0 : _b.optimize) || void 0 === _c ? void 0 : _c.tickRenderMode)) return !1;
32128
32129
  return delta < this.interval + 2 * (Math.random() - .5) * this._jitter;
32129
32130
  }
32130
32131
  }
@@ -32644,6 +32645,11 @@
32644
32645
  state.executor.stop();
32645
32646
  }), this.stateList = null;
32646
32647
  }
32648
+ reApplyState(state) {
32649
+ var _a;
32650
+ const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
32651
+ stateInfo && (stateInfo.executor.stop(), stateInfo.executor.execute(stateInfo.animationConfig));
32652
+ }
32647
32653
  }
32648
32654
 
32649
32655
  class GraphicStateExtension {
@@ -32674,12 +32680,19 @@
32674
32680
  applyUnhighlightState(animationConfig, callback) {
32675
32681
  return this._getAnimationStateManager(this).applyUnhighlightState(animationConfig, callback), this;
32676
32682
  }
32677
- stopAnimationState(state, type) {
32678
- return this._getAnimationStateManager(this).stopState(state, type), this;
32683
+ stopAnimationState(state, type, deep = !1) {
32684
+ return this._getAnimationStateManager(this).stopState(state, type), deep && this.isContainer && this.forEachChildren(child => {
32685
+ child.stopAnimationState(state, type, deep);
32686
+ }), this;
32679
32687
  }
32680
32688
  clearAnimationStates() {
32681
32689
  return this._getAnimationStateManager(this).clearState(), this;
32682
32690
  }
32691
+ reApplyAnimationState(state, deep = !1) {
32692
+ return this._getAnimationStateManager(this).reApplyState(state), deep && this.isContainer && this.forEachChildren(child => {
32693
+ child.reApplyAnimationState(state, deep);
32694
+ }), this;
32695
+ }
32683
32696
  static extend(graphic) {
32684
32697
  return new GraphicStateExtension()._getAnimationStateManager(graphic), graphic;
32685
32698
  }
@@ -32731,6 +32744,21 @@
32731
32744
  getGraphicAttribute(key, prev = !1) {
32732
32745
  return !prev && this.finalAttribute ? this.finalAttribute[key] : this.attribute[key];
32733
32746
  }
32747
+ pauseAnimation(deep = !1) {
32748
+ this.animates && this.animates.forEach(animate => animate.pause()), deep && this.isContainer && this.forEachChildren(child => {
32749
+ child.pauseAnimation(deep);
32750
+ });
32751
+ }
32752
+ resumeAnimation(deep = !1) {
32753
+ this.animates && this.animates.forEach(animate => animate.resume()), deep && this.isContainer && this.forEachChildren(child => {
32754
+ child.resumeAnimation(deep);
32755
+ });
32756
+ }
32757
+ stopAnimation(deep = !1) {
32758
+ this.animates && this.animates.forEach(animate => animate.stop()), deep && this.isContainer && this.forEachChildren(child => {
32759
+ child.stopAnimation(deep);
32760
+ });
32761
+ }
32734
32762
  }
32735
32763
 
32736
32764
  function registerAnimate$1() {
@@ -33811,7 +33839,7 @@
33811
33839
  super(from, to, duration, easing, params);
33812
33840
  }
33813
33841
  onBind() {
33814
- var _a, _b;
33842
+ var _a, _b, _c;
33815
33843
  super.onBind();
33816
33844
  const {
33817
33845
  from: from,
@@ -33820,7 +33848,7 @@
33820
33848
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
33821
33849
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
33822
33850
  const finalAttribute = this.target.getFinalAttribute();
33823
- finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
33851
+ finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
33824
33852
  }
33825
33853
  onEnd(cb) {
33826
33854
  super.onEnd(cb);
@@ -33918,7 +33946,7 @@
33918
33946
  super(from, to, duration, easing, params);
33919
33947
  }
33920
33948
  onBind() {
33921
- var _a, _b;
33949
+ var _a, _b, _c;
33922
33950
  super.onBind();
33923
33951
  const {
33924
33952
  from: from,
@@ -33927,7 +33955,7 @@
33927
33955
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
33928
33956
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
33929
33957
  const finalAttribute = this.target.getFinalAttribute();
33930
- finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
33958
+ finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
33931
33959
  }
33932
33960
  onEnd(cb) {
33933
33961
  super.onEnd(cb);
@@ -35778,16 +35806,15 @@
35778
35806
  changedY = 0;
35779
35807
  "negative" === orient && (changedX = null !== (_a = layoutRect.width) && void 0 !== _a ? _a : graphic.stage.viewWidth, changedY = null !== (_b = layoutRect.height) && void 0 !== _b ? _b : graphic.stage.viewHeight), changedX += offset, changedY += offset;
35780
35808
  const point = isFunction$1(pointOpt) ? pointOpt.call(null, null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, animationParameters) : pointOpt,
35781
- fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
35782
- fromY = point && isValidNumber$1(point.y) ? point.y : changedY,
35783
- finalAttrs = graphic.getFinalAttribute(),
35784
- finalAttrsX = excludeChannels.includes("x") ? graphic.attribute.x : finalAttrs.x,
35785
- finalAttrsY = excludeChannels.includes("y") ? graphic.attribute.y : finalAttrs.y;
35809
+ finalAttrsX = graphic.getGraphicAttribute("x"),
35810
+ finalAttrsY = graphic.getGraphicAttribute("y"),
35811
+ fromX = excludeChannels.includes("x") ? finalAttrsX : point && isValidNumber$1(point.x) ? point.x : changedX,
35812
+ fromY = excludeChannels.includes("y") ? finalAttrsY : point && isValidNumber$1(point.y) ? point.y : changedY;
35786
35813
  switch (direction) {
35787
35814
  case "x":
35788
35815
  return {
35789
35816
  from: {
35790
- x: fromX
35817
+ x: excludeChannels.includes("x") ? finalAttrsX : fromX
35791
35818
  },
35792
35819
  to: {
35793
35820
  x: finalAttrsX
@@ -35835,7 +35862,7 @@
35835
35862
  case "x":
35836
35863
  return {
35837
35864
  from: {
35838
- x: graphic.attribute.x
35865
+ x: graphic.getGraphicAttribute("x")
35839
35866
  },
35840
35867
  to: {
35841
35868
  x: fromX
@@ -35844,7 +35871,7 @@
35844
35871
  case "y":
35845
35872
  return {
35846
35873
  from: {
35847
- y: graphic.attribute.y
35874
+ y: graphic.getGraphicAttribute("y")
35848
35875
  },
35849
35876
  to: {
35850
35877
  y: fromY
@@ -35853,8 +35880,8 @@
35853
35880
  default:
35854
35881
  return {
35855
35882
  from: {
35856
- x: graphic.attribute.x,
35857
- y: graphic.attribute.y
35883
+ x: graphic.getGraphicAttribute("x"),
35884
+ y: graphic.getGraphicAttribute("y")
35858
35885
  },
35859
35886
  to: {
35860
35887
  x: fromX,
@@ -38785,7 +38812,8 @@
38785
38812
  prevText: prevText,
38786
38813
  curText: curText,
38787
38814
  prevLabelLine: prevLabelLine,
38788
- curLabelLine: curLabelLine
38815
+ curLabelLine: curLabelLine,
38816
+ increaseEffect = !0
38789
38817
  } = this.params,
38790
38818
  diff = {};
38791
38819
  for (const key in curText.attribute) prevText.attribute[key] !== curText.attribute[key] && (diff[key] = curText.attribute[key]);
@@ -38795,7 +38823,7 @@
38795
38823
  to: rest,
38796
38824
  duration: duration,
38797
38825
  easing: easing
38798
- }), animator.animate(prevText, {
38826
+ }), !1 !== increaseEffect && animator.animate(prevText, {
38799
38827
  type: "increaseCount",
38800
38828
  to: {
38801
38829
  text: curText.attribute.text
@@ -39489,16 +39517,15 @@
39489
39517
  } = currentLabel;
39490
39518
  prevText.applyAnimationState(["update"], [{
39491
39519
  name: "update",
39492
- animation: Object.assign(Object.assign({
39493
- type: "labelUpdate"
39494
- }, this._animationConfig.update), {
39495
- customParameters: {
39520
+ animation: {
39521
+ type: "labelUpdate",
39522
+ customParameters: Object.assign(Object.assign({}, this._animationConfig.update), {
39496
39523
  prevText: prevText,
39497
39524
  curText: curText,
39498
39525
  prevLabelLine: prevLabelLine,
39499
39526
  curLabelLine: curLabelLine
39500
- }
39501
- })
39527
+ })
39528
+ }
39502
39529
  }]);
39503
39530
  }
39504
39531
  _syncStateWithRelatedGraphic(relatedGraphic) {
@@ -51230,6 +51257,12 @@
51230
51257
  }
51231
51258
  return index;
51232
51259
  }
51260
+ updateAnimateStateCallback(callback) {
51261
+ this._aniamtionStateCallback = callback;
51262
+ }
51263
+ getAnimationStateCallback() {
51264
+ return this._aniamtionStateCallback;
51265
+ }
51233
51266
  }
51234
51267
 
51235
51268
  class LayoutItem {
@@ -53903,7 +53936,7 @@
53903
53936
  config = config.length === 1 ? config[0] : config;
53904
53937
  }
53905
53938
  if (Array.isArray(config)) {
53906
- config = config.map((item, index) => {
53939
+ return config.map((item, index) => {
53907
53940
  var _a;
53908
53941
  return (Object.assign(Object.assign({}, item), { priority: (_a = item.priority) !== null && _a !== void 0 ? _a : Infinity }));
53909
53942
  });
@@ -53994,7 +54027,20 @@
53994
54027
  }
53995
54028
  }
53996
54029
  _setAnimationState(g) {
53997
- const customizedState = this._aniamtionStateCallback ? this._aniamtionStateCallback(g) : undefined;
54030
+ var _a, _b, _c;
54031
+ const callback = (this.type === "component"
54032
+ ? this.model.getAnimationStateCallback()
54033
+ : (_c = (_b = (_a = this.model).getRegion) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.getAnimationStateCallback()) ||
54034
+ ((g) => {
54035
+ var _a;
54036
+ const diffState = (_a = g.context) === null || _a === void 0 ? void 0 : _a.diffState;
54037
+ return diffState === AnimationStateEnum.exit
54038
+ ? AnimationStateEnum.exit
54039
+ : diffState === AnimationStateEnum.update
54040
+ ? AnimationStateEnum.update
54041
+ : AnimationStateEnum.appear;
54042
+ });
54043
+ const customizedState = callback(g);
53998
54044
  g.context.animationState = customizedState !== null && customizedState !== void 0 ? customizedState : g.context.diffState;
53999
54045
  if (g.context.animationState === DiffState.exit) {
54000
54046
  g.context.reusing = true;
@@ -54497,9 +54543,6 @@
54497
54543
  this._runProgressiveStep();
54498
54544
  }
54499
54545
  }
54500
- updateAnimationState(callback) {
54501
- this._aniamtionStateCallback = callback;
54502
- }
54503
54546
  hasAnimationByState(state) {
54504
54547
  if (!state || !this._animationConfig || !this._animationConfig[state]) {
54505
54548
  return false;
@@ -54547,6 +54590,7 @@
54547
54590
  super(...arguments);
54548
54591
  this.type = GroupMark.type;
54549
54592
  this._marks = [];
54593
+ this._diffState = DiffState.enter;
54550
54594
  }
54551
54595
  getMarks() {
54552
54596
  return this._marks;
@@ -54604,13 +54648,12 @@
54604
54648
  return [this._product];
54605
54649
  }
54606
54650
  renderInner() {
54607
- var _a, _b;
54651
+ var _a;
54608
54652
  if (!this._product) {
54609
54653
  return;
54610
54654
  }
54611
54655
  const style = (_a = this._simpleStyle) !== null && _a !== void 0 ? _a : this.getAttributesOfState({});
54612
- const prevState = (_b = this._product.context) === null || _b === void 0 ? void 0 : _b.diffState;
54613
- this._product.context = Object.assign(Object.assign(Object.assign({}, this._product.context), this._getCommonContext()), { diffState: prevState ? DiffState.update : DiffState.enter });
54656
+ this._product.context = Object.assign(Object.assign(Object.assign({}, this._product.context), this._getCommonContext()), { diffState: this._diffState });
54614
54657
  this._setAnimationState(this._product);
54615
54658
  const newAttrs = this._getAttrsFromConfig(style);
54616
54659
  if (this._product.context.diffState === DiffState.update) {
@@ -54629,6 +54672,9 @@
54629
54672
  }
54630
54673
  this.needClear = true;
54631
54674
  }
54675
+ clearExitGraphics() {
54676
+ this._diffState = DiffState.update;
54677
+ }
54632
54678
  render() {
54633
54679
  if (this._isCommited) {
54634
54680
  log(`render mark: ${this.getProductId()}, type is ${this.type}`);
@@ -54639,12 +54685,6 @@
54639
54685
  mark.render();
54640
54686
  });
54641
54687
  }
54642
- updateAnimationState(callback) {
54643
- super.updateAnimationState(callback);
54644
- this.getMarks().forEach(mark => {
54645
- mark.updateAnimationState(callback);
54646
- });
54647
- }
54648
54688
  release() {
54649
54689
  super.release();
54650
54690
  this.removeProduct();
@@ -55930,6 +55970,7 @@
55930
55970
  });
55931
55971
  }
55932
55972
  _updateAnimateState(initial) {
55973
+ var _a, _b;
55933
55974
  if (this._option.animation) {
55934
55975
  const updateGraphicAnimationState = (graphic) => {
55935
55976
  var _a;
@@ -55939,8 +55980,11 @@
55939
55980
  }
55940
55981
  return diffState;
55941
55982
  };
55942
- this._compiler.getRootMarks().forEach(mark => {
55943
- mark.updateAnimationState(updateGraphicAnimationState);
55983
+ (_a = this._chart) === null || _a === void 0 ? void 0 : _a.getAllRegions().forEach(region => {
55984
+ region.updateAnimateStateCallback(updateGraphicAnimationState);
55985
+ });
55986
+ (_b = this._chart) === null || _b === void 0 ? void 0 : _b.getAllComponents().forEach(component => {
55987
+ component.updateAnimateStateCallback(updateGraphicAnimationState);
55944
55988
  });
55945
55989
  }
55946
55990
  }
@@ -56563,10 +56607,20 @@
56563
56607
  return (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setDimensionIndex(value, opt);
56564
56608
  }
56565
56609
  stopAnimation() {
56610
+ var _a;
56611
+ (_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.stopAnimation(true);
56612
+ }
56613
+ reRunNormalAnimation() {
56614
+ var _a;
56615
+ (_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.reApplyAnimationState('normal', true);
56566
56616
  }
56567
56617
  pauseAnimation() {
56618
+ var _a;
56619
+ (_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.pauseAnimation(true);
56568
56620
  }
56569
56621
  resumeAnimation() {
56622
+ var _a;
56623
+ (_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.resumeAnimation(true);
56570
56624
  }
56571
56625
  convertDatumToPosition(datum, dataLinkInfo = {}, isRelativeToCanvas = false, checkInViewData) {
56572
56626
  var _a;
@@ -56850,7 +56904,7 @@
56850
56904
  });
56851
56905
  };
56852
56906
 
56853
- const version = "2.0.1-alpha.1";
56907
+ const version = "2.0.1-alpha.3";
56854
56908
 
56855
56909
  const addVChartProperty = (data, op) => {
56856
56910
  const context = op.beforeCall();
@@ -89942,7 +89996,10 @@
89942
89996
  const activeType = this._spec.activeType;
89943
89997
  this.processor = {};
89944
89998
  activeType.forEach(type => {
89945
- this.processor[type] = Factory.createTooltipProcessor(type, this);
89999
+ const instance = Factory.createTooltipProcessor(type, this);
90000
+ if (instance) {
90001
+ this.processor[type] = instance;
90002
+ }
89946
90003
  });
89947
90004
  }
89948
90005
  _initEvent() {
@@ -95081,6 +95138,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
95081
95138
  this._option.globalInstance.on(exports.ChartEvent.rendered, () => {
95082
95139
  var _a;
95083
95140
  if ((_a = this._spec) === null || _a === void 0 ? void 0 : _a.auto) {
95141
+ this._playerComponent.pause();
95084
95142
  this._playerComponent.play();
95085
95143
  }
95086
95144
  });
@@ -97794,14 +97852,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97794
97852
  const marginKey = align === 'right' ? 'marginLeft' : 'marginRight';
97795
97853
  if (align === 'right') {
97796
97854
  panelStyle.direction = 'rtl';
97797
- titleStyle.textAlign = 'right';
97798
- keyStyle.textAlign = 'right';
97799
- valueStyle.textAlign = 'left';
97800
97855
  }
97801
- else {
97802
- titleStyle.textAlign = 'left';
97803
- keyStyle.textAlign = 'left';
97804
- valueStyle.textAlign = 'right';
97856
+ if (isNil$1(titleStyle.textAlign)) {
97857
+ titleStyle.textAlign = align === 'right' ? 'right' : 'left';
97858
+ }
97859
+ if (isNil$1(keyStyle.textAlign)) {
97860
+ keyStyle.textAlign = align === 'right' ? 'right' : 'left';
97861
+ }
97862
+ if (isNil$1(valueStyle.textAlign)) {
97863
+ valueStyle.textAlign = align === 'right' ? 'left' : 'right';
97805
97864
  }
97806
97865
  shapeStyle[marginKey] = getPixelPropertyStr((_b = shape.spacing) !== null && _b !== void 0 ? _b : DEFAULT_SHAPE_SPACING);
97807
97866
  keyStyle[marginKey] = getPixelPropertyStr((_c = keyLabel.spacing) !== null && _c !== void 0 ? _c : DEFAULT_KEY_SPACING);