@visactor/vrender-components 0.17.8-alpha.0 → 0.17.8

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 (103) hide show
  1. package/cjs/axis/animate/group-transition.js +6 -3
  2. package/cjs/axis/animate/group-transition.js.map +1 -1
  3. package/cjs/axis/base.js +7 -7
  4. package/cjs/axis/base.js.map +1 -1
  5. package/cjs/axis/circle.js +12 -12
  6. package/cjs/axis/circle.js.map +1 -1
  7. package/cjs/axis/line.js +11 -11
  8. package/cjs/axis/line.js.map +1 -1
  9. package/cjs/brush/brush.js +6 -7
  10. package/cjs/brush/brush.js.map +1 -1
  11. package/cjs/data-zoom/data-zoom.js +56 -49
  12. package/cjs/data-zoom/data-zoom.js.map +1 -1
  13. package/cjs/index.d.ts +1 -1
  14. package/cjs/index.js +1 -1
  15. package/cjs/index.js.map +1 -1
  16. package/cjs/indicator/indicator.js +3 -3
  17. package/cjs/indicator/indicator.js.map +1 -1
  18. package/cjs/label/arc.js +3 -1
  19. package/cjs/label/arc.js.map +1 -1
  20. package/cjs/label/base.d.ts +1 -1
  21. package/cjs/label/base.js +14 -15
  22. package/cjs/label/base.js.map +1 -1
  23. package/cjs/label/type.d.ts +3 -3
  24. package/cjs/label/type.js.map +1 -1
  25. package/cjs/legend/discrete/discrete.js +8 -9
  26. package/cjs/legend/discrete/discrete.js.map +1 -1
  27. package/cjs/marker/area.js +4 -5
  28. package/cjs/marker/area.js.map +1 -1
  29. package/cjs/marker/base.js +8 -8
  30. package/cjs/marker/base.js.map +1 -1
  31. package/cjs/marker/line.js +3 -4
  32. package/cjs/marker/line.js.map +1 -1
  33. package/cjs/marker/point.js +39 -38
  34. package/cjs/marker/point.js.map +1 -1
  35. package/cjs/player/base-player.js +7 -10
  36. package/cjs/player/base-player.js.map +1 -1
  37. package/cjs/player/controller/controller.js +4 -4
  38. package/cjs/player/controller/controller.js.map +1 -1
  39. package/cjs/scrollbar/scrollbar.js +11 -7
  40. package/cjs/scrollbar/scrollbar.js.map +1 -1
  41. package/cjs/segment/segment.js +6 -6
  42. package/cjs/segment/segment.js.map +1 -1
  43. package/cjs/slider/slider.js +13 -13
  44. package/cjs/slider/slider.js.map +1 -1
  45. package/cjs/tag/tag.js +1 -1
  46. package/cjs/tag/tag.js.map +1 -1
  47. package/cjs/title/title.js +77 -77
  48. package/cjs/title/title.js.map +1 -1
  49. package/cjs/tooltip/tooltip.js +2 -2
  50. package/cjs/tooltip/tooltip.js.map +1 -1
  51. package/dist/index.js +566 -475
  52. package/dist/index.min.js +1 -1
  53. package/es/axis/animate/group-transition.js +5 -3
  54. package/es/axis/animate/group-transition.js.map +1 -1
  55. package/es/axis/base.js +7 -7
  56. package/es/axis/base.js.map +1 -1
  57. package/es/axis/circle.js +11 -11
  58. package/es/axis/circle.js.map +1 -1
  59. package/es/axis/line.js +11 -11
  60. package/es/axis/line.js.map +1 -1
  61. package/es/brush/brush.js +6 -7
  62. package/es/brush/brush.js.map +1 -1
  63. package/es/data-zoom/data-zoom.js +56 -49
  64. package/es/data-zoom/data-zoom.js.map +1 -1
  65. package/es/index.d.ts +1 -1
  66. package/es/index.js +1 -1
  67. package/es/index.js.map +1 -1
  68. package/es/indicator/indicator.js +3 -3
  69. package/es/indicator/indicator.js.map +1 -1
  70. package/es/label/arc.js +1 -1
  71. package/es/label/arc.js.map +1 -1
  72. package/es/label/base.d.ts +1 -1
  73. package/es/label/base.js +14 -15
  74. package/es/label/base.js.map +1 -1
  75. package/es/label/type.d.ts +3 -3
  76. package/es/label/type.js.map +1 -1
  77. package/es/legend/discrete/discrete.js +8 -9
  78. package/es/legend/discrete/discrete.js.map +1 -1
  79. package/es/marker/area.js +4 -5
  80. package/es/marker/area.js.map +1 -1
  81. package/es/marker/base.js +8 -8
  82. package/es/marker/base.js.map +1 -1
  83. package/es/marker/line.js +3 -4
  84. package/es/marker/line.js.map +1 -1
  85. package/es/marker/point.js +39 -38
  86. package/es/marker/point.js.map +1 -1
  87. package/es/player/base-player.js +7 -10
  88. package/es/player/base-player.js.map +1 -1
  89. package/es/player/controller/controller.js +4 -4
  90. package/es/player/controller/controller.js.map +1 -1
  91. package/es/scrollbar/scrollbar.js +11 -7
  92. package/es/scrollbar/scrollbar.js.map +1 -1
  93. package/es/segment/segment.js +6 -6
  94. package/es/segment/segment.js.map +1 -1
  95. package/es/slider/slider.js +13 -13
  96. package/es/slider/slider.js.map +1 -1
  97. package/es/tag/tag.js +1 -1
  98. package/es/tag/tag.js.map +1 -1
  99. package/es/title/title.js +75 -77
  100. package/es/title/title.js.map +1 -1
  101. package/es/tooltip/tooltip.js +2 -2
  102. package/es/tooltip/tooltip.js.map +1 -1
  103. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -3868,6 +3868,168 @@
3868
3868
  },
3869
3869
  __metadata$F = undefined && undefined.__metadata || function (k, v) {
3870
3870
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
3871
+ };
3872
+ var VWindow = Symbol["for"]("VWindow");
3873
+ var WindowHandlerContribution = Symbol["for"]("WindowHandlerContribution");
3874
+ var DefaultWindow = /*#__PURE__*/function () {
3875
+ function DefaultWindow() {
3876
+ _classCallCheck(this, DefaultWindow);
3877
+ this.hooks = {
3878
+ onChange: new SyncHook(["x", "y", "width", "height"])
3879
+ }, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
3880
+ }
3881
+ _createClass(DefaultWindow, [{
3882
+ key: "width",
3883
+ get: function get() {
3884
+ if (this._handler) {
3885
+ var wh = this._handler.getWH();
3886
+ return this._width = wh.width;
3887
+ }
3888
+ return this._width;
3889
+ }
3890
+ }, {
3891
+ key: "height",
3892
+ get: function get() {
3893
+ if (this._handler) {
3894
+ var wh = this._handler.getWH();
3895
+ return this._height = wh.height;
3896
+ }
3897
+ return this._height;
3898
+ }
3899
+ }, {
3900
+ key: "dpr",
3901
+ get: function get() {
3902
+ return this._handler.getDpr();
3903
+ }
3904
+ }, {
3905
+ key: "postInit",
3906
+ value: function postInit() {
3907
+ var _this = this;
3908
+ this.global.hooks.onSetEnv.tap("window", function () {
3909
+ _this.active();
3910
+ }), this.active();
3911
+ }
3912
+ }, {
3913
+ key: "active",
3914
+ value: function active() {
3915
+ var global = this.global;
3916
+ if (!global.env || this.actived) return;
3917
+ container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
3918
+ }
3919
+ }, {
3920
+ key: "style",
3921
+ get: function get() {
3922
+ return this._handler.getStyle();
3923
+ },
3924
+ set: function set(style) {
3925
+ this._handler.setStyle(style);
3926
+ }
3927
+ }, {
3928
+ key: "create",
3929
+ value: function create(params) {
3930
+ this._handler.createWindow(params);
3931
+ var windowWH = this._handler.getWH();
3932
+ this._width = windowWH.width, this._height = windowWH.height, this.title = this._handler.getTitle(), this.resizable = !0;
3933
+ }
3934
+ }, {
3935
+ key: "setWindowHandler",
3936
+ value: function setWindowHandler(handler) {
3937
+ this._handler = handler;
3938
+ }
3939
+ }, {
3940
+ key: "setDpr",
3941
+ value: function setDpr(dpr) {
3942
+ return this._handler.setDpr(dpr);
3943
+ }
3944
+ }, {
3945
+ key: "resize",
3946
+ value: function resize(w, h) {
3947
+ return this._handler.resizeWindow(w, h);
3948
+ }
3949
+ }, {
3950
+ key: "configure",
3951
+ value: function configure() {
3952
+ throw new Error("暂不支持");
3953
+ }
3954
+ }, {
3955
+ key: "release",
3956
+ value: function release() {
3957
+ return this._handler.releaseWindow();
3958
+ }
3959
+ }, {
3960
+ key: "getContext",
3961
+ value: function getContext() {
3962
+ return this._handler.getContext();
3963
+ }
3964
+ }, {
3965
+ key: "getNativeHandler",
3966
+ value: function getNativeHandler() {
3967
+ return this._handler.getNativeHandler();
3968
+ }
3969
+ }, {
3970
+ key: "getImageBuffer",
3971
+ value: function getImageBuffer(type) {
3972
+ return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
3973
+ }
3974
+ }, {
3975
+ key: "addEventListener",
3976
+ value: function addEventListener(type, listener, options) {
3977
+ return this._handler.addEventListener(type, listener, options);
3978
+ }
3979
+ }, {
3980
+ key: "removeEventListener",
3981
+ value: function removeEventListener(type, listener, options) {
3982
+ return this._handler.removeEventListener(type, listener, options);
3983
+ }
3984
+ }, {
3985
+ key: "dispatchEvent",
3986
+ value: function dispatchEvent(event) {
3987
+ return this._handler.dispatchEvent(event);
3988
+ }
3989
+ }, {
3990
+ key: "getBoundingClientRect",
3991
+ value: function getBoundingClientRect() {
3992
+ return this._handler.getBoundingClientRect();
3993
+ }
3994
+ }, {
3995
+ key: "getContainer",
3996
+ value: function getContainer() {
3997
+ return this._handler.container;
3998
+ }
3999
+ }, {
4000
+ key: "clearViewBox",
4001
+ value: function clearViewBox(viewBox, color) {
4002
+ this._handler.clearViewBox(viewBox, color);
4003
+ }
4004
+ }, {
4005
+ key: "isVisible",
4006
+ value: function isVisible(bbox) {
4007
+ return this._handler.isVisible(bbox);
4008
+ }
4009
+ }, {
4010
+ key: "onVisibleChange",
4011
+ value: function onVisibleChange(cb) {
4012
+ return this._handler.onVisibleChange(cb);
4013
+ }
4014
+ }, {
4015
+ key: "getTopLeft",
4016
+ value: function getTopLeft(baseWindow) {
4017
+ return this._handler.getTopLeft(baseWindow);
4018
+ }
4019
+ }]);
4020
+ return DefaultWindow;
4021
+ }();
4022
+ DefaultWindow = __decorate$P([injectable(), __metadata$F("design:paramtypes", [])], DefaultWindow);
4023
+
4024
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4025
+ var d,
4026
+ c = arguments.length,
4027
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
4028
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
4029
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
4030
+ },
4031
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
4032
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
3871
4033
  },
3872
4034
  __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
3873
4035
  return function (target, key) {
@@ -3948,10 +4110,45 @@
3948
4110
  specialCharSet: "-/: .,@%'\"~" + vutils.TextMeasure.ALPHABET_CHAR_SET + vutils.TextMeasure.ALPHABET_CHAR_SET.toUpperCase()
3949
4111
  }, null != option ? option : {}), textSpec);
3950
4112
  }
4113
+ }, {
4114
+ key: "drawGraphicToCanvas",
4115
+ value: function drawGraphicToCanvas(graphic, stage, canvas) {
4116
+ if (!stage.defaultLayer) return null;
4117
+ var window = container.get(VWindow),
4118
+ bounds = graphic.AABBBounds,
4119
+ width = bounds.width(),
4120
+ height = bounds.height();
4121
+ window.create({
4122
+ width: width,
4123
+ height: height,
4124
+ canvas: canvas,
4125
+ dpr: stage.window.dpr,
4126
+ canvasControled: !0,
4127
+ offscreen: !0,
4128
+ title: ""
4129
+ });
4130
+ var x = -bounds.x1,
4131
+ y = -bounds.y1,
4132
+ disableCheckGraphicWidthOutRange = stage.params.optimize.disableCheckGraphicWidthOutRange;
4133
+ stage.params.optimize.disableCheckGraphicWidthOutRange = !0, stage.defaultLayer.getNativeHandler().drawTo(window, [graphic], {
4134
+ x: x,
4135
+ y: y,
4136
+ width: width,
4137
+ height: height,
4138
+ stage: stage,
4139
+ layer: stage.defaultLayer,
4140
+ renderService: stage.renderService,
4141
+ background: "transparent",
4142
+ clear: !0,
4143
+ updateBounds: !1
4144
+ }), stage.params.optimize.disableCheckGraphicWidthOutRange = disableCheckGraphicWidthOutRange;
4145
+ var c = window.getNativeHandler();
4146
+ return c.nativeCanvas ? c.nativeCanvas : null;
4147
+ }
3951
4148
  }]);
3952
4149
  return DefaultGraphicUtil;
3953
4150
  }();
3954
- DefaultGraphicUtil = __decorate$P([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(TextMeasureContribution)), __metadata$F("design:paramtypes", [Object])], DefaultGraphicUtil);
4151
+ DefaultGraphicUtil = __decorate$O([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(TextMeasureContribution)), __metadata$E("design:paramtypes", [Object])], DefaultGraphicUtil);
3955
4152
  var TransformMode;
3956
4153
  !function (TransformMode) {
3957
4154
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -4028,7 +4225,7 @@
4028
4225
  }]);
4029
4226
  return DefaultTransformUtil;
4030
4227
  }();
4031
- DefaultTransformUtil = __decorate$P([injectable(), __metadata$F("design:paramtypes", [])], DefaultTransformUtil);
4228
+ DefaultTransformUtil = __decorate$O([injectable(), __metadata$E("design:paramtypes", [])], DefaultTransformUtil);
4032
4229
 
4033
4230
  var defaultThemeObj = {
4034
4231
  arc: DefaultArcAttribute,
@@ -7554,14 +7751,14 @@
7554
7751
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
7555
7752
 
7556
7753
  var _DefaultLayerService_,
7557
- __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
7754
+ __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
7558
7755
  var d,
7559
7756
  c = arguments.length,
7560
7757
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
7561
7758
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
7562
7759
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7563
7760
  },
7564
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
7761
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
7565
7762
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
7566
7763
  };
7567
7764
  var DefaultLayerService = _DefaultLayerService_ = /*#__PURE__*/function () {
@@ -7647,169 +7844,7 @@
7647
7844
  }]);
7648
7845
  return DefaultLayerService_1;
7649
7846
  }();
7650
- DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = _DefaultLayerService_ = __decorate$O([injectable(), __metadata$E("design:paramtypes", [])], DefaultLayerService);
7651
-
7652
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
7653
- var d,
7654
- c = arguments.length,
7655
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
7656
- if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
7657
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7658
- },
7659
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
7660
- if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
7661
- };
7662
- var VWindow = Symbol["for"]("VWindow");
7663
- var WindowHandlerContribution = Symbol["for"]("WindowHandlerContribution");
7664
- var DefaultWindow = /*#__PURE__*/function () {
7665
- function DefaultWindow() {
7666
- _classCallCheck(this, DefaultWindow);
7667
- this.hooks = {
7668
- onChange: new SyncHook(["x", "y", "width", "height"])
7669
- }, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
7670
- }
7671
- _createClass(DefaultWindow, [{
7672
- key: "width",
7673
- get: function get() {
7674
- if (this._handler) {
7675
- var wh = this._handler.getWH();
7676
- return this._width = wh.width;
7677
- }
7678
- return this._width;
7679
- }
7680
- }, {
7681
- key: "height",
7682
- get: function get() {
7683
- if (this._handler) {
7684
- var wh = this._handler.getWH();
7685
- return this._height = wh.height;
7686
- }
7687
- return this._height;
7688
- }
7689
- }, {
7690
- key: "dpr",
7691
- get: function get() {
7692
- return this._handler.getDpr();
7693
- }
7694
- }, {
7695
- key: "postInit",
7696
- value: function postInit() {
7697
- var _this = this;
7698
- this.global.hooks.onSetEnv.tap("window", function () {
7699
- _this.active();
7700
- }), this.active();
7701
- }
7702
- }, {
7703
- key: "active",
7704
- value: function active() {
7705
- var global = this.global;
7706
- if (!global.env || this.actived) return;
7707
- container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
7708
- }
7709
- }, {
7710
- key: "style",
7711
- get: function get() {
7712
- return this._handler.getStyle();
7713
- },
7714
- set: function set(style) {
7715
- this._handler.setStyle(style);
7716
- }
7717
- }, {
7718
- key: "create",
7719
- value: function create(params) {
7720
- this._handler.createWindow(params);
7721
- var windowWH = this._handler.getWH();
7722
- this._width = windowWH.width, this._height = windowWH.height, this.title = this._handler.getTitle(), this.resizable = !0;
7723
- }
7724
- }, {
7725
- key: "setWindowHandler",
7726
- value: function setWindowHandler(handler) {
7727
- this._handler = handler;
7728
- }
7729
- }, {
7730
- key: "setDpr",
7731
- value: function setDpr(dpr) {
7732
- return this._handler.setDpr(dpr);
7733
- }
7734
- }, {
7735
- key: "resize",
7736
- value: function resize(w, h) {
7737
- return this._handler.resizeWindow(w, h);
7738
- }
7739
- }, {
7740
- key: "configure",
7741
- value: function configure() {
7742
- throw new Error("暂不支持");
7743
- }
7744
- }, {
7745
- key: "release",
7746
- value: function release() {
7747
- return this._handler.releaseWindow();
7748
- }
7749
- }, {
7750
- key: "getContext",
7751
- value: function getContext() {
7752
- return this._handler.getContext();
7753
- }
7754
- }, {
7755
- key: "getNativeHandler",
7756
- value: function getNativeHandler() {
7757
- return this._handler.getNativeHandler();
7758
- }
7759
- }, {
7760
- key: "getImageBuffer",
7761
- value: function getImageBuffer(type) {
7762
- return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
7763
- }
7764
- }, {
7765
- key: "addEventListener",
7766
- value: function addEventListener(type, listener, options) {
7767
- return this._handler.addEventListener(type, listener, options);
7768
- }
7769
- }, {
7770
- key: "removeEventListener",
7771
- value: function removeEventListener(type, listener, options) {
7772
- return this._handler.removeEventListener(type, listener, options);
7773
- }
7774
- }, {
7775
- key: "dispatchEvent",
7776
- value: function dispatchEvent(event) {
7777
- return this._handler.dispatchEvent(event);
7778
- }
7779
- }, {
7780
- key: "getBoundingClientRect",
7781
- value: function getBoundingClientRect() {
7782
- return this._handler.getBoundingClientRect();
7783
- }
7784
- }, {
7785
- key: "getContainer",
7786
- value: function getContainer() {
7787
- return this._handler.container;
7788
- }
7789
- }, {
7790
- key: "clearViewBox",
7791
- value: function clearViewBox(viewBox, color) {
7792
- this._handler.clearViewBox(viewBox, color);
7793
- }
7794
- }, {
7795
- key: "isVisible",
7796
- value: function isVisible(bbox) {
7797
- return this._handler.isVisible(bbox);
7798
- }
7799
- }, {
7800
- key: "onVisibleChange",
7801
- value: function onVisibleChange(cb) {
7802
- return this._handler.onVisibleChange(cb);
7803
- }
7804
- }, {
7805
- key: "getTopLeft",
7806
- value: function getTopLeft(baseWindow) {
7807
- return this._handler.getTopLeft(baseWindow);
7808
- }
7809
- }]);
7810
- return DefaultWindow;
7811
- }();
7812
- DefaultWindow = __decorate$N([injectable(), __metadata$D("design:paramtypes", [])], DefaultWindow);
7847
+ DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = _DefaultLayerService_ = __decorate$N([injectable(), __metadata$D("design:paramtypes", [])], DefaultLayerService);
7813
7848
 
7814
7849
  var coreModule = new ContainerModule(function (bind) {
7815
7850
  bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
@@ -8245,7 +8280,7 @@
8245
8280
  var _a;
8246
8281
  var attribute = this.attribute,
8247
8282
  textTheme = getTheme(this).text;
8248
- if (this.isMultiLine) return;
8283
+ if (!this.isSimplify()) return;
8249
8284
  var _attribute$maxLineWid = attribute.maxLineWidth,
8250
8285
  maxLineWidth = _attribute$maxLineWid === void 0 ? textTheme.maxLineWidth : _attribute$maxLineWid;
8251
8286
  return Number.isFinite(maxLineWidth) ? (this.tryUpdateAABBBounds(), this.cache.clipedText) : (null !== (_a = attribute.text) && void 0 !== _a ? _a : textTheme.text).toString();
@@ -8253,23 +8288,28 @@
8253
8288
  }, {
8254
8289
  key: "clipedWidth",
8255
8290
  get: function get() {
8256
- if (!this.isMultiLine) return this.tryUpdateAABBBounds(), this.cache.clipedWidth;
8291
+ if (this.isSimplify()) return this.tryUpdateAABBBounds(), this.cache.clipedWidth;
8257
8292
  }
8258
8293
  }, {
8259
8294
  key: "cliped",
8260
8295
  get: function get() {
8261
8296
  var textTheme = getTheme(this).text,
8262
8297
  attribute = this.attribute;
8263
- if (this.isMultiLine) return;
8298
+ if (!this.isSimplify()) return;
8264
8299
  var _attribute$maxLineWid2 = attribute.maxLineWidth,
8265
8300
  maxLineWidth = _attribute$maxLineWid2 === void 0 ? textTheme.maxLineWidth : _attribute$maxLineWid2;
8266
- return !!Number.isFinite(maxLineWidth) && (this.tryUpdateAABBBounds(), this.clipedText !== attribute.text.toString());
8301
+ return !!Number.isFinite(maxLineWidth) && (this.tryUpdateAABBBounds(), null != this.clipedText && this.clipedText !== attribute.text.toString());
8267
8302
  }
8268
8303
  }, {
8269
8304
  key: "multilineLayout",
8270
8305
  get: function get() {
8271
8306
  if (this.isMultiLine) return this.tryUpdateAABBBounds(), this.cache.layoutData;
8272
8307
  }
8308
+ }, {
8309
+ key: "isSimplify",
8310
+ value: function isSimplify() {
8311
+ return !this.isMultiLine && "vertical" !== this.attribute.direction;
8312
+ }
8273
8313
  }, {
8274
8314
  key: "isMultiLine",
8275
8315
  get: function get() {
@@ -9983,7 +10023,14 @@
9983
10023
  }, {
9984
10024
  key: "toCustomPath",
9985
10025
  value: function toCustomPath() {
9986
- throw new Error("暂不支持");
10026
+ var attribute = this.attribute;
10027
+ var width = vutils.isNil(attribute.width) ? attribute.x1 - attribute.x : attribute.width,
10028
+ height = vutils.isNil(attribute.height) ? attribute.y1 - attribute.y : attribute.height,
10029
+ x = 0,
10030
+ y = 0;
10031
+ width < 0 && (x = width, width = -width), height < 0 && (y = height, height = -height);
10032
+ var path = new CustomPath2D();
10033
+ return path.moveTo(x, y), path.rect(x, y, width, height), path;
9987
10034
  }
9988
10035
  }, {
9989
10036
  key: "clone",
@@ -14009,7 +14056,7 @@
14009
14056
  y: null !== (_d = endPoint.y1) && void 0 !== _d ? _d : endPoint.y
14010
14057
  });
14011
14058
  }
14012
- lastBottomSeg = calcLineCache(bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType), bottomCaches.unshift(lastBottomSeg);
14059
+ bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType), bottomCaches.unshift(lastBottomSeg));
14013
14060
  }
14014
14061
  area.cacheArea = bottomCaches.map(function (item, index) {
14015
14062
  return {
@@ -15053,8 +15100,8 @@
15053
15100
  }();
15054
15101
  Canvas3DPickItemInterceptor = __decorate$y([injectable()], Canvas3DPickItemInterceptor);
15055
15102
 
15056
- var pickModule = new ContainerModule(function (bind) {
15057
- bind(PickerService).toService(GlobalPickerService), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
15103
+ var pickModule = new ContainerModule(function (bind, unbind, isBound) {
15104
+ isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
15058
15105
  });
15059
15106
 
15060
15107
  var graphicModule = new ContainerModule(function (bind) {
@@ -15866,12 +15913,12 @@
15866
15913
  }
15867
15914
  var d = context.dpr % 1;
15868
15915
  (d || .5 !== d) && (dirtyBounds.x1 = Math.floor(dirtyBounds.x1 * context.dpr) / context.dpr, dirtyBounds.y1 = Math.floor(dirtyBounds.y1 * context.dpr) / context.dpr, dirtyBounds.x2 = Math.ceil(dirtyBounds.x2 * context.dpr) / context.dpr, dirtyBounds.y2 = Math.ceil(dirtyBounds.y2 * context.dpr) / context.dpr), this.backupDirtyBounds.copy(dirtyBounds), context.inuse = !0, context.clearMatrix(), context.setTransformForCurrent(!0);
15869
- var drawInArea = dirtyBounds.width() * context.dpr !== context.canvas.width || dirtyBounds.height() * context.dpr !== context.canvas.height;
15916
+ var drawInArea = dirtyBounds.width() * context.dpr < context.canvas.width || dirtyBounds.height() * context.dpr < context.canvas.height;
15870
15917
  context.save(), context.translate(x, y, !0), drawInArea && (context.beginPath(), context.rect(dirtyBounds.x1, dirtyBounds.y1, dirtyBounds.width(), dirtyBounds.height()), context.clip()), stage.camera && (this.dirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0), this.backupDirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0)), this.clearScreen(renderService, context, drawContext), context.save(), renderService.renderTreeRoots.sort(function (a, b) {
15871
15918
  var _a, _b;
15872
15919
  return (null !== (_a = a.attribute.zIndex) && void 0 !== _a ? _a : DefaultAttribute.zIndex) - (null !== (_b = b.attribute.zIndex) && void 0 !== _b ? _b : DefaultAttribute.zIndex);
15873
15920
  }).forEach(function (group) {
15874
- _this2.renderGroup(group, drawContext, matrixAllocate.allocate(1, 0, 0, 1, 0, 0));
15921
+ group.isContainer ? _this2.renderGroup(group, drawContext, matrixAllocate.allocate(1, 0, 0, 1, 0, 0)) : _this2.renderItem(group, drawContext);
15875
15922
  }), context.restore(), context.restore(), context.draw(), context.inuse = !1;
15876
15923
  }
15877
15924
  }, {
@@ -16652,7 +16699,11 @@
16652
16699
  container.load(renderModule);
16653
16700
  }
16654
16701
 
16655
- container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$1(container), load(container);
16702
+ var loaded$d = !1;
16703
+ function preLoadAllModule() {
16704
+ loaded$d || (loaded$d = !0, container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$1(container), load(container));
16705
+ }
16706
+ preLoadAllModule();
16656
16707
  var vglobal = container.get(VGlobal);
16657
16708
  application.global = vglobal;
16658
16709
  var graphicUtil = container.get(GraphicUtil);
@@ -16664,8 +16715,23 @@
16664
16715
  var layerService = container.get(LayerService);
16665
16716
  application.layerService = layerService;
16666
16717
 
16718
+ var _isBrowserEnv;
16719
+ function initIsBrowserEnv() {
16720
+ if (null == _isBrowserEnv) {
16721
+ try {
16722
+ _isBrowserEnv = !!window;
16723
+ } catch (err) {
16724
+ _isBrowserEnv = !1;
16725
+ }
16726
+ if (_isBrowserEnv) try {
16727
+ _isBrowserEnv = !tt;
16728
+ } catch (err) {
16729
+ _isBrowserEnv = !0;
16730
+ }
16731
+ }
16732
+ }
16667
16733
  function isBrowserEnv() {
16668
- return new Function("try {return this===window;}catch(e){ return false;}")();
16734
+ return initIsBrowserEnv(), _isBrowserEnv;
16669
16735
  }
16670
16736
 
16671
16737
  var loadArcModule = !1;
@@ -18280,7 +18346,6 @@
18280
18346
  super((options === null || options === void 0 ? void 0 : options.skipDefault) ? attributes : vutils.merge({}, ScrollBar.defaultAttributes, attributes));
18281
18347
  this.name = 'scrollbar';
18282
18348
  this._onRailPointerDown = (e) => {
18283
- var _a, _b;
18284
18349
  const { viewX, viewY } = e;
18285
18350
  const { direction, width, height, range } = this.attribute;
18286
18351
  const sliderSize = this._sliderSize;
@@ -18299,8 +18364,8 @@
18299
18364
  this._slider.setAttribute('x', currentXPos, true);
18300
18365
  }
18301
18366
  this.setScrollRange([currentScrollValue - (range[1] - range[0]) / 2, currentScrollValue + (range[1] - range[0]) / 2], false);
18302
- if (!((_a = this.stage) === null || _a === void 0 ? void 0 : _a.autoRender)) {
18303
- (_b = this.stage) === null || _b === void 0 ? void 0 : _b.renderNextFrame();
18367
+ if (this.stage && !this.stage.autoRender) {
18368
+ this.stage.renderNextFrame();
18304
18369
  }
18305
18370
  };
18306
18371
  this._onSliderPointerDown = (e) => {
@@ -18352,6 +18417,12 @@
18352
18417
  const preScrollRange = this.getScrollRange();
18353
18418
  const [currentPos, currentScrollValue] = this._computeScrollValue(e);
18354
18419
  const range = [preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue];
18420
+ if (!realTime) {
18421
+ this._dispatchEvent('scroll', {
18422
+ pre: preRange,
18423
+ value: vutils.clampRange(range, limitRange[0], limitRange[1])
18424
+ });
18425
+ }
18355
18426
  this._dispatchEvent('scrollUp', {
18356
18427
  pre: preRange,
18357
18428
  value: vutils.clampRange(range, limitRange[0], limitRange[1])
@@ -18368,7 +18439,6 @@
18368
18439
  };
18369
18440
  }
18370
18441
  setScrollRange(range, render = true) {
18371
- var _a, _b;
18372
18442
  const { direction = 'horizontal', limitRange = [0, 1], range: preRange, realTime = true } = this.attribute;
18373
18443
  const currScrollRange = vutils.clampRange(range, limitRange[0], limitRange[1]);
18374
18444
  if (render) {
@@ -18380,13 +18450,17 @@
18380
18450
  else {
18381
18451
  this._slider.setAttribute('y', sliderPos[0], true);
18382
18452
  }
18383
- if (!((_a = this.stage) === null || _a === void 0 ? void 0 : _a.autoRender)) {
18384
- (_b = this.stage) === null || _b === void 0 ? void 0 : _b.renderNextFrame();
18453
+ if (this.stage && !this.stage.autoRender) {
18454
+ this.stage.renderNextFrame();
18385
18455
  }
18386
18456
  }
18387
18457
  }
18388
18458
  this.attribute.range = currScrollRange;
18389
18459
  if (realTime) {
18460
+ this._dispatchEvent('scroll', {
18461
+ pre: preRange,
18462
+ value: currScrollRange
18463
+ });
18390
18464
  this._dispatchEvent('scrollDrag', {
18391
18465
  pre: preRange,
18392
18466
  value: currScrollRange
@@ -18876,7 +18950,7 @@
18876
18950
  tagWidth += textWidth;
18877
18951
  const size = (_c = shape.size) !== null && _c !== void 0 ? _c : 10;
18878
18952
  const maxSize = vutils.isNumber(size) ? size : Math.max(size[0], size[1]);
18879
- tagHeight += Math.max(textHeight, (shape === null || shape === void 0 ? void 0 : shape.visible) ? maxSize : 0);
18953
+ tagHeight += Math.max(textHeight, shape.visible ? maxSize : 0);
18880
18954
  const { textAlign, textBaseline } = textStyle;
18881
18955
  if (vutils.isValid(minWidth) || vutils.isValid(maxWidth)) {
18882
18956
  if (vutils.isValid(minWidth) && tagWidth < minWidth) {
@@ -20191,19 +20265,25 @@
20191
20265
  }
20192
20266
  let labels;
20193
20267
  if (vutils.isFunction(customLayoutFunc)) {
20194
- labels = customLayoutFunc(data, this.getRelatedGrphic, this._isCollectionBase ? (d) => this._idToPoint.get(d.id) : null);
20268
+ labels = customLayoutFunc(data, this.getRelatedGraphic.bind(this), this._isCollectionBase ? (d) => this._idToPoint.get(d.id) : null);
20195
20269
  }
20196
20270
  else {
20197
20271
  labels = this._layout(data);
20198
20272
  }
20199
20273
  if (vutils.isFunction(customOverlapFunc)) {
20200
- labels = customOverlapFunc(labels, this.getRelatedGrphic, this._isCollectionBase ? (d) => this._idToPoint.get(d.id) : null);
20274
+ labels = customOverlapFunc(labels, this.getRelatedGraphic.bind(this), this._isCollectionBase ? (d) => this._idToPoint.get(d.id) : null);
20201
20275
  }
20202
20276
  else {
20203
20277
  if (overlap !== false) {
20204
20278
  labels = this._overlapping(labels);
20205
20279
  }
20206
20280
  }
20281
+ if (labels && labels.length) {
20282
+ labels.forEach(label => {
20283
+ this._bindEvent(label);
20284
+ this._setStatesOfText(label);
20285
+ });
20286
+ }
20207
20287
  if (smartInvert !== false) {
20208
20288
  this._smartInvert(labels);
20209
20289
  }
@@ -20252,21 +20332,15 @@
20252
20332
  attributes.width = (_a = attributes.width) !== null && _a !== void 0 ? _a : 0;
20253
20333
  attributes.height = (_b = attributes.height) !== null && _b !== void 0 ? _b : 0;
20254
20334
  const text = graphicCreator.richtext(attributes);
20255
- this._bindEvent(text);
20256
- this._setStatesOfText(text);
20257
20335
  return text;
20258
20336
  }
20259
20337
  else if (attributes.textType === 'html') {
20260
20338
  attributes.textConfig = [];
20261
20339
  attributes.html = Object.assign(Object.assign({ dom: attributes.text }, DEFAULT_HTML_TEXT_SPEC), attributes);
20262
20340
  const text = graphicCreator.richtext(attributes);
20263
- this._bindEvent(text);
20264
- this._setStatesOfText(text);
20265
20341
  return text;
20266
20342
  }
20267
20343
  const text = graphicCreator.text(attributes);
20268
- this._bindEvent(text);
20269
- this._setStatesOfText(text);
20270
20344
  return text;
20271
20345
  }
20272
20346
  _prepare() {
@@ -20343,7 +20417,7 @@
20343
20417
  };
20344
20418
  }
20345
20419
  }
20346
- getRelatedGrphic(item) {
20420
+ getRelatedGraphic(item) {
20347
20421
  return this._idToGraphic.get(item.id);
20348
20422
  }
20349
20423
  _layout(data = []) {
@@ -20351,7 +20425,7 @@
20351
20425
  const labels = [];
20352
20426
  for (let i = 0; i < data.length; i++) {
20353
20427
  const textData = data[i];
20354
- const baseMark = this.getRelatedGrphic(textData);
20428
+ const baseMark = this.getRelatedGraphic(textData);
20355
20429
  const labelAttribute = Object.assign(Object.assign({ fill: this._isCollectionBase
20356
20430
  ? vutils.isArray(baseMark.attribute.stroke)
20357
20431
  ? baseMark.attribute.stroke.find(entry => !!entry && entry !== true)
@@ -20414,7 +20488,7 @@
20414
20488
  continue;
20415
20489
  }
20416
20490
  const text = labels[i];
20417
- const baseMark = this.getRelatedGrphic(text.attribute);
20491
+ const baseMark = this.getRelatedGraphic(text.attribute);
20418
20492
  text.update();
20419
20493
  if (!vutils.isRectIntersect(baseMark.AABBBounds, { x1: 0, x2: bmpTool.width, y1: 0, y2: bmpTool.height }, true)) {
20420
20494
  continue;
@@ -20503,7 +20577,7 @@
20503
20577
  labels.forEach((text, index) => {
20504
20578
  var _a, _b, _c, _d, _e, _f, _g;
20505
20579
  const labelLine = this._labelLine(text);
20506
- const relatedGraphic = this.getRelatedGrphic(text.attribute);
20580
+ const relatedGraphic = this.getRelatedGraphic(text.attribute);
20507
20581
  const textId = text.attribute.id;
20508
20582
  const textKey = this._isCollectionBase ? textId : relatedGraphic;
20509
20583
  const state = (prevTextMap === null || prevTextMap === void 0 ? void 0 : prevTextMap.get(textKey)) ? 'update' : 'enter';
@@ -20560,7 +20634,7 @@
20560
20634
  labels.forEach(text => {
20561
20635
  var _a;
20562
20636
  const labelLine = this._labelLine(text);
20563
- const relatedGraphic = this.getRelatedGrphic(text.attribute);
20637
+ const relatedGraphic = this.getRelatedGraphic(text.attribute);
20564
20638
  const state = (prevTextMap === null || prevTextMap === void 0 ? void 0 : prevTextMap.get(relatedGraphic)) ? 'update' : 'enter';
20565
20639
  const textKey = this._isCollectionBase ? text.attribute.id : relatedGraphic;
20566
20640
  if (state === 'enter') {
@@ -20675,7 +20749,7 @@
20675
20749
  if (!label) {
20676
20750
  continue;
20677
20751
  }
20678
- const baseMark = this.getRelatedGrphic(label.attribute);
20752
+ const baseMark = this.getRelatedGraphic(label.attribute);
20679
20753
  const backgroundColor = baseMark.attribute.fill;
20680
20754
  const foregroundColor = label.attribute.fill;
20681
20755
  const baseColor = backgroundColor;
@@ -21466,7 +21540,8 @@
21466
21540
  }
21467
21541
  if (points[0].x < 0) {
21468
21542
  if (vutils.isNumberClose(points[0].y, points[1].y)) {
21469
- if (Math.abs(arc.middleAngle) < Math.PI / 2) {
21543
+ if ((vutils.isGreater(arc.middleAngle, -Math.PI) && vutils.isLess(arc.middleAngle, 0)) ||
21544
+ (vutils.isGreater(arc.middleAngle, Math.PI) && vutils.isLess(arc.middleAngle, Math.PI * 2))) {
21470
21545
  min = 0;
21471
21546
  max = points[1].y + height / 2;
21472
21547
  }
@@ -21832,7 +21907,7 @@
21832
21907
  }
21833
21908
  const { autoRotate = true } = attribute;
21834
21909
  let symbol;
21835
- if (attribute === null || attribute === void 0 ? void 0 : attribute.visible) {
21910
+ if (attribute && attribute.visible) {
21836
21911
  const startAngle = this._startAngle;
21837
21912
  const endAngle = this._endAngle;
21838
21913
  const { state } = this.attribute;
@@ -21888,18 +21963,18 @@
21888
21963
  return points;
21889
21964
  }
21890
21965
  _clipPoints(points) {
21891
- const { startSymbol, endSymbol } = this.attribute;
21966
+ const { startSymbol = {}, endSymbol = {} } = this.attribute;
21892
21967
  let pointsAfterClip = points;
21893
- if (startSymbol === null || startSymbol === void 0 ? void 0 : startSymbol.visible) {
21894
- const startSize = (startSymbol === null || startSymbol === void 0 ? void 0 : startSymbol.clip) ? (startSymbol === null || startSymbol === void 0 ? void 0 : startSymbol.size) || 10 : 0;
21968
+ if (startSymbol.visible) {
21969
+ const startSize = startSymbol.clip ? startSymbol.size || 10 : 0;
21895
21970
  const pointsStart = {
21896
21971
  x: points[0].x - (startSize / 2) * (Math.cos(this._startAngle) || 0),
21897
21972
  y: points[0].y - (startSize / 2) * (Math.sin(this._startAngle) || 0)
21898
21973
  };
21899
21974
  pointsAfterClip = [pointsStart, ...pointsAfterClip.slice(1)];
21900
21975
  }
21901
- if (endSymbol === null || endSymbol === void 0 ? void 0 : endSymbol.visible) {
21902
- const endSize = (endSymbol === null || endSymbol === void 0 ? void 0 : endSymbol.clip) ? (endSymbol === null || endSymbol === void 0 ? void 0 : endSymbol.size) || 10 : 0;
21976
+ if (endSymbol.visible) {
21977
+ const endSize = endSymbol.clip ? endSymbol.size || 10 : 0;
21903
21978
  const pointsEnd = {
21904
21979
  x: points[points.length - 1].x - (endSize / 2) * (Math.cos(this._endAngle) || 0),
21905
21980
  y: points[points.length - 1].y - (endSize / 2) * (Math.sin(this._endAngle) || 0)
@@ -22155,15 +22230,15 @@
22155
22230
  axisContainer.setMode(this.mode);
22156
22231
  this.axisContainer = axisContainer;
22157
22232
  container.add(axisContainer);
22158
- if (line === null || line === void 0 ? void 0 : line.visible) {
22233
+ if (line && line.visible) {
22159
22234
  this.renderLine(axisContainer);
22160
22235
  }
22161
22236
  if (items && items.length) {
22162
22237
  this.data = this._transformItems(items[0]);
22163
- if (tick === null || tick === void 0 ? void 0 : tick.visible) {
22238
+ if (tick && tick.visible) {
22164
22239
  this.renderTicks(axisContainer);
22165
22240
  }
22166
- if (label === null || label === void 0 ? void 0 : label.visible) {
22241
+ if (label && label.visible) {
22167
22242
  const labelGroup = graphicCreator.group({ x: 0, y: 0, pickable: false });
22168
22243
  labelGroup.name = exports.AXIS_ELEMENT_NAME.labelContainer;
22169
22244
  labelGroup.id = this._getNodeId('label-container');
@@ -22178,7 +22253,7 @@
22178
22253
  });
22179
22254
  }
22180
22255
  }
22181
- if (title === null || title === void 0 ? void 0 : title.visible) {
22256
+ if (title && title.visible) {
22182
22257
  this.renderTitle(axisContainer);
22183
22258
  }
22184
22259
  }
@@ -22210,7 +22285,7 @@
22210
22285
  });
22211
22286
  this.tickLineItems = tickLineItems;
22212
22287
  const { subTick } = this.attribute;
22213
- if (subTick === null || subTick === void 0 ? void 0 : subTick.visible) {
22288
+ if (subTick && subTick.visible) {
22214
22289
  const subTickLineItems = this.getSubTickLineItems();
22215
22290
  if (subTickLineItems.length) {
22216
22291
  subTickLineItems.forEach((item, index) => {
@@ -22430,15 +22505,15 @@
22430
22505
  beta }, style);
22431
22506
  }
22432
22507
  _getLabelAttribute(tickDatum, index, tickData, layer) {
22433
- var _a, _b, _c, _d, _e, _f;
22508
+ var _a, _b;
22434
22509
  const { space = 4, inside = false, formatMethod, type = 'text', text } = this.attribute.label;
22435
22510
  let offset = space;
22436
22511
  let tickLength = 0;
22437
- if (((_a = this.attribute.tick) === null || _a === void 0 ? void 0 : _a.visible) && ((_b = this.attribute.tick) === null || _b === void 0 ? void 0 : _b.inside) === inside) {
22438
- tickLength = ((_c = this.attribute.tick) === null || _c === void 0 ? void 0 : _c.length) || 4;
22512
+ if (((_a = this.attribute.tick) === null || _a === void 0 ? void 0 : _a.visible) && this.attribute.tick.inside === inside) {
22513
+ tickLength = this.attribute.tick.length || 4;
22439
22514
  }
22440
- if (((_d = this.attribute.subTick) === null || _d === void 0 ? void 0 : _d.visible) && ((_e = this.attribute.subTick) === null || _e === void 0 ? void 0 : _e.inside) === inside) {
22441
- tickLength = Math.max(tickLength, ((_f = this.attribute.subTick) === null || _f === void 0 ? void 0 : _f.length) || 2);
22515
+ if (((_b = this.attribute.subTick) === null || _b === void 0 ? void 0 : _b.visible) && this.attribute.subTick.inside === inside) {
22516
+ tickLength = Math.max(tickLength, this.attribute.subTick.length || 2);
22442
22517
  }
22443
22518
  offset += tickLength;
22444
22519
  const axisVector = this.getRelativeVector(tickDatum.point);
@@ -22878,8 +22953,8 @@
22878
22953
  container.add(axisLineGroup);
22879
22954
  }
22880
22955
  getTitleAttribute() {
22881
- var _a, _b, _c, _d, _e, _f, _g, _h;
22882
- const _j = this.attribute.title, { position = 'middle', space = 4, textStyle = {}, autoRotate = true, shape, background, state } = _j, restAttrs = __rest(_j, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state"]);
22956
+ var _a, _b, _c;
22957
+ const _d = this.attribute.title, { position = 'middle', space = 4, textStyle = {}, autoRotate = true, shape, background, state = {} } = _d, restAttrs = __rest(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state"]);
22883
22958
  let percent = 0.5;
22884
22959
  if (position === 'start') {
22885
22960
  percent = 0;
@@ -22892,7 +22967,7 @@
22892
22967
  const point = this.getTickCoord(percent);
22893
22968
  const axisVector = this.getRelativeVector();
22894
22969
  let labelLength = 0;
22895
- if (((_a = this.attribute.label) === null || _a === void 0 ? void 0 : _a.visible) && ((_b = this.attribute.label) === null || _b === void 0 ? void 0 : _b.inside) === false) {
22970
+ if (((_a = this.attribute.label) === null || _a === void 0 ? void 0 : _a.visible) && this.attribute.label.inside === false) {
22896
22971
  const space = +vutils.get(this.attribute, 'label.space', 4);
22897
22972
  labelLength += space;
22898
22973
  const layerCount = Object.keys(this.axisLabelLayerSize).length;
@@ -22953,11 +23028,11 @@
22953
23028
  }
22954
23029
  }
22955
23030
  let tickLength = 0;
22956
- if (((_c = this.attribute.tick) === null || _c === void 0 ? void 0 : _c.visible) && ((_d = this.attribute.tick) === null || _d === void 0 ? void 0 : _d.inside) === false) {
22957
- tickLength = ((_e = this.attribute.tick) === null || _e === void 0 ? void 0 : _e.length) || 4;
23031
+ if (((_b = this.attribute.tick) === null || _b === void 0 ? void 0 : _b.visible) && this.attribute.tick.inside === false) {
23032
+ tickLength = this.attribute.tick.length || 4;
22958
23033
  }
22959
- if (((_f = this.attribute.subTick) === null || _f === void 0 ? void 0 : _f.visible) && ((_g = this.attribute.subTick) === null || _g === void 0 ? void 0 : _g.inside) === false) {
22960
- tickLength = Math.max(tickLength, ((_h = this.attribute.subTick) === null || _h === void 0 ? void 0 : _h.length) || 2);
23034
+ if (((_c = this.attribute.subTick) === null || _c === void 0 ? void 0 : _c.visible) && this.attribute.subTick.inside === false) {
23035
+ tickLength = Math.max(tickLength, this.attribute.subTick.length || 2);
22961
23036
  }
22962
23037
  const offset = tickLength + labelLength + space;
22963
23038
  const titlePoint = this.getVerticalCoord(point, offset, false);
@@ -22993,9 +23068,9 @@
22993
23068
  }
22994
23069
  const attrs = Object.assign(Object.assign(Object.assign({}, titlePoint), restAttrs), { textStyle: Object.assign({ textAlign,
22995
23070
  textBaseline }, textStyle), state: {
22996
- text: vutils.merge({}, DEFAULT_STATES$1, state === null || state === void 0 ? void 0 : state.text),
22997
- shape: vutils.merge({}, DEFAULT_STATES$1, state === null || state === void 0 ? void 0 : state.shape),
22998
- panel: vutils.merge({}, DEFAULT_STATES$1, state === null || state === void 0 ? void 0 : state.background)
23071
+ text: vutils.merge({}, DEFAULT_STATES$1, state.text),
23072
+ shape: vutils.merge({}, DEFAULT_STATES$1, state.shape),
23073
+ panel: vutils.merge({}, DEFAULT_STATES$1, state.background)
22999
23074
  } });
23000
23075
  attrs.angle = angle;
23001
23076
  if (shape && shape.visible) {
@@ -23031,7 +23106,7 @@
23031
23106
  }
23032
23107
  getLabelAlign(vector, inside, angle) {
23033
23108
  const orient = this.attribute.orient;
23034
- if (vutils.isValidNumber(angle)) {
23109
+ if (vutils.isValidNumber(angle) || (vector[0] === 0 && vector[1] === 0)) {
23035
23110
  if (orient === 'top' || orient === 'bottom') {
23036
23111
  return getXAxisLabelAlign(orient, angle);
23037
23112
  }
@@ -23226,9 +23301,9 @@
23226
23301
  let limitLength = limitSize;
23227
23302
  let titleHeight = 0;
23228
23303
  let titleSpacing = 0;
23229
- const axisLineWidth = (line === null || line === void 0 ? void 0 : line.visible) ? (_b = line.style.lineWidth) !== null && _b !== void 0 ? _b : 1 : 0;
23230
- const tickLength = (tick === null || tick === void 0 ? void 0 : tick.visible) ? (_c = tick.length) !== null && _c !== void 0 ? _c : 4 : 0;
23231
- if ((title === null || title === void 0 ? void 0 : title.visible) && typeof title.text === 'string') {
23304
+ const axisLineWidth = line && line.visible ? (_b = line.style.lineWidth) !== null && _b !== void 0 ? _b : 1 : 0;
23305
+ const tickLength = tick && tick.visible ? (_c = tick.length) !== null && _c !== void 0 ? _c : 4 : 0;
23306
+ if (title && title.visible && typeof title.text === 'string') {
23232
23307
  titleHeight = measureTextSize(title.text, title.textStyle).height;
23233
23308
  const padding = vutils.normalizePadding(title.padding);
23234
23309
  titleSpacing = title.space + padding[0] + padding[2];
@@ -23330,7 +23405,7 @@
23330
23405
  super((options === null || options === void 0 ? void 0 : options.skipDefault) ? attributes : vutils.merge({}, CircleAxis.defaultAttributes, attributes));
23331
23406
  }
23332
23407
  renderLine(container) {
23333
- const { startAngle = POLAR_START_ANGLE, endAngle = POLAR_END_ANGLE, radius, center, innerRadius = 0, line, inside = false } = this.attribute;
23408
+ const { startAngle = POLAR_START_ANGLE, endAngle = POLAR_END_ANGLE, radius, center, innerRadius = 0, line = {}, inside = false } = this.attribute;
23334
23409
  let arcRadius = radius;
23335
23410
  let arcInnerRadius = innerRadius;
23336
23411
  if (inside && innerRadius > 0) {
@@ -23338,30 +23413,30 @@
23338
23413
  arcInnerRadius = 0;
23339
23414
  }
23340
23415
  const arcAttrs = Object.assign(Object.assign(Object.assign({}, center), { startAngle,
23341
- endAngle, radius: arcRadius, innerRadius: arcInnerRadius }), line === null || line === void 0 ? void 0 : line.style);
23416
+ endAngle, radius: arcRadius, innerRadius: arcInnerRadius }), line.style);
23342
23417
  const axisLine = graphicCreator.circle(arcAttrs);
23343
23418
  axisLine.name = exports.AXIS_ELEMENT_NAME.line;
23344
23419
  axisLine.id = this._getNodeId('line');
23345
- if (!vutils.isEmpty(line === null || line === void 0 ? void 0 : line.state)) {
23420
+ if (!vutils.isEmpty(line.state)) {
23346
23421
  axisLine.states = vutils.merge({}, DEFAULT_STATES$1, line.state);
23347
23422
  }
23348
23423
  container.add(axisLine);
23349
23424
  }
23350
23425
  getTitleAttribute() {
23351
- var _a, _b, _c, _d, _e, _f, _g, _h;
23426
+ var _a, _b, _c;
23352
23427
  const { center, radius, innerRadius = 0 } = this.attribute;
23353
- const _j = this.attribute.title, { space = 4, textStyle = {}, shape, background, state } = _j, restAttrs = __rest(_j, ["space", "textStyle", "shape", "background", "state"]);
23428
+ const _d = this.attribute.title, { space = 4, textStyle = {}, shape, background, state = {} } = _d, restAttrs = __rest(_d, ["space", "textStyle", "shape", "background", "state"]);
23354
23429
  let titlePoint = center;
23355
23430
  let labelHeight = 0;
23356
- if (((_a = this.attribute.label) === null || _a === void 0 ? void 0 : _a.visible) && ((_b = this.attribute.label) === null || _b === void 0 ? void 0 : _b.inside) === false) {
23431
+ if (((_a = this.attribute.label) === null || _a === void 0 ? void 0 : _a.visible) && this.attribute.label.inside === false) {
23357
23432
  labelHeight = vutils.get(this.attribute.label, 'style.fontSize', 12) + vutils.get(this.attribute.label, 'space', 4);
23358
23433
  }
23359
23434
  let tickLength = 0;
23360
- if (((_c = this.attribute.tick) === null || _c === void 0 ? void 0 : _c.visible) && ((_d = this.attribute.tick) === null || _d === void 0 ? void 0 : _d.inside) === false) {
23361
- tickLength = ((_e = this.attribute.tick) === null || _e === void 0 ? void 0 : _e.length) || 4;
23435
+ if (((_b = this.attribute.tick) === null || _b === void 0 ? void 0 : _b.visible) && this.attribute.tick.inside === false) {
23436
+ tickLength = this.attribute.tick.length || 4;
23362
23437
  }
23363
- if (((_f = this.attribute.subTick) === null || _f === void 0 ? void 0 : _f.visible) && ((_g = this.attribute.subTick) === null || _g === void 0 ? void 0 : _g.inside) === false) {
23364
- tickLength = Math.max(tickLength, ((_h = this.attribute.subTick) === null || _h === void 0 ? void 0 : _h.length) || 2);
23438
+ if (((_c = this.attribute.subTick) === null || _c === void 0 ? void 0 : _c.visible) && this.attribute.subTick.inside === false) {
23439
+ tickLength = Math.max(tickLength, this.attribute.subTick.length || 2);
23365
23440
  }
23366
23441
  const offset = radius + tickLength + labelHeight + space;
23367
23442
  let textBaseline = 'middle';
@@ -23384,9 +23459,9 @@
23384
23459
  };
23385
23460
  }
23386
23461
  const attrs = Object.assign(Object.assign(Object.assign({}, titlePoint), restAttrs), { textStyle: Object.assign({ textBaseline, textAlign: 'center' }, textStyle), state: {
23387
- text: vutils.merge({}, DEFAULT_STATES$1, state === null || state === void 0 ? void 0 : state.text),
23388
- shape: vutils.merge({}, DEFAULT_STATES$1, state === null || state === void 0 ? void 0 : state.shape),
23389
- panel: vutils.merge({}, DEFAULT_STATES$1, state === null || state === void 0 ? void 0 : state.background)
23462
+ text: vutils.merge({}, DEFAULT_STATES$1, state.text),
23463
+ shape: vutils.merge({}, DEFAULT_STATES$1, state.shape),
23464
+ panel: vutils.merge({}, DEFAULT_STATES$1, state.background)
23390
23465
  } });
23391
23466
  const { angle } = restAttrs;
23392
23467
  attrs.angle = angle;
@@ -23525,11 +23600,12 @@
23525
23600
  let duration = this.duration;
23526
23601
  let easing = this.easing;
23527
23602
  Object.keys(this._newElementAttrMap).forEach(id => {
23528
- var _a, _b, _c, _d, _e, _f, _g;
23603
+ var _a;
23529
23604
  const { node, attrs, state } = this._newElementAttrMap[id];
23530
23605
  if (state === 'enter') {
23531
- duration = vutils.isValidNumber((_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.enter) === null || _b === void 0 ? void 0 : _b.duration) ? (_c = this.params) === null || _c === void 0 ? void 0 : _c.enter.duration : duration;
23532
- easing = ((_e = (_d = this.params) === null || _d === void 0 ? void 0 : _d.enter) === null || _e === void 0 ? void 0 : _e.easing) ? (_g = (_f = this.params) === null || _f === void 0 ? void 0 : _f.enter) === null || _g === void 0 ? void 0 : _g.easing : easing;
23606
+ const { enter = {} } = (_a = this.params) !== null && _a !== void 0 ? _a : {};
23607
+ duration = vutils.isValidNumber(enter.duration) ? enter.duration : duration;
23608
+ easing = enter.easing ? enter.easing : easing;
23533
23609
  }
23534
23610
  if (node.type === 'path') {
23535
23611
  node
@@ -24496,13 +24572,13 @@
24496
24572
  if (this._layoutAttrFromConfig) {
24497
24573
  return this._layoutAttrFromConfig;
24498
24574
  }
24499
- const { position: positionConfig, size, orient, middleHandlerStyle, startHandlerStyle, endHandlerStyle } = this.attribute;
24575
+ const { position: positionConfig, size, orient, middleHandlerStyle = {}, startHandlerStyle = {}, endHandlerStyle = {} } = this.attribute;
24500
24576
  const { width: widthConfig, height: heightConfig } = size;
24501
- const middleHandlerSize = (_b = (_a = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 10;
24577
+ const middleHandlerSize = (_b = (_a = middleHandlerStyle.background) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 10;
24502
24578
  let width;
24503
24579
  let height;
24504
24580
  let position;
24505
- if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
24581
+ if (middleHandlerStyle.visible) {
24506
24582
  if (this._isHorizontal) {
24507
24583
  width = widthConfig;
24508
24584
  height = heightConfig - middleHandlerSize;
@@ -24525,9 +24601,9 @@
24525
24601
  height = heightConfig;
24526
24602
  position = positionConfig;
24527
24603
  }
24528
- const startHandlerSize = (_c = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.size) !== null && _c !== void 0 ? _c : (this._isHorizontal ? height : width);
24529
- const endHandlerSize = (_d = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.size) !== null && _d !== void 0 ? _d : (this._isHorizontal ? height : width);
24530
- if (startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.visible) {
24604
+ const startHandlerSize = (_c = startHandlerStyle.size) !== null && _c !== void 0 ? _c : (this._isHorizontal ? height : width);
24605
+ const endHandlerSize = (_d = endHandlerStyle.size) !== null && _d !== void 0 ? _d : (this._isHorizontal ? height : width);
24606
+ if (startHandlerStyle.visible) {
24531
24607
  if (this._isHorizontal) {
24532
24608
  width -= (startHandlerSize + endHandlerSize) / 2;
24533
24609
  position = {
@@ -24551,9 +24627,9 @@
24551
24627
  return this._layoutAttrFromConfig;
24552
24628
  }
24553
24629
  render() {
24554
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
24630
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
24555
24631
  this._layoutAttrFromConfig = null;
24556
- const { orient, backgroundStyle, backgroundChartStyle, selectedBackgroundStyle, selectedBackgroundChartStyle, middleHandlerStyle, startHandlerStyle, endHandlerStyle, brushSelect } = this.attribute;
24632
+ const { orient, backgroundStyle, backgroundChartStyle = {}, selectedBackgroundStyle = {}, selectedBackgroundChartStyle = {}, middleHandlerStyle = {}, startHandlerStyle = {}, endHandlerStyle = {}, brushSelect } = this.attribute;
24557
24633
  const { start, end } = this.state;
24558
24634
  const { position, width, height } = this.getLayoutAttrFromConfig();
24559
24635
  const startHandlerMinSize = (_a = startHandlerStyle.triggerMinSize) !== null && _a !== void 0 ? _a : 40;
@@ -24562,8 +24638,8 @@
24562
24638
  this._container = group;
24563
24639
  this._background = group.createOrUpdateChild('background', Object.assign({ x: position.x, y: position.y, width,
24564
24640
  height, cursor: brushSelect ? 'crosshair' : 'auto' }, backgroundStyle), 'rect');
24565
- ((_c = backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.line) === null || _c === void 0 ? void 0 : _c.visible) && this.setPreviewAttributes('line', group);
24566
- ((_d = backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.area) === null || _d === void 0 ? void 0 : _d.visible) && this.setPreviewAttributes('area', group);
24641
+ ((_c = backgroundChartStyle.line) === null || _c === void 0 ? void 0 : _c.visible) && this.setPreviewAttributes('line', group);
24642
+ ((_d = backgroundChartStyle.area) === null || _d === void 0 ? void 0 : _d.visible) && this.setPreviewAttributes('area', group);
24567
24643
  brushSelect && this.renderDragMask();
24568
24644
  if (this._isHorizontal) {
24569
24645
  this._selectedBackground = group.createOrUpdateChild('selectedBackground', Object.assign({ x: position.x + start * width, y: position.y, width: (end - start) * width, height: height, cursor: brushSelect ? 'crosshair' : 'move' }, selectedBackgroundStyle), 'rect');
@@ -24571,18 +24647,19 @@
24571
24647
  else {
24572
24648
  this._selectedBackground = group.createOrUpdateChild('selectedBackground', Object.assign({ x: position.x, y: position.y + start * height, width, height: (end - start) * height, cursor: brushSelect ? 'crosshair' : 'move' }, selectedBackgroundStyle), 'rect');
24573
24649
  }
24574
- ((_e = selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.line) === null || _e === void 0 ? void 0 : _e.visible) && this.setSelectedPreviewAttributes('line', group);
24575
- ((_f = selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.area) === null || _f === void 0 ? void 0 : _f.visible) && this.setSelectedPreviewAttributes('area', group);
24650
+ ((_e = selectedBackgroundChartStyle.line) === null || _e === void 0 ? void 0 : _e.visible) && this.setSelectedPreviewAttributes('line', group);
24651
+ ((_f = selectedBackgroundChartStyle.area) === null || _f === void 0 ? void 0 : _f.visible) && this.setSelectedPreviewAttributes('area', group);
24576
24652
  if (this._showText) {
24577
24653
  this.renderText();
24578
24654
  }
24579
24655
  if (this._isHorizontal) {
24580
- if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
24581
- this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: position.x + start * width, y: position.y - (((_g = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _g === void 0 ? void 0 : _g.size) || 10), width: (end - start) * width, height: ((_h = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _h === void 0 ? void 0 : _h.size) || 10 }, (_j = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _j === void 0 ? void 0 : _j.style), 'rect');
24582
- this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: position.x + ((start + end) / 2) * width, y: position.y - (((_k = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _k === void 0 ? void 0 : _k.size) || 10) / 2, strokeBoundsBuffer: 0, angle: 0, symbolType: (_m = (_l = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _l === void 0 ? void 0 : _l.symbolType) !== null && _m !== void 0 ? _m : 'square' }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
24656
+ if (middleHandlerStyle.visible) {
24657
+ const middleHandlerBackgroundSize = ((_g = middleHandlerStyle.background) === null || _g === void 0 ? void 0 : _g.size) || 10;
24658
+ this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: position.x + start * width, y: position.y - middleHandlerBackgroundSize, width: (end - start) * width, height: middleHandlerBackgroundSize }, (_h = middleHandlerStyle.background) === null || _h === void 0 ? void 0 : _h.style), 'rect');
24659
+ this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: position.x + ((start + end) / 2) * width, y: position.y - middleHandlerBackgroundSize / 2, strokeBoundsBuffer: 0, angle: 0, symbolType: (_k = (_j = middleHandlerStyle.icon) === null || _j === void 0 ? void 0 : _j.symbolType) !== null && _k !== void 0 ? _k : 'square' }, middleHandlerStyle.icon), 'symbol');
24583
24660
  }
24584
- this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + start * width, y: position.y + height / 2, size: height, symbolType: (_o = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _o !== void 0 ? _o : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), 'symbol');
24585
- this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + end * width, y: position.y + height / 2, size: height, symbolType: (_p = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _p !== void 0 ? _p : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), 'symbol');
24661
+ this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + start * width, y: position.y + height / 2, size: height, symbolType: (_l = startHandlerStyle.symbolType) !== null && _l !== void 0 ? _l : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), 'symbol');
24662
+ this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + end * width, y: position.y + height / 2, size: height, symbolType: (_m = endHandlerStyle.symbolType) !== null && _m !== void 0 ? _m : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), 'symbol');
24586
24663
  const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize);
24587
24664
  const startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize);
24588
24665
  const endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize);
@@ -24591,14 +24668,15 @@
24591
24668
  this._endHandlerMask = group.createOrUpdateChild('endHandlerMask', Object.assign({ x: position.x + end * width - endHandlerWidth / 2, y: position.y + height / 2 - endHandlerHeight / 2, width: endHandlerWidth, height: endHandlerHeight, fill: 'white', fillOpacity: 0, zIndex: 999 }, DEFAULT_HANDLER_ATTR_MAP.horizontal), 'rect');
24592
24669
  }
24593
24670
  else {
24594
- if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
24595
- this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: orient === 'left' ? position.x - (((_q = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _q === void 0 ? void 0 : _q.size) || 10) : position.x + width, y: position.y + start * height, width: ((_r = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _r === void 0 ? void 0 : _r.size) || 10, height: (end - start) * height }, (_s = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _s === void 0 ? void 0 : _s.style), 'rect');
24671
+ if (middleHandlerStyle.visible) {
24672
+ const middleHandlerBackgroundSize = ((_o = middleHandlerStyle.background) === null || _o === void 0 ? void 0 : _o.size) || 10;
24673
+ this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: orient === 'left' ? position.x - middleHandlerBackgroundSize : position.x + width, y: position.y + start * height, width: middleHandlerBackgroundSize, height: (end - start) * height }, (_p = middleHandlerStyle.background) === null || _p === void 0 ? void 0 : _p.style), 'rect');
24596
24674
  this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: orient === 'left'
24597
- ? position.x - (((_t = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _t === void 0 ? void 0 : _t.size) || 10) / 2
24598
- : position.x + width + (((_u = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _u === void 0 ? void 0 : _u.size) || 10) / 2, y: position.y + ((start + end) / 2) * height, angle: 90 * (Math.PI / 180), symbolType: (_w = (_v = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _v === void 0 ? void 0 : _v.symbolType) !== null && _w !== void 0 ? _w : 'square', strokeBoundsBuffer: 0 }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
24675
+ ? position.x - middleHandlerBackgroundSize / 2
24676
+ : position.x + width + middleHandlerBackgroundSize / 2, y: position.y + ((start + end) / 2) * height, angle: 90 * (Math.PI / 180), symbolType: (_r = (_q = middleHandlerStyle.icon) === null || _q === void 0 ? void 0 : _q.symbolType) !== null && _r !== void 0 ? _r : 'square', strokeBoundsBuffer: 0 }, middleHandlerStyle.icon), 'symbol');
24599
24677
  }
24600
- this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + start * height, size: width, symbolType: (_x = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _x !== void 0 ? _x : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), 'symbol');
24601
- this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + end * height, size: width, symbolType: (_y = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _y !== void 0 ? _y : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), 'symbol');
24678
+ this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + start * height, size: width, symbolType: (_s = startHandlerStyle.symbolType) !== null && _s !== void 0 ? _s : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), 'symbol');
24679
+ this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + end * height, size: width, symbolType: (_t = endHandlerStyle.symbolType) !== null && _t !== void 0 ? _t : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), 'symbol');
24602
24680
  const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize);
24603
24681
  const startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize);
24604
24682
  const endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize);
@@ -24697,11 +24775,11 @@
24697
24775
  else {
24698
24776
  this._previewArea = this._previewGroup.createOrUpdateChild('previewArea', { curveType: 'basis' }, 'area');
24699
24777
  }
24700
- const { backgroundChartStyle } = this.attribute;
24778
+ const { backgroundChartStyle = {} } = this.attribute;
24701
24779
  type === 'line' &&
24702
- this._previewLine.setAttributes(Object.assign({ points: this.getPreviewLinePoints(), curveType: 'basis', pickable: false }, backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.line));
24780
+ this._previewLine.setAttributes(Object.assign({ points: this.getPreviewLinePoints(), curveType: 'basis', pickable: false }, backgroundChartStyle.line));
24703
24781
  type === 'area' &&
24704
- this._previewArea.setAttributes(Object.assign({ points: this.getPreviewAreaPoints(), curveType: 'basis', pickable: false }, backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.area));
24782
+ this._previewArea.setAttributes(Object.assign({ points: this.getPreviewAreaPoints(), curveType: 'basis', pickable: false }, backgroundChartStyle.area));
24705
24783
  }
24706
24784
  setSelectedPreviewAttributes(type, group) {
24707
24785
  if (!this._selectedPreviewGroupClip) {
@@ -24714,7 +24792,7 @@
24714
24792
  else {
24715
24793
  this._selectedPreviewArea = this._selectedPreviewGroup.createOrUpdateChild('selectedPreviewArea', { curveType: 'basis' }, 'area');
24716
24794
  }
24717
- const { selectedBackgroundChartStyle } = this.attribute;
24795
+ const { selectedBackgroundChartStyle = {} } = this.attribute;
24718
24796
  const { start, end } = this.state;
24719
24797
  const { position, width, height } = this.getLayoutAttrFromConfig();
24720
24798
  this._selectedPreviewGroupClip.setAttributes({
@@ -24733,9 +24811,9 @@
24733
24811
  pickable: false
24734
24812
  });
24735
24813
  type === 'line' &&
24736
- this._selectedPreviewLine.setAttributes(Object.assign({ points: this.getPreviewLinePoints(), curveType: 'basis', pickable: false }, selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.line));
24814
+ this._selectedPreviewLine.setAttributes(Object.assign({ points: this.getPreviewLinePoints(), curveType: 'basis', pickable: false }, selectedBackgroundChartStyle.line));
24737
24815
  type === 'area' &&
24738
- this._selectedPreviewArea.setAttributes(Object.assign({ points: this.getPreviewAreaPoints(), curveType: 'basis', pickable: false }, selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.area));
24816
+ this._selectedPreviewArea.setAttributes(Object.assign({ points: this.getPreviewAreaPoints(), curveType: 'basis', pickable: false }, selectedBackgroundChartStyle.area));
24739
24817
  }
24740
24818
  maybeAddLabel(container, attributes, name) {
24741
24819
  let labelShape = this.find(node => node.name === name, true);
@@ -24783,9 +24861,9 @@
24783
24861
  }
24784
24862
  getMiddleHandlerSize() {
24785
24863
  var _a, _b, _c, _d;
24786
- const { middleHandlerStyle } = this.attribute;
24787
- const middleHandlerRectSize = (_b = (_a = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 10;
24788
- const middleHandlerSymbolSize = (_d = (_c = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : 10;
24864
+ const { middleHandlerStyle = {} } = this.attribute;
24865
+ const middleHandlerRectSize = (_b = (_a = middleHandlerStyle.background) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 10;
24866
+ const middleHandlerSymbolSize = (_d = (_c = middleHandlerStyle.icon) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : 10;
24789
24867
  return Math.max(middleHandlerRectSize, ...vutils.array(middleHandlerSymbolSize));
24790
24868
  }
24791
24869
  setPreviewPointsX(callback) {
@@ -24847,13 +24925,13 @@
24847
24925
  }
24848
24926
  _initContainer() {
24849
24927
  var _a, _b;
24850
- const { limitRect, clipInRange } = this.attribute;
24928
+ const { limitRect = {}, clipInRange } = this.attribute;
24851
24929
  let group;
24852
24930
  if (clipInRange) {
24853
24931
  const groupClip = graphicCreator.group(Object.assign(Object.assign({}, limitRect), { clip: true, pickable: false }));
24854
24932
  group = graphicCreator.group({
24855
- x: -((_a = limitRect === null || limitRect === void 0 ? void 0 : limitRect.x) !== null && _a !== void 0 ? _a : 0),
24856
- y: -((_b = limitRect === null || limitRect === void 0 ? void 0 : limitRect.y) !== null && _b !== void 0 ? _b : 0),
24933
+ x: -((_a = limitRect.x) !== null && _a !== void 0 ? _a : 0),
24934
+ y: -((_b = limitRect.y) !== null && _b !== void 0 ? _b : 0),
24857
24935
  pickable: false
24858
24936
  });
24859
24937
  groupClip.add(group);
@@ -24872,12 +24950,14 @@
24872
24950
  this._container = group;
24873
24951
  }
24874
24952
  _updateContainer() {
24875
- var _a, _b, _c;
24876
- const { limitRect, clipInRange } = this.attribute;
24877
- (_a = this._containerClip) === null || _a === void 0 ? void 0 : _a.setAttributes(Object.assign({}, limitRect));
24953
+ var _a, _b;
24954
+ const { limitRect = {}, clipInRange } = this.attribute;
24955
+ if (this._containerClip) {
24956
+ this._containerClip.setAttributes(Object.assign({}, limitRect));
24957
+ }
24878
24958
  this._container.setAttributes({
24879
- x: clipInRange ? -((_b = limitRect === null || limitRect === void 0 ? void 0 : limitRect.x) !== null && _b !== void 0 ? _b : 0) : 0,
24880
- y: clipInRange ? -((_c = limitRect === null || limitRect === void 0 ? void 0 : limitRect.y) !== null && _c !== void 0 ? _c : 0) : 0
24959
+ x: clipInRange ? -((_a = limitRect.x) !== null && _a !== void 0 ? _a : 0) : 0,
24960
+ y: clipInRange ? -((_b = limitRect.y) !== null && _b !== void 0 ? _b : 0) : 0
24881
24961
  });
24882
24962
  }
24883
24963
  render() {
@@ -25216,7 +25296,7 @@
25216
25296
  y: points[points.length - 1].y + labelOffsetY
25217
25297
  };
25218
25298
  }
25219
- this._label.setAttributes(Object.assign(Object.assign({}, labelPoint), { angle: label.autoRotate ? labelAngle + ((_b = label === null || label === void 0 ? void 0 : label.refAngle) !== null && _b !== void 0 ? _b : 0) : 0, textStyle: Object.assign(Object.assign({}, DEFAULT_MARK_LINE_TEXT_STYLE_MAP[position]), label.textStyle) }));
25299
+ this._label.setAttributes(Object.assign(Object.assign({}, labelPoint), { angle: label.autoRotate ? labelAngle + ((_b = label.refAngle) !== null && _b !== void 0 ? _b : 0) : 0, textStyle: Object.assign(Object.assign({}, DEFAULT_MARK_LINE_TEXT_STYLE_MAP[position]), label.textStyle) }));
25220
25300
  if (limitRect && confine) {
25221
25301
  const { x, y, width, height } = limitRect;
25222
25302
  limitShapeInBounds(this._label, {
@@ -25249,18 +25329,21 @@
25249
25329
  this.setLabelPos();
25250
25330
  }
25251
25331
  updateMarker() {
25252
- var _a, _b;
25253
25332
  const { points, startSymbol, endSymbol, label, lineStyle, mainSegmentIndex, multiSegment } = this
25254
25333
  .attribute;
25255
- (_a = this._line) === null || _a === void 0 ? void 0 : _a.setAttributes({
25256
- points,
25257
- startSymbol,
25258
- endSymbol,
25259
- lineStyle,
25260
- mainSegmentIndex,
25261
- multiSegment
25262
- });
25263
- (_b = this._label) === null || _b === void 0 ? void 0 : _b.setAttributes(Object.assign({ dx: 0, dy: 0 }, label));
25334
+ if (this._line) {
25335
+ this._line.setAttributes({
25336
+ points,
25337
+ startSymbol,
25338
+ endSymbol,
25339
+ lineStyle,
25340
+ mainSegmentIndex,
25341
+ multiSegment
25342
+ });
25343
+ }
25344
+ if (this._label) {
25345
+ this._label.setAttributes(Object.assign({ dx: 0, dy: 0 }, label));
25346
+ }
25264
25347
  this.setLabelPos();
25265
25348
  }
25266
25349
  isValidPoints() {
@@ -25319,11 +25402,11 @@
25319
25402
  setLabelPos() {
25320
25403
  var _a;
25321
25404
  if (this._label && this._area) {
25322
- const { label } = this.attribute;
25323
- const labelPosition = (_a = label === null || label === void 0 ? void 0 : label.position) !== null && _a !== void 0 ? _a : 'middle';
25405
+ const { label = {} } = this.attribute;
25406
+ const labelPosition = (_a = label.position) !== null && _a !== void 0 ? _a : 'middle';
25324
25407
  const labelPoint = this._getPositionByDirection(this._area, labelPosition);
25325
25408
  this._label.setAttributes(Object.assign(Object.assign({}, labelPoint), { textStyle: Object.assign(Object.assign({}, DEFAULT_MARK_AREA_TEXT_STYLE_MAP[labelPosition]), label.textStyle) }));
25326
- if (this.attribute.limitRect && (label === null || label === void 0 ? void 0 : label.confine)) {
25409
+ if (this.attribute.limitRect && label.confine) {
25327
25410
  const { x, y, width, height } = this.attribute.limitRect;
25328
25411
  limitShapeInBounds(this._label, {
25329
25412
  x1: x,
@@ -25347,10 +25430,13 @@
25347
25430
  this.setLabelPos();
25348
25431
  }
25349
25432
  updateMarker() {
25350
- var _a, _b;
25351
25433
  const { points, label, areaStyle } = this.attribute;
25352
- (_a = this._area) === null || _a === void 0 ? void 0 : _a.setAttributes(Object.assign({ points: points }, areaStyle));
25353
- (_b = this._label) === null || _b === void 0 ? void 0 : _b.setAttributes(Object.assign({ dx: 0, dy: 0 }, label));
25434
+ if (this._area) {
25435
+ this._area.setAttributes(Object.assign({ points: points }, areaStyle));
25436
+ }
25437
+ if (this._area) {
25438
+ this._label.setAttributes(Object.assign({ dx: 0, dy: 0 }, label));
25439
+ }
25354
25440
  this.setLabelPos();
25355
25441
  }
25356
25442
  isValidPoints() {
@@ -25376,23 +25462,23 @@
25376
25462
  if (!item) {
25377
25463
  return;
25378
25464
  }
25379
- const { autoRotate = true, refX = 0, refY = 0, refAngle = 0, textStyle, richTextStyle, imageStyle, position = exports.IMarkPointItemPosition.middle } = itemContent;
25465
+ const { autoRotate = true, refX = 0, refY = 0, refAngle = 0, textStyle = {}, richTextStyle = {}, imageStyle = {}, position = exports.IMarkPointItemPosition.middle } = itemContent;
25380
25466
  const itemAngle = ((_a = this._line) === null || _a === void 0 ? void 0 : _a.getEndAngle()) || 0;
25381
25467
  const itemOffsetX = refX * Math.cos(itemAngle) + refY * Math.cos(itemAngle - Math.PI / 2);
25382
25468
  const itemOffsetY = refX * Math.sin(itemAngle) + refY * Math.sin(itemAngle - Math.PI / 2);
25383
25469
  if (itemType === 'text') {
25384
- item.setAttributes(Object.assign(Object.assign({}, textStyle), { textStyle: Object.assign(Object.assign({}, DEFAULT_MARK_POINT_TEXT_STYLE_MAP[(itemContent === null || itemContent === void 0 ? void 0 : itemContent.position) || 'end']), textStyle === null || textStyle === void 0 ? void 0 : textStyle.textStyle) }));
25470
+ item.setAttributes(Object.assign(Object.assign({}, textStyle), { textStyle: Object.assign(Object.assign({}, DEFAULT_MARK_POINT_TEXT_STYLE_MAP[(itemContent === null || itemContent === void 0 ? void 0 : itemContent.position) || 'end']), textStyle.textStyle) }));
25385
25471
  }
25386
25472
  else if (itemType === 'richText') {
25387
25473
  item.setAttributes({
25388
- dx: this.getItemDx(item, position, richTextStyle) + ((richTextStyle === null || richTextStyle === void 0 ? void 0 : richTextStyle.dx) || 0),
25389
- dy: this.getItemDy(item, position, richTextStyle) + ((richTextStyle === null || richTextStyle === void 0 ? void 0 : richTextStyle.dy) || 0)
25474
+ dx: this.getItemDx(item, position, richTextStyle) + (richTextStyle.dx || 0),
25475
+ dy: this.getItemDy(item, position, richTextStyle) + (richTextStyle.dy || 0)
25390
25476
  });
25391
25477
  }
25392
25478
  else if (itemType === 'image') {
25393
25479
  item.setAttributes({
25394
- dx: this.getItemDx(item, position, imageStyle) + ((imageStyle === null || imageStyle === void 0 ? void 0 : imageStyle.dx) || 0),
25395
- dy: this.getItemDy(item, position, imageStyle) + ((imageStyle === null || imageStyle === void 0 ? void 0 : imageStyle.dy) || 0)
25480
+ dx: this.getItemDx(item, position, imageStyle) + (imageStyle.dx || 0),
25481
+ dy: this.getItemDy(item, position, imageStyle) + (imageStyle.dy || 0)
25396
25482
  });
25397
25483
  }
25398
25484
  item.setAttributes({
@@ -25483,16 +25569,17 @@
25483
25569
  return points;
25484
25570
  }
25485
25571
  setItemLineAttr(itemLine, position, itemPosition, visible) {
25486
- var _a;
25487
- const { startSymbol, endSymbol, lineStyle } = itemLine;
25488
- const points = this.getItemLineAttr(itemLine, position, itemPosition);
25489
- (_a = this._line) === null || _a === void 0 ? void 0 : _a.setAttributes({
25490
- points,
25491
- startSymbol,
25492
- endSymbol,
25493
- lineStyle,
25494
- visible
25495
- });
25572
+ if (this._line) {
25573
+ const { startSymbol, endSymbol, lineStyle } = itemLine;
25574
+ const points = this.getItemLineAttr(itemLine, position, itemPosition);
25575
+ this._line.setAttributes({
25576
+ points,
25577
+ startSymbol,
25578
+ endSymbol,
25579
+ lineStyle,
25580
+ visible
25581
+ });
25582
+ }
25496
25583
  }
25497
25584
  getDecorativeLineAttr(itemLine, itemPosition) {
25498
25585
  var _a;
@@ -25510,26 +25597,27 @@
25510
25597
  };
25511
25598
  }
25512
25599
  setDecorativeLineAttr(itemLine, itemPosition, visible) {
25513
- var _a;
25514
- const { lineStyle } = itemLine;
25515
- const { startPointOffsetX, startPointOffsetY, endPointOffsetX, endPointOffsetY } = this.getDecorativeLineAttr(itemLine, itemPosition);
25516
- (_a = this._decorativeLine) === null || _a === void 0 ? void 0 : _a.setAttributes(Object.assign(Object.assign({ points: [
25517
- {
25518
- x: itemPosition.x + startPointOffsetX,
25519
- y: itemPosition.y + startPointOffsetY
25520
- },
25521
- {
25522
- x: itemPosition.x + endPointOffsetX,
25523
- y: itemPosition.y + endPointOffsetY
25524
- }
25525
- ] }, lineStyle), { visible }));
25600
+ if (this._decorativeLine) {
25601
+ const { lineStyle } = itemLine;
25602
+ const { startPointOffsetX, startPointOffsetY, endPointOffsetX, endPointOffsetY } = this.getDecorativeLineAttr(itemLine, itemPosition);
25603
+ this._decorativeLine.setAttributes(Object.assign(Object.assign({ points: [
25604
+ {
25605
+ x: itemPosition.x + startPointOffsetX,
25606
+ y: itemPosition.y + startPointOffsetY
25607
+ },
25608
+ {
25609
+ x: itemPosition.x + endPointOffsetX,
25610
+ y: itemPosition.y + endPointOffsetY
25611
+ }
25612
+ ] }, lineStyle), { visible }));
25613
+ }
25526
25614
  }
25527
25615
  initMarker(container) {
25528
25616
  var _a;
25529
- const { position, itemLine, itemContent } = this.attribute;
25617
+ const { position, itemLine = {}, itemContent = {} } = this.attribute;
25530
25618
  const itemPosition = {
25531
- x: position.x + ((itemContent === null || itemContent === void 0 ? void 0 : itemContent.offsetX) || 0),
25532
- y: position.y + ((itemContent === null || itemContent === void 0 ? void 0 : itemContent.offsetY) || 0)
25619
+ x: position.x + (itemContent.offsetX || 0),
25620
+ y: position.y + (itemContent.offsetY || 0)
25533
25621
  };
25534
25622
  const line = new Segment({
25535
25623
  points: [],
@@ -25544,22 +25632,22 @@
25544
25632
  decorativeLine.name = 'mark-point-decorativeLine';
25545
25633
  this._decorativeLine = decorativeLine;
25546
25634
  container.add(decorativeLine);
25547
- this.setItemLineAttr(itemLine, position, itemPosition, itemLine === null || itemLine === void 0 ? void 0 : itemLine.visible);
25548
- this.setDecorativeLineAttr(itemLine, itemPosition, (_a = itemLine === null || itemLine === void 0 ? void 0 : itemLine.decorativeLine) === null || _a === void 0 ? void 0 : _a.visible);
25635
+ this.setItemLineAttr(itemLine, position, itemPosition, itemLine.visible);
25636
+ this.setDecorativeLineAttr(itemLine, itemPosition, (_a = itemLine.decorativeLine) === null || _a === void 0 ? void 0 : _a.visible);
25549
25637
  const item = this.initItem(itemContent, itemPosition);
25550
25638
  this._item = item;
25551
25639
  container.add(item);
25552
25640
  }
25553
25641
  updateMarker() {
25554
25642
  var _a;
25555
- const { position, itemLine, itemContent } = this.attribute;
25643
+ const { position, itemLine = {}, itemContent = {} } = this.attribute;
25556
25644
  const { type = 'text' } = itemContent;
25557
25645
  const itemPosition = {
25558
- x: position.x + ((itemContent === null || itemContent === void 0 ? void 0 : itemContent.offsetX) || 0),
25559
- y: position.y + ((itemContent === null || itemContent === void 0 ? void 0 : itemContent.offsetY) || 0)
25646
+ x: position.x + (itemContent.offsetX || 0),
25647
+ y: position.y + (itemContent.offsetY || 0)
25560
25648
  };
25561
- this.setItemLineAttr(itemLine, position, itemPosition, itemLine === null || itemLine === void 0 ? void 0 : itemLine.visible);
25562
- this.setDecorativeLineAttr(itemLine, itemPosition, (_a = itemLine === null || itemLine === void 0 ? void 0 : itemLine.decorativeLine) === null || _a === void 0 ? void 0 : _a.visible);
25649
+ this.setItemLineAttr(itemLine, position, itemPosition, itemLine.visible);
25650
+ this.setDecorativeLineAttr(itemLine, itemPosition, (_a = itemLine.decorativeLine) === null || _a === void 0 ? void 0 : _a.visible);
25563
25651
  this.setItemAttributes(this._item, itemContent, itemPosition, type);
25564
25652
  }
25565
25653
  isValidPoints() {
@@ -25890,9 +25978,8 @@
25890
25978
  this._itemHeight = 0;
25891
25979
  this._itemMaxWidth = 0;
25892
25980
  this._onHover = (e) => {
25893
- var _a;
25894
25981
  const target = e.target;
25895
- if ((_a = target === null || target === void 0 ? void 0 : target.name) === null || _a === void 0 ? void 0 : _a.startsWith(exports.LEGEND_ELEMENT_NAME.item)) {
25982
+ if (target && target.name && target.name.startsWith(exports.LEGEND_ELEMENT_NAME.item)) {
25896
25983
  const legendItem = target.delegate;
25897
25984
  if (this._lastActiveItem) {
25898
25985
  if (this._lastActiveItem.id === legendItem.id) {
@@ -25914,15 +26001,15 @@
25914
26001
  }
25915
26002
  };
25916
26003
  this._onClick = (e) => {
25917
- var _a, _b, _c, _d, _e;
26004
+ var _a, _b, _c, _d;
25918
26005
  const target = e.target;
25919
- if ((_a = target === null || target === void 0 ? void 0 : target.name) === null || _a === void 0 ? void 0 : _a.startsWith(exports.LEGEND_ELEMENT_NAME.item)) {
26006
+ if (target && target.name && target.name.startsWith(exports.LEGEND_ELEMENT_NAME.item)) {
25920
26007
  const legendItem = target.delegate;
25921
26008
  if (target.name === exports.LEGEND_ELEMENT_NAME.focus) {
25922
26009
  const isFocusSelected = legendItem.hasState(exports.LegendStateValue.focus);
25923
26010
  legendItem.toggleState(exports.LegendStateValue.focus);
25924
26011
  if (isFocusSelected) {
25925
- (_b = this._itemsContainer) === null || _b === void 0 ? void 0 : _b.getChildren().forEach(item => {
26012
+ (_a = this._itemsContainer) === null || _a === void 0 ? void 0 : _a.getChildren().forEach(item => {
25926
26013
  this._removeLegendItemState(item, [exports.LegendStateValue.unSelected, exports.LegendStateValue.unSelectedHover, exports.LegendStateValue.focus], e);
25927
26014
  this._setLegendItemState(item, exports.LegendStateValue.selected, e);
25928
26015
  });
@@ -25930,7 +26017,7 @@
25930
26017
  else {
25931
26018
  this._setLegendItemState(legendItem, exports.LegendStateValue.selected, e);
25932
26019
  this._removeLegendItemState(legendItem, [exports.LegendStateValue.unSelected, exports.LegendStateValue.unSelectedHover], e);
25933
- (_c = this._itemsContainer) === null || _c === void 0 ? void 0 : _c.getChildren().forEach(item => {
26020
+ (_b = this._itemsContainer) === null || _b === void 0 ? void 0 : _b.getChildren().forEach(item => {
25934
26021
  if (legendItem !== item) {
25935
26022
  this._removeLegendItemState(item, [exports.LegendStateValue.selected, exports.LegendStateValue.selectedHover, exports.LegendStateValue.focus], e);
25936
26023
  this._setLegendItemState(item, exports.LegendStateValue.unSelected, e);
@@ -25939,7 +26026,7 @@
25939
26026
  }
25940
26027
  }
25941
26028
  else {
25942
- (_d = this._itemsContainer) === null || _d === void 0 ? void 0 : _d.getChildren().forEach(item => {
26029
+ (_c = this._itemsContainer) === null || _c === void 0 ? void 0 : _c.getChildren().forEach(item => {
25943
26030
  item.removeState(exports.LegendStateValue.focus);
25944
26031
  });
25945
26032
  const { selectMode = 'multiple', allowAllCanceled = true } = this.attribute;
@@ -25962,7 +26049,7 @@
25962
26049
  else {
25963
26050
  this._setLegendItemState(legendItem, exports.LegendStateValue.selected, e);
25964
26051
  this._removeLegendItemState(legendItem, [exports.LegendStateValue.unSelected, exports.LegendStateValue.unSelectedHover], e);
25965
- (_e = this._itemsContainer) === null || _e === void 0 ? void 0 : _e.getChildren().forEach(item => {
26052
+ (_d = this._itemsContainer) === null || _d === void 0 ? void 0 : _d.getChildren().forEach(item => {
25966
26053
  if (legendItem !== item) {
25967
26054
  this._removeLegendItemState(item, [exports.LegendStateValue.selected, exports.LegendStateValue.selectedHover], e);
25968
26055
  this._setLegendItemState(item, exports.LegendStateValue.unSelected, e);
@@ -26140,7 +26227,7 @@
26140
26227
  let focusStartX = 0;
26141
26228
  let shapeSize = 0;
26142
26229
  let shapeSpace = 0;
26143
- if ((shapeAttr === null || shapeAttr === void 0 ? void 0 : shapeAttr.visible) !== false) {
26230
+ if (shapeAttr && shapeAttr.visible !== false) {
26144
26231
  shapeSize = vutils.get(shapeStyle, 'style.size', DEFAULT_SHAPE_SIZE);
26145
26232
  shapeSpace = vutils.get(shapeAttr, 'space', DEFAULT_SHAPE_SPACE);
26146
26233
  const itemShape = graphicCreator.symbol(Object.assign(Object.assign({ x: 0, y: 0, symbolType: 'circle', strokeBoundsBuffer: 0 }, shape), shapeStyle.style));
@@ -26778,15 +26865,16 @@
26778
26865
  const originPos = (this._isHorizontal ? endHandler.attribute.x : endHandler.attribute.y);
26779
26866
  const newPos = vutils.clamp(originPos + delta, trackLen, railLen);
26780
26867
  const currentValue = (newPos / railLen) * (max - min) + min;
26868
+ const startHandlerAttribute = startHandler === null || startHandler === void 0 ? void 0 : startHandler.attribute;
26781
26869
  this._updateHandler(endHandler, newPos, currentValue);
26782
26870
  this._track.setAttributes(this._isHorizontal
26783
26871
  ? {
26784
- x: Math.min(startHandler === null || startHandler === void 0 ? void 0 : startHandler.attribute.x, endHandler === null || endHandler === void 0 ? void 0 : endHandler.attribute.x),
26785
- width: Math.abs((startHandler === null || startHandler === void 0 ? void 0 : startHandler.attribute.x) - (endHandler === null || endHandler === void 0 ? void 0 : endHandler.attribute.x))
26872
+ x: Math.min(startHandlerAttribute.x, endHandler.attribute.x),
26873
+ width: Math.abs(startHandlerAttribute.x - endHandler.attribute.x)
26786
26874
  }
26787
26875
  : {
26788
- y: Math.min(startHandler === null || startHandler === void 0 ? void 0 : startHandler.attribute.y, endHandler === null || endHandler === void 0 ? void 0 : endHandler.attribute.y),
26789
- height: Math.abs((startHandler === null || startHandler === void 0 ? void 0 : startHandler.attribute.y) - (endHandler === null || endHandler === void 0 ? void 0 : endHandler.attribute.y))
26876
+ y: Math.min(startHandlerAttribute.y, endHandler.attribute.y),
26877
+ height: Math.abs(startHandlerAttribute.y - endHandler.attribute.y)
26790
26878
  });
26791
26879
  }
26792
26880
  this._prePos = currentPos;
@@ -27042,7 +27130,7 @@
27042
27130
  const handlerStart = max === min ? (position === 'start' ? 0 : railLen) : ((value - min) / (max - min)) * railLen;
27043
27131
  const textSpace = (_a = handlerText.space) !== null && _a !== void 0 ? _a : 4;
27044
27132
  const textStyle = {
27045
- text: (handlerText === null || handlerText === void 0 ? void 0 : handlerText.formatter) ? handlerText.formatter(value) : value.toFixed((_b = handlerText === null || handlerText === void 0 ? void 0 : handlerText.precision) !== null && _b !== void 0 ? _b : 0),
27133
+ text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed((_b = handlerText.precision) !== null && _b !== void 0 ? _b : 0),
27046
27134
  lineHeight: (_c = handlerText.style) === null || _c === void 0 ? void 0 : _c.lineHeight,
27047
27135
  cursor: slidable === false ? 'default' : getDefaultCursor(isHorizontal)
27048
27136
  };
@@ -27141,9 +27229,9 @@
27141
27229
  handler.setAttribute(isHorizontal ? 'x' : 'y', position);
27142
27230
  const updateHandlerText = handler.name === exports.SLIDER_ELEMENT_NAME.startHandler ? this._startHandlerText : this._endHandlerText;
27143
27231
  if (updateHandlerText) {
27144
- const { handlerText } = this.attribute;
27145
- updateHandlerText === null || updateHandlerText === void 0 ? void 0 : updateHandlerText.setAttributes({
27146
- text: (handlerText === null || handlerText === void 0 ? void 0 : handlerText.formatter) ? handlerText.formatter(value) : value.toFixed((_a = handlerText === null || handlerText === void 0 ? void 0 : handlerText.precision) !== null && _a !== void 0 ? _a : 0),
27232
+ const { handlerText = {} } = this.attribute;
27233
+ updateHandlerText.setAttributes({
27234
+ text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed((_a = handlerText.precision) !== null && _a !== void 0 ? _a : 0),
27147
27235
  [isHorizontal ? 'x' : 'y']: position
27148
27236
  });
27149
27237
  }
@@ -27159,16 +27247,14 @@
27159
27247
  _updateHandlerText(handlerText, position, value) {
27160
27248
  var _a;
27161
27249
  const isHorizontal = this._isHorizontal;
27162
- const { handlerText: handlerTextAttr } = this.attribute;
27250
+ const { handlerText: handlerTextAttr = {} } = this.attribute;
27163
27251
  handlerText.setAttributes({
27164
27252
  [isHorizontal ? 'x' : 'y']: position,
27165
- text: (handlerTextAttr === null || handlerTextAttr === void 0 ? void 0 : handlerTextAttr.formatter)
27166
- ? handlerTextAttr.formatter(value)
27167
- : value.toFixed((_a = handlerTextAttr === null || handlerTextAttr === void 0 ? void 0 : handlerTextAttr.precision) !== null && _a !== void 0 ? _a : 0)
27253
+ text: handlerTextAttr.formatter ? handlerTextAttr.formatter(value) : value.toFixed((_a = handlerTextAttr.precision) !== null && _a !== void 0 ? _a : 0)
27168
27254
  });
27169
27255
  const updateHandler = handlerText.name === exports.SLIDER_ELEMENT_NAME.startHandlerText ? this._startHandler : this._endHandler;
27170
27256
  if (updateHandler) {
27171
- updateHandler === null || updateHandler === void 0 ? void 0 : updateHandler.setAttributes({
27257
+ updateHandler.setAttributes({
27172
27258
  [isHorizontal ? 'x' : 'y']: position
27173
27259
  });
27174
27260
  }
@@ -27592,46 +27678,46 @@
27592
27678
  this.name = 'title';
27593
27679
  }
27594
27680
  render() {
27595
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55;
27596
- const { textType, text, subtextType, textStyle, subtext, subtextStyle, width, height, minWidth, maxWidth, minHeight, maxHeight, align, verticalAlign, padding = 0 } = this.attribute;
27681
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17;
27682
+ const { textType, text, subtextType, textStyle = {}, subtext, subtextStyle = {}, width, height, minWidth, maxWidth, minHeight, maxHeight, align, verticalAlign, padding = 0 } = this.attribute;
27597
27683
  const parsedPadding = vutils.normalizePadding(padding);
27598
27684
  const group = this.createOrUpdateChild('title-container', { x: parsedPadding[3], y: parsedPadding[0], zIndex: 1 }, 'group');
27599
- if (((_a = this.attribute) === null || _a === void 0 ? void 0 : _a.visible) !== false && (textStyle === null || textStyle === void 0 ? void 0 : textStyle.visible) !== false) {
27685
+ if (this.attribute.visible !== false && textStyle.visible !== false) {
27600
27686
  if (textType === 'rich' || vutils.isValid(textStyle.character)) {
27601
- const attr = Object.assign({ x: (_b = textStyle.x) !== null && _b !== void 0 ? _b : 0, y: (_c = textStyle.y) !== null && _c !== void 0 ? _c : 0, width: (_e = (_d = textStyle.width) !== null && _d !== void 0 ? _d : width) !== null && _e !== void 0 ? _e : 0, height: (_g = (_f = textStyle.height) !== null && _f !== void 0 ? _f : height) !== null && _g !== void 0 ? _g : 0, ellipsis: (_h = textStyle.ellipsis) !== null && _h !== void 0 ? _h : true, wordBreak: (_j = textStyle.wordBreak) !== null && _j !== void 0 ? _j : 'break-word', maxHeight: textStyle.maxHeight, maxWidth: textStyle.maxWidth, textConfig: (_k = textStyle.character) !== null && _k !== void 0 ? _k : text }, textStyle);
27687
+ const attr = Object.assign({ x: (_a = textStyle.x) !== null && _a !== void 0 ? _a : 0, y: (_b = textStyle.y) !== null && _b !== void 0 ? _b : 0, width: (_d = (_c = textStyle.width) !== null && _c !== void 0 ? _c : width) !== null && _d !== void 0 ? _d : 0, height: (_f = (_e = textStyle.height) !== null && _e !== void 0 ? _e : height) !== null && _f !== void 0 ? _f : 0, ellipsis: (_g = textStyle.ellipsis) !== null && _g !== void 0 ? _g : true, wordBreak: (_h = textStyle.wordBreak) !== null && _h !== void 0 ? _h : 'break-word', maxHeight: textStyle.maxHeight, maxWidth: textStyle.maxWidth, textConfig: (_j = textStyle.character) !== null && _j !== void 0 ? _j : text }, textStyle);
27602
27688
  this._mainTitle = group.createOrUpdateChild('mainTitle', attr, 'richtext');
27603
27689
  }
27604
27690
  else if (textType === 'html') {
27605
- const attr = Object.assign({ html: Object.assign(Object.assign({ dom: text }, DEFAULT_HTML_TEXT_SPEC), textStyle), x: (_l = textStyle.x) !== null && _l !== void 0 ? _l : 0, y: (_m = textStyle.y) !== null && _m !== void 0 ? _m : 0, width: (_p = (_o = textStyle.width) !== null && _o !== void 0 ? _o : width) !== null && _p !== void 0 ? _p : 0, height: (_r = (_q = textStyle.height) !== null && _q !== void 0 ? _q : height) !== null && _r !== void 0 ? _r : 0, ellipsis: (_s = textStyle.ellipsis) !== null && _s !== void 0 ? _s : true, wordBreak: (_t = textStyle.wordBreak) !== null && _t !== void 0 ? _t : 'break-word', maxHeight: textStyle.maxHeight, maxWidth: textStyle.maxWidth, textConfig: [] }, textStyle);
27691
+ const attr = Object.assign({ html: Object.assign(Object.assign({ dom: text }, DEFAULT_HTML_TEXT_SPEC), textStyle), x: (_k = textStyle.x) !== null && _k !== void 0 ? _k : 0, y: (_l = textStyle.y) !== null && _l !== void 0 ? _l : 0, width: (_o = (_m = textStyle.width) !== null && _m !== void 0 ? _m : width) !== null && _o !== void 0 ? _o : 0, height: (_q = (_p = textStyle.height) !== null && _p !== void 0 ? _p : height) !== null && _q !== void 0 ? _q : 0, ellipsis: (_r = textStyle.ellipsis) !== null && _r !== void 0 ? _r : true, wordBreak: (_s = textStyle.wordBreak) !== null && _s !== void 0 ? _s : 'break-word', maxHeight: textStyle.maxHeight, maxWidth: textStyle.maxWidth, textConfig: [] }, textStyle);
27606
27692
  this._mainTitle = group.createOrUpdateChild('mainTitle', attr, 'richtext');
27607
27693
  }
27608
27694
  else if (vutils.isValid(text)) {
27609
- this._mainTitle = group.createOrUpdateChild('mainTitle', Object.assign(Object.assign({ text: [text] }, textStyle), { maxLineWidth: (_u = textStyle === null || textStyle === void 0 ? void 0 : textStyle.maxLineWidth) !== null && _u !== void 0 ? _u : width, heightLimit: textStyle === null || textStyle === void 0 ? void 0 : textStyle.heightLimit, lineClamp: textStyle === null || textStyle === void 0 ? void 0 : textStyle.lineClamp, ellipsis: (_v = textStyle === null || textStyle === void 0 ? void 0 : textStyle.ellipsis) !== null && _v !== void 0 ? _v : true, x: 0, y: 0 }), 'wrapText');
27695
+ this._mainTitle = group.createOrUpdateChild('mainTitle', Object.assign(Object.assign({ text: [text] }, textStyle), { maxLineWidth: (_t = textStyle.maxLineWidth) !== null && _t !== void 0 ? _t : width, heightLimit: textStyle.heightLimit, lineClamp: textStyle.lineClamp, ellipsis: (_u = textStyle.ellipsis) !== null && _u !== void 0 ? _u : true, x: 0, y: 0 }), 'wrapText');
27610
27696
  }
27611
27697
  }
27612
- const maintextHeight = this._mainTitle ? (_w = this._mainTitle) === null || _w === void 0 ? void 0 : _w.AABBBounds.height() : 0;
27613
- const maintextWidth = this._mainTitle ? (_x = this._mainTitle) === null || _x === void 0 ? void 0 : _x.AABBBounds.width() : 0;
27614
- if (((_y = this.attribute) === null || _y === void 0 ? void 0 : _y.visible) !== false && (subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.visible) !== false) {
27698
+ const maintextHeight = this._mainTitle ? this._mainTitle.AABBBounds.height() : 0;
27699
+ const maintextWidth = this._mainTitle ? this._mainTitle.AABBBounds.width() : 0;
27700
+ if (this.attribute.visible !== false && subtextStyle.visible !== false) {
27615
27701
  if (subtextType === 'rich' || vutils.isValid(subtextStyle.character)) {
27616
- const attr = Object.assign({ x: (_z = subtextStyle.x) !== null && _z !== void 0 ? _z : 0, y: (_0 = subtextStyle.y) !== null && _0 !== void 0 ? _0 : 0, width: (_2 = (_1 = subtextStyle.width) !== null && _1 !== void 0 ? _1 : width) !== null && _2 !== void 0 ? _2 : 0, height: (_4 = (_3 = subtextStyle.height) !== null && _3 !== void 0 ? _3 : height) !== null && _4 !== void 0 ? _4 : 0, ellipsis: (_5 = subtextStyle.ellipsis) !== null && _5 !== void 0 ? _5 : true, wordBreak: (_6 = subtextStyle.wordBreak) !== null && _6 !== void 0 ? _6 : 'break-word', maxHeight: subtextStyle.maxHeight, maxWidth: subtextStyle.maxWidth, textConfig: (_7 = subtextStyle.character) !== null && _7 !== void 0 ? _7 : subtext }, subtextStyle);
27702
+ const attr = Object.assign({ x: (_v = subtextStyle.x) !== null && _v !== void 0 ? _v : 0, y: (_w = subtextStyle.y) !== null && _w !== void 0 ? _w : 0, width: (_y = (_x = subtextStyle.width) !== null && _x !== void 0 ? _x : width) !== null && _y !== void 0 ? _y : 0, height: (_0 = (_z = subtextStyle.height) !== null && _z !== void 0 ? _z : height) !== null && _0 !== void 0 ? _0 : 0, ellipsis: (_1 = subtextStyle.ellipsis) !== null && _1 !== void 0 ? _1 : true, wordBreak: (_2 = subtextStyle.wordBreak) !== null && _2 !== void 0 ? _2 : 'break-word', maxHeight: subtextStyle.maxHeight, maxWidth: subtextStyle.maxWidth, textConfig: (_3 = subtextStyle.character) !== null && _3 !== void 0 ? _3 : subtext }, subtextStyle);
27617
27703
  this._subTitle = group.createOrUpdateChild('subTitle', attr, 'richtext');
27618
27704
  }
27619
27705
  else if (subtextType === 'html') {
27620
- const attr = Object.assign({ html: Object.assign(Object.assign({ dom: subtext }, DEFAULT_HTML_TEXT_SPEC), subtextStyle), x: (_8 = subtextStyle.x) !== null && _8 !== void 0 ? _8 : 0, y: (_9 = subtextStyle.y) !== null && _9 !== void 0 ? _9 : 0, width: (_11 = (_10 = subtextStyle.width) !== null && _10 !== void 0 ? _10 : width) !== null && _11 !== void 0 ? _11 : 0, height: (_13 = (_12 = subtextStyle.height) !== null && _12 !== void 0 ? _12 : height) !== null && _13 !== void 0 ? _13 : 0, ellipsis: (_14 = subtextStyle.ellipsis) !== null && _14 !== void 0 ? _14 : true, wordBreak: (_15 = subtextStyle.wordBreak) !== null && _15 !== void 0 ? _15 : 'break-word', maxHeight: subtextStyle.maxHeight, maxWidth: subtextStyle.maxWidth, textConfig: [] }, subtextStyle);
27706
+ const attr = Object.assign({ html: Object.assign(Object.assign({ dom: subtext }, DEFAULT_HTML_TEXT_SPEC), subtextStyle), x: (_4 = subtextStyle.x) !== null && _4 !== void 0 ? _4 : 0, y: (_5 = subtextStyle.y) !== null && _5 !== void 0 ? _5 : 0, width: (_7 = (_6 = subtextStyle.width) !== null && _6 !== void 0 ? _6 : width) !== null && _7 !== void 0 ? _7 : 0, height: (_9 = (_8 = subtextStyle.height) !== null && _8 !== void 0 ? _8 : height) !== null && _9 !== void 0 ? _9 : 0, ellipsis: (_10 = subtextStyle.ellipsis) !== null && _10 !== void 0 ? _10 : true, wordBreak: (_11 = subtextStyle.wordBreak) !== null && _11 !== void 0 ? _11 : 'break-word', maxHeight: subtextStyle.maxHeight, maxWidth: subtextStyle.maxWidth, textConfig: [] }, subtextStyle);
27621
27707
  this._subTitle = group.createOrUpdateChild('subTitle', attr, 'richtext');
27622
27708
  }
27623
27709
  else if (vutils.isValid(subtext)) {
27624
- this._subTitle = group.createOrUpdateChild('subTitle', Object.assign(Object.assign({ text: [subtext] }, subtextStyle), { maxLineWidth: (_16 = subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.maxLineWidth) !== null && _16 !== void 0 ? _16 : width, heightLimit: subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.heightLimit, lineClamp: subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.lineClamp, ellipsis: (_17 = subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.ellipsis) !== null && _17 !== void 0 ? _17 : true, x: 0, y: maintextHeight }), 'wrapText');
27710
+ this._subTitle = group.createOrUpdateChild('subTitle', Object.assign(Object.assign({ text: [subtext] }, subtextStyle), { maxLineWidth: (_12 = subtextStyle.maxLineWidth) !== null && _12 !== void 0 ? _12 : width, heightLimit: subtextStyle.heightLimit, lineClamp: subtextStyle.lineClamp, ellipsis: (_13 = subtextStyle.ellipsis) !== null && _13 !== void 0 ? _13 : true, x: 0, y: maintextHeight }), 'wrapText');
27625
27711
  }
27626
27712
  }
27627
- const subtextHeight = this._subTitle ? (_18 = this._subTitle) === null || _18 === void 0 ? void 0 : _18.AABBBounds.height() : 0;
27628
- const subtextWidth = this._subTitle ? (_19 = this._subTitle) === null || _19 === void 0 ? void 0 : _19.AABBBounds.width() : 0;
27713
+ const subtextHeight = this._subTitle ? this._subTitle.AABBBounds.height() : 0;
27714
+ const subtextWidth = this._subTitle ? this._subTitle.AABBBounds.width() : 0;
27629
27715
  let titleWidth = Math.max(maintextWidth, subtextWidth);
27630
- let titleHeight = maintextHeight + ((_20 = subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.height) !== null && _20 !== void 0 ? _20 : subtextHeight);
27716
+ let titleHeight = maintextHeight + ((_14 = subtextStyle.height) !== null && _14 !== void 0 ? _14 : subtextHeight);
27631
27717
  if (vutils.isValid(width)) {
27632
27718
  titleWidth = width;
27633
- (_21 = this._mainTitle) === null || _21 === void 0 ? void 0 : _21.setAttribute('maxLineWidth', width);
27634
- (_22 = this._subTitle) === null || _22 === void 0 ? void 0 : _22.setAttribute('maxLineWidth', width);
27719
+ this._mainTitle && this._mainTitle.setAttribute('maxLineWidth', width);
27720
+ this._subTitle && this._subTitle.setAttribute('maxLineWidth', width);
27635
27721
  }
27636
27722
  if (vutils.isValid(height)) {
27637
27723
  titleHeight = height;
@@ -27640,10 +27726,10 @@
27640
27726
  titleWidth = minWidth;
27641
27727
  }
27642
27728
  if (vutils.isValid(maxWidth)) {
27643
- (_23 = this._mainTitle) === null || _23 === void 0 ? void 0 : _23.setAttribute('maxLineWidth', maxWidth);
27644
- (_24 = this._subTitle) === null || _24 === void 0 ? void 0 : _24.setAttribute('maxLineWidth', maxWidth);
27645
- (_25 = this._mainTitle) === null || _25 === void 0 ? void 0 : _25.setAttribute('maxWidth', maxWidth);
27646
- (_26 = this._subTitle) === null || _26 === void 0 ? void 0 : _26.setAttribute('maxWidth', maxWidth);
27729
+ this._mainTitle && this._mainTitle.setAttribute('maxLineWidth', maxWidth);
27730
+ this._subTitle && this._subTitle.setAttribute('maxLineWidth', maxWidth);
27731
+ this._mainTitle && this._mainTitle.setAttribute('maxWidth', maxWidth);
27732
+ this._subTitle && this._subTitle.setAttribute('maxWidth', maxWidth);
27647
27733
  if (titleWidth > maxWidth) {
27648
27734
  titleWidth = maxWidth;
27649
27735
  }
@@ -27652,8 +27738,8 @@
27652
27738
  titleHeight = minHeight;
27653
27739
  }
27654
27740
  if (vutils.isValid(maxHeight)) {
27655
- (_27 = this._mainTitle) === null || _27 === void 0 ? void 0 : _27.setAttribute('maxHeight', maxHeight);
27656
- (_28 = this._subTitle) === null || _28 === void 0 ? void 0 : _28.setAttribute('maxHeight', maxHeight - maintextHeight);
27741
+ this._mainTitle && this._mainTitle.setAttribute('maxHeight', maxHeight);
27742
+ this._subTitle && this._subTitle.setAttribute('maxHeight', maxHeight - maintextHeight);
27657
27743
  if (titleHeight > maxHeight) {
27658
27744
  titleHeight = maxHeight;
27659
27745
  }
@@ -27661,69 +27747,73 @@
27661
27747
  group.attribute.width = titleWidth;
27662
27748
  group.attribute.height = titleHeight;
27663
27749
  group.attribute.boundsPadding = parsedPadding;
27664
- if (vutils.isValid(align) || vutils.isValid(textStyle === null || textStyle === void 0 ? void 0 : textStyle.align)) {
27665
- const mainTitleAlign = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.align) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.align : align;
27666
- const mainTitleWidth = (_29 = textStyle === null || textStyle === void 0 ? void 0 : textStyle.width) !== null && _29 !== void 0 ? _29 : maintextWidth;
27667
- if (mainTitleAlign === 'left') {
27668
- (_30 = this._mainTitle) === null || _30 === void 0 ? void 0 : _30.setAttribute('x', 0);
27669
- (_31 = this._mainTitle) === null || _31 === void 0 ? void 0 : _31.setAttribute('textAlign', 'left');
27670
- }
27671
- else if (mainTitleAlign === 'center') {
27672
- (_32 = this._mainTitle) === null || _32 === void 0 ? void 0 : _32.setAttribute('x', mainTitleWidth / 2);
27673
- (_33 = this._mainTitle) === null || _33 === void 0 ? void 0 : _33.setAttribute('textAlign', 'center');
27674
- }
27675
- else if (mainTitleAlign === 'right') {
27676
- (_34 = this._mainTitle) === null || _34 === void 0 ? void 0 : _34.setAttribute('x', mainTitleWidth);
27677
- (_35 = this._mainTitle) === null || _35 === void 0 ? void 0 : _35.setAttribute('textAlign', 'right');
27678
- }
27679
- }
27680
- if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign)) {
27681
- const mainTitleVerticalAlign = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign : verticalAlign;
27682
- const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleHeight;
27683
- if (mainTitleVerticalAlign === 'top') {
27684
- (_36 = this._mainTitle) === null || _36 === void 0 ? void 0 : _36.setAttribute('y', 0);
27685
- (_37 = this._mainTitle) === null || _37 === void 0 ? void 0 : _37.setAttribute('textBaseline', 'top');
27686
- }
27687
- else if (mainTitleVerticalAlign === 'middle') {
27688
- (_38 = this._mainTitle) === null || _38 === void 0 ? void 0 : _38.setAttribute('y', mainTitleHeight / 2);
27689
- (_39 = this._mainTitle) === null || _39 === void 0 ? void 0 : _39.setAttribute('textBaseline', 'middle');
27690
- }
27691
- else if (mainTitleVerticalAlign === 'bottom') {
27692
- (_40 = this._mainTitle) === null || _40 === void 0 ? void 0 : _40.setAttribute('y', mainTitleHeight);
27693
- (_41 = this._mainTitle) === null || _41 === void 0 ? void 0 : _41.setAttribute('textBaseline', 'bottom');
27694
- }
27695
- }
27696
- if (vutils.isValid(align) || vutils.isValid(subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.align)) {
27697
- const subTitleAlign = (subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.align) ? subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.align : align;
27698
- const subTitleWidth = (_42 = subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.width) !== null && _42 !== void 0 ? _42 : subtextWidth;
27699
- if (subTitleAlign === 'left') {
27700
- (_43 = this._subTitle) === null || _43 === void 0 ? void 0 : _43.setAttribute('x', 0);
27701
- (_44 = this._subTitle) === null || _44 === void 0 ? void 0 : _44.setAttribute('textAlign', 'left');
27702
- }
27703
- else if (subTitleAlign === 'center') {
27704
- (_45 = this._subTitle) === null || _45 === void 0 ? void 0 : _45.setAttribute('x', subTitleWidth / 2);
27705
- (_46 = this._subTitle) === null || _46 === void 0 ? void 0 : _46.setAttribute('textAlign', 'center');
27750
+ if (this._mainTitle) {
27751
+ if (vutils.isValid(align) || vutils.isValid(textStyle.align)) {
27752
+ const mainTitleAlign = textStyle.align ? textStyle.align : align;
27753
+ const mainTitleWidth = (_15 = textStyle.width) !== null && _15 !== void 0 ? _15 : maintextWidth;
27754
+ if (mainTitleAlign === 'left') {
27755
+ this._mainTitle.setAttribute('x', 0);
27756
+ this._mainTitle.setAttribute('textAlign', 'left');
27757
+ }
27758
+ else if (mainTitleAlign === 'center') {
27759
+ this._mainTitle.setAttribute('x', mainTitleWidth / 2);
27760
+ this._mainTitle.setAttribute('textAlign', 'center');
27761
+ }
27762
+ else if (mainTitleAlign === 'right') {
27763
+ this._mainTitle.setAttribute('x', mainTitleWidth);
27764
+ this._mainTitle.setAttribute('textAlign', 'right');
27765
+ }
27706
27766
  }
27707
- else if (subTitleAlign === 'right') {
27708
- (_47 = this._subTitle) === null || _47 === void 0 ? void 0 : _47.setAttribute('x', subTitleWidth);
27709
- (_48 = this._subTitle) === null || _48 === void 0 ? void 0 : _48.setAttribute('textAlign', 'right');
27767
+ if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle.verticalAlign)) {
27768
+ const mainTitleVerticalAlign = textStyle.verticalAlign ? textStyle.verticalAlign : verticalAlign;
27769
+ const mainTitleHeight = textStyle.height ? textStyle.height : titleHeight;
27770
+ if (mainTitleVerticalAlign === 'top') {
27771
+ this._mainTitle.setAttribute('y', 0);
27772
+ this._mainTitle.setAttribute('textBaseline', 'top');
27773
+ }
27774
+ else if (mainTitleVerticalAlign === 'middle') {
27775
+ this._mainTitle.setAttribute('y', mainTitleHeight / 2);
27776
+ this._mainTitle.setAttribute('textBaseline', 'middle');
27777
+ }
27778
+ else if (mainTitleVerticalAlign === 'bottom') {
27779
+ this._mainTitle.setAttribute('y', mainTitleHeight);
27780
+ this._mainTitle.setAttribute('textBaseline', 'bottom');
27781
+ }
27710
27782
  }
27711
27783
  }
27712
- if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign)) {
27713
- const subTitleVerticalAlign = (subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.verticalAlign) ? subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.verticalAlign : verticalAlign;
27714
- const subTitleYStart = maintextHeight;
27715
- const subTitleHeight = (_49 = subtextStyle === null || subtextStyle === void 0 ? void 0 : subtextStyle.height) !== null && _49 !== void 0 ? _49 : 0;
27716
- if (subTitleVerticalAlign === 'top') {
27717
- (_50 = this._subTitle) === null || _50 === void 0 ? void 0 : _50.setAttribute('y', subTitleYStart);
27718
- (_51 = this._subTitle) === null || _51 === void 0 ? void 0 : _51.setAttribute('textBaseline', 'top');
27719
- }
27720
- else if (subTitleVerticalAlign === 'middle') {
27721
- (_52 = this._subTitle) === null || _52 === void 0 ? void 0 : _52.setAttribute('y', subTitleYStart + subTitleHeight / 2);
27722
- (_53 = this._subTitle) === null || _53 === void 0 ? void 0 : _53.setAttribute('textBaseline', 'middle');
27784
+ if (this._subTitle) {
27785
+ if (vutils.isValid(align) || vutils.isValid(subtextStyle.align)) {
27786
+ const subTitleAlign = subtextStyle.align ? subtextStyle.align : align;
27787
+ const subTitleWidth = (_16 = subtextStyle.width) !== null && _16 !== void 0 ? _16 : subtextWidth;
27788
+ if (subTitleAlign === 'left') {
27789
+ this._subTitle.setAttribute('x', 0);
27790
+ this._subTitle.setAttribute('textAlign', 'left');
27791
+ }
27792
+ else if (subTitleAlign === 'center') {
27793
+ this._subTitle.setAttribute('x', subTitleWidth / 2);
27794
+ this._subTitle.setAttribute('textAlign', 'center');
27795
+ }
27796
+ else if (subTitleAlign === 'right') {
27797
+ this._subTitle.setAttribute('x', subTitleWidth);
27798
+ this._subTitle.setAttribute('textAlign', 'right');
27799
+ }
27723
27800
  }
27724
- else if (subTitleVerticalAlign === 'bottom') {
27725
- (_54 = this._subTitle) === null || _54 === void 0 ? void 0 : _54.setAttribute('y', subTitleYStart + subTitleHeight);
27726
- (_55 = this._subTitle) === null || _55 === void 0 ? void 0 : _55.setAttribute('textBaseline', 'bottom');
27801
+ if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle.verticalAlign)) {
27802
+ const subTitleVerticalAlign = subtextStyle.verticalAlign ? subtextStyle.verticalAlign : verticalAlign;
27803
+ const subTitleYStart = maintextHeight;
27804
+ const subTitleHeight = (_17 = subtextStyle.height) !== null && _17 !== void 0 ? _17 : 0;
27805
+ if (subTitleVerticalAlign === 'top') {
27806
+ this._subTitle.setAttribute('y', subTitleYStart);
27807
+ this._subTitle.setAttribute('textBaseline', 'top');
27808
+ }
27809
+ else if (subTitleVerticalAlign === 'middle') {
27810
+ this._subTitle.setAttribute('y', subTitleYStart + subTitleHeight / 2);
27811
+ this._subTitle.setAttribute('textBaseline', 'middle');
27812
+ }
27813
+ else if (subTitleVerticalAlign === 'bottom') {
27814
+ this._subTitle.setAttribute('y', subTitleYStart + subTitleHeight);
27815
+ this._subTitle.setAttribute('textBaseline', 'bottom');
27816
+ }
27727
27817
  }
27728
27818
  }
27729
27819
  }
@@ -27786,7 +27876,7 @@
27786
27876
  }
27787
27877
  render() {
27788
27878
  var _a, _b, _c;
27789
- const { visible, title, content, size, limitRatio = Infinity } = this.attribute;
27879
+ const { visible, title = {}, content, size, limitRatio = Infinity } = this.attribute;
27790
27880
  const limit = Math.min(size.width, size.height) * limitRatio;
27791
27881
  const group = this.createOrUpdateChild('indicator-container', { x: 0, y: 0, zIndex: 1 }, 'group');
27792
27882
  if (visible !== true) {
@@ -27820,7 +27910,7 @@
27820
27910
  }
27821
27911
  const titleHeight = this._title ? this._title.AABBBounds.height() : 0;
27822
27912
  if (vutils.isValid(content)) {
27823
- const titleSpace = this._title ? ((title === null || title === void 0 ? void 0 : title.space) ? title.space : 0) : 0;
27913
+ const titleSpace = this._title ? (title.space ? title.space : 0) : 0;
27824
27914
  const contents = vutils.array(content);
27825
27915
  const contentComponents = [];
27826
27916
  let lastContentHeight = 0;
@@ -27845,7 +27935,7 @@
27845
27935
  contentComponent.setAttribute('maxLineWidth', limit);
27846
27936
  }
27847
27937
  contentComponents.push(contentComponent);
27848
- const contentSpace = (contentItem === null || contentItem === void 0 ? void 0 : contentItem.space) ? contentItem.space : 0;
27938
+ const contentSpace = contentItem.space ? contentItem.space : 0;
27849
27939
  lastContentHeight += contentComponent.AABBBounds.height() + contentSpace;
27850
27940
  }
27851
27941
  else {
@@ -28064,15 +28154,15 @@
28064
28154
  this.updateLayout();
28065
28155
  };
28066
28156
  this.updateLayout = () => {
28067
- var _a, _b, _c, _d, _e, _f, _g, _h;
28157
+ var _a, _b, _c, _d;
28068
28158
  this._layout = this.attribute.layout;
28069
28159
  if (this._layout === 'horizontal') {
28070
- this._backwardAttr.style.symbolType = (_b = (_a = this._backwardAttr.style) === null || _a === void 0 ? void 0 : _a.symbolType) !== null && _b !== void 0 ? _b : iconLeft;
28071
- this._forwardAttr.style.symbolType = (_d = (_c = this._forwardAttr.style) === null || _c === void 0 ? void 0 : _c.symbolType) !== null && _d !== void 0 ? _d : iconRight;
28160
+ this._backwardAttr.style.symbolType = (_a = this._backwardAttr.style.symbolType) !== null && _a !== void 0 ? _a : iconLeft;
28161
+ this._forwardAttr.style.symbolType = (_b = this._forwardAttr.style.symbolType) !== null && _b !== void 0 ? _b : iconRight;
28072
28162
  }
28073
28163
  else if (this._layout === 'vertical') {
28074
- this._backwardAttr.style.symbolType = (_f = (_e = this._backwardAttr.style) === null || _e === void 0 ? void 0 : _e.symbolType) !== null && _f !== void 0 ? _f : iconUp;
28075
- this._forwardAttr.style.symbolType = (_h = (_g = this._forwardAttr.style) === null || _g === void 0 ? void 0 : _g.symbolType) !== null && _h !== void 0 ? _h : iconDown;
28164
+ this._backwardAttr.style.symbolType = (_c = this._backwardAttr.style.symbolType) !== null && _c !== void 0 ? _c : iconUp;
28165
+ this._forwardAttr.style.symbolType = (_d = this._forwardAttr.style.symbolType) !== null && _d !== void 0 ? _d : iconDown;
28076
28166
  }
28077
28167
  };
28078
28168
  this._initPlay = () => {
@@ -28351,21 +28441,21 @@
28351
28441
  this._initSlider();
28352
28442
  }
28353
28443
  _initAttributes() {
28354
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
28355
28444
  this._size = this.attribute.size;
28356
28445
  this._orient = this.attribute.orient;
28357
28446
  this._data = this.attribute.data;
28358
28447
  this._minIndex = 0;
28359
28448
  this._maxIndex = this._data.length - 1;
28360
- this._sliderVisible = (_b = (_a = this.attribute) === null || _a === void 0 ? void 0 : _a.slider) === null || _b === void 0 ? void 0 : _b.visible;
28361
- this._railStyle = Object.assign({}, (_d = (_c = this.attribute) === null || _c === void 0 ? void 0 : _c.slider) === null || _d === void 0 ? void 0 : _d.railStyle);
28362
- this._trackStyle = Object.assign({}, (_f = (_e = this.attribute) === null || _e === void 0 ? void 0 : _e.slider) === null || _f === void 0 ? void 0 : _f.trackStyle);
28363
- this._handlerStyle = Object.assign({}, (_h = (_g = this.attribute) === null || _g === void 0 ? void 0 : _g.slider) === null || _h === void 0 ? void 0 : _h.handlerStyle);
28364
- this._controllerVisible = (_k = (_j = this.attribute) === null || _j === void 0 ? void 0 : _j.controller) === null || _k === void 0 ? void 0 : _k.visible;
28365
- this._start = Object.assign({}, (_m = (_l = this.attribute) === null || _l === void 0 ? void 0 : _l.controller) === null || _m === void 0 ? void 0 : _m.start);
28366
- this._pause = Object.assign({}, (_p = (_o = this.attribute) === null || _o === void 0 ? void 0 : _o.controller) === null || _p === void 0 ? void 0 : _p.pause);
28367
- this._forward = Object.assign({}, (_r = (_q = this.attribute) === null || _q === void 0 ? void 0 : _q.controller) === null || _r === void 0 ? void 0 : _r.forward);
28368
- this._backward = Object.assign({}, (_t = (_s = this.attribute) === null || _s === void 0 ? void 0 : _s.controller) === null || _t === void 0 ? void 0 : _t.backward);
28449
+ const { slider = {}, controller = {} } = this.attribute;
28450
+ this._sliderVisible = slider.visible;
28451
+ this._railStyle = Object.assign({}, slider.railStyle);
28452
+ this._trackStyle = Object.assign({}, slider.trackStyle);
28453
+ this._handlerStyle = Object.assign({}, slider.handlerStyle);
28454
+ this._controllerVisible = controller.visible;
28455
+ this._start = Object.assign({}, controller.start);
28456
+ this._pause = Object.assign({}, controller.pause);
28457
+ this._forward = Object.assign({}, controller.forward);
28458
+ this._backward = Object.assign({}, controller.backward);
28369
28459
  }
28370
28460
  _initLayoutInfo() {
28371
28461
  var _a, _b, _c;
@@ -28826,12 +28916,12 @@
28826
28916
  this._operatingMaskMoveRangeY = [-Infinity, Infinity];
28827
28917
  this._brushMaskAABBBoundsDict = {};
28828
28918
  this._onBrushStart = (e) => {
28829
- var _a, _b;
28919
+ var _a;
28830
28920
  if (this._outOfInteractiveRange(e)) {
28831
28921
  return;
28832
28922
  }
28833
28923
  e.stopPropagation();
28834
- const brushMoved = (_b = (_a = this.attribute) === null || _a === void 0 ? void 0 : _a.brushMoved) !== null && _b !== void 0 ? _b : true;
28924
+ const brushMoved = (_a = this.attribute.brushMoved) !== null && _a !== void 0 ? _a : true;
28835
28925
  this._activeMoveState = brushMoved && this._isPosInBrushMask(e);
28836
28926
  this._activeDrawState = !this._activeMoveState;
28837
28927
  this._activeDrawState && this._initDraw(e);
@@ -28846,7 +28936,6 @@
28846
28936
  this._activeMoveState && this._moving(e);
28847
28937
  };
28848
28938
  this._onBrushEnd = (e) => {
28849
- var _a;
28850
28939
  e.preventDefault();
28851
28940
  const { removeOnClick = true } = this.attribute;
28852
28941
  if (this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick) {
@@ -28877,7 +28966,9 @@
28877
28966
  this._activeDrawState = false;
28878
28967
  this._activeMoveState = false;
28879
28968
  this._isDrawedBeforeEnd = false;
28880
- (_a = this._operatingMask) === null || _a === void 0 ? void 0 : _a.setAttribute('pickable', false);
28969
+ if (this._operatingMask) {
28970
+ this._operatingMask.setAttribute('pickable', false);
28971
+ }
28881
28972
  };
28882
28973
  }
28883
28974
  _bindBrushEvents() {
@@ -28946,15 +29037,15 @@
28946
29037
  });
28947
29038
  }
28948
29039
  _drawing(e) {
28949
- var _a;
29040
+ var _a, _b;
28950
29041
  const pos = this.eventPosToStagePos(e);
28951
29042
  const { x1 = 0, x2 = 0, y1 = 0, y2 = 0 } = (_a = this._operatingMask) === null || _a === void 0 ? void 0 : _a._AABBBounds;
28952
29043
  const { sizeThreshold = DEFAULT_SIZE_THRESHOLD, brushType } = this.attribute;
28953
29044
  const cacheLength = this._cacheDrawPoints.length;
28954
29045
  this._isDrawedBeforeEnd = !!(Math.abs(x2 - x1) > sizeThreshold || Math.abs(y1 - y2) > sizeThreshold);
28955
29046
  if (cacheLength > 0) {
28956
- const lastPos = this._cacheDrawPoints[this._cacheDrawPoints.length - 1];
28957
- if (pos.x === (lastPos === null || lastPos === void 0 ? void 0 : lastPos.x) && pos.y === (lastPos === null || lastPos === void 0 ? void 0 : lastPos.y)) {
29047
+ const lastPos = (_b = this._cacheDrawPoints[this._cacheDrawPoints.length - 1]) !== null && _b !== void 0 ? _b : {};
29048
+ if (pos.x === lastPos.x && pos.y === lastPos.y) {
28958
29049
  return;
28959
29050
  }
28960
29051
  }
@@ -29289,7 +29380,7 @@
29289
29380
  const titleHeight = isVisible(titleAttr) ? titleAttr.height + titleAttr.spaceRow : 0;
29290
29381
  this._tooltipContent = this.createOrUpdateChild(TOOLTIP_CONTENT_NAME, { visible: true }, 'group');
29291
29382
  this._tooltipContent.removeAllChild();
29292
- if (content === null || content === void 0 ? void 0 : content.length) {
29383
+ if (content && content.length) {
29293
29384
  this._tooltipContent.setAttribute('x', padding[3]);
29294
29385
  this._tooltipContent.setAttribute('y', padding[0] + titleHeight);
29295
29386
  let lastYPos = 0;
@@ -29472,7 +29563,7 @@
29472
29563
  if (isVisible(titleAttr)) {
29473
29564
  containerHeight += titleMaxHeight + titleAttr.spaceRow;
29474
29565
  }
29475
- if (content === null || content === void 0 ? void 0 : content.length) {
29566
+ if (content && content.length) {
29476
29567
  const filteredContent = [];
29477
29568
  content.forEach((item, i) => {
29478
29569
  const itemAttr = Tooltip.getContentAttr(attribute, i);
@@ -29718,7 +29809,7 @@
29718
29809
  }
29719
29810
  };
29720
29811
 
29721
- const version = "0.17.8-alpha.0";
29812
+ const version = "0.17.8";
29722
29813
 
29723
29814
  exports.AbstractComponent = AbstractComponent;
29724
29815
  exports.ArcInfo = ArcInfo;