@visactor/vrender-components 0.16.2 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/cjs/brush/brush.js +4 -1
  2. package/cjs/brush/brush.js.map +1 -1
  3. package/cjs/data-zoom/data-zoom.js +6 -3
  4. package/cjs/data-zoom/data-zoom.js.map +1 -1
  5. package/cjs/index.d.ts +1 -1
  6. package/cjs/index.js +1 -1
  7. package/cjs/index.js.map +1 -1
  8. package/cjs/label/base.d.ts +4 -1
  9. package/cjs/label/base.js +47 -27
  10. package/cjs/label/base.js.map +1 -1
  11. package/cjs/label/dataLabel.js +3 -2
  12. package/cjs/label/dataLabel.js.map +1 -1
  13. package/cjs/label/index.d.ts +1 -0
  14. package/cjs/label/index.js +1 -1
  15. package/cjs/label/index.js.map +1 -1
  16. package/cjs/label/line-data.d.ts +12 -0
  17. package/cjs/label/line-data.js +30 -0
  18. package/cjs/label/line-data.js.map +1 -0
  19. package/cjs/label/symbol.js +2 -42
  20. package/cjs/label/symbol.js.map +1 -1
  21. package/cjs/label/type.d.ts +8 -3
  22. package/cjs/label/type.js.map +1 -1
  23. package/cjs/label/util.d.ts +7 -1
  24. package/cjs/label/util.js +63 -1
  25. package/cjs/label/util.js.map +1 -1
  26. package/cjs/legend/base.js +1 -2
  27. package/cjs/legend/constant.js +2 -1
  28. package/cjs/marker/base.js +1 -1
  29. package/cjs/poptip/poptip-plugin.d.ts +1 -0
  30. package/cjs/poptip/poptip-plugin.js +6 -3
  31. package/cjs/poptip/poptip-plugin.js.map +1 -1
  32. package/cjs/title/title.js +1 -1
  33. package/cjs/title/title.js.map +1 -1
  34. package/dist/index.js +2186 -565
  35. package/dist/index.min.js +1 -1
  36. package/es/brush/brush.js +4 -1
  37. package/es/brush/brush.js.map +1 -1
  38. package/es/data-zoom/data-zoom.js +6 -3
  39. package/es/data-zoom/data-zoom.js.map +1 -1
  40. package/es/index.d.ts +1 -1
  41. package/es/index.js +1 -1
  42. package/es/index.js.map +1 -1
  43. package/es/label/base.d.ts +4 -1
  44. package/es/label/base.js +49 -28
  45. package/es/label/base.js.map +1 -1
  46. package/es/label/dataLabel.js +4 -1
  47. package/es/label/dataLabel.js.map +1 -1
  48. package/es/label/index.d.ts +1 -0
  49. package/es/label/index.js +2 -0
  50. package/es/label/index.js.map +1 -1
  51. package/es/label/line-data.d.ts +12 -0
  52. package/es/label/line-data.js +28 -0
  53. package/es/label/line-data.js.map +1 -0
  54. package/es/label/symbol.js +3 -41
  55. package/es/label/symbol.js.map +1 -1
  56. package/es/label/type.d.ts +8 -3
  57. package/es/label/type.js.map +1 -1
  58. package/es/label/util.d.ts +7 -1
  59. package/es/label/util.js +58 -0
  60. package/es/label/util.js.map +1 -1
  61. package/es/legend/base.js +1 -2
  62. package/es/legend/constant.js +2 -1
  63. package/es/marker/base.js +1 -1
  64. package/es/poptip/poptip-plugin.d.ts +1 -0
  65. package/es/poptip/poptip-plugin.js +6 -3
  66. package/es/poptip/poptip-plugin.js.map +1 -1
  67. package/es/title/title.js +1 -1
  68. package/es/title/title.js.map +1 -1
  69. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2782,17 +2782,17 @@
2782
2782
  var EnvContribution = Symbol["for"]("EnvContribution");
2783
2783
  var VGlobal = Symbol["for"]("VGlobal");
2784
2784
 
2785
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
2785
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
2786
2786
  var d,
2787
2787
  c = arguments.length,
2788
2788
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
2789
2789
  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);
2790
2790
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2791
2791
  },
2792
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
2792
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
2793
2793
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
2794
2794
  },
2795
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
2795
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
2796
2796
  return function (target, key) {
2797
2797
  decorator(target, key, paramIndex);
2798
2798
  };
@@ -2818,26 +2818,41 @@
2818
2818
  key: "supportEvent",
2819
2819
  get: function get() {
2820
2820
  return this._env || this.setEnv("browser"), this.envContribution.supportEvent;
2821
+ },
2822
+ set: function set(support) {
2823
+ this._env || this.setEnv("browser"), this.envContribution.supportEvent = support;
2821
2824
  }
2822
2825
  }, {
2823
2826
  key: "supportsTouchEvents",
2824
2827
  get: function get() {
2825
2828
  return this._env || this.setEnv("browser"), this.envContribution.supportsTouchEvents;
2829
+ },
2830
+ set: function set(support) {
2831
+ this._env || this.setEnv("browser"), this.envContribution.supportsTouchEvents = support;
2826
2832
  }
2827
2833
  }, {
2828
2834
  key: "supportsPointerEvents",
2829
2835
  get: function get() {
2830
2836
  return this._env || this.setEnv("browser"), this.envContribution.supportsPointerEvents;
2837
+ },
2838
+ set: function set(support) {
2839
+ this._env || this.setEnv("browser"), this.envContribution.supportsPointerEvents = support;
2831
2840
  }
2832
2841
  }, {
2833
2842
  key: "supportsMouseEvents",
2834
2843
  get: function get() {
2835
2844
  return this._env || this.setEnv("browser"), this.envContribution.supportsMouseEvents;
2845
+ },
2846
+ set: function set(support) {
2847
+ this._env || this.setEnv("browser"), this.envContribution.supportsMouseEvents = support;
2836
2848
  }
2837
2849
  }, {
2838
2850
  key: "applyStyles",
2839
2851
  get: function get() {
2840
2852
  return this._env || this.setEnv("browser"), this.envContribution.applyStyles;
2853
+ },
2854
+ set: function set(support) {
2855
+ this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
2841
2856
  }
2842
2857
  }, {
2843
2858
  key: "bindContribution",
@@ -3017,7 +3032,7 @@
3017
3032
  }]);
3018
3033
  return DefaultGlobal;
3019
3034
  }();
3020
- DefaultGlobal = __decorate$R([injectable(), __param$n(0, inject(ContributionProvider)), __param$n(0, named(EnvContribution)), __metadata$n("design:paramtypes", [Object])], DefaultGlobal);
3035
+ DefaultGlobal = __decorate$X([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(EnvContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGlobal);
3021
3036
 
3022
3037
  var circleThreshold = vutils.tau - 1e-8;
3023
3038
  var BoundsContext = /*#__PURE__*/function () {
@@ -3795,10 +3810,10 @@
3795
3810
  value: function lineEnd() {
3796
3811
  switch (this._point) {
3797
3812
  case 2:
3798
- this.context.lineTo(this._x1, this._y1, !1 !== this._lastDefined2, this.lastPoint1);
3813
+ this.context.lineTo(this._x1, this._y1, !1 !== this._lastDefined1 && !1 !== this._lastDefined2, this.lastPoint1);
3799
3814
  break;
3800
3815
  case 3:
3801
- _point(this, this._t0, slope2(this, this._t0), !1 !== this._lastDefined2, this.lastPoint1);
3816
+ _point(this, this._t0, slope2(this, this._t0), !1 !== this._lastDefined1 && !1 !== this._lastDefined2, this.lastPoint1);
3802
3817
  }
3803
3818
  (this._line || 0 !== this._line && 1 === this._point) && this.context.closePath(), this._line = 1 - this._line;
3804
3819
  }
@@ -4737,7 +4752,7 @@
4737
4752
  return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
4738
4753
  }
4739
4754
 
4740
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4755
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4741
4756
  var d,
4742
4757
  c = arguments.length,
4743
4758
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4943,9 +4958,9 @@
4943
4958
  }]);
4944
4959
  return ATextMeasure;
4945
4960
  }();
4946
- ATextMeasure = __decorate$Q([injectable()], ATextMeasure);
4961
+ ATextMeasure = __decorate$W([injectable()], ATextMeasure);
4947
4962
 
4948
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4963
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4949
4964
  var d,
4950
4965
  c = arguments.length,
4951
4966
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4962,7 +4977,7 @@
4962
4977
  }
4963
4978
  return _createClass(DefaultTextMeasureContribution);
4964
4979
  }(ATextMeasure);
4965
- DefaultTextMeasureContribution = __decorate$P([injectable()], DefaultTextMeasureContribution);
4980
+ DefaultTextMeasureContribution = __decorate$V([injectable()], DefaultTextMeasureContribution);
4966
4981
 
4967
4982
  var container = new Container();
4968
4983
 
@@ -4971,18 +4986,376 @@
4971
4986
  function wrapCanvas(params) {
4972
4987
  return container.getNamed(CanvasFactory, application.global.env)(params);
4973
4988
  }
4989
+ var EPSILON_NUMERIC = 1e-4,
4990
+ THREE_SQRT = Math.sqrt(3),
4991
+ ONE_THIRD = 1 / 3;
4992
+ function isAroundZero(val) {
4993
+ return val > -EPSILON && val < EPSILON;
4994
+ }
4995
+ function isNotAroundZero(val) {
4996
+ return val > EPSILON || val < -EPSILON;
4997
+ }
4998
+ var _v0 = [0, 0],
4999
+ _v1 = [0, 0],
5000
+ _v2 = [0, 0];
5001
+ function distanceSquare(v1, v2) {
5002
+ return (v1[0] - v2[0]) * (v1[0] - v2[0]) + (v1[1] - v2[1]) * (v1[1] - v2[1]);
5003
+ }
5004
+ function quadraticAt(p0, p1, p2, t) {
5005
+ var onet = 1 - t;
5006
+ return onet * (onet * p0 + 2 * t * p1) + t * t * p2;
5007
+ }
5008
+ function cubicAt(p0, p1, p2, p3, t) {
5009
+ var onet = 1 - t;
5010
+ return onet * onet * (onet * p0 + 3 * t * p1) + t * t * (t * p3 + 3 * onet * p2);
5011
+ }
5012
+ function quadraticRootAt(p0, p1, p2, val, roots) {
5013
+ var a = p0 - 2 * p1 + p2,
5014
+ b = 2 * (p1 - p0),
5015
+ c = p0 - val;
5016
+ var n = 0;
5017
+ if (isAroundZero(a)) {
5018
+ if (isNotAroundZero(b)) {
5019
+ var t1 = -c / b;
5020
+ t1 >= 0 && t1 <= 1 && (roots[n++] = t1);
5021
+ }
5022
+ } else {
5023
+ var disc = b * b - 4 * a * c;
5024
+ if (isAroundZero(disc)) {
5025
+ var _t2 = -b / (2 * a);
5026
+ _t2 >= 0 && _t2 <= 1 && (roots[n++] = _t2);
5027
+ } else if (disc > 0) {
5028
+ var discSqrt = Math.sqrt(disc),
5029
+ _t3 = (-b + discSqrt) / (2 * a),
5030
+ t2 = (-b - discSqrt) / (2 * a);
5031
+ _t3 >= 0 && _t3 <= 1 && (roots[n++] = _t3), t2 >= 0 && t2 <= 1 && (roots[n++] = t2);
5032
+ }
5033
+ }
5034
+ return n;
5035
+ }
5036
+ function quadraticExtremum(p0, p1, p2) {
5037
+ var divider = p0 + p2 - 2 * p1;
5038
+ return 0 === divider ? .5 : (p0 - p1) / divider;
5039
+ }
5040
+ function quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, out) {
5041
+ var t = 0,
5042
+ interval = .005,
5043
+ d = 1 / 0;
5044
+ _v0[0] = x, _v0[1] = y;
5045
+ for (var _t = 0; _t < 1; _t += .05) {
5046
+ _v1[0] = quadraticAt(x0, x1, x2, _t), _v1[1] = quadraticAt(y0, y1, y2, _t);
5047
+ var d1 = distanceSquare(_v0, _v1);
5048
+ d1 < d && (t = _t, d = d1);
5049
+ }
5050
+ d = 1 / 0;
5051
+ for (var i = 0; i < 32 && !(interval < EPSILON_NUMERIC); i++) {
5052
+ var prev = t - interval,
5053
+ next = t + interval;
5054
+ _v1[0] = quadraticAt(x0, x1, x2, prev), _v1[1] = quadraticAt(y0, y1, y2, prev);
5055
+ var _d = distanceSquare(_v1, _v0);
5056
+ if (prev >= 0 && _d < d) t = prev, d = _d;else {
5057
+ _v2[0] = quadraticAt(x0, x1, x2, next), _v2[1] = quadraticAt(y0, y1, y2, next);
5058
+ var d2 = distanceSquare(_v2, _v0);
5059
+ next <= 1 && d2 < d ? (t = next, d = d2) : interval *= .5;
5060
+ }
5061
+ }
5062
+ return out && (out[0] = quadraticAt(x0, x1, x2, t), out[1] = quadraticAt(y0, y1, y2, t)), Math.sqrt(d);
5063
+ }
5064
+ function cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, out) {
5065
+ var prev,
5066
+ next,
5067
+ d1,
5068
+ d2,
5069
+ t = 0,
5070
+ interval = .005,
5071
+ d = 1 / 0;
5072
+ _v0[0] = x, _v0[1] = y;
5073
+ for (var _t = 0; _t < 1; _t += .05) _v1[0] = cubicAt(x0, x1, x2, x3, _t), _v1[1] = cubicAt(y0, y1, y2, y3, _t), d1 = distanceSquare(_v0, _v1), d1 < d && (t = _t, d = d1);
5074
+ d = 1 / 0;
5075
+ for (var i = 0; i < 32 && !(interval < EPSILON_NUMERIC); i++) prev = t - interval, next = t + interval, _v1[0] = cubicAt(x0, x1, x2, x3, prev), _v1[1] = cubicAt(y0, y1, y2, y3, prev), d1 = distanceSquare(_v1, _v0), prev >= 0 && d1 < d ? (t = prev, d = d1) : (_v2[0] = cubicAt(x0, x1, x2, x3, next), _v2[1] = cubicAt(y0, y1, y2, y3, next), d2 = distanceSquare(_v2, _v0), next <= 1 && d2 < d ? (t = next, d = d2) : interval *= .5);
5076
+ return out && (out[0] = cubicAt(x0, x1, x2, x3, t), out[1] = cubicAt(y0, y1, y2, y3, t)), Math.sqrt(d);
5077
+ }
5078
+ function normalizeRadian(angle) {
5079
+ return (angle %= vutils.pi2) < 0 && (angle += vutils.pi2), angle;
5080
+ }
5081
+ function windingLine(x0, y0, x1, y1, x, y) {
5082
+ if (y > y0 && y > y1 || y < y0 && y < y1) return 0;
5083
+ if (y1 === y0) return 0;
5084
+ var t = (y - y0) / (y1 - y0);
5085
+ var dir = y1 < y0 ? 1 : -1;
5086
+ 1 !== t && 0 !== t || (dir = y1 < y0 ? .5 : -.5);
5087
+ var x_ = t * (x1 - x0) + x0;
5088
+ return x_ === x ? 1 / 0 : x_ > x ? dir : 0;
5089
+ }
5090
+ function containQuadStroke(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
5091
+ if (0 === lineWidth) return !1;
5092
+ var _l = lineWidth;
5093
+ if (y > y0 + _l && y > y1 + _l && y > y2 + _l || y < y0 - _l && y < y1 - _l && y < y2 - _l || x > x0 + _l && x > x1 + _l && x > x2 + _l || x < x0 - _l && x < x1 - _l && x < x2 - _l) return !1;
5094
+ return quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, null) <= _l / 2;
5095
+ }
5096
+ function containCubicStroke(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
5097
+ if (0 === lineWidth) return !1;
5098
+ var _l = lineWidth;
5099
+ if (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l || y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l || x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l || x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l) return !1;
5100
+ return cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, null) <= _l / 2;
5101
+ }
5102
+ function containArcStroke(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
5103
+ if (0 === lineWidth) return !1;
5104
+ var _l = lineWidth;
5105
+ x -= cx, y -= cy;
5106
+ var d = Math.sqrt(x * x + y * y);
5107
+ if (d - _l > r || d + _l < r) return !1;
5108
+ if (Math.abs(startAngle - endAngle) % vutils.pi2 < 1e-4) return !0;
5109
+ if (anticlockwise) {
5110
+ var tmp = startAngle;
5111
+ startAngle = normalizeRadian(endAngle), endAngle = normalizeRadian(tmp);
5112
+ } else startAngle = normalizeRadian(startAngle), endAngle = normalizeRadian(endAngle);
5113
+ startAngle > endAngle && (endAngle += vutils.pi2);
5114
+ var angle = Math.atan2(y, x);
5115
+ return angle < 0 && (angle += vutils.pi2), angle >= startAngle && angle <= endAngle || angle + vutils.pi2 >= startAngle && angle + vutils.pi2 <= endAngle;
5116
+ }
5117
+ function containLineStroke(x0, y0, x1, y1, lineWidth, x, y) {
5118
+ if (0 === lineWidth) return !1;
5119
+ var _l = lineWidth,
5120
+ _halfL = lineWidth / 2;
5121
+ var _a = 0,
5122
+ _b = x0;
5123
+ if (y > y0 + _halfL && y > y1 + _halfL || y < y0 - _halfL && y < y1 - _halfL || x > x0 + _halfL && x > x1 + _halfL || x < x0 - _halfL && x < x1 - _halfL) return !1;
5124
+ if (x0 === x1) return Math.abs(x - x0) <= _l / 2;
5125
+ _a = (y0 - y1) / (x0 - x1), _b = (x0 * y1 - x1 * y0) / (x0 - x1);
5126
+ var tmp = _a * x - y + _b;
5127
+ return tmp * tmp / (_a * _a + 1) <= _l / 2 * _l / 2;
5128
+ }
5129
+ var EPSILON = 1e-4;
5130
+ function cubicRootAt(p0, p1, p2, p3, val, roots) {
5131
+ var a = p3 + 3 * (p1 - p2) - p0,
5132
+ b = 3 * (p2 - 2 * p1 + p0),
5133
+ c = 3 * (p1 - p0),
5134
+ d = p0 - val,
5135
+ A = b * b - 3 * a * c,
5136
+ B = b * c - 9 * a * d,
5137
+ C = c * c - 3 * b * d;
5138
+ var n = 0;
5139
+ if (isAroundZero(A) && isAroundZero(B)) {
5140
+ if (isAroundZero(b)) roots[0] = 0;else {
5141
+ var t1 = -c / b;
5142
+ t1 >= 0 && t1 <= 1 && (roots[n++] = t1);
5143
+ }
5144
+ } else {
5145
+ var disc = B * B - 4 * A * C;
5146
+ if (isAroundZero(disc)) {
5147
+ var K = B / A,
5148
+ _t4 = -b / a + K,
5149
+ t2 = -K / 2;
5150
+ _t4 >= 0 && _t4 <= 1 && (roots[n++] = _t4), t2 >= 0 && t2 <= 1 && (roots[n++] = t2);
5151
+ } else if (disc > 0) {
5152
+ var discSqrt = Math.sqrt(disc);
5153
+ var Y1 = A * b + 1.5 * a * (-B + discSqrt),
5154
+ Y2 = A * b + 1.5 * a * (-B - discSqrt);
5155
+ Y1 = Y1 < 0 ? -Math.pow(-Y1, ONE_THIRD) : Math.pow(Y1, ONE_THIRD), Y2 = Y2 < 0 ? -Math.pow(-Y2, ONE_THIRD) : Math.pow(Y2, ONE_THIRD);
5156
+ var _t5 = (-b - (Y1 + Y2)) / (3 * a);
5157
+ _t5 >= 0 && _t5 <= 1 && (roots[n++] = _t5);
5158
+ } else {
5159
+ var T = (2 * A * b - 3 * a * B) / (2 * Math.sqrt(A * A * A)),
5160
+ theta = Math.acos(T) / 3,
5161
+ ASqrt = Math.sqrt(A),
5162
+ tmp = Math.cos(theta),
5163
+ _t6 = (-b - 2 * ASqrt * tmp) / (3 * a),
5164
+ _t7 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a),
5165
+ t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);
5166
+ _t6 >= 0 && _t6 <= 1 && (roots[n++] = _t6), _t7 >= 0 && _t7 <= 1 && (roots[n++] = _t7), t3 >= 0 && t3 <= 1 && (roots[n++] = t3);
5167
+ }
5168
+ }
5169
+ return n;
5170
+ }
5171
+ function cubicExtrema(p0, p1, p2, p3, extrema) {
5172
+ var b = 6 * p2 - 12 * p1 + 6 * p0,
5173
+ a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2,
5174
+ c = 3 * p1 - 3 * p0;
5175
+ var n = 0;
5176
+ if (isAroundZero(a)) {
5177
+ if (isNotAroundZero(b)) {
5178
+ var t1 = -c / b;
5179
+ t1 >= 0 && t1 <= 1 && (extrema[n++] = t1);
5180
+ }
5181
+ } else {
5182
+ var disc = b * b - 4 * a * c;
5183
+ if (isAroundZero(disc)) extrema[0] = -b / (2 * a);else if (disc > 0) {
5184
+ var discSqrt = Math.sqrt(disc),
5185
+ _t8 = (-b + discSqrt) / (2 * a),
5186
+ t2 = (-b - discSqrt) / (2 * a);
5187
+ _t8 >= 0 && _t8 <= 1 && (extrema[n++] = _t8), t2 >= 0 && t2 <= 1 && (extrema[n++] = t2);
5188
+ }
5189
+ }
5190
+ return n;
5191
+ }
5192
+ function isAroundEqual(a, b) {
5193
+ return Math.abs(a - b) < EPSILON;
5194
+ }
5195
+ var roots = [-1, -1, -1],
5196
+ extrema = [-1, -1];
5197
+ function swapExtrema() {
5198
+ var tmp = extrema[0];
5199
+ extrema[0] = extrema[1], extrema[1] = tmp;
5200
+ }
5201
+ function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
5202
+ if (y > y0 && y > y1 && y > y2 && y > y3 || y < y0 && y < y1 && y < y2 && y < y3) return 0;
5203
+ var nRoots = cubicRootAt(y0, y1, y2, y3, y, roots);
5204
+ if (0 === nRoots) return 0;
5205
+ var w = 0,
5206
+ nExtrema = -1,
5207
+ y0_ = 0,
5208
+ y1_ = 0;
5209
+ for (var i = 0; i < nRoots; i++) {
5210
+ var t = roots[i],
5211
+ unit = 0 === t || 1 === t ? .5 : 1;
5212
+ cubicAt(x0, x1, x2, x3, t) < x || (nExtrema < 0 && (nExtrema = cubicExtrema(y0, y1, y2, y3, extrema), extrema[1] < extrema[0] && nExtrema > 1 && swapExtrema(), y0_ = cubicAt(y0, y1, y2, y3, extrema[0]), nExtrema > 1 && (y1_ = cubicAt(y0, y1, y2, y3, extrema[1]))), 2 === nExtrema ? t < extrema[0] ? w += y0_ < y0 ? unit : -unit : t < extrema[1] ? w += y1_ < y0_ ? unit : -unit : w += y3 < y1_ ? unit : -unit : t < extrema[0] ? w += y0_ < y0 ? unit : -unit : w += y3 < y0_ ? unit : -unit);
5213
+ }
5214
+ return w;
5215
+ }
5216
+ function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {
5217
+ if (y > y0 && y > y1 && y > y2 || y < y0 && y < y1 && y < y2) return 0;
5218
+ var nRoots = quadraticRootAt(y0, y1, y2, y, roots);
5219
+ if (0 === nRoots) return 0;
5220
+ var t = quadraticExtremum(y0, y1, y2);
5221
+ if (t >= 0 && t <= 1) {
5222
+ var w = 0;
5223
+ var y_ = quadraticAt(y0, y1, y2, t);
5224
+ for (var i = 0; i < nRoots; i++) {
5225
+ var _unit = 0 === roots[i] || 1 === roots[i] ? .5 : 1;
5226
+ quadraticAt(x0, x1, x2, roots[i]) < x || (roots[i] < t ? w += y_ < y0 ? _unit : -_unit : w += y2 < y_ ? _unit : -_unit);
5227
+ }
5228
+ return w;
5229
+ }
5230
+ var unit = 0 === roots[0] || 1 === roots[0] ? .5 : 1;
5231
+ return quadraticAt(x0, x1, x2, roots[0]) < x ? 0 : y2 < y0 ? unit : -unit;
5232
+ }
5233
+ function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
5234
+ if ((y -= cy) > r || y < -r) return 0;
5235
+ var tmp = Math.sqrt(r * r - y * y);
5236
+ roots[0] = -tmp, roots[1] = tmp;
5237
+ var dTheta = Math.abs(startAngle - endAngle);
5238
+ if (dTheta < 1e-4) return 0;
5239
+ if (dTheta >= vutils.pi2 - 1e-4) {
5240
+ startAngle = 0, endAngle = vutils.pi2;
5241
+ var dir = anticlockwise ? 1 : -1;
5242
+ return x >= roots[0] + cx && x <= roots[1] + cx ? dir : 0;
5243
+ }
5244
+ if (startAngle > endAngle) {
5245
+ var _tmp = startAngle;
5246
+ startAngle = endAngle, endAngle = _tmp;
5247
+ }
5248
+ startAngle < 0 && (startAngle += vutils.pi2, endAngle += vutils.pi2);
5249
+ var w = 0;
5250
+ for (var i = 0; i < 2; i++) {
5251
+ var x_ = roots[i];
5252
+ if (x_ + cx > x) {
5253
+ var angle = Math.atan2(y, x_),
5254
+ _dir = anticlockwise ? 1 : -1;
5255
+ angle < 0 && (angle = vutils.pi2 + angle), (angle >= startAngle && angle <= endAngle || angle + vutils.pi2 >= startAngle && angle + vutils.pi2 <= endAngle) && (angle > vutils.pi / 2 && angle < 1.5 * vutils.pi && (_dir = -_dir), w += _dir);
5256
+ }
5257
+ }
5258
+ return w;
5259
+ }
5260
+ function modpi2(radian) {
5261
+ return Math.round(radian / vutils.pi * 1e8) / 1e8 % 2 * vutils.pi;
5262
+ }
5263
+ function normalizeArcAngles(angles, anticlockwise) {
5264
+ var newStartAngle = modpi2(angles[0]);
5265
+ newStartAngle < 0 && (newStartAngle += vutils.pi2);
5266
+ var delta = newStartAngle - angles[0];
5267
+ var newEndAngle = angles[1];
5268
+ newEndAngle += delta, !anticlockwise && newEndAngle - newStartAngle >= vutils.pi2 ? newEndAngle = newStartAngle + vutils.pi2 : anticlockwise && newStartAngle - newEndAngle >= vutils.pi2 ? newEndAngle = newStartAngle - vutils.pi2 : !anticlockwise && newStartAngle > newEndAngle ? newEndAngle = newStartAngle + (vutils.pi2 - modpi2(newStartAngle - newEndAngle)) : anticlockwise && newStartAngle < newEndAngle && (newEndAngle = newStartAngle - (vutils.pi2 - modpi2(newEndAngle - newStartAngle))), angles[0] = newStartAngle, angles[1] = newEndAngle;
5269
+ }
5270
+ var tmpAngles = [0, 0];
5271
+ function containPath(commands, lineWidth, isStroke, x, y) {
5272
+ var data = commands,
5273
+ len = commands.length;
5274
+ var x1,
5275
+ y1,
5276
+ w = 0,
5277
+ xi = 0,
5278
+ yi = 0,
5279
+ x0 = 0,
5280
+ y0 = 0;
5281
+ for (var i = 0; i < len; i++) {
5282
+ var command = data[i],
5283
+ isFirst = 0 === i;
5284
+ command[0] === enumCommandMap.M && i > 1 && (isStroke || (w += windingLine(xi, yi, x0, y0, x, y))), isFirst && (xi = command[1], yi = command[2], x0 = xi, y0 = yi);
5285
+ var c0 = command[0],
5286
+ c1 = command[1],
5287
+ c2 = command[2],
5288
+ c3 = command[3],
5289
+ c4 = command[4],
5290
+ c5 = command[5],
5291
+ c6 = command[6];
5292
+ var startAngle = c4,
5293
+ endAngle = c5;
5294
+ tmpAngles[0] = startAngle, tmpAngles[1] = endAngle, normalizeArcAngles(tmpAngles, Boolean(command[6])), startAngle = tmpAngles[0], endAngle = tmpAngles[1];
5295
+ var theta = startAngle,
5296
+ dTheta = endAngle - startAngle,
5297
+ anticlockwise = !!(1 - (command[6] ? 0 : 1)),
5298
+ _x = (x - c1) * c3 / c3 + c1;
5299
+ switch (c0) {
5300
+ case enumCommandMap.M:
5301
+ x0 = c1, y0 = c2, xi = x0, yi = y0;
5302
+ break;
5303
+ case enumCommandMap.L:
5304
+ if (isStroke) {
5305
+ if (containLineStroke(xi, yi, c1, c2, lineWidth, x, y)) return !0;
5306
+ } else w += windingLine(xi, yi, c1, c2, x, y) || 0;
5307
+ xi = c1, yi = c2;
5308
+ break;
5309
+ case enumCommandMap.C:
5310
+ if (isStroke) {
5311
+ if (containCubicStroke(xi, yi, c1, c2, c3, c4, c5, c6, lineWidth, x, y)) return !0;
5312
+ } else w += windingCubic(xi, yi, c1, c2, c3, c4, c5, c6, x, y) || 0;
5313
+ xi = c5, yi = c6;
5314
+ break;
5315
+ case enumCommandMap.Q:
5316
+ if (isStroke) {
5317
+ if (containQuadStroke(xi, yi, c1, c2, c3, c4, lineWidth, x, y)) return !0;
5318
+ } else w += windingQuadratic(xi, yi, c1, c2, c3, c4, x, y) || 0;
5319
+ xi = c3, yi = c4;
5320
+ break;
5321
+ case enumCommandMap.A:
5322
+ if (x1 = Math.cos(theta) * c3 + c1, y1 = Math.sin(theta) * c3 + c2, isFirst ? (x0 = x1, y0 = y1) : w += windingLine(xi, yi, x1, y1, x, y), isStroke) {
5323
+ if (containArcStroke(c1, c2, c3, theta, theta + dTheta, anticlockwise, lineWidth, _x, y)) return !0;
5324
+ } else w += windingArc(c1, c2, c3, theta, theta + dTheta, anticlockwise, _x, y);
5325
+ xi = Math.cos(theta + dTheta) * c3 + c1, yi = Math.sin(theta + dTheta) * c3 + c2;
5326
+ break;
5327
+ case enumCommandMap.R:
5328
+ if (x0 = xi = c1, y0 = yi = c2, x1 = x0 + c3, y1 = y0 + c4, isStroke) {
5329
+ if (containLineStroke(x0, y0, x1, y0, lineWidth, x, y) || containLineStroke(x1, y0, x1, y1, lineWidth, x, y) || containLineStroke(x1, y1, x0, y1, lineWidth, x, y) || containLineStroke(x0, y1, x0, y0, lineWidth, x, y)) return !0;
5330
+ } else w += windingLine(x1, y0, x1, y1, x, y), w += windingLine(x0, y1, x0, y0, x, y);
5331
+ break;
5332
+ case enumCommandMap.Z:
5333
+ if (isStroke) {
5334
+ if (containLineStroke(xi, yi, x0, y0, lineWidth, x, y)) return !0;
5335
+ } else w += windingLine(xi, yi, x0, y0, x, y);
5336
+ xi = x0, yi = y0;
5337
+ }
5338
+ }
5339
+ return isStroke || isAroundEqual(yi, y0) || (w += windingLine(xi, yi, x0, y0, x, y) || 0), 0 !== w;
5340
+ }
5341
+ function contain(commands, x, y) {
5342
+ return containPath(commands, 0, !1, x, y);
5343
+ }
5344
+ function containStroke(commands, lineWidth, x, y) {
5345
+ return containPath(commands, lineWidth, !0, x, y);
5346
+ }
4974
5347
 
4975
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5348
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4976
5349
  var d,
4977
5350
  c = arguments.length,
4978
5351
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
4979
5352
  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);
4980
5353
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4981
5354
  },
4982
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
5355
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
4983
5356
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
4984
5357
  },
4985
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
5358
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
4986
5359
  return function (target, key) {
4987
5360
  decorator(target, key, paramIndex);
4988
5361
  };
@@ -5053,7 +5426,7 @@
5053
5426
  }]);
5054
5427
  return DefaultGraphicUtil;
5055
5428
  }();
5056
- DefaultGraphicUtil = __decorate$O([injectable(), __param$m(0, inject(ContributionProvider)), __param$m(0, named(TextMeasureContribution)), __param$m(1, inject(VGlobal)), __metadata$m("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
5429
+ DefaultGraphicUtil = __decorate$U([injectable(), __param$n(0, inject(ContributionProvider)), __param$n(0, named(TextMeasureContribution)), __param$n(1, inject(VGlobal)), __metadata$q("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
5057
5430
  var TransformMode;
5058
5431
  !function (TransformMode) {
5059
5432
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -5130,7 +5503,7 @@
5130
5503
  }]);
5131
5504
  return DefaultTransformUtil;
5132
5505
  }();
5133
- DefaultTransformUtil = __decorate$O([injectable(), __metadata$m("design:paramtypes", [])], DefaultTransformUtil);
5506
+ DefaultTransformUtil = __decorate$U([injectable(), __metadata$q("design:paramtypes", [])], DefaultTransformUtil);
5134
5507
 
5135
5508
  var defaultThemeObj = {
5136
5509
  arc: DefaultArcAttribute,
@@ -5916,6 +6289,8 @@
5916
6289
  return _createClass(CustomEvent);
5917
6290
  }(FederatedEvent);
5918
6291
 
6292
+ "object" == (typeof performance === "undefined" ? "undefined" : _typeof(performance)) && performance.now ? performance : Date;
6293
+
5919
6294
  var EventTarget = {
5920
6295
  pickable: !0,
5921
6296
  visible: !0,
@@ -5929,6 +6304,292 @@
5929
6304
  }
5930
6305
  };
5931
6306
 
6307
+ var ManualTickHandler = /*#__PURE__*/function () {
6308
+ function ManualTickHandler() {
6309
+ _classCallCheck(this, ManualTickHandler);
6310
+ this.time = 0;
6311
+ }
6312
+ _createClass(ManualTickHandler, [{
6313
+ key: "avaliable",
6314
+ value: function avaliable() {
6315
+ return ManualTickHandler.Avaliable();
6316
+ }
6317
+ }, {
6318
+ key: "tick",
6319
+ value: function tick(interval, cb) {
6320
+ this.time = Math.max(0, interval + this.time), cb(this, {
6321
+ once: !0
6322
+ });
6323
+ }
6324
+ }, {
6325
+ key: "tickTo",
6326
+ value: function tickTo(t, cb) {
6327
+ this.time = Math.max(0, t), cb(this, {
6328
+ once: !0
6329
+ });
6330
+ }
6331
+ }, {
6332
+ key: "release",
6333
+ value: function release() {
6334
+ this.timerId > 0 && (this.timerId = -1);
6335
+ }
6336
+ }, {
6337
+ key: "getTime",
6338
+ value: function getTime() {
6339
+ return this.time;
6340
+ }
6341
+ }], [{
6342
+ key: "Avaliable",
6343
+ value: function Avaliable() {
6344
+ return !0;
6345
+ }
6346
+ }]);
6347
+ return ManualTickHandler;
6348
+ }();
6349
+ var TimeOutTickHandler = /*#__PURE__*/function () {
6350
+ function TimeOutTickHandler() {
6351
+ _classCallCheck(this, TimeOutTickHandler);
6352
+ }
6353
+ _createClass(TimeOutTickHandler, [{
6354
+ key: "avaliable",
6355
+ value: function avaliable() {
6356
+ return TimeOutTickHandler.Avaliable();
6357
+ }
6358
+ }, {
6359
+ key: "tick",
6360
+ value: function tick(interval, cb) {
6361
+ var _this = this;
6362
+ this.timerId = setTimeout(function () {
6363
+ cb(_this);
6364
+ }, interval);
6365
+ }
6366
+ }, {
6367
+ key: "release",
6368
+ value: function release() {
6369
+ this.timerId > 0 && (clearTimeout(this.timerId), this.timerId = -1);
6370
+ }
6371
+ }, {
6372
+ key: "getTime",
6373
+ value: function getTime() {
6374
+ return Date.now();
6375
+ }
6376
+ }], [{
6377
+ key: "Avaliable",
6378
+ value: function Avaliable() {
6379
+ return !0;
6380
+ }
6381
+ }]);
6382
+ return TimeOutTickHandler;
6383
+ }();
6384
+ var RAFTickHandler = /*#__PURE__*/function () {
6385
+ function RAFTickHandler() {
6386
+ _classCallCheck(this, RAFTickHandler);
6387
+ }
6388
+ _createClass(RAFTickHandler, [{
6389
+ key: "avaliable",
6390
+ value: function avaliable() {
6391
+ return RAFTickHandler.Avaliable();
6392
+ }
6393
+ }, {
6394
+ key: "tick",
6395
+ value: function tick(interval, cb) {
6396
+ var _this2 = this;
6397
+ application.global.getRequestAnimationFrame()(function () {
6398
+ _this2.released || cb(_this2);
6399
+ });
6400
+ }
6401
+ }, {
6402
+ key: "release",
6403
+ value: function release() {
6404
+ this.released = !0;
6405
+ }
6406
+ }, {
6407
+ key: "getTime",
6408
+ value: function getTime() {
6409
+ return Date.now();
6410
+ }
6411
+ }], [{
6412
+ key: "Avaliable",
6413
+ value: function Avaliable() {
6414
+ return !!application.global.getRequestAnimationFrame();
6415
+ }
6416
+ }]);
6417
+ return RAFTickHandler;
6418
+ }();
6419
+ var STATUS$1;
6420
+ !function (STATUS) {
6421
+ STATUS[STATUS.INITIAL = 0] = "INITIAL", STATUS[STATUS.RUNNING = 1] = "RUNNING", STATUS[STATUS.PAUSE = 2] = "PAUSE";
6422
+ }(STATUS$1 || (STATUS$1 = {}));
6423
+ var DefaultTicker = /*#__PURE__*/function () {
6424
+ function DefaultTicker() {
6425
+ var _this3 = this;
6426
+ var timelines = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
6427
+ _classCallCheck(this, DefaultTicker);
6428
+ this.handleTick = function (handler, params) {
6429
+ var _ref = null != params ? params : {},
6430
+ _ref$once = _ref.once,
6431
+ once = _ref$once === void 0 ? !1 : _ref$once;
6432
+ _this3.ifCanStop() ? _this3.stop() : (_this3._handlerTick(handler), once || handler.tick(_this3.interval, _this3.handleTick));
6433
+ }, this._handlerTick = function (handler) {
6434
+ var time = _this3.tickerHandler.getTime();
6435
+ var delta = 0;
6436
+ _this3.lastFrameTime >= 0 && (delta = time - _this3.lastFrameTime), _this3.lastFrameTime = time, _this3.status === STATUS$1.RUNNING && (_this3.tickCounts++, _this3.timelines.forEach(function (t) {
6437
+ t.tick(delta);
6438
+ }));
6439
+ }, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.timelines = timelines, this.autoStop = !0;
6440
+ }
6441
+ _createClass(DefaultTicker, [{
6442
+ key: "mode",
6443
+ get: function get() {
6444
+ return this._mode;
6445
+ },
6446
+ set: function set(m) {
6447
+ this._mode !== m && (this._mode = m, this.setupTickHandler());
6448
+ }
6449
+ }, {
6450
+ key: "init",
6451
+ value: function init() {
6452
+ var _this4 = this;
6453
+ this.interval = NaN, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("window", function () {
6454
+ _this4.initHandler();
6455
+ }), application.global.env && this.initHandler();
6456
+ }
6457
+ }, {
6458
+ key: "addTimeline",
6459
+ value: function addTimeline(timeline) {
6460
+ this.timelines.push(timeline);
6461
+ }
6462
+ }, {
6463
+ key: "remTimeline",
6464
+ value: function remTimeline(timeline) {
6465
+ this.timelines = this.timelines.filter(function (t) {
6466
+ return t !== timeline;
6467
+ });
6468
+ }
6469
+ }, {
6470
+ key: "initHandler",
6471
+ value: function initHandler() {
6472
+ if (this._mode) return null;
6473
+ var ticks = [{
6474
+ mode: "raf",
6475
+ cons: RAFTickHandler
6476
+ }, {
6477
+ mode: "timeout",
6478
+ cons: TimeOutTickHandler
6479
+ }, {
6480
+ mode: "manual",
6481
+ cons: ManualTickHandler
6482
+ }];
6483
+ for (var i = 0; i < ticks.length; i++) if (ticks[i].cons.Avaliable()) {
6484
+ this.mode = ticks[i].mode;
6485
+ break;
6486
+ }
6487
+ return null;
6488
+ }
6489
+ }, {
6490
+ key: "setupTickHandler",
6491
+ value: function setupTickHandler() {
6492
+ var handler;
6493
+ switch (this._mode) {
6494
+ case "raf":
6495
+ handler = new RAFTickHandler();
6496
+ break;
6497
+ case "timeout":
6498
+ handler = new TimeOutTickHandler();
6499
+ break;
6500
+ case "manual":
6501
+ handler = new ManualTickHandler();
6502
+ break;
6503
+ default:
6504
+ console.warn("非法的计时器模式"), handler = new RAFTickHandler();
6505
+ }
6506
+ return !!handler.avaliable() && (this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0);
6507
+ }
6508
+ }, {
6509
+ key: "setInterval",
6510
+ value: function setInterval(interval) {
6511
+ this.interval = interval;
6512
+ }
6513
+ }, {
6514
+ key: "getInterval",
6515
+ value: function getInterval() {
6516
+ return this.interval;
6517
+ }
6518
+ }, {
6519
+ key: "setFPS",
6520
+ value: function setFPS(fps) {
6521
+ this.setInterval(1e3 / fps);
6522
+ }
6523
+ }, {
6524
+ key: "getFPS",
6525
+ value: function getFPS() {
6526
+ return 1e3 / this.interval;
6527
+ }
6528
+ }, {
6529
+ key: "tick",
6530
+ value: function tick(interval) {
6531
+ var _this5 = this;
6532
+ this.tickerHandler.tick(interval, function (handler) {
6533
+ _this5.handleTick(handler, {
6534
+ once: !0
6535
+ });
6536
+ });
6537
+ }
6538
+ }, {
6539
+ key: "tickTo",
6540
+ value: function tickTo(t) {
6541
+ var _this6 = this;
6542
+ this.tickerHandler.tickTo && this.tickerHandler.tickTo(t, function (handler) {
6543
+ _this6.handleTick(handler, {
6544
+ once: !0
6545
+ });
6546
+ });
6547
+ }
6548
+ }, {
6549
+ key: "pause",
6550
+ value: function pause() {
6551
+ return this.status !== STATUS$1.INITIAL && (this.status = STATUS$1.PAUSE, !0);
6552
+ }
6553
+ }, {
6554
+ key: "resume",
6555
+ value: function resume() {
6556
+ return this.status !== STATUS$1.INITIAL && (this.status = STATUS$1.RUNNING, !0);
6557
+ }
6558
+ }, {
6559
+ key: "ifCanStop",
6560
+ value: function ifCanStop() {
6561
+ if (this.autoStop) {
6562
+ if (!this.timelines.length) return !0;
6563
+ if (0 === this.timelines.reduce(function (a, b) {
6564
+ return a + b.animateCount;
6565
+ }, 0)) return !0;
6566
+ }
6567
+ return !1;
6568
+ }
6569
+ }, {
6570
+ key: "start",
6571
+ value: function start() {
6572
+ var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
6573
+ if (this.status === STATUS$1.RUNNING) return !1;
6574
+ if (!this.tickerHandler) return !1;
6575
+ if (!force) {
6576
+ if (this.status === STATUS$1.PAUSE) return !1;
6577
+ if (!this.timelines.length) return !1;
6578
+ if (0 === this.timelines.reduce(function (a, b) {
6579
+ return a + b.animateCount;
6580
+ }, 0)) return !1;
6581
+ }
6582
+ return this.status = STATUS$1.RUNNING, this.tickerHandler.tick(0, this.handleTick), !0;
6583
+ }
6584
+ }, {
6585
+ key: "stop",
6586
+ value: function stop() {
6587
+ this.status = STATUS$1.INITIAL, this.setupTickHandler(), this.lastFrameTime = -1;
6588
+ }
6589
+ }]);
6590
+ return DefaultTicker;
6591
+ }();
6592
+
5932
6593
  var Easing = /*#__PURE__*/function () {
5933
6594
  function Easing() {
5934
6595
  _classCallCheck(this, Easing);
@@ -6982,6 +7643,10 @@
6982
7643
  return ColorStore.Get(fromColor, ColorType.Color255, _fromColorRGB), ColorStore.Get(toColor, ColorType.Color255, _toColorRGB), "rgba(".concat(Math.round(_fromColorRGB[0] + (_toColorRGB[0] - _fromColorRGB[0]) * ratio), ",").concat(Math.round(_fromColorRGB[1] + (_toColorRGB[1] - _fromColorRGB[1]) * ratio), ",").concat(Math.round(_fromColorRGB[2] + (_toColorRGB[2] - _fromColorRGB[2]) * ratio), ",").concat(_fromColorRGB[3] + (_toColorRGB[3] - _fromColorRGB[3]) * ratio, ")");
6983
7644
  }
6984
7645
 
7646
+ Object.keys(vutils.DEFAULT_COLORS).forEach(function (k) {
7647
+ vutils.DEFAULT_COLORS[k];
7648
+ });
7649
+
6985
7650
  var ResourceLoader = /*#__PURE__*/function () {
6986
7651
  function ResourceLoader() {
6987
7652
  _classCallCheck(this, ResourceLoader);
@@ -8637,17 +9302,17 @@
8637
9302
  var DynamicLayerHandlerContribution = Symbol["for"]("DynamicLayerHandlerContribution");
8638
9303
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
8639
9304
 
8640
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9305
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8641
9306
  var d,
8642
9307
  c = arguments.length,
8643
9308
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8644
9309
  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);
8645
9310
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8646
9311
  },
8647
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
9312
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
8648
9313
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8649
9314
  },
8650
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
9315
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
8651
9316
  return function (target, key) {
8652
9317
  decorator(target, key, paramIndex);
8653
9318
  };
@@ -8728,19 +9393,19 @@
8728
9393
  }]);
8729
9394
  return DefaultLayerService;
8730
9395
  }();
8731
- DefaultLayerService = __decorate$N([injectable(), __param$l(0, inject(VGlobal)), __metadata$l("design:paramtypes", [Object])], DefaultLayerService);
9396
+ DefaultLayerService = __decorate$T([injectable(), __param$m(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], DefaultLayerService);
8732
9397
 
8733
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9398
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8734
9399
  var d,
8735
9400
  c = arguments.length,
8736
9401
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8737
9402
  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);
8738
9403
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8739
9404
  },
8740
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
9405
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
8741
9406
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8742
9407
  },
8743
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
9408
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
8744
9409
  return function (target, key) {
8745
9410
  decorator(target, key, paramIndex);
8746
9411
  };
@@ -8895,7 +9560,7 @@
8895
9560
  }]);
8896
9561
  return DefaultWindow;
8897
9562
  }();
8898
- __decorate$M([postConstruct(), __metadata$k("design:type", Function), __metadata$k("design:paramtypes", []), __metadata$k("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$M([injectable(), __param$k(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], DefaultWindow);
9563
+ __decorate$S([postConstruct(), __metadata$o("design:type", Function), __metadata$o("design:paramtypes", []), __metadata$o("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$S([injectable(), __param$l(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], DefaultWindow);
8899
9564
 
8900
9565
  var coreModule = new ContainerModule(function (bind) {
8901
9566
  bind(DefaultGlobal).toSelf().inSingletonScope(), bind(VGlobal).toService(DefaultGlobal), bind(DefaultWindow).to(DefaultWindow), bind(VWindow).toService(DefaultWindow), bind(DefaultGraphicUtil).toSelf().inSingletonScope(), bind(GraphicUtil).toService(DefaultGraphicUtil), bind(DefaultTransformUtil).toSelf().inSingletonScope(), bind(TransformUtil).toService(DefaultTransformUtil), bind(DefaultLayerService).toSelf().inSingletonScope(), bind(LayerService).toService(DefaultLayerService);
@@ -12183,6 +12848,10 @@
12183
12848
  cap: 1
12184
12849
  }, NOWORK_ANIMATE_ATTR);
12185
12850
 
12851
+ Object.assign({
12852
+ cap: 1
12853
+ }, NOWORK_ANIMATE_ATTR);
12854
+
12186
12855
  var POLYGON_UPDATE_TAG_KEY = ["points", "cornerRadius"].concat(_toConsumableArray(GRAPHIC_UPDATE_TAG_KEY));
12187
12856
  var Polygon = /*#__PURE__*/function (_Graphic) {
12188
12857
  _inherits(Polygon, _Graphic);
@@ -12265,7 +12934,7 @@
12265
12934
  }(Graphic);
12266
12935
  Polygon.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
12267
12936
 
12268
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12937
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12269
12938
  var d,
12270
12939
  c = arguments.length,
12271
12940
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12295,9 +12964,9 @@
12295
12964
  }]);
12296
12965
  return DefaultOuterBorderBoundsContribution;
12297
12966
  }();
12298
- DefaultOuterBorderBoundsContribution = __decorate$L([injectable()], DefaultOuterBorderBoundsContribution);
12967
+ DefaultOuterBorderBoundsContribution = __decorate$R([injectable()], DefaultOuterBorderBoundsContribution);
12299
12968
 
12300
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12969
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12301
12970
  var d,
12302
12971
  c = arguments.length,
12303
12972
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12314,9 +12983,9 @@
12314
12983
  }
12315
12984
  return _createClass(DefaultRectOuterBorderBoundsContribution);
12316
12985
  }(DefaultOuterBorderBoundsContribution);
12317
- DefaultRectOuterBorderBoundsContribution = __decorate$K([injectable()], DefaultRectOuterBorderBoundsContribution);
12986
+ DefaultRectOuterBorderBoundsContribution = __decorate$Q([injectable()], DefaultRectOuterBorderBoundsContribution);
12318
12987
 
12319
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12988
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12320
12989
  var d,
12321
12990
  c = arguments.length,
12322
12991
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12352,9 +13021,9 @@
12352
13021
  }]);
12353
13022
  return DefaultSymbolOuterBorderBoundsContribution;
12354
13023
  }(DefaultOuterBorderBoundsContribution);
12355
- DefaultSymbolOuterBorderBoundsContribution = __decorate$J([injectable()], DefaultSymbolOuterBorderBoundsContribution);
13024
+ DefaultSymbolOuterBorderBoundsContribution = __decorate$P([injectable()], DefaultSymbolOuterBorderBoundsContribution);
12356
13025
 
12357
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13026
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12358
13027
  var d,
12359
13028
  c = arguments.length,
12360
13029
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12371,9 +13040,9 @@
12371
13040
  }
12372
13041
  return _createClass(DefaultCircleOuterBorderBoundsContribution);
12373
13042
  }(DefaultOuterBorderBoundsContribution);
12374
- DefaultCircleOuterBorderBoundsContribution = __decorate$I([injectable()], DefaultCircleOuterBorderBoundsContribution);
13043
+ DefaultCircleOuterBorderBoundsContribution = __decorate$O([injectable()], DefaultCircleOuterBorderBoundsContribution);
12375
13044
 
12376
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13045
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12377
13046
  var d,
12378
13047
  c = arguments.length,
12379
13048
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12390,9 +13059,9 @@
12390
13059
  }
12391
13060
  return _createClass(DefaultArcOuterBorderBoundsContribution);
12392
13061
  }(DefaultOuterBorderBoundsContribution);
12393
- DefaultArcOuterBorderBoundsContribution = __decorate$H([injectable()], DefaultArcOuterBorderBoundsContribution);
13062
+ DefaultArcOuterBorderBoundsContribution = __decorate$N([injectable()], DefaultArcOuterBorderBoundsContribution);
12394
13063
 
12395
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13064
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12396
13065
  var d,
12397
13066
  c = arguments.length,
12398
13067
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12409,7 +13078,7 @@
12409
13078
  }
12410
13079
  return _createClass(DefaultPathOuterBorderBoundsContribution);
12411
13080
  }(DefaultOuterBorderBoundsContribution);
12412
- DefaultPathOuterBorderBoundsContribution = __decorate$G([injectable()], DefaultPathOuterBorderBoundsContribution);
13081
+ DefaultPathOuterBorderBoundsContribution = __decorate$M([injectable()], DefaultPathOuterBorderBoundsContribution);
12413
13082
 
12414
13083
  function createMat4() {
12415
13084
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
@@ -12497,17 +13166,17 @@
12497
13166
  var matrixAllocate = new DefaultMatrixAllocate();
12498
13167
  var mat4Allocate = new DefaultMat4Allocate();
12499
13168
 
12500
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13169
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12501
13170
  var d,
12502
13171
  c = arguments.length,
12503
13172
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
12504
13173
  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);
12505
13174
  return c > 3 && r && Object.defineProperty(target, key, r), r;
12506
13175
  },
12507
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
13176
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
12508
13177
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
12509
13178
  },
12510
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
13179
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
12511
13180
  return function (target, key) {
12512
13181
  decorator(target, key, paramIndex);
12513
13182
  };
@@ -13131,7 +13800,7 @@
13131
13800
  }]);
13132
13801
  return DefaultGraphicService;
13133
13802
  }();
13134
- DefaultGraphicService = __decorate$F([injectable(), __param$j(0, inject(GraphicCreator)), __param$j(1, inject(ContributionProvider)), __param$j(1, named(RectBoundsContribution)), __param$j(2, inject(ContributionProvider)), __param$j(2, named(SymbolBoundsContribution)), __param$j(3, inject(ContributionProvider)), __param$j(3, named(CircleBoundsContribution)), __param$j(4, inject(ContributionProvider)), __param$j(4, named(ArcBoundsContribution)), __param$j(5, inject(ContributionProvider)), __param$j(5, named(PathBoundsContribution)), __metadata$j("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
13803
+ DefaultGraphicService = __decorate$L([injectable(), __param$k(0, inject(GraphicCreator)), __param$k(1, inject(ContributionProvider)), __param$k(1, named(RectBoundsContribution)), __param$k(2, inject(ContributionProvider)), __param$k(2, named(SymbolBoundsContribution)), __param$k(3, inject(ContributionProvider)), __param$k(3, named(CircleBoundsContribution)), __param$k(4, inject(ContributionProvider)), __param$k(4, named(ArcBoundsContribution)), __param$k(5, inject(ContributionProvider)), __param$k(5, named(PathBoundsContribution)), __metadata$n("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
13135
13804
 
13136
13805
  var ShadowRoot = /*#__PURE__*/function (_Group) {
13137
13806
  _inherits(ShadowRoot, _Group);
@@ -13253,7 +13922,7 @@
13253
13922
  }
13254
13923
  createRichText({});
13255
13924
 
13256
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13925
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13257
13926
  var d,
13258
13927
  c = arguments.length,
13259
13928
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13423,19 +14092,19 @@
13423
14092
  }]);
13424
14093
  return BaseRender;
13425
14094
  }();
13426
- BaseRender = __decorate$E([injectable()], BaseRender);
14095
+ BaseRender = __decorate$K([injectable()], BaseRender);
13427
14096
 
13428
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14097
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13429
14098
  var d,
13430
14099
  c = arguments.length,
13431
14100
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13432
14101
  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);
13433
14102
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13434
14103
  },
13435
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
14104
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
13436
14105
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13437
14106
  },
13438
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
14107
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
13439
14108
  return function (target, key) {
13440
14109
  decorator(target, key, paramIndex);
13441
14110
  };
@@ -13605,19 +14274,19 @@
13605
14274
  }]);
13606
14275
  return DefaultCanvasArcRender;
13607
14276
  }(BaseRender);
13608
- DefaultCanvasArcRender = __decorate$D([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(ArcRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasArcRender);
14277
+ DefaultCanvasArcRender = __decorate$J([injectable(), __param$j(0, inject(ContributionProvider)), __param$j(0, named(ArcRenderContribution)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasArcRender);
13609
14278
 
13610
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14279
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13611
14280
  var d,
13612
14281
  c = arguments.length,
13613
14282
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13614
14283
  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);
13615
14284
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13616
14285
  },
13617
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
14286
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
13618
14287
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13619
14288
  },
13620
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
14289
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
13621
14290
  return function (target, key) {
13622
14291
  decorator(target, key, paramIndex);
13623
14292
  };
@@ -13663,7 +14332,7 @@
13663
14332
  }]);
13664
14333
  return DefaultCanvasCircleRender;
13665
14334
  }(BaseRender);
13666
- DefaultCanvasCircleRender = __decorate$C([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(CircleRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasCircleRender);
14335
+ DefaultCanvasCircleRender = __decorate$I([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(CircleRenderContribution)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasCircleRender);
13667
14336
 
13668
14337
  function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
13669
14338
  var _a;
@@ -13803,7 +14472,7 @@
13803
14472
  }
13804
14473
  }
13805
14474
 
13806
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14475
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13807
14476
  var d,
13808
14477
  c = arguments.length,
13809
14478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13961,7 +14630,7 @@
13961
14630
  }]);
13962
14631
  return DefaultCanvasLineRender;
13963
14632
  }(BaseRender);
13964
- DefaultCanvasLineRender = __decorate$B([injectable()], DefaultCanvasLineRender);
14633
+ DefaultCanvasLineRender = __decorate$H([injectable()], DefaultCanvasLineRender);
13965
14634
 
13966
14635
  function drawAreaSegments(path, segPath, percent, params) {
13967
14636
  var _a;
@@ -14102,17 +14771,17 @@
14102
14771
  }
14103
14772
  }
14104
14773
 
14105
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14774
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14106
14775
  var d,
14107
14776
  c = arguments.length,
14108
14777
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14109
14778
  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);
14110
14779
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14111
14780
  },
14112
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
14781
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
14113
14782
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14114
14783
  },
14115
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
14784
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
14116
14785
  return function (target, key) {
14117
14786
  decorator(target, key, paramIndex);
14118
14787
  };
@@ -14332,19 +15001,19 @@
14332
15001
  }]);
14333
15002
  return DefaultCanvasAreaRender;
14334
15003
  }(BaseRender);
14335
- DefaultCanvasAreaRender = __decorate$A([injectable(), __param$g(0, inject(ContributionProvider)), __param$g(0, named(AreaRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasAreaRender);
15004
+ DefaultCanvasAreaRender = __decorate$G([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(AreaRenderContribution)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasAreaRender);
14336
15005
 
14337
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15006
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14338
15007
  var d,
14339
15008
  c = arguments.length,
14340
15009
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14341
15010
  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);
14342
15011
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14343
15012
  },
14344
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
15013
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
14345
15014
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14346
15015
  },
14347
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
15016
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
14348
15017
  return function (target, key) {
14349
15018
  decorator(target, key, paramIndex);
14350
15019
  };
@@ -14390,7 +15059,7 @@
14390
15059
  }]);
14391
15060
  return DefaultCanvasPathRender;
14392
15061
  }(BaseRender);
14393
- DefaultCanvasPathRender = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(PathRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPathRender);
15062
+ DefaultCanvasPathRender = __decorate$F([injectable(), __param$g(0, inject(ContributionProvider)), __param$g(0, named(PathRenderContribution)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasPathRender);
14394
15063
 
14395
15064
  var halfPi = vutils.pi / 2;
14396
15065
  function createRectPath(path, x, y, width, height, rectCornerRadius) {
@@ -14450,17 +15119,17 @@
14450
15119
  return path.closePath(), path;
14451
15120
  }
14452
15121
 
14453
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15122
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14454
15123
  var d,
14455
15124
  c = arguments.length,
14456
15125
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14457
15126
  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);
14458
15127
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14459
15128
  },
14460
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
15129
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
14461
15130
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14462
15131
  },
14463
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
15132
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
14464
15133
  return function (target, key) {
14465
15134
  decorator(target, key, paramIndex);
14466
15135
  };
@@ -14529,19 +15198,19 @@
14529
15198
  }]);
14530
15199
  return DefaultCanvasRectRender;
14531
15200
  }(BaseRender);
14532
- DefaultCanvasRectRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(RectRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectRender);
15201
+ DefaultCanvasRectRender = __decorate$E([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(RectRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasRectRender);
14533
15202
 
14534
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15203
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14535
15204
  var d,
14536
15205
  c = arguments.length,
14537
15206
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14538
15207
  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);
14539
15208
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14540
15209
  },
14541
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
15210
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
14542
15211
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14543
15212
  },
14544
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
15213
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
14545
15214
  return function (target, key) {
14546
15215
  decorator(target, key, paramIndex);
14547
15216
  };
@@ -14602,19 +15271,19 @@
14602
15271
  }]);
14603
15272
  return DefaultCanvasSymbolRender;
14604
15273
  }(BaseRender);
14605
- DefaultCanvasSymbolRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(SymbolRenderContribution)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
15274
+ DefaultCanvasSymbolRender = __decorate$D([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(SymbolRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
14606
15275
 
14607
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15276
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14608
15277
  var d,
14609
15278
  c = arguments.length,
14610
15279
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14611
15280
  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);
14612
15281
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14613
15282
  },
14614
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
15283
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
14615
15284
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14616
15285
  },
14617
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
15286
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
14618
15287
  return function (target, key) {
14619
15288
  decorator(target, key, paramIndex);
14620
15289
  };
@@ -14844,7 +15513,19 @@
14844
15513
  }]);
14845
15514
  return DefaultCanvasTextRender;
14846
15515
  }(BaseRender);
14847
- DefaultCanvasTextRender = __decorate$w([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(TextRenderContribution)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasTextRender);
15516
+ DefaultCanvasTextRender = __decorate$C([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(TextRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasTextRender);
15517
+
15518
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15519
+ var d,
15520
+ c = arguments.length,
15521
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15522
+ 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);
15523
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15524
+ };
15525
+ var AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
15526
+ _classCallCheck(this, AbstractGraphicRender);
15527
+ });
15528
+ AbstractGraphicRender = __decorate$B([injectable()], AbstractGraphicRender);
14848
15529
 
14849
15530
  function drawPolygon(path, points, x, y) {
14850
15531
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -14897,17 +15578,17 @@
14897
15578
  };
14898
15579
  }
14899
15580
 
14900
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15581
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14901
15582
  var d,
14902
15583
  c = arguments.length,
14903
15584
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14904
15585
  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);
14905
15586
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14906
15587
  },
14907
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
15588
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
14908
15589
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14909
15590
  },
14910
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
15591
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
14911
15592
  return function (target, key) {
14912
15593
  decorator(target, key, paramIndex);
14913
15594
  };
@@ -14955,19 +15636,19 @@
14955
15636
  }]);
14956
15637
  return DefaultCanvasPolygonRender;
14957
15638
  }(BaseRender);
14958
- DefaultCanvasPolygonRender = __decorate$v([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PolygonRenderContribution)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
15639
+ DefaultCanvasPolygonRender = __decorate$A([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(PolygonRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
14959
15640
 
14960
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15641
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14961
15642
  var d,
14962
15643
  c = arguments.length,
14963
15644
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14964
15645
  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);
14965
15646
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14966
15647
  },
14967
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
15648
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
14968
15649
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14969
15650
  },
14970
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
15651
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
14971
15652
  return function (target, key) {
14972
15653
  decorator(target, key, paramIndex);
14973
15654
  };
@@ -15035,7 +15716,7 @@
15035
15716
  }]);
15036
15717
  return DefaultCanvasImageRender;
15037
15718
  }(BaseRender);
15038
- DefaultCanvasImageRender = __decorate$u([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(ImageRenderContribution)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasImageRender);
15719
+ DefaultCanvasImageRender = __decorate$z([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(ImageRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasImageRender);
15039
15720
 
15040
15721
  var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
15041
15722
  var ArcRender = Symbol["for"]("ArcRender");
@@ -15198,17 +15879,17 @@
15198
15879
  }();
15199
15880
  var canvasAllocate = new DefaultCanvasAllocate();
15200
15881
 
15201
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15882
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15202
15883
  var d,
15203
15884
  c = arguments.length,
15204
15885
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15205
15886
  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);
15206
15887
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15207
15888
  },
15208
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
15889
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
15209
15890
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15210
15891
  },
15211
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
15892
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
15212
15893
  return function (target, key) {
15213
15894
  decorator(target, key, paramIndex);
15214
15895
  };
@@ -15242,7 +15923,7 @@
15242
15923
  }]);
15243
15924
  return DefaultBaseBackgroundRenderContribution;
15244
15925
  }();
15245
- DefaultBaseBackgroundRenderContribution = __decorate$t([injectable()], DefaultBaseBackgroundRenderContribution);
15926
+ DefaultBaseBackgroundRenderContribution = __decorate$y([injectable()], DefaultBaseBackgroundRenderContribution);
15246
15927
  var DefaultBaseInteractiveRenderContribution = /*#__PURE__*/function () {
15247
15928
  function DefaultBaseInteractiveRenderContribution(subRenderContribitions) {
15248
15929
  _classCallCheck(this, DefaultBaseInteractiveRenderContribution);
@@ -15258,7 +15939,7 @@
15258
15939
  }]);
15259
15940
  return DefaultBaseInteractiveRenderContribution;
15260
15941
  }();
15261
- DefaultBaseInteractiveRenderContribution = __decorate$t([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(InteractiveSubRenderContribution)), __metadata$9("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15942
+ DefaultBaseInteractiveRenderContribution = __decorate$y([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(InteractiveSubRenderContribution)), __metadata$d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15262
15943
  var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
15263
15944
  function DefaultBaseTextureRenderContribution() {
15264
15945
  _classCallCheck(this, DefaultBaseTextureRenderContribution);
@@ -15400,9 +16081,9 @@
15400
16081
  }]);
15401
16082
  return DefaultBaseTextureRenderContribution;
15402
16083
  }();
15403
- DefaultBaseTextureRenderContribution = __decorate$t([injectable()], DefaultBaseTextureRenderContribution);
16084
+ DefaultBaseTextureRenderContribution = __decorate$y([injectable()], DefaultBaseTextureRenderContribution);
15404
16085
 
15405
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16086
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15406
16087
  var d,
15407
16088
  c = arguments.length,
15408
16089
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15484,7 +16165,7 @@
15484
16165
  }]);
15485
16166
  return DefaultArcRenderContribution;
15486
16167
  }();
15487
- DefaultArcRenderContribution = __decorate$s([injectable()], DefaultArcRenderContribution);
16168
+ DefaultArcRenderContribution = __decorate$x([injectable()], DefaultArcRenderContribution);
15488
16169
  var DefaultArcBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15489
16170
  _inherits(DefaultArcBackgroundRenderContribution, _DefaultBaseBackgroun);
15490
16171
  var _super = _createSuper(DefaultArcBackgroundRenderContribution);
@@ -15496,7 +16177,7 @@
15496
16177
  }
15497
16178
  return _createClass(DefaultArcBackgroundRenderContribution);
15498
16179
  }(DefaultBaseBackgroundRenderContribution);
15499
- DefaultArcBackgroundRenderContribution = __decorate$s([injectable()], DefaultArcBackgroundRenderContribution);
16180
+ DefaultArcBackgroundRenderContribution = __decorate$x([injectable()], DefaultArcBackgroundRenderContribution);
15500
16181
  var DefaultArcTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15501
16182
  _inherits(DefaultArcTextureRenderContribution, _DefaultBaseTextureRe);
15502
16183
  var _super2 = _createSuper(DefaultArcTextureRenderContribution);
@@ -15508,9 +16189,9 @@
15508
16189
  }
15509
16190
  return _createClass(DefaultArcTextureRenderContribution);
15510
16191
  }(DefaultBaseTextureRenderContribution);
15511
- DefaultArcTextureRenderContribution = __decorate$s([injectable()], DefaultArcTextureRenderContribution);
16192
+ DefaultArcTextureRenderContribution = __decorate$x([injectable()], DefaultArcTextureRenderContribution);
15512
16193
 
15513
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16194
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15514
16195
  var d,
15515
16196
  c = arguments.length,
15516
16197
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15572,7 +16253,7 @@
15572
16253
  }]);
15573
16254
  return DefaultCircleRenderContribution;
15574
16255
  }();
15575
- DefaultCircleRenderContribution = __decorate$r([injectable()], DefaultCircleRenderContribution);
16256
+ DefaultCircleRenderContribution = __decorate$w([injectable()], DefaultCircleRenderContribution);
15576
16257
  var DefaultCircleBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15577
16258
  _inherits(DefaultCircleBackgroundRenderContribution, _DefaultBaseBackgroun);
15578
16259
  var _super = _createSuper(DefaultCircleBackgroundRenderContribution);
@@ -15584,7 +16265,7 @@
15584
16265
  }
15585
16266
  return _createClass(DefaultCircleBackgroundRenderContribution);
15586
16267
  }(DefaultBaseBackgroundRenderContribution);
15587
- DefaultCircleBackgroundRenderContribution = __decorate$r([injectable()], DefaultCircleBackgroundRenderContribution);
16268
+ DefaultCircleBackgroundRenderContribution = __decorate$w([injectable()], DefaultCircleBackgroundRenderContribution);
15588
16269
  var DefaultCircleTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15589
16270
  _inherits(DefaultCircleTextureRenderContribution, _DefaultBaseTextureRe);
15590
16271
  var _super2 = _createSuper(DefaultCircleTextureRenderContribution);
@@ -15596,9 +16277,9 @@
15596
16277
  }
15597
16278
  return _createClass(DefaultCircleTextureRenderContribution);
15598
16279
  }(DefaultBaseTextureRenderContribution);
15599
- DefaultCircleTextureRenderContribution = __decorate$r([injectable()], DefaultCircleTextureRenderContribution);
16280
+ DefaultCircleTextureRenderContribution = __decorate$w([injectable()], DefaultCircleTextureRenderContribution);
15600
16281
 
15601
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16282
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15602
16283
  var d,
15603
16284
  c = arguments.length,
15604
16285
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15629,9 +16310,9 @@
15629
16310
  }]);
15630
16311
  return DefaultGroupBackgroundRenderContribution;
15631
16312
  }(DefaultBaseBackgroundRenderContribution);
15632
- DefaultGroupBackgroundRenderContribution = __decorate$q([injectable()], DefaultGroupBackgroundRenderContribution);
16313
+ DefaultGroupBackgroundRenderContribution = __decorate$v([injectable()], DefaultGroupBackgroundRenderContribution);
15633
16314
 
15634
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16315
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15635
16316
  var d,
15636
16317
  c = arguments.length,
15637
16318
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15696,7 +16377,7 @@
15696
16377
  }]);
15697
16378
  return DefaultImageBackgroundRenderContribution;
15698
16379
  }(DefaultBaseBackgroundRenderContribution);
15699
- DefaultImageBackgroundRenderContribution = __decorate$p([injectable()], DefaultImageBackgroundRenderContribution);
16380
+ DefaultImageBackgroundRenderContribution = __decorate$u([injectable()], DefaultImageBackgroundRenderContribution);
15700
16381
  function getActualPosition(graphic) {
15701
16382
  var boundsPadding = parsePadding(graphic.attribute.boundsPadding),
15702
16383
  bounds = graphic.AABBBounds;
@@ -15712,7 +16393,7 @@
15712
16393
  };
15713
16394
  }
15714
16395
 
15715
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16396
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15716
16397
  var d,
15717
16398
  c = arguments.length,
15718
16399
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15784,7 +16465,7 @@
15784
16465
  }]);
15785
16466
  return DefaultRectRenderContribution;
15786
16467
  }();
15787
- DefaultRectRenderContribution = __decorate$o([injectable()], DefaultRectRenderContribution);
16468
+ DefaultRectRenderContribution = __decorate$t([injectable()], DefaultRectRenderContribution);
15788
16469
  var DefaultRectBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15789
16470
  _inherits(DefaultRectBackgroundRenderContribution, _DefaultBaseBackgroun);
15790
16471
  var _super = _createSuper(DefaultRectBackgroundRenderContribution);
@@ -15796,7 +16477,7 @@
15796
16477
  }
15797
16478
  return _createClass(DefaultRectBackgroundRenderContribution);
15798
16479
  }(DefaultBaseBackgroundRenderContribution);
15799
- DefaultRectBackgroundRenderContribution = __decorate$o([injectable()], DefaultRectBackgroundRenderContribution);
16480
+ DefaultRectBackgroundRenderContribution = __decorate$t([injectable()], DefaultRectBackgroundRenderContribution);
15800
16481
  var DefaultRectTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15801
16482
  _inherits(DefaultRectTextureRenderContribution, _DefaultBaseTextureRe);
15802
16483
  var _super2 = _createSuper(DefaultRectTextureRenderContribution);
@@ -15808,7 +16489,7 @@
15808
16489
  }
15809
16490
  return _createClass(DefaultRectTextureRenderContribution);
15810
16491
  }(DefaultBaseTextureRenderContribution);
15811
- DefaultRectTextureRenderContribution = __decorate$o([injectable()], DefaultRectTextureRenderContribution);
16492
+ DefaultRectTextureRenderContribution = __decorate$t([injectable()], DefaultRectTextureRenderContribution);
15812
16493
  var SplitRectBeforeRenderContribution = /*#__PURE__*/function () {
15813
16494
  function SplitRectBeforeRenderContribution() {
15814
16495
  _classCallCheck(this, SplitRectBeforeRenderContribution);
@@ -15826,7 +16507,7 @@
15826
16507
  }]);
15827
16508
  return SplitRectBeforeRenderContribution;
15828
16509
  }();
15829
- SplitRectBeforeRenderContribution = __decorate$o([injectable()], SplitRectBeforeRenderContribution);
16510
+ SplitRectBeforeRenderContribution = __decorate$t([injectable()], SplitRectBeforeRenderContribution);
15830
16511
  var SplitRectAfterRenderContribution = /*#__PURE__*/function () {
15831
16512
  function SplitRectAfterRenderContribution() {
15832
16513
  _classCallCheck(this, SplitRectAfterRenderContribution);
@@ -15855,9 +16536,9 @@
15855
16536
  }]);
15856
16537
  return SplitRectAfterRenderContribution;
15857
16538
  }();
15858
- SplitRectAfterRenderContribution = __decorate$o([injectable()], SplitRectAfterRenderContribution);
16539
+ SplitRectAfterRenderContribution = __decorate$t([injectable()], SplitRectAfterRenderContribution);
15859
16540
 
15860
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16541
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15861
16542
  var d,
15862
16543
  c = arguments.length,
15863
16544
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15917,7 +16598,7 @@
15917
16598
  }]);
15918
16599
  return DefaultSymbolRenderContribution;
15919
16600
  }();
15920
- DefaultSymbolRenderContribution = __decorate$n([injectable()], DefaultSymbolRenderContribution);
16601
+ DefaultSymbolRenderContribution = __decorate$s([injectable()], DefaultSymbolRenderContribution);
15921
16602
  var DefaultSymbolBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15922
16603
  _inherits(DefaultSymbolBackgroundRenderContribution, _DefaultBaseBackgroun);
15923
16604
  var _super = _createSuper(DefaultSymbolBackgroundRenderContribution);
@@ -15941,17 +16622,17 @@
15941
16622
  return _createClass(DefaultSymbolTextureRenderContribution);
15942
16623
  }(DefaultBaseTextureRenderContribution);
15943
16624
 
15944
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16625
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15945
16626
  var d,
15946
16627
  c = arguments.length,
15947
16628
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15948
16629
  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);
15949
16630
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15950
16631
  },
15951
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
16632
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
15952
16633
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15953
16634
  },
15954
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
16635
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
15955
16636
  return function (target, key) {
15956
16637
  decorator(target, key, paramIndex);
15957
16638
  };
@@ -16007,7 +16688,7 @@
16007
16688
  }]);
16008
16689
  return DefaultRenderService;
16009
16690
  }();
16010
- DefaultRenderService = __decorate$m([injectable(), __param$8(0, inject(DrawContribution)), __metadata$8("design:paramtypes", [Object])], DefaultRenderService);
16691
+ DefaultRenderService = __decorate$r([injectable(), __param$9(0, inject(DrawContribution)), __metadata$c("design:paramtypes", [Object])], DefaultRenderService);
16011
16692
 
16012
16693
  var renderModule$1 = new ContainerModule(function (bind) {
16013
16694
  bind(DefaultRenderService).toSelf(), bind(RenderService).toService(DefaultRenderService);
@@ -16016,17 +16697,17 @@
16016
16697
  var PickerService = Symbol["for"]("PickerService");
16017
16698
  var GlobalPickerService = Symbol["for"]("GlobalPickerService");
16018
16699
 
16019
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16700
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16020
16701
  var d,
16021
16702
  c = arguments.length,
16022
16703
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16023
16704
  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);
16024
16705
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16025
16706
  },
16026
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
16707
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
16027
16708
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16028
16709
  },
16029
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
16710
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
16030
16711
  return function (target, key) {
16031
16712
  decorator(target, key, paramIndex);
16032
16713
  };
@@ -16108,9 +16789,9 @@
16108
16789
  }]);
16109
16790
  return DefaultGlobalPickerService;
16110
16791
  }();
16111
- DefaultGlobalPickerService = __decorate$l([injectable(), __param$7(0, inject(VGlobal)), __metadata$7("design:paramtypes", [Object])], DefaultGlobalPickerService);
16792
+ DefaultGlobalPickerService = __decorate$q([injectable(), __param$8(0, inject(VGlobal)), __metadata$b("design:paramtypes", [Object])], DefaultGlobalPickerService);
16112
16793
 
16113
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16794
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16114
16795
  var d,
16115
16796
  c = arguments.length,
16116
16797
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16154,7 +16835,7 @@
16154
16835
  }]);
16155
16836
  return ShadowRootPickItemInterceptorContribution;
16156
16837
  }();
16157
- ShadowRootPickItemInterceptorContribution = __decorate$k([injectable()], ShadowRootPickItemInterceptorContribution);
16838
+ ShadowRootPickItemInterceptorContribution = __decorate$p([injectable()], ShadowRootPickItemInterceptorContribution);
16158
16839
  var InteractivePickItemInterceptorContribution = /*#__PURE__*/function () {
16159
16840
  function InteractivePickItemInterceptorContribution() {
16160
16841
  _classCallCheck(this, InteractivePickItemInterceptorContribution);
@@ -16178,7 +16859,7 @@
16178
16859
  }]);
16179
16860
  return InteractivePickItemInterceptorContribution;
16180
16861
  }();
16181
- InteractivePickItemInterceptorContribution = __decorate$k([injectable()], InteractivePickItemInterceptorContribution);
16862
+ InteractivePickItemInterceptorContribution = __decorate$p([injectable()], InteractivePickItemInterceptorContribution);
16182
16863
  var Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
16183
16864
  function Canvas3DPickItemInterceptor() {
16184
16865
  _classCallCheck(this, Canvas3DPickItemInterceptor);
@@ -16255,7 +16936,7 @@
16255
16936
  }]);
16256
16937
  return Canvas3DPickItemInterceptor;
16257
16938
  }();
16258
- Canvas3DPickItemInterceptor = __decorate$k([injectable()], Canvas3DPickItemInterceptor);
16939
+ Canvas3DPickItemInterceptor = __decorate$p([injectable()], Canvas3DPickItemInterceptor);
16259
16940
 
16260
16941
  var pickModule = new ContainerModule(function (bind) {
16261
16942
  bind(PickerService).toService(GlobalPickerService), bind(DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(DefaultGlobalPickerService), 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);
@@ -16268,17 +16949,17 @@
16268
16949
  var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
16269
16950
  var PluginService = Symbol["for"]("PluginService");
16270
16951
 
16271
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16952
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16272
16953
  var d,
16273
16954
  c = arguments.length,
16274
16955
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16275
16956
  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);
16276
16957
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16277
16958
  },
16278
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
16959
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
16279
16960
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16280
16961
  },
16281
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
16962
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
16282
16963
  return function (target, key) {
16283
16964
  decorator(target, key, paramIndex);
16284
16965
  };
@@ -16326,7 +17007,7 @@
16326
17007
  }]);
16327
17008
  return DefaultPluginService;
16328
17009
  }();
16329
- DefaultPluginService = __decorate$j([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(AutoEnablePlugins)), __metadata$6("design:paramtypes", [Object])], DefaultPluginService);
17010
+ DefaultPluginService = __decorate$o([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(AutoEnablePlugins)), __metadata$a("design:paramtypes", [Object])], DefaultPluginService);
16330
17011
 
16331
17012
  var pluginModule = new ContainerModule(function (bind) {
16332
17013
  bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -16340,17 +17021,17 @@
16340
17021
  bind(DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
16341
17022
  });
16342
17023
 
16343
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17024
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16344
17025
  var d,
16345
17026
  c = arguments.length,
16346
17027
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16347
17028
  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);
16348
17029
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16349
17030
  },
16350
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
17031
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
16351
17032
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16352
17033
  },
16353
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
17034
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
16354
17035
  return function (target, key) {
16355
17036
  decorator(target, key, paramIndex);
16356
17037
  };
@@ -16445,19 +17126,19 @@
16445
17126
  }]);
16446
17127
  return CanvasLayerHandlerContribution;
16447
17128
  }();
16448
- CanvasLayerHandlerContribution = __decorate$i([injectable(), __param$5(0, inject(VGlobal)), __metadata$5("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
17129
+ CanvasLayerHandlerContribution = __decorate$n([injectable(), __param$6(0, inject(VGlobal)), __metadata$9("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
16449
17130
 
16450
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17131
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16451
17132
  var d,
16452
17133
  c = arguments.length,
16453
17134
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16454
17135
  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);
16455
17136
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16456
17137
  },
16457
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
17138
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
16458
17139
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16459
17140
  },
16460
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
17141
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
16461
17142
  return function (target, key) {
16462
17143
  decorator(target, key, paramIndex);
16463
17144
  };
@@ -16517,19 +17198,19 @@
16517
17198
  }]);
16518
17199
  return EmptyLayerHandlerContribution;
16519
17200
  }();
16520
- EmptyLayerHandlerContribution = __decorate$h([injectable(), __param$4(0, inject(VGlobal)), __metadata$4("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
17201
+ EmptyLayerHandlerContribution = __decorate$m([injectable(), __param$5(0, inject(VGlobal)), __metadata$8("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
16521
17202
 
16522
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17203
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16523
17204
  var d,
16524
17205
  c = arguments.length,
16525
17206
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16526
17207
  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);
16527
17208
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16528
17209
  },
16529
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
17210
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
16530
17211
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16531
17212
  },
16532
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
17213
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
16533
17214
  return function (target, key) {
16534
17215
  decorator(target, key, paramIndex);
16535
17216
  };
@@ -16618,7 +17299,7 @@
16618
17299
  }]);
16619
17300
  return OffscreenLayerHandlerContribution;
16620
17301
  }();
16621
- OffscreenLayerHandlerContribution = __decorate$g([injectable(), __param$3(0, inject(VGlobal)), __metadata$3("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
17302
+ OffscreenLayerHandlerContribution = __decorate$l([injectable(), __param$4(0, inject(VGlobal)), __metadata$7("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
16622
17303
 
16623
17304
  var layerHandlerModules = new ContainerModule(function (bind) {
16624
17305
  bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
@@ -16745,7 +17426,7 @@
16745
17426
  return result;
16746
17427
  }
16747
17428
 
16748
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17429
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16749
17430
  var d,
16750
17431
  c = arguments.length,
16751
17432
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16784,7 +17465,7 @@
16784
17465
  }]);
16785
17466
  return ShadowRootDrawItemInterceptorContribution;
16786
17467
  }();
16787
- ShadowRootDrawItemInterceptorContribution = __decorate$f([injectable()], ShadowRootDrawItemInterceptorContribution);
17468
+ ShadowRootDrawItemInterceptorContribution = __decorate$k([injectable()], ShadowRootDrawItemInterceptorContribution);
16788
17469
  var CommonDrawItemInterceptorContribution = /*#__PURE__*/function () {
16789
17470
  function CommonDrawItemInterceptorContribution() {
16790
17471
  _classCallCheck(this, CommonDrawItemInterceptorContribution);
@@ -16812,7 +17493,7 @@
16812
17493
  }]);
16813
17494
  return CommonDrawItemInterceptorContribution;
16814
17495
  }();
16815
- CommonDrawItemInterceptorContribution = __decorate$f([injectable()], CommonDrawItemInterceptorContribution);
17496
+ CommonDrawItemInterceptorContribution = __decorate$k([injectable()], CommonDrawItemInterceptorContribution);
16816
17497
  var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
16817
17498
  function InteractiveDrawItemInterceptorContribution() {
16818
17499
  _classCallCheck(this, InteractiveDrawItemInterceptorContribution);
@@ -16871,7 +17552,7 @@
16871
17552
  }]);
16872
17553
  return InteractiveDrawItemInterceptorContribution;
16873
17554
  }();
16874
- InteractiveDrawItemInterceptorContribution = __decorate$f([injectable()], InteractiveDrawItemInterceptorContribution);
17555
+ InteractiveDrawItemInterceptorContribution = __decorate$k([injectable()], InteractiveDrawItemInterceptorContribution);
16875
17556
  var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
16876
17557
  function Canvas3DDrawItemInterceptor() {
16877
17558
  _classCallCheck(this, Canvas3DDrawItemInterceptor);
@@ -16960,19 +17641,19 @@
16960
17641
  }]);
16961
17642
  return Canvas3DDrawItemInterceptor;
16962
17643
  }();
16963
- Canvas3DDrawItemInterceptor = __decorate$f([injectable()], Canvas3DDrawItemInterceptor);
17644
+ Canvas3DDrawItemInterceptor = __decorate$k([injectable()], Canvas3DDrawItemInterceptor);
16964
17645
 
16965
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17646
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16966
17647
  var d,
16967
17648
  c = arguments.length,
16968
17649
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16969
17650
  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);
16970
17651
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16971
17652
  },
16972
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
17653
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
16973
17654
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16974
17655
  },
16975
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
17656
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
16976
17657
  return function (target, key) {
16977
17658
  decorator(target, key, paramIndex);
16978
17659
  };
@@ -17174,9 +17855,9 @@
17174
17855
  }]);
17175
17856
  return DefaultDrawContribution;
17176
17857
  }();
17177
- __decorate$e([inject(VGlobal), __metadata$2("design:type", Object)], DefaultDrawContribution.prototype, "global", void 0), __decorate$e([postConstruct(), __metadata$2("design:type", Function), __metadata$2("design:paramtypes", []), __metadata$2("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$e([injectable(), __param$2(0, multiInject(GraphicRender)), __param$2(1, inject(RenderSelector)), __param$2(2, inject(LayerService)), __param$2(3, inject(ContributionProvider)), __param$2(3, named(DrawItemInterceptor)), __metadata$2("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
17858
+ __decorate$j([inject(VGlobal), __metadata$6("design:type", Object)], DefaultDrawContribution.prototype, "global", void 0), __decorate$j([postConstruct(), __metadata$6("design:type", Function), __metadata$6("design:paramtypes", []), __metadata$6("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$j([injectable(), __param$3(0, multiInject(GraphicRender)), __param$3(1, inject(RenderSelector)), __param$3(2, inject(LayerService)), __param$3(3, inject(ContributionProvider)), __param$3(3, named(DrawItemInterceptor)), __metadata$6("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
17178
17859
 
17179
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17860
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17180
17861
  var d,
17181
17862
  c = arguments.length,
17182
17863
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17195,19 +17876,19 @@
17195
17876
  }]);
17196
17877
  return DefaultRenderSelector;
17197
17878
  }();
17198
- DefaultRenderSelector = __decorate$d([injectable()], DefaultRenderSelector);
17879
+ DefaultRenderSelector = __decorate$i([injectable()], DefaultRenderSelector);
17199
17880
 
17200
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17881
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17201
17882
  var d,
17202
17883
  c = arguments.length,
17203
17884
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17204
17885
  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);
17205
17886
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17206
17887
  },
17207
- __metadata$1 = undefined && undefined.__metadata || function (k, v) {
17888
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
17208
17889
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17209
17890
  },
17210
- __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
17891
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
17211
17892
  return function (target, key) {
17212
17893
  decorator(target, key, paramIndex);
17213
17894
  };
@@ -17309,9 +17990,9 @@
17309
17990
  }]);
17310
17991
  return DefaultCanvasGroupRender;
17311
17992
  }();
17312
- DefaultCanvasGroupRender = __decorate$c([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(GroupRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17993
+ DefaultCanvasGroupRender = __decorate$h([injectable(), __param$2(0, inject(ContributionProvider)), __param$2(0, named(GroupRenderContribution)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17313
17994
 
17314
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17995
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17315
17996
  var d,
17316
17997
  c = arguments.length,
17317
17998
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17375,9 +18056,9 @@
17375
18056
  }]);
17376
18057
  return DefaultIncrementalCanvasLineRender;
17377
18058
  }(DefaultCanvasLineRender);
17378
- DefaultIncrementalCanvasLineRender = __decorate$b([injectable()], DefaultIncrementalCanvasLineRender);
18059
+ DefaultIncrementalCanvasLineRender = __decorate$g([injectable()], DefaultIncrementalCanvasLineRender);
17379
18060
 
17380
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18061
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17381
18062
  var d,
17382
18063
  c = arguments.length,
17383
18064
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17432,20 +18113,20 @@
17432
18113
  }]);
17433
18114
  return DefaultIncrementalCanvasAreaRender;
17434
18115
  }(DefaultCanvasAreaRender);
17435
- DefaultIncrementalCanvasAreaRender = __decorate$a([injectable()], DefaultIncrementalCanvasAreaRender);
18116
+ DefaultIncrementalCanvasAreaRender = __decorate$f([injectable()], DefaultIncrementalCanvasAreaRender);
17436
18117
 
17437
18118
  var STATUS,
17438
- __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18119
+ __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17439
18120
  var d,
17440
18121
  c = arguments.length,
17441
18122
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17442
18123
  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);
17443
18124
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17444
18125
  },
17445
- __metadata = undefined && undefined.__metadata || function (k, v) {
18126
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
17446
18127
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17447
18128
  },
17448
- __param = undefined && undefined.__param || function (paramIndex, decorator) {
18129
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
17449
18130
  return function (target, key) {
17450
18131
  decorator(target, key, paramIndex);
17451
18132
  };
@@ -17801,9 +18482,9 @@
17801
18482
  }]);
17802
18483
  return DefaultIncrementalDrawContribution;
17803
18484
  }(DefaultDrawContribution);
17804
- __decorate$9([inject(VGlobal), __metadata("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$9([injectable(), __param(0, multiInject(GraphicRender)), __param(1, inject(RenderSelector)), __param(2, inject(DefaultIncrementalCanvasLineRender)), __param(3, inject(DefaultIncrementalCanvasAreaRender)), __param(4, inject(LayerService)), __param(5, inject(ContributionProvider)), __param(5, named(DrawItemInterceptor)), __metadata("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
18485
+ __decorate$e([inject(VGlobal), __metadata$4("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$e([injectable(), __param$1(0, multiInject(GraphicRender)), __param$1(1, inject(RenderSelector)), __param$1(2, inject(DefaultIncrementalCanvasLineRender)), __param$1(3, inject(DefaultIncrementalCanvasAreaRender)), __param$1(4, inject(LayerService)), __param$1(5, inject(ContributionProvider)), __param$1(5, named(DrawItemInterceptor)), __metadata$4("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
17805
18486
 
17806
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18487
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17807
18488
  var d,
17808
18489
  c = arguments.length,
17809
18490
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17945,9 +18626,9 @@
17945
18626
  }]);
17946
18627
  return DefaultCanvasRect3dRender;
17947
18628
  }(BaseRender);
17948
- DefaultCanvasRect3dRender = __decorate$8([injectable()], DefaultCanvasRect3dRender);
18629
+ DefaultCanvasRect3dRender = __decorate$d([injectable()], DefaultCanvasRect3dRender);
17949
18630
 
17950
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18631
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17951
18632
  var d,
17952
18633
  c = arguments.length,
17953
18634
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18029,9 +18710,9 @@
18029
18710
  }]);
18030
18711
  return DefaultCanvasRichTextRender;
18031
18712
  }(BaseRender);
18032
- DefaultCanvasRichTextRender = __decorate$7([injectable()], DefaultCanvasRichTextRender);
18713
+ DefaultCanvasRichTextRender = __decorate$c([injectable()], DefaultCanvasRichTextRender);
18033
18714
 
18034
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18715
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18035
18716
  var d,
18036
18717
  c = arguments.length,
18037
18718
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18068,9 +18749,9 @@
18068
18749
  }]);
18069
18750
  return DefaultCanvasGlyphRender;
18070
18751
  }();
18071
- DefaultCanvasGlyphRender = __decorate$6([injectable()], DefaultCanvasGlyphRender);
18752
+ DefaultCanvasGlyphRender = __decorate$b([injectable()], DefaultCanvasGlyphRender);
18072
18753
 
18073
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18754
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18074
18755
  var d,
18075
18756
  c = arguments.length,
18076
18757
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18196,9 +18877,9 @@
18196
18877
  }]);
18197
18878
  return DefaultCanvasArc3DRender;
18198
18879
  }(BaseRender);
18199
- DefaultCanvasArc3DRender = __decorate$5([injectable()], DefaultCanvasArc3DRender);
18880
+ DefaultCanvasArc3DRender = __decorate$a([injectable()], DefaultCanvasArc3DRender);
18200
18881
 
18201
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18882
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18202
18883
  var d,
18203
18884
  c = arguments.length,
18204
18885
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18323,9 +19004,9 @@
18323
19004
  }]);
18324
19005
  return DefaultCanvasPyramid3dRender;
18325
19006
  }(BaseRender);
18326
- DefaultCanvasPyramid3dRender = __decorate$4([injectable()], DefaultCanvasPyramid3dRender);
19007
+ DefaultCanvasPyramid3dRender = __decorate$9([injectable()], DefaultCanvasPyramid3dRender);
18327
19008
 
18328
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19009
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18329
19010
  var d,
18330
19011
  c = arguments.length,
18331
19012
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18343,7 +19024,7 @@
18343
19024
  }
18344
19025
  return _createClass(DefaultPolygonBackgroundRenderContribution);
18345
19026
  }(DefaultBaseBackgroundRenderContribution);
18346
- DefaultPolygonBackgroundRenderContribution = __decorate$3([injectable()], DefaultPolygonBackgroundRenderContribution);
19027
+ DefaultPolygonBackgroundRenderContribution = __decorate$8([injectable()], DefaultPolygonBackgroundRenderContribution);
18347
19028
  var DefaultPolygonTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18348
19029
  _inherits(DefaultPolygonTextureRenderContribution, _DefaultBaseTextureRe);
18349
19030
  var _super2 = _createSuper(DefaultPolygonTextureRenderContribution);
@@ -18355,9 +19036,9 @@
18355
19036
  }
18356
19037
  return _createClass(DefaultPolygonTextureRenderContribution);
18357
19038
  }(DefaultBaseTextureRenderContribution);
18358
- DefaultPolygonTextureRenderContribution = __decorate$3([injectable()], DefaultPolygonTextureRenderContribution);
19039
+ DefaultPolygonTextureRenderContribution = __decorate$8([injectable()], DefaultPolygonTextureRenderContribution);
18359
19040
 
18360
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19041
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18361
19042
  var d,
18362
19043
  c = arguments.length,
18363
19044
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18375,7 +19056,7 @@
18375
19056
  }
18376
19057
  return _createClass(DefaultPathBackgroundRenderContribution);
18377
19058
  }(DefaultBaseBackgroundRenderContribution);
18378
- DefaultPathBackgroundRenderContribution = __decorate$2([injectable()], DefaultPathBackgroundRenderContribution);
19059
+ DefaultPathBackgroundRenderContribution = __decorate$7([injectable()], DefaultPathBackgroundRenderContribution);
18379
19060
  var DefaultPathTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18380
19061
  _inherits(DefaultPathTextureRenderContribution, _DefaultBaseTextureRe);
18381
19062
  var _super2 = _createSuper(DefaultPathTextureRenderContribution);
@@ -18387,9 +19068,9 @@
18387
19068
  }
18388
19069
  return _createClass(DefaultPathTextureRenderContribution);
18389
19070
  }(DefaultBaseTextureRenderContribution);
18390
- DefaultPathTextureRenderContribution = __decorate$2([injectable()], DefaultPathTextureRenderContribution);
19071
+ DefaultPathTextureRenderContribution = __decorate$7([injectable()], DefaultPathTextureRenderContribution);
18391
19072
 
18392
- var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19073
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18393
19074
  var d,
18394
19075
  c = arguments.length,
18395
19076
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18407,7 +19088,7 @@
18407
19088
  }
18408
19089
  return _createClass(DefaultAreaBackgroundRenderContribution);
18409
19090
  }(DefaultBaseBackgroundRenderContribution);
18410
- DefaultAreaBackgroundRenderContribution = __decorate$1([injectable()], DefaultAreaBackgroundRenderContribution);
19091
+ DefaultAreaBackgroundRenderContribution = __decorate$6([injectable()], DefaultAreaBackgroundRenderContribution);
18411
19092
  var DefaultAreaTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18412
19093
  _inherits(DefaultAreaTextureRenderContribution, _DefaultBaseTextureRe);
18413
19094
  var _super2 = _createSuper(DefaultAreaTextureRenderContribution);
@@ -18465,7 +19146,7 @@
18465
19146
  }]);
18466
19147
  return DefaultAreaTextureRenderContribution;
18467
19148
  }(DefaultBaseTextureRenderContribution);
18468
- DefaultAreaTextureRenderContribution = __decorate$1([injectable()], DefaultAreaTextureRenderContribution);
19149
+ DefaultAreaTextureRenderContribution = __decorate$6([injectable()], DefaultAreaTextureRenderContribution);
18469
19150
 
18470
19151
  var renderModule = new ContainerModule(function (bind) {
18471
19152
  bind(DefaultDrawContribution).toSelf(), bind(DrawContribution).toService(DefaultDrawContribution), bind(DefaultIncrementalDrawContribution).toSelf(), bind(IncrementalDrawContribution).toService(DefaultIncrementalDrawContribution), bind(DefaultRenderSelector).toSelf(), bind(RenderSelector).toService(DefaultRenderSelector), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender), bind(GraphicRender).to(DefaultCanvasCircleRender), bind(DefaultCircleRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleTextureRenderContribution).toSelf().inSingletonScope(), bind(CircleRenderContribution).toService(DefaultCircleRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleBackgroundRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleTextureRenderContribution), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender), bind(GraphicRender).to(DefaultCanvasRectRender), bind(DefaultCanvasRect3dRender).toSelf().inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender), bind(DefaultRectRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectTextureRenderContribution).toSelf().inSingletonScope(), bind(SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(DefaultRectRenderContribution), bind(RectRenderContribution).toService(DefaultRectBackgroundRenderContribution), bind(RectRenderContribution).toService(DefaultRectTextureRenderContribution), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution), bindContributionProvider(bind, RectRenderContribution), bind(DefaultCanvasTextRender).toSelf().inSingletonScope(), bind(TextRender).to(DefaultCanvasTextRender), bind(GraphicRender).to(DefaultCanvasTextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender), bind(GraphicRender).to(DefaultCanvasPathRender), bind(DefaultPathBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPathTextureRenderContribution).toSelf().inSingletonScope(), bind(PathRenderContribution).toService(DefaultPathBackgroundRenderContribution), bind(PathRenderContribution).toService(DefaultPathTextureRenderContribution), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender), bind(GraphicRender).to(DefaultCanvasSymbolRender), bind(DefaultSymbolRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolTextureRenderContribution).toSelf().inSingletonScope(), bind(SymbolRenderContribution).toService(DefaultSymbolRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolBackgroundRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolTextureRenderContribution), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender), bind(GraphicRender).to(DefaultCanvasArcRender), bind(DefaultCanvasArc3DRender).toSelf().inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender), bind(DefaultArcRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcTextureRenderContribution).toSelf().inSingletonScope(), bind(ArcRenderContribution).toService(DefaultArcRenderContribution), bind(ArcRenderContribution).toService(DefaultArcBackgroundRenderContribution), bind(ArcRenderContribution).toService(DefaultArcTextureRenderContribution), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender), bind(GraphicRender).to(DefaultCanvasLineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender), bind(GraphicRender).to(DefaultCanvasAreaRender), bind(DefaultAreaBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultAreaTextureRenderContribution).toSelf().inSingletonScope(), bind(AreaRenderContribution).toService(DefaultAreaBackgroundRenderContribution), bind(AreaRenderContribution).toService(DefaultAreaTextureRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultCanvasGroupRender).toSelf().inSingletonScope(), bind(GroupRender).to(DefaultCanvasGroupRender), bind(GraphicRender).to(DefaultCanvasGroupRender), bind(DefaultGroupBackgroundRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DefaultGroupBackgroundRenderContribution), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultCanvasPolygonRender).toSelf().inSingletonScope(), bind(PolygonRender).to(DefaultCanvasPolygonRender), bind(GraphicRender).to(DefaultCanvasPolygonRender), bind(DefaultPolygonBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPolygonTextureRenderContribution).toSelf().inSingletonScope(), bind(PolygonRenderContribution).toService(DefaultPolygonBackgroundRenderContribution), bind(PolygonRenderContribution).toService(DefaultPolygonTextureRenderContribution), bindContributionProvider(bind, PolygonRenderContribution), bind(DefaultCanvasGlyphRender).toSelf().inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender), bind(DefaultCanvasImageRender).toSelf().inSingletonScope(), bind(ImageRender).toService(DefaultCanvasImageRender), bind(GraphicRender).toService(ImageRender), bind(DefaultImageBackgroundRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(DefaultImageBackgroundRenderContribution), bindContributionProvider(bind, ImageRenderContribution), bind(DefaultCanvasRichTextRender).toSelf().inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender), bind(DefaultCanvasPyramid3dRender).toSelf().inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bind(InteractiveDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(InteractiveDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
@@ -18488,148 +19169,982 @@
18488
19169
  var layerService = container.get(LayerService);
18489
19170
  application.layerService = layerService;
18490
19171
 
18491
- const GROUP_ATTRIBUTES = [
18492
- 'x',
18493
- 'y',
18494
- 'dx',
18495
- 'dy',
18496
- 'scaleX',
18497
- 'scaleY',
18498
- 'angle',
18499
- 'anchor',
18500
- 'postMatrix',
18501
- 'visible',
18502
- 'clip',
18503
- 'pickable',
18504
- 'childrenPickable',
18505
- 'zIndex',
18506
- 'cursor'
18507
- ];
18508
- class AbstractComponent extends Group {
18509
- constructor(attributes, mode = '2d') {
18510
- super(attributes);
18511
- this.mode = mode;
18512
- this.setTheme({
18513
- common: {
18514
- strokeBoundsBuffer: 0
18515
- }
18516
- });
18517
- this.attribute = attributes;
18518
- this.onSetStage(() => {
18519
- this.render();
18520
- this.bindEvents();
18521
- });
19172
+ new vutils.AABBBounds();
19173
+
19174
+ new vutils.AABBBounds();
19175
+
19176
+ var defaultTicker = new DefaultTicker();
19177
+ defaultTicker.addTimeline(defaultTimeline);
19178
+ defaultTicker.setFPS(60);
19179
+
19180
+ var params;
19181
+ !function (params) {
19182
+ params[params.W = 1] = "W", params[params.H = 2] = "H", params[params.WH = 3] = "WH";
19183
+ }(params || (params = {}));
19184
+
19185
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19186
+ var d,
19187
+ c = arguments.length,
19188
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19189
+ 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);
19190
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19191
+ },
19192
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
19193
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19194
+ };
19195
+ var initMatrix = new vutils.Matrix(1, 0, 0, 1, 0, 0),
19196
+ globalPoint = {
19197
+ x: 0,
19198
+ y: 0
19199
+ };
19200
+ var EmptyContext2d = /*#__PURE__*/function () {
19201
+ function EmptyContext2d(canvas, dpr) {
19202
+ _classCallCheck(this, EmptyContext2d);
19203
+ this.matrix = new vutils.Matrix(1, 0, 0, 1, 0, 0), this.stack = [], this.dpr = dpr, this.applyedMatrix = new vutils.Matrix(1, 0, 0, 1, 0, 0), this.path = new CustomPath2D();
19204
+ }
19205
+ _createClass(EmptyContext2d, [{
19206
+ key: "nativeContext",
19207
+ get: function get() {
19208
+ return this.path;
18522
19209
  }
18523
- setAttribute(key, value, forceUpdateTag) {
18524
- if (vutils.isPlainObject(this.attribute[key]) && !vutils.isFunction(this.attribute[key]) && !vutils.isFunction(value)) {
18525
- vutils.merge(this.attribute[key], value);
18526
- }
18527
- else {
18528
- this.attribute[key] = value;
18529
- }
18530
- if (!GROUP_ATTRIBUTES.includes(key)) {
18531
- this.render();
18532
- }
18533
- this.valid = this.isValid();
18534
- if (!this.updateShapeAndBoundsTagSetted() && (forceUpdateTag || this.needUpdateTag(key))) {
18535
- this.addUpdateShapeAndBoundsTag();
18536
- }
18537
- else {
18538
- this.addUpdateBoundTag();
18539
- }
18540
- this.addUpdatePositionTag();
18541
- this.onAttributeUpdate();
19210
+ }, {
19211
+ key: "getCanvas",
19212
+ value: function getCanvas() {
19213
+ throw new Error("不支持getCanvas");
18542
19214
  }
18543
- setAttributes(params, forceUpdateTag) {
18544
- const keys = Object.keys(params);
18545
- this._mergeAttributes(params, keys);
18546
- if (!keys.every(key => GROUP_ATTRIBUTES.includes(key))) {
18547
- this.render();
18548
- }
18549
- this.valid = this.isValid();
18550
- if (!this.updateShapeAndBoundsTagSetted() && (forceUpdateTag || this.needUpdateTags(keys))) {
18551
- this.addUpdateShapeAndBoundsTag();
18552
- }
18553
- else {
18554
- this.addUpdateBoundTag();
18555
- }
18556
- this.addUpdatePositionTag();
18557
- this.onAttributeUpdate();
19215
+ }, {
19216
+ key: "getContext",
19217
+ value: function getContext() {
19218
+ throw new Error("不支持getContext");
18558
19219
  }
18559
- _mergeAttributes(params, keys) {
18560
- if (vutils.isNil(keys)) {
18561
- keys = Object.keys(params);
18562
- }
18563
- for (let i = 0; i < keys.length; i++) {
18564
- const key = keys[i];
18565
- if (vutils.isPlainObject(this.attribute[key]) && !vutils.isFunction(this.attribute[key]) && !vutils.isFunction(params[key])) {
18566
- vutils.merge(this.attribute[key], params[key]);
18567
- }
18568
- else {
18569
- this.attribute[key] = params[key];
18570
- }
18571
- }
19220
+ }, {
19221
+ key: "setTransformForCurrent",
19222
+ value: function setTransformForCurrent() {
19223
+ var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
19224
+ !force && this.applyedMatrix.equalToMatrix(this.matrix) || (this.applyedMatrix = this.cloneMatrix(this.matrix));
18572
19225
  }
18573
- bindEvents() {
19226
+ }, {
19227
+ key: "currentMatrix",
19228
+ get: function get() {
19229
+ return this.matrix;
18574
19230
  }
18575
- _getNodeId(id) {
18576
- return `${this.id}-${this.name}-${id}`;
19231
+ }, {
19232
+ key: "cloneMatrix",
19233
+ value: function cloneMatrix(m) {
19234
+ return matrixAllocate.allocateByObj(m);
18577
19235
  }
18578
- }
18579
-
18580
- class ScrollBar extends AbstractComponent {
18581
- constructor(attributes) {
18582
- super(vutils.merge({}, ScrollBar.defaultAttributes, attributes));
18583
- this.name = 'scrollbar';
18584
- this._onRailPointerDown = (e) => {
18585
- var _a, _b;
18586
- const { viewX, viewY } = e;
18587
- const { direction, width, height, range } = this.attribute;
18588
- const sliderSize = this._sliderSize;
18589
- const [min, max] = this._getScrollRange();
18590
- let currentScrollValue;
18591
- if (direction === 'vertical') {
18592
- const relativeY = viewY - this._viewPosition.y;
18593
- const currentYPos = vutils.clamp(relativeY - sliderSize / 2, min, max);
18594
- currentScrollValue = relativeY / height;
18595
- this._slider.setAttribute('y', currentYPos, true);
18596
- }
18597
- else {
18598
- const relativeX = viewX - this._viewPosition.x;
18599
- const currentXPos = vutils.clamp(relativeX - sliderSize / 2, min, max);
18600
- currentScrollValue = relativeX / width;
18601
- this._slider.setAttribute('x', currentXPos, true);
18602
- }
18603
- this.setScrollRange([currentScrollValue - (range[1] - range[0]) / 2, currentScrollValue + (range[1] - range[0]) / 2], false);
18604
- if (!((_a = this.stage) === null || _a === void 0 ? void 0 : _a.autoRender)) {
18605
- (_b = this.stage) === null || _b === void 0 ? void 0 : _b.renderNextFrame();
18606
- }
18607
- };
18608
- this._onSliderPointerDown = (e) => {
18609
- e.stopPropagation();
18610
- const { direction } = this.attribute;
18611
- this._prePos = direction === 'horizontal' ? e.clientX : e.clientY;
18612
- if (vglobal.env === 'browser') {
18613
- vglobal.addEventListener('pointermove', this._onSliderPointerMove, { capture: true });
18614
- vglobal.addEventListener('pointerup', this._onSliderPointerUp);
18615
- }
18616
- else {
18617
- this._slider.addEventListener('pointermove', this._onSliderPointerMove, { capture: true });
18618
- this._slider.addEventListener('pointerup', this._onSliderPointerUp);
18619
- this._slider.addEventListener('pointerupoutside', this._onSliderPointerUp);
18620
- }
18621
- };
18622
- this._onSliderPointerMove = (e) => {
18623
- e.stopPropagation();
18624
- const { direction } = this.attribute;
18625
- let currentScrollValue;
18626
- let currentPos;
18627
- let delta = 0;
18628
- const preScrollRange = this.getScrollRange();
18629
- const { width, height } = this._getSliderRenderBounds();
18630
- if (direction === 'vertical') {
18631
- currentPos = e.clientY;
18632
- delta = currentPos - this._prePos;
19236
+ }, {
19237
+ key: "clear",
19238
+ value: function clear() {
19239
+ this.save(), this.resetTransform(), this.restore();
19240
+ }
19241
+ }, {
19242
+ key: "restore",
19243
+ value: function restore() {
19244
+ this.stack.length > 0 && (matrixAllocate.free(this.matrix), this.matrix = this.stack.pop(), this.setTransformForCurrent());
19245
+ }
19246
+ }, {
19247
+ key: "highPerformanceRestore",
19248
+ value: function highPerformanceRestore() {
19249
+ this.stack.length > 0 && (matrixAllocate.free(this.matrix), this.matrix = this.stack.pop());
19250
+ }
19251
+ }, {
19252
+ key: "rotate",
19253
+ value: function rotate(rad) {
19254
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19255
+ this.matrix.rotate(rad), setTransform && this.setTransformForCurrent();
19256
+ }
19257
+ }, {
19258
+ key: "save",
19259
+ value: function save() {
19260
+ var matrix = this.cloneMatrix(this.matrix);
19261
+ this.stack.push(matrix);
19262
+ }
19263
+ }, {
19264
+ key: "highPerformanceSave",
19265
+ value: function highPerformanceSave() {
19266
+ var matrix = this.cloneMatrix(this.matrix);
19267
+ this.stack.push(matrix);
19268
+ }
19269
+ }, {
19270
+ key: "scale",
19271
+ value: function scale(sx, sy) {
19272
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19273
+ this.matrix.scale(sx, sy), setTransform && this.setTransformForCurrent();
19274
+ }
19275
+ }, {
19276
+ key: "setScale",
19277
+ value: function setScale(sx, sy) {
19278
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19279
+ this.matrix.setScale(sx, sy), setTransform && this.setTransformForCurrent();
19280
+ }
19281
+ }, {
19282
+ key: "scalePoint",
19283
+ value: function scalePoint(sx, sy, px, py) {
19284
+ var setTransform = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !0;
19285
+ this.translate(px, py, !1), this.scale(sx, sy, !1), this.translate(-px, -py, !1), setTransform && this.setTransformForCurrent();
19286
+ }
19287
+ }, {
19288
+ key: "setTransform",
19289
+ value: function setTransform(a, b, c, d, e, f) {
19290
+ var _setTransform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
19291
+ var dpr = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : this.dpr;
19292
+ this.matrix.setValue(dpr * a, dpr * b, dpr * c, dpr * d, dpr * e, dpr * f), _setTransform && this.setTransformForCurrent();
19293
+ }
19294
+ }, {
19295
+ key: "setTransformFromMatrix",
19296
+ value: function setTransformFromMatrix(matrix) {
19297
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19298
+ var dpr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dpr;
19299
+ this.matrix.setValue(matrix.a * dpr, matrix.b * dpr, matrix.c * dpr, matrix.d * dpr, matrix.e * dpr, matrix.f * dpr), setTransform && this.setTransformForCurrent();
19300
+ }
19301
+ }, {
19302
+ key: "resetTransform",
19303
+ value: function resetTransform() {
19304
+ var setTransform = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19305
+ var dpr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.dpr;
19306
+ this.setTransform(dpr, 0, 0, dpr, 0, 0), setTransform && this.setTransformForCurrent();
19307
+ }
19308
+ }, {
19309
+ key: "transform",
19310
+ value: function transform(a, b, c, d, e, f) {
19311
+ var setTransform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
19312
+ this.matrix.multiply(a, b, c, d, e, f), setTransform && this.setTransformForCurrent();
19313
+ }
19314
+ }, {
19315
+ key: "transformFromMatrix",
19316
+ value: function transformFromMatrix(matrix, setTransform) {
19317
+ this.matrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), setTransform && this.setTransformForCurrent();
19318
+ }
19319
+ }, {
19320
+ key: "translate",
19321
+ value: function translate(x, y) {
19322
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19323
+ this.matrix.translate(x, y), setTransform && this.setTransformForCurrent();
19324
+ }
19325
+ }, {
19326
+ key: "rotateDegrees",
19327
+ value: function rotateDegrees(deg) {
19328
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19329
+ var rad = deg * Math.PI / 180;
19330
+ this.rotate(rad, setTransform);
19331
+ }
19332
+ }, {
19333
+ key: "rotateAbout",
19334
+ value: function rotateAbout(rad, x, y) {
19335
+ var setTransform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
19336
+ this.translate(x, y, !1), this.rotate(rad, !1), this.translate(-x, -y, !1), setTransform && this.setTransformForCurrent();
19337
+ }
19338
+ }, {
19339
+ key: "rotateDegreesAbout",
19340
+ value: function rotateDegreesAbout(deg, x, y) {
19341
+ var setTransform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
19342
+ this.translate(x, y, !1), this.rotateDegrees(deg, !1), this.translate(-x, -y, !1), setTransform && this.setTransformForCurrent();
19343
+ }
19344
+ }, {
19345
+ key: "beginPath",
19346
+ value: function beginPath() {
19347
+ this.path.clear();
19348
+ }
19349
+ }, {
19350
+ key: "clip",
19351
+ value: function clip(path, fillRule) {}
19352
+ }, {
19353
+ key: "arc",
19354
+ value: function arc(x, y, radius, startAngle, endAngle, anticlockwise) {
19355
+ this.path.arc(x, y, radius, startAngle, endAngle, anticlockwise);
19356
+ }
19357
+ }, {
19358
+ key: "arcTo",
19359
+ value: function arcTo(x1, y1, x2, y2, radiusX) {
19360
+ this.path.arcTo(x1, y1, x2, y2, radiusX);
19361
+ }
19362
+ }, {
19363
+ key: "bezierCurveTo",
19364
+ value: function bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
19365
+ this.path.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
19366
+ }
19367
+ }, {
19368
+ key: "closePath",
19369
+ value: function closePath() {
19370
+ this.path.closePath();
19371
+ }
19372
+ }, {
19373
+ key: "ellipse",
19374
+ value: function ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) {}
19375
+ }, {
19376
+ key: "lineTo",
19377
+ value: function lineTo(x, y) {
19378
+ this.path.lineTo(x, y);
19379
+ }
19380
+ }, {
19381
+ key: "moveTo",
19382
+ value: function moveTo(x, y) {
19383
+ this.path.moveTo(x, y);
19384
+ }
19385
+ }, {
19386
+ key: "quadraticCurveTo",
19387
+ value: function quadraticCurveTo(cpx, cpy, x, y) {
19388
+ this.path.quadraticCurveTo(cpx, cpy, x, y);
19389
+ }
19390
+ }, {
19391
+ key: "rect",
19392
+ value: function rect(x, y, w, h) {
19393
+ this.path.rect(x, y, w, h);
19394
+ }
19395
+ }, {
19396
+ key: "createImageData",
19397
+ value: function createImageData(imageDataOrSw, sh) {
19398
+ return null;
19399
+ }
19400
+ }, {
19401
+ key: "createLinearGradient",
19402
+ value: function createLinearGradient(x0, y0, x1, y1) {
19403
+ throw new Error("不支持createLinearGradient");
19404
+ }
19405
+ }, {
19406
+ key: "createPattern",
19407
+ value: function createPattern(image, repetition) {
19408
+ throw new Error("不支持createPattern");
19409
+ }
19410
+ }, {
19411
+ key: "createRadialGradient",
19412
+ value: function createRadialGradient(x0, y0, r0, x1, y1, r1) {
19413
+ throw new Error("不支持createRadialGradient");
19414
+ }
19415
+ }, {
19416
+ key: "createConicGradient",
19417
+ value: function createConicGradient(x, y, startAngle, endAngle) {
19418
+ return null;
19419
+ }
19420
+ }, {
19421
+ key: "fill",
19422
+ value: function fill(path, fillRule) {}
19423
+ }, {
19424
+ key: "fillRect",
19425
+ value: function fillRect(x, y, width, height) {
19426
+ this.path.rect(x, y, width, height);
19427
+ }
19428
+ }, {
19429
+ key: "clearRect",
19430
+ value: function clearRect(x, y, w, h) {}
19431
+ }, {
19432
+ key: "fillText",
19433
+ value: function fillText(text, x, y) {}
19434
+ }, {
19435
+ key: "getImageData",
19436
+ value: function getImageData(sx, sy, sw, sh) {
19437
+ return null;
19438
+ }
19439
+ }, {
19440
+ key: "getLineDash",
19441
+ value: function getLineDash() {
19442
+ return [];
19443
+ }
19444
+ }, {
19445
+ key: "isPointInPath",
19446
+ value: function isPointInPath(x, y) {
19447
+ return this.matrix.transformPoint({
19448
+ x: x,
19449
+ y: y
19450
+ }, globalPoint), contain(this.path.commandList, globalPoint.x, globalPoint.y);
19451
+ }
19452
+ }, {
19453
+ key: "isPointInStroke",
19454
+ value: function isPointInStroke(x, y) {
19455
+ if (!this.lineWidth) return !1;
19456
+ this.matrix.transformPoint({
19457
+ x: x,
19458
+ y: y
19459
+ }, globalPoint);
19460
+ var lineWidth = getScaledStroke(this, this.lineWidth, this.dpr);
19461
+ return containStroke(this.path.commandList, lineWidth, globalPoint.x, globalPoint.y);
19462
+ }
19463
+ }, {
19464
+ key: "measureText",
19465
+ value: function measureText(text) {
19466
+ throw new Error("不支持measureText");
19467
+ }
19468
+ }, {
19469
+ key: "putImageData",
19470
+ value: function putImageData(imagedata, dx, dy) {
19471
+ throw new Error("不支持measureText");
19472
+ }
19473
+ }, {
19474
+ key: "setLineDash",
19475
+ value: function setLineDash(segments) {}
19476
+ }, {
19477
+ key: "stroke",
19478
+ value: function stroke(path) {}
19479
+ }, {
19480
+ key: "strokeRect",
19481
+ value: function strokeRect(x, y, width, height) {
19482
+ this.path.rect(x, y, width, height);
19483
+ }
19484
+ }, {
19485
+ key: "strokeText",
19486
+ value: function strokeText(text, x, y) {}
19487
+ }, {
19488
+ key: "drawImage",
19489
+ value: function drawImage() {}
19490
+ }, {
19491
+ key: "setCommonStyle",
19492
+ value: function setCommonStyle(params, attribute, offsetX, offsetY, defaultParams) {}
19493
+ }, {
19494
+ key: "_setCommonStyle",
19495
+ value: function _setCommonStyle(params, offsetX, offsetY, defaultParams) {}
19496
+ }, {
19497
+ key: "setStrokeStyle",
19498
+ value: function setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams) {}
19499
+ }, {
19500
+ key: "_setStrokeStyle",
19501
+ value: function _setStrokeStyle(params, offsetX, offsetY, defaultParams) {}
19502
+ }, {
19503
+ key: "setTextStyleWithoutAlignBaseline",
19504
+ value: function setTextStyleWithoutAlignBaseline(params, defaultParams) {}
19505
+ }, {
19506
+ key: "setTextStyle",
19507
+ value: function setTextStyle(params, defaultParams) {}
19508
+ }, {
19509
+ key: "draw",
19510
+ value: function draw() {}
19511
+ }, {
19512
+ key: "clearMatrix",
19513
+ value: function clearMatrix() {
19514
+ var setTransform = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19515
+ var dpr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.dpr;
19516
+ this.setTransformFromMatrix(initMatrix, setTransform, dpr);
19517
+ }
19518
+ }, {
19519
+ key: "onlyTranslate",
19520
+ value: function onlyTranslate() {
19521
+ var dpr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.dpr;
19522
+ return this.matrix.a === dpr && 0 === this.matrix.b && 0 === this.matrix.c && this.matrix.d === dpr;
19523
+ }
19524
+ }, {
19525
+ key: "release",
19526
+ value: function release() {
19527
+ this.stack.forEach(function (m) {
19528
+ return matrixAllocate.free(m);
19529
+ }), this.stack.length = 0;
19530
+ }
19531
+ }]);
19532
+ return EmptyContext2d;
19533
+ }();
19534
+ EmptyContext2d = __decorate$5([injectable(), __metadata$3("design:paramtypes", [Object, Number])], EmptyContext2d);
19535
+
19536
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19537
+ var d,
19538
+ c = arguments.length,
19539
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19540
+ 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);
19541
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19542
+ },
19543
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
19544
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19545
+ };
19546
+ var DefaultConfig = {
19547
+ WIDTH: 500,
19548
+ HEIGHT: 500,
19549
+ DPR: 1
19550
+ };
19551
+ var BaseCanvas = /*#__PURE__*/function () {
19552
+ function BaseCanvas(params) {
19553
+ _classCallCheck(this, BaseCanvas);
19554
+ var nativeCanvas = params.nativeCanvas,
19555
+ _params$width = params.width,
19556
+ width = _params$width === void 0 ? DefaultConfig.WIDTH : _params$width,
19557
+ _params$height = params.height,
19558
+ height = _params$height === void 0 ? DefaultConfig.HEIGHT : _params$height,
19559
+ _params$dpr = params.dpr,
19560
+ dpr = _params$dpr === void 0 ? DefaultConfig.DPR : _params$dpr,
19561
+ x = params.x,
19562
+ y = params.y,
19563
+ _params$canvasControl = params.canvasControled,
19564
+ canvasControled = _params$canvasControl === void 0 ? !0 : _params$canvasControl;
19565
+ this._x = null != x ? x : 0, this._y = null != y ? y : 0, this._pixelWidth = width * dpr, this._pixelHeight = height * dpr, this._visiable = !1 !== params.visiable, this.controled = canvasControled, this._displayWidth = width, this._displayHeight = height, this._dpr = dpr, this._nativeCanvas = nativeCanvas, this._id = nativeCanvas.id, this.init(params);
19566
+ }
19567
+ _createClass(BaseCanvas, [{
19568
+ key: "displayWidth",
19569
+ get: function get() {
19570
+ return this._pixelWidth / this._dpr;
19571
+ }
19572
+ }, {
19573
+ key: "displayHeight",
19574
+ get: function get() {
19575
+ return this._pixelHeight / this._dpr;
19576
+ }
19577
+ }, {
19578
+ key: "id",
19579
+ get: function get() {
19580
+ return this._id;
19581
+ }
19582
+ }, {
19583
+ key: "x",
19584
+ get: function get() {
19585
+ return this._x;
19586
+ },
19587
+ set: function set(_x) {
19588
+ this._x = _x;
19589
+ }
19590
+ }, {
19591
+ key: "y",
19592
+ get: function get() {
19593
+ return this._y;
19594
+ },
19595
+ set: function set(_y) {
19596
+ this._y = _y;
19597
+ }
19598
+ }, {
19599
+ key: "nativeCanvas",
19600
+ get: function get() {
19601
+ return this._nativeCanvas;
19602
+ }
19603
+ }, {
19604
+ key: "width",
19605
+ get: function get() {
19606
+ return this._pixelWidth;
19607
+ },
19608
+ set: function set(width) {
19609
+ this._pixelWidth = width, this._displayWidth = width / (this._dpr || 1);
19610
+ }
19611
+ }, {
19612
+ key: "height",
19613
+ get: function get() {
19614
+ return this._pixelHeight;
19615
+ },
19616
+ set: function set(height) {
19617
+ this._pixelHeight = height, this._displayHeight = height / (this._dpr || 1);
19618
+ }
19619
+ }, {
19620
+ key: "getContext",
19621
+ value: function getContext(str) {
19622
+ return this._context;
19623
+ }
19624
+ }, {
19625
+ key: "visiable",
19626
+ get: function get() {
19627
+ return this._visiable;
19628
+ },
19629
+ set: function set(visiable) {
19630
+ this._visiable = visiable, visiable ? this.show() : this.hide();
19631
+ }
19632
+ }, {
19633
+ key: "dpr",
19634
+ get: function get() {
19635
+ return this._dpr;
19636
+ },
19637
+ set: function set(dpr) {
19638
+ this._dpr = dpr, this.resize(this._displayWidth, this._displayHeight);
19639
+ }
19640
+ }, {
19641
+ key: "getNativeCanvas",
19642
+ value: function getNativeCanvas() {
19643
+ return this._nativeCanvas;
19644
+ }
19645
+ }, {
19646
+ key: "hide",
19647
+ value: function hide() {}
19648
+ }, {
19649
+ key: "show",
19650
+ value: function show() {}
19651
+ }, {
19652
+ key: "applyPosition",
19653
+ value: function applyPosition() {}
19654
+ }, {
19655
+ key: "resetStyle",
19656
+ value: function resetStyle(params) {}
19657
+ }, {
19658
+ key: "resize",
19659
+ value: function resize(width, height) {}
19660
+ }, {
19661
+ key: "toDataURL",
19662
+ value: function toDataURL(mimeType, quality) {
19663
+ return "";
19664
+ }
19665
+ }, {
19666
+ key: "readPixels",
19667
+ value: function readPixels(x, y, w, h) {
19668
+ return this._context.getImageData(x, y, w, h);
19669
+ }
19670
+ }, {
19671
+ key: "convertToBlob",
19672
+ value: function convertToBlob(options) {
19673
+ throw new Error("暂未实现");
19674
+ }
19675
+ }, {
19676
+ key: "transferToImageBitmap",
19677
+ value: function transferToImageBitmap() {
19678
+ throw new Error("暂未实现");
19679
+ }
19680
+ }, {
19681
+ key: "release",
19682
+ value: function release() {
19683
+ this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
19684
+ }
19685
+ }]);
19686
+ return BaseCanvas;
19687
+ }();
19688
+ BaseCanvas.env = "browser", BaseCanvas = __decorate$4([injectable(), __metadata$2("design:paramtypes", [Object])], BaseCanvas);
19689
+
19690
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19691
+ var d,
19692
+ c = arguments.length,
19693
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19694
+ 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);
19695
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19696
+ };
19697
+ var BaseEnvContribution = /*#__PURE__*/function () {
19698
+ function BaseEnvContribution() {
19699
+ _classCallCheck(this, BaseEnvContribution);
19700
+ }
19701
+ _createClass(BaseEnvContribution, [{
19702
+ key: "configure",
19703
+ value: function configure(service) {
19704
+ service.env === this.type && service.setActiveEnvContribution(this);
19705
+ }
19706
+ }, {
19707
+ key: "getNativeAABBBounds",
19708
+ value: function getNativeAABBBounds(dom) {
19709
+ return new vutils.AABBBounds();
19710
+ }
19711
+ }, {
19712
+ key: "removeDom",
19713
+ value: function removeDom(dom) {
19714
+ return !1;
19715
+ }
19716
+ }, {
19717
+ key: "createDom",
19718
+ value: function createDom(params) {
19719
+ return null;
19720
+ }
19721
+ }, {
19722
+ key: "getDynamicCanvasCount",
19723
+ value: function getDynamicCanvasCount() {
19724
+ return 999;
19725
+ }
19726
+ }, {
19727
+ key: "getStaticCanvasCount",
19728
+ value: function getStaticCanvasCount() {
19729
+ return 999;
19730
+ }
19731
+ }, {
19732
+ key: "getElementById",
19733
+ value: function getElementById(str) {
19734
+ return document.getElementById(str);
19735
+ }
19736
+ }, {
19737
+ key: "getRootElement",
19738
+ value: function getRootElement() {
19739
+ return document.body;
19740
+ }
19741
+ }, {
19742
+ key: "loadJson",
19743
+ value: function loadJson(url) {
19744
+ var jsonPromise = fetch(url).then(function (data) {
19745
+ return data.json();
19746
+ });
19747
+ return jsonPromise.then(function (json) {
19748
+ return {
19749
+ data: json,
19750
+ state: "success"
19751
+ };
19752
+ })["catch"](function () {
19753
+ return {
19754
+ data: null,
19755
+ state: "fail"
19756
+ };
19757
+ }), jsonPromise;
19758
+ }
19759
+ }, {
19760
+ key: "loadArrayBuffer",
19761
+ value: function loadArrayBuffer(url) {
19762
+ return fetch(url).then(function (data) {
19763
+ return data.arrayBuffer();
19764
+ }).then(function (arrayBuffer) {
19765
+ return {
19766
+ data: arrayBuffer,
19767
+ loadState: "success"
19768
+ };
19769
+ })["catch"](function () {
19770
+ return {
19771
+ data: null,
19772
+ loadState: "fail"
19773
+ };
19774
+ });
19775
+ }
19776
+ }, {
19777
+ key: "loadBlob",
19778
+ value: function loadBlob(url) {
19779
+ return fetch(url).then(function (data) {
19780
+ return data.blob();
19781
+ }).then(function (blob) {
19782
+ return {
19783
+ data: blob,
19784
+ loadState: "success"
19785
+ };
19786
+ })["catch"](function () {
19787
+ return {
19788
+ data: null,
19789
+ loadState: "fail"
19790
+ };
19791
+ });
19792
+ }
19793
+ }, {
19794
+ key: "getElementTop",
19795
+ value: function getElementTop(dom, baseWindow) {
19796
+ return 0;
19797
+ }
19798
+ }, {
19799
+ key: "getElementLeft",
19800
+ value: function getElementLeft(dom, baseWindow) {
19801
+ return 0;
19802
+ }
19803
+ }, {
19804
+ key: "getElementTopLeft",
19805
+ value: function getElementTopLeft(dom, baseWindow) {
19806
+ return {
19807
+ top: 0,
19808
+ left: 0
19809
+ };
19810
+ }
19811
+ }]);
19812
+ return BaseEnvContribution;
19813
+ }();
19814
+ BaseEnvContribution = __decorate$3([injectable()], BaseEnvContribution);
19815
+
19816
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19817
+ var d,
19818
+ c = arguments.length,
19819
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19820
+ 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);
19821
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19822
+ },
19823
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
19824
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19825
+ };
19826
+ var BaseWindowHandlerContribution = /*#__PURE__*/function () {
19827
+ function BaseWindowHandlerContribution() {
19828
+ _classCallCheck(this, BaseWindowHandlerContribution);
19829
+ this._uid = Generator.GenAutoIncrementId();
19830
+ }
19831
+ _createClass(BaseWindowHandlerContribution, [{
19832
+ key: "onChange",
19833
+ value: function onChange(cb) {
19834
+ this._onChangeCb = cb;
19835
+ }
19836
+ }, {
19837
+ key: "configure",
19838
+ value: function configure(window, global) {
19839
+ global.env === this.type && window.setWindowHandler(this);
19840
+ }
19841
+ }, {
19842
+ key: "release",
19843
+ value: function release() {
19844
+ this.releaseWindow();
19845
+ }
19846
+ }, {
19847
+ key: "isVisible",
19848
+ value: function isVisible(bbox) {
19849
+ return !0;
19850
+ }
19851
+ }, {
19852
+ key: "onVisibleChange",
19853
+ value: function onVisibleChange(cb) {}
19854
+ }, {
19855
+ key: "getTopLeft",
19856
+ value: function getTopLeft(baseWindow) {
19857
+ return {
19858
+ top: 0,
19859
+ left: 0
19860
+ };
19861
+ }
19862
+ }]);
19863
+ return BaseWindowHandlerContribution;
19864
+ }();
19865
+ BaseWindowHandlerContribution = __decorate$2([injectable(), __metadata$1("design:paramtypes", [])], BaseWindowHandlerContribution);
19866
+
19867
+ var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19868
+ var d,
19869
+ c = arguments.length,
19870
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19871
+ 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);
19872
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19873
+ },
19874
+ __metadata = undefined && undefined.__metadata || function (k, v) {
19875
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19876
+ },
19877
+ __param = undefined && undefined.__param || function (paramIndex, decorator) {
19878
+ return function (target, key) {
19879
+ decorator(target, key, paramIndex);
19880
+ };
19881
+ };
19882
+ var DefaultPickService = /*#__PURE__*/function () {
19883
+ function DefaultPickService(global, pickItemInterceptorContributions) {
19884
+ _classCallCheck(this, DefaultPickService);
19885
+ this.global = global, this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.type = "default";
19886
+ }
19887
+ _createClass(DefaultPickService, [{
19888
+ key: "_init",
19889
+ value: function _init() {
19890
+ this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort(function (a, b) {
19891
+ return a.order - b.order;
19892
+ });
19893
+ }
19894
+ }, {
19895
+ key: "pick",
19896
+ value: function pick(graphics, point, params) {
19897
+ var result = {
19898
+ graphic: null,
19899
+ group: null
19900
+ };
19901
+ params.pickerService = this;
19902
+ var offsetX = 0,
19903
+ offsetY = 0;
19904
+ if (params && params.bounds) {
19905
+ if (!params.bounds.contains(point.x, point.y)) return result;
19906
+ offsetX = params.bounds.x1, offsetY = params.bounds.y1;
19907
+ }
19908
+ this.pickContext && (this.pickContext.inuse = !0), params.pickContext = this.pickContext, this.pickContext && this.pickContext.clearMatrix(!0, 1);
19909
+ var parentMatrix = new vutils.Matrix(1, 0, 0, 1, offsetX, offsetY);
19910
+ var group;
19911
+ for (var i = graphics.length - 1; i >= 0 && (result = graphics[i].isContainer ? this.pickGroup(graphics[i], point, parentMatrix, params) : this.pickItem(graphics[i], point, parentMatrix, params), !result.graphic); i--) group || (group = result.group);
19912
+ if (result.graphic || (result.group = group), this.pickContext && (this.pickContext.inuse = !1), result.graphic) {
19913
+ var g = result.graphic;
19914
+ for (; g.parent;) g = g.parent;
19915
+ g.shadowHost && (result.params = {
19916
+ shadowTarget: result.graphic
19917
+ }, result.graphic = g.shadowHost);
19918
+ }
19919
+ return result;
19920
+ }
19921
+ }, {
19922
+ key: "containsPoint",
19923
+ value: function containsPoint(graphic, point, params) {
19924
+ var _a;
19925
+ return !!(null === (_a = this.pickItem(graphic, point, null, null != params ? params : {
19926
+ pickContext: this.pickContext,
19927
+ pickerService: this
19928
+ })) || void 0 === _a ? void 0 : _a.graphic);
19929
+ }
19930
+ }, {
19931
+ key: "pickGroup",
19932
+ value: function pickGroup(group, point, parentMatrix, params) {
19933
+ var _this = this;
19934
+ var result = {
19935
+ group: null,
19936
+ graphic: null
19937
+ };
19938
+ if (!1 === group.attribute.visibleAll) return result;
19939
+ var context = params.pickContext,
19940
+ lastMatrix = context.modelMatrix;
19941
+ if (context.camera) {
19942
+ var m = group.transMatrix,
19943
+ matrix = mat4Allocate.allocate();
19944
+ if (mat3Tomat4(matrix, m), lastMatrix) {
19945
+ if (matrix) {
19946
+ var _m = mat4Allocate.allocate();
19947
+ context.modelMatrix = multiplyMat4Mat4(_m, lastMatrix, matrix), mat4Allocate.free(matrix);
19948
+ }
19949
+ } else mat3Tomat4(matrix, group.globalTransMatrix), context.modelMatrix = matrix;
19950
+ }
19951
+ if (this.InterceptorContributions.length) for (var i = 0; i < this.InterceptorContributions.length; i++) {
19952
+ var drawContribution = this.InterceptorContributions[i];
19953
+ if (drawContribution.beforePickItem) {
19954
+ var _result = drawContribution.beforePickItem(group, this, point, params, {
19955
+ parentMatrix: parentMatrix
19956
+ });
19957
+ if (_result) return context.modelMatrix !== lastMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastMatrix, _result;
19958
+ }
19959
+ }
19960
+ var transMatrix = group.transMatrix,
19961
+ currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
19962
+ newPoint = new vutils.Point(point.x, point.y);
19963
+ currentGroupMatrix.transformPoint(newPoint, newPoint);
19964
+ var insideGroup = group.AABBBounds.containsPoint(newPoint);
19965
+ if (!insideGroup && !group.stage.camera) return result;
19966
+ var pickedItem = this.pickItem(group, newPoint.clone(), parentMatrix, params);
19967
+ pickedItem && pickedItem.graphic && (result.graphic = pickedItem.graphic, result.params = pickedItem.params);
19968
+ var groupPicked = !1 !== group.attribute.pickable && insideGroup;
19969
+ return currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 === group.attribute.childrenPickable || pickedItem && pickedItem.graphic || foreach(group, DefaultAttribute.zIndex, function (graphic) {
19970
+ if (graphic.isContainer) {
19971
+ var _newPoint = new vutils.Point(point.x, point.y),
19972
+ theme = getTheme(group).group,
19973
+ _group$attribute = group.attribute,
19974
+ _group$attribute$scro = _group$attribute.scrollX,
19975
+ scrollX = _group$attribute$scro === void 0 ? theme.scrollX : _group$attribute$scro,
19976
+ _group$attribute$scro2 = _group$attribute.scrollY,
19977
+ scrollY = _group$attribute$scro2 === void 0 ? theme.scrollY : _group$attribute$scro2;
19978
+ _newPoint.x -= scrollX, _newPoint.y -= scrollY, result = _this.pickGroup(graphic, _newPoint, currentGroupMatrix, params);
19979
+ } else {
19980
+ var _newPoint2 = new vutils.Point(point.x, point.y);
19981
+ currentGroupMatrix.transformPoint(_newPoint2, _newPoint2);
19982
+ var _theme = getTheme(group).group,
19983
+ _group$attribute2 = group.attribute,
19984
+ _group$attribute2$scr = _group$attribute2.scrollX,
19985
+ _scrollX = _group$attribute2$scr === void 0 ? _theme.scrollX : _group$attribute2$scr,
19986
+ _group$attribute2$scr2 = _group$attribute2.scrollY,
19987
+ _scrollY = _group$attribute2$scr2 === void 0 ? _theme.scrollY : _group$attribute2$scr2;
19988
+ _newPoint2.x -= _scrollX, _newPoint2.y -= _scrollY;
19989
+ var _pickedItem = _this.pickItem(graphic, _newPoint2, parentMatrix, params);
19990
+ _pickedItem && _pickedItem.graphic && (result.graphic = _pickedItem.graphic, result.params = _pickedItem.params);
19991
+ }
19992
+ return !!result.graphic || !!result.group;
19993
+ }, !0, !!context.camera), context.modelMatrix !== lastMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastMatrix, result.graphic || result.group || !groupPicked || group.stage.camera || (result.group = group), matrixAllocate.free(currentGroupMatrix), result;
19994
+ }
19995
+ }, {
19996
+ key: "selectPicker",
19997
+ value: function selectPicker(graphic) {
19998
+ var picker = this.pickerMap.get(graphic.numberType);
19999
+ return picker || null;
20000
+ }
20001
+ }]);
20002
+ return DefaultPickService;
20003
+ }();
20004
+ DefaultPickService = __decorate$1([injectable(), __param(0, inject(VGlobal)), __param(1, inject(ContributionProvider)), __param(1, named(PickItemInterceptor)), __metadata("design:paramtypes", [Object, Object])], DefaultPickService);
20005
+
20006
+ const GROUP_ATTRIBUTES = [
20007
+ 'x',
20008
+ 'y',
20009
+ 'dx',
20010
+ 'dy',
20011
+ 'scaleX',
20012
+ 'scaleY',
20013
+ 'angle',
20014
+ 'anchor',
20015
+ 'postMatrix',
20016
+ 'visible',
20017
+ 'clip',
20018
+ 'pickable',
20019
+ 'childrenPickable',
20020
+ 'zIndex',
20021
+ 'cursor'
20022
+ ];
20023
+ class AbstractComponent extends Group {
20024
+ constructor(attributes, mode = '2d') {
20025
+ super(attributes);
20026
+ this.mode = mode;
20027
+ this.setTheme({
20028
+ common: {
20029
+ strokeBoundsBuffer: 0
20030
+ }
20031
+ });
20032
+ this.attribute = attributes;
20033
+ this.onSetStage(() => {
20034
+ this.render();
20035
+ this.bindEvents();
20036
+ });
20037
+ }
20038
+ setAttribute(key, value, forceUpdateTag) {
20039
+ if (vutils.isPlainObject(this.attribute[key]) && !vutils.isFunction(this.attribute[key]) && !vutils.isFunction(value)) {
20040
+ vutils.merge(this.attribute[key], value);
20041
+ }
20042
+ else {
20043
+ this.attribute[key] = value;
20044
+ }
20045
+ if (!GROUP_ATTRIBUTES.includes(key)) {
20046
+ this.render();
20047
+ }
20048
+ this.valid = this.isValid();
20049
+ if (!this.updateShapeAndBoundsTagSetted() && (forceUpdateTag || this.needUpdateTag(key))) {
20050
+ this.addUpdateShapeAndBoundsTag();
20051
+ }
20052
+ else {
20053
+ this.addUpdateBoundTag();
20054
+ }
20055
+ this.addUpdatePositionTag();
20056
+ this.onAttributeUpdate();
20057
+ }
20058
+ setAttributes(params, forceUpdateTag) {
20059
+ const keys = Object.keys(params);
20060
+ this._mergeAttributes(params, keys);
20061
+ if (!keys.every(key => GROUP_ATTRIBUTES.includes(key))) {
20062
+ this.render();
20063
+ }
20064
+ this.valid = this.isValid();
20065
+ if (!this.updateShapeAndBoundsTagSetted() && (forceUpdateTag || this.needUpdateTags(keys))) {
20066
+ this.addUpdateShapeAndBoundsTag();
20067
+ }
20068
+ else {
20069
+ this.addUpdateBoundTag();
20070
+ }
20071
+ this.addUpdatePositionTag();
20072
+ this.onAttributeUpdate();
20073
+ }
20074
+ _mergeAttributes(params, keys) {
20075
+ if (vutils.isNil(keys)) {
20076
+ keys = Object.keys(params);
20077
+ }
20078
+ for (let i = 0; i < keys.length; i++) {
20079
+ const key = keys[i];
20080
+ if (vutils.isPlainObject(this.attribute[key]) && !vutils.isFunction(this.attribute[key]) && !vutils.isFunction(params[key])) {
20081
+ vutils.merge(this.attribute[key], params[key]);
20082
+ }
20083
+ else {
20084
+ this.attribute[key] = params[key];
20085
+ }
20086
+ }
20087
+ }
20088
+ bindEvents() {
20089
+ }
20090
+ _getNodeId(id) {
20091
+ return `${this.id}-${this.name}-${id}`;
20092
+ }
20093
+ }
20094
+
20095
+ class ScrollBar extends AbstractComponent {
20096
+ constructor(attributes) {
20097
+ super(vutils.merge({}, ScrollBar.defaultAttributes, attributes));
20098
+ this.name = 'scrollbar';
20099
+ this._onRailPointerDown = (e) => {
20100
+ var _a, _b;
20101
+ const { viewX, viewY } = e;
20102
+ const { direction, width, height, range } = this.attribute;
20103
+ const sliderSize = this._sliderSize;
20104
+ const [min, max] = this._getScrollRange();
20105
+ let currentScrollValue;
20106
+ if (direction === 'vertical') {
20107
+ const relativeY = viewY - this._viewPosition.y;
20108
+ const currentYPos = vutils.clamp(relativeY - sliderSize / 2, min, max);
20109
+ currentScrollValue = relativeY / height;
20110
+ this._slider.setAttribute('y', currentYPos, true);
20111
+ }
20112
+ else {
20113
+ const relativeX = viewX - this._viewPosition.x;
20114
+ const currentXPos = vutils.clamp(relativeX - sliderSize / 2, min, max);
20115
+ currentScrollValue = relativeX / width;
20116
+ this._slider.setAttribute('x', currentXPos, true);
20117
+ }
20118
+ this.setScrollRange([currentScrollValue - (range[1] - range[0]) / 2, currentScrollValue + (range[1] - range[0]) / 2], false);
20119
+ if (!((_a = this.stage) === null || _a === void 0 ? void 0 : _a.autoRender)) {
20120
+ (_b = this.stage) === null || _b === void 0 ? void 0 : _b.renderNextFrame();
20121
+ }
20122
+ };
20123
+ this._onSliderPointerDown = (e) => {
20124
+ e.stopPropagation();
20125
+ const { direction } = this.attribute;
20126
+ this._prePos = direction === 'horizontal' ? e.clientX : e.clientY;
20127
+ if (vglobal.env === 'browser') {
20128
+ vglobal.addEventListener('pointermove', this._onSliderPointerMove, { capture: true });
20129
+ vglobal.addEventListener('pointerup', this._onSliderPointerUp);
20130
+ }
20131
+ else {
20132
+ this._slider.addEventListener('pointermove', this._onSliderPointerMove, { capture: true });
20133
+ this._slider.addEventListener('pointerup', this._onSliderPointerUp);
20134
+ this._slider.addEventListener('pointerupoutside', this._onSliderPointerUp);
20135
+ }
20136
+ };
20137
+ this._onSliderPointerMove = (e) => {
20138
+ e.stopPropagation();
20139
+ const { direction } = this.attribute;
20140
+ let currentScrollValue;
20141
+ let currentPos;
20142
+ let delta = 0;
20143
+ const preScrollRange = this.getScrollRange();
20144
+ const { width, height } = this._getSliderRenderBounds();
20145
+ if (direction === 'vertical') {
20146
+ currentPos = e.clientY;
20147
+ delta = currentPos - this._prePos;
18633
20148
  currentScrollValue = delta / height;
18634
20149
  }
18635
20150
  else {
@@ -19735,6 +21250,12 @@
19735
21250
  this.activeEvent = 'onRegister';
19736
21251
  this._uid = Generator.GenAutoIncrementId();
19737
21252
  this.key = this.name + this._uid;
21253
+ this.pointerlave = (e) => {
21254
+ const { stage } = this.pluginService;
21255
+ if (e.target === stage) {
21256
+ this.unpoptip(e);
21257
+ }
21258
+ };
19738
21259
  this.poptip = (e) => {
19739
21260
  const graphic = e.target;
19740
21261
  if (graphic.type !== 'text' || !graphic.cliped || graphic.isContainer || !graphic.attribute) {
@@ -19768,6 +21289,7 @@
19768
21289
  this.pluginService = context;
19769
21290
  const { stage } = this.pluginService;
19770
21291
  stage.addEventListener('pointerover', this.poptip);
21292
+ stage.addEventListener('pointerleave', this.pointerlave);
19771
21293
  }
19772
21294
  setActiveGraphic(graphic, rerender) {
19773
21295
  this.activeGraphic = graphic;
@@ -19776,6 +21298,7 @@
19776
21298
  deactivate(context) {
19777
21299
  const { stage } = this.pluginService;
19778
21300
  stage.removeEventListener('pointerover', this.poptip);
21301
+ stage.removeEventListener('pointerleave', this.pointerlave);
19779
21302
  }
19780
21303
  };
19781
21304
  PopTipForClipedTextPlugin = __decorate([
@@ -20221,51 +21744,239 @@
20221
21744
  if (minY < 0 && maxY - minY <= height) {
20222
21745
  dy = -minY;
20223
21746
  }
20224
- else if (maxY > height && minY - (maxY - height) >= 0) {
20225
- dy = height - maxY;
21747
+ else if (maxY > height && minY - (maxY - height) >= 0) {
21748
+ dy = height - maxY;
21749
+ }
21750
+ return { dx, dy };
21751
+ }
21752
+
21753
+ const fadeIn = (textAttribute = {}) => {
21754
+ var _a, _b, _c;
21755
+ return {
21756
+ from: {
21757
+ opacity: 0,
21758
+ fillOpacity: 0,
21759
+ strokeOpacity: 0
21760
+ },
21761
+ to: {
21762
+ opacity: (_a = textAttribute.opacity) !== null && _a !== void 0 ? _a : 1,
21763
+ fillOpacity: (_b = textAttribute.fillOpacity) !== null && _b !== void 0 ? _b : 1,
21764
+ strokeOpacity: (_c = textAttribute.strokeOpacity) !== null && _c !== void 0 ? _c : 1
21765
+ }
21766
+ };
21767
+ };
21768
+ const fadeOut = (textAttribute = {}) => {
21769
+ var _a, _b, _c;
21770
+ return {
21771
+ from: {
21772
+ opacity: (_a = textAttribute.opacity) !== null && _a !== void 0 ? _a : 1,
21773
+ fillOpacity: (_b = textAttribute.fillOpacity) !== null && _b !== void 0 ? _b : 1,
21774
+ strokeOpacity: (_c = textAttribute.strokeOpacity) !== null && _c !== void 0 ? _c : 1
21775
+ },
21776
+ to: {
21777
+ opacity: 0,
21778
+ fillOpacity: 0,
21779
+ strokeOpacity: 0
21780
+ }
21781
+ };
21782
+ };
21783
+ const animationEffects = { fadeIn, fadeOut };
21784
+ function getAnimationAttributes(textAttribute, type) {
21785
+ var _a, _b;
21786
+ return (_b = (_a = animationEffects[type]) === null || _a === void 0 ? void 0 : _a.call(animationEffects, textAttribute)) !== null && _b !== void 0 ? _b : { from: {}, to: {} };
21787
+ }
21788
+ const DefaultLabelAnimation = {
21789
+ mode: 'same-time',
21790
+ duration: 300,
21791
+ easing: 'linear'
21792
+ };
21793
+
21794
+ function polarToCartesian(point) {
21795
+ if (!point.radius) {
21796
+ return { x: 0, y: 0 };
21797
+ }
21798
+ return {
21799
+ x: Math.cos(point.angle) * point.radius,
21800
+ y: Math.sin(point.angle) * point.radius
21801
+ };
21802
+ }
21803
+ function circlePoint(x0, y0, radius, radian) {
21804
+ const offset = polarToCartesian({
21805
+ radius,
21806
+ angle: radian
21807
+ });
21808
+ return {
21809
+ x: x0 + offset.x,
21810
+ y: y0 + offset.y
21811
+ };
21812
+ }
21813
+ function computeQuadrant(angle) {
21814
+ angle = normalizeAngle(angle);
21815
+ if (angle > 0 && angle <= Math.PI / 2) {
21816
+ return 2;
21817
+ }
21818
+ else if (angle > Math.PI / 2 && angle <= Math.PI) {
21819
+ return 3;
21820
+ }
21821
+ else if (angle > Math.PI && angle <= (3 * Math.PI) / 2) {
21822
+ return 4;
21823
+ }
21824
+ return 1;
21825
+ }
21826
+ function normalizeAngle(angle) {
21827
+ while (angle < 0) {
21828
+ angle += Math.PI * 2;
21829
+ }
21830
+ while (angle >= Math.PI * 2) {
21831
+ angle -= Math.PI * 2;
21832
+ }
21833
+ return angle;
21834
+ }
21835
+ function isQuadrantLeft(quadrant) {
21836
+ return quadrant === 3 || quadrant === 4;
21837
+ }
21838
+ function isQuadrantRight(quadrant) {
21839
+ return quadrant === 1 || quadrant === 2;
21840
+ }
21841
+ function lineCirclePoints(a, b, c, x0, y0, r) {
21842
+ if ((a === 0 && b === 0) || r <= 0) {
21843
+ return [];
21844
+ }
21845
+ if (a === 0) {
21846
+ const y1 = -c / b;
21847
+ const fy = (y1 - y0) ** 2;
21848
+ const fd = r ** 2 - fy;
21849
+ if (fd < 0) {
21850
+ return [];
21851
+ }
21852
+ else if (fd === 0) {
21853
+ return [{ x: x0, y: y1 }];
21854
+ }
21855
+ const x1 = Math.sqrt(fd) + x0;
21856
+ const x2 = -Math.sqrt(fd) + x0;
21857
+ return [
21858
+ { x: x1, y: y1 },
21859
+ { x: x2, y: y1 }
21860
+ ];
21861
+ }
21862
+ else if (b === 0) {
21863
+ const x1 = -c / a;
21864
+ const fx = (x1 - x0) ** 2;
21865
+ const fd = r ** 2 - fx;
21866
+ if (fd < 0) {
21867
+ return [];
21868
+ }
21869
+ else if (fd === 0) {
21870
+ return [{ x: x1, y: y0 }];
21871
+ }
21872
+ const y1 = Math.sqrt(fd) + y0;
21873
+ const y2 = -Math.sqrt(fd) + y0;
21874
+ return [
21875
+ { x: x1, y: y1 },
21876
+ { x: x1, y: y2 }
21877
+ ];
21878
+ }
21879
+ const fa = (b / a) ** 2 + 1;
21880
+ const fb = 2 * ((c / a + x0) * (b / a) - y0);
21881
+ const fc = (c / a + x0) ** 2 + y0 ** 2 - r ** 2;
21882
+ const fd = fb ** 2 - 4 * fa * fc;
21883
+ if (fd < 0) {
21884
+ return [];
21885
+ }
21886
+ const y1 = (-fb + Math.sqrt(fd)) / (2 * fa);
21887
+ const y2 = (-fb - Math.sqrt(fd)) / (2 * fa);
21888
+ const x1 = -(b * y1 + c) / a;
21889
+ const x2 = -(b * y2 + c) / a;
21890
+ if (fd === 0) {
21891
+ return [{ x: x1, y: y1 }];
21892
+ }
21893
+ return [
21894
+ { x: x1, y: y1 },
21895
+ { x: x2, y: y2 }
21896
+ ];
21897
+ }
21898
+ function connectLineRadian(radius, length) {
21899
+ if (length > radius * 2) {
21900
+ return NaN;
20226
21901
  }
20227
- return { dx, dy };
21902
+ return Math.asin(length / 2 / radius) * 2;
20228
21903
  }
20229
-
20230
- const fadeIn = (textAttribute = {}) => {
20231
- var _a, _b, _c;
20232
- return {
20233
- from: {
20234
- opacity: 0,
20235
- fillOpacity: 0,
20236
- strokeOpacity: 0
20237
- },
20238
- to: {
20239
- opacity: (_a = textAttribute.opacity) !== null && _a !== void 0 ? _a : 1,
20240
- fillOpacity: (_b = textAttribute.fillOpacity) !== null && _b !== void 0 ? _b : 1,
20241
- strokeOpacity: (_c = textAttribute.strokeOpacity) !== null && _c !== void 0 ? _c : 1
20242
- }
20243
- };
20244
- };
20245
- const fadeOut = (textAttribute = {}) => {
20246
- var _a, _b, _c;
20247
- return {
20248
- from: {
20249
- opacity: (_a = textAttribute.opacity) !== null && _a !== void 0 ? _a : 1,
20250
- fillOpacity: (_b = textAttribute.fillOpacity) !== null && _b !== void 0 ? _b : 1,
20251
- strokeOpacity: (_c = textAttribute.strokeOpacity) !== null && _c !== void 0 ? _c : 1
20252
- },
20253
- to: {
20254
- opacity: 0,
20255
- fillOpacity: 0,
20256
- strokeOpacity: 0
20257
- }
21904
+ function checkBoundsOverlap(boundsA, boundsB) {
21905
+ const { x1: ax1, y1: ay1, x2: ax2, y2: ay2 } = boundsA;
21906
+ const { x1: bx1, y1: by1, x2: bx2, y2: by2 } = boundsB;
21907
+ return !((ax1 <= bx1 && ax2 <= bx1) ||
21908
+ (ax1 >= bx2 && ax2 >= bx2) ||
21909
+ (ay1 <= by1 && ay2 <= by1) ||
21910
+ (ay1 >= by2 && ay2 >= by2));
21911
+ }
21912
+ const labelingPoint = (textBounds, graphicBounds, position = 'top', offset = 0) => {
21913
+ if (!textBounds) {
21914
+ return;
21915
+ }
21916
+ const { x1, y1, x2, y2 } = textBounds;
21917
+ const width = Math.abs(x2 - x1);
21918
+ const height = Math.abs(y2 - y1);
21919
+ const anchorX = (graphicBounds.x1 + graphicBounds.x2) / 2;
21920
+ const anchorY = (graphicBounds.y1 + graphicBounds.y2) / 2;
21921
+ let sx = 0;
21922
+ let sy = 0;
21923
+ let offsetX = 0;
21924
+ let offsetY = 0;
21925
+ if (graphicBounds) {
21926
+ offsetX = Math.abs(graphicBounds.x1 - graphicBounds.x2) / 2;
21927
+ offsetY = Math.abs(graphicBounds.y1 - graphicBounds.y2) / 2;
21928
+ }
21929
+ const angle = {
21930
+ 'top-right': -235,
21931
+ 'top-left': 235,
21932
+ 'bottom-right': 45,
21933
+ 'bottom-left': -45
20258
21934
  };
21935
+ switch (position) {
21936
+ case 'top':
21937
+ sy = -1;
21938
+ break;
21939
+ case 'bottom':
21940
+ sy = 1;
21941
+ break;
21942
+ case 'left':
21943
+ sx = -1;
21944
+ break;
21945
+ case 'right':
21946
+ sx = 1;
21947
+ break;
21948
+ case 'bottom-left':
21949
+ case 'bottom-right':
21950
+ case 'top-left':
21951
+ case 'top-right':
21952
+ sx = Math.sin(angle[position] * (Math.PI / 180));
21953
+ sy = Math.cos(angle[position] * (Math.PI / 180));
21954
+ break;
21955
+ case 'center':
21956
+ sx = 0;
21957
+ sy = 0;
21958
+ break;
21959
+ }
21960
+ const x = anchorX + sx * (offset + offsetX) + Math.sign(sx) * (width / 2);
21961
+ const y = anchorY + sy * (offset + offsetY) + Math.sign(sy) * (height / 2);
21962
+ return { x, y };
20259
21963
  };
20260
- const animationEffects = { fadeIn, fadeOut };
20261
- function getAnimationAttributes(textAttribute, type) {
20262
- var _a, _b;
20263
- return (_b = (_a = animationEffects[type]) === null || _a === void 0 ? void 0 : _a.call(animationEffects, textAttribute)) !== null && _b !== void 0 ? _b : { from: {}, to: {} };
20264
- }
20265
- const DefaultLabelAnimation = {
20266
- mode: 'same-time',
20267
- duration: 300,
20268
- easing: 'linear'
21964
+ const getPointsOfLineArea = (graphic) => {
21965
+ if (!graphic || !graphic.attribute) {
21966
+ return [];
21967
+ }
21968
+ const { points, segments } = graphic.attribute;
21969
+ if (segments && segments.length) {
21970
+ const res = [];
21971
+ segments.forEach(seg => {
21972
+ const segPoints = seg.points;
21973
+ segPoints.forEach(point => {
21974
+ res.push(point);
21975
+ });
21976
+ });
21977
+ return res;
21978
+ }
21979
+ return points;
20269
21980
  };
20270
21981
 
20271
21982
  class LabelBase extends AbstractComponent {
@@ -20327,15 +22038,17 @@
20327
22038
  var _a, _b, _c;
20328
22039
  if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.type) === AttributeUpdateType.STATE) {
20329
22040
  const currentStates = (_c = (_b = e.target) === null || _b === void 0 ? void 0 : _b.currentStates) !== null && _c !== void 0 ? _c : [];
20330
- const label = this._graphicToText.get(e.target);
20331
- if (label) {
20332
- if (label.text) {
20333
- label.text.useStates(currentStates);
20334
- }
20335
- if (label.labelLine) {
20336
- label.labelLine.useStates(currentStates);
22041
+ const labels = this._isCollectionBase ? [...this._graphicToText.values()] : [this._graphicToText.get(e.target)];
22042
+ labels.forEach(label => {
22043
+ if (label) {
22044
+ if (label.text) {
22045
+ label.text.useStates(currentStates);
22046
+ }
22047
+ if (label.labelLine) {
22048
+ label.labelLine.useStates(currentStates);
22049
+ }
20337
22050
  }
20338
- }
22051
+ });
20339
22052
  }
20340
22053
  };
20341
22054
  }
@@ -20347,7 +22060,7 @@
20347
22060
  }
20348
22061
  render() {
20349
22062
  this._prepare();
20350
- if (vutils.isNil(this._idToGraphic)) {
22063
+ if ((this._isCollectionBase && vutils.isNil(this._idToPoint)) || (!this._isCollectionBase && vutils.isNil(this._idToGraphic))) {
20351
22064
  return;
20352
22065
  }
20353
22066
  const { overlap, smartInvert, dataFilter, customLayoutFunc, customOverlapFunc } = this.attribute;
@@ -20357,13 +22070,13 @@
20357
22070
  }
20358
22071
  let labels;
20359
22072
  if (vutils.isFunction(customLayoutFunc)) {
20360
- labels = customLayoutFunc(data, (d) => this._idToGraphic.get(d.id));
22073
+ labels = customLayoutFunc(data, this.getRelatedGrphic, this._isCollectionBase ? (d) => this._idToPoint.get(d.id) : null);
20361
22074
  }
20362
22075
  else {
20363
22076
  labels = this._layout(data);
20364
22077
  }
20365
22078
  if (vutils.isFunction(customOverlapFunc)) {
20366
- labels = customOverlapFunc(labels, (d) => this._idToGraphic.get(d.id));
22079
+ labels = customOverlapFunc(labels, this.getRelatedGrphic, this._isCollectionBase ? (d) => this._idToPoint.get(d.id) : null);
20367
22080
  }
20368
22081
  else {
20369
22082
  if (overlap !== false) {
@@ -20418,7 +22131,7 @@
20418
22131
  return text;
20419
22132
  }
20420
22133
  _prepare() {
20421
- var _a;
22134
+ var _a, _b, _c, _d;
20422
22135
  const currentBaseMarks = [];
20423
22136
  let baseMarks;
20424
22137
  if (vutils.isFunction(this.attribute.getBaseMarks)) {
@@ -20433,7 +22146,9 @@
20433
22146
  }
20434
22147
  });
20435
22148
  (_a = this._idToGraphic) === null || _a === void 0 ? void 0 : _a.clear();
22149
+ (_b = this._idToPoint) === null || _b === void 0 ? void 0 : _b.clear();
20436
22150
  this._baseMarks = currentBaseMarks;
22151
+ this._isCollectionBase = ((_c = currentBaseMarks === null || currentBaseMarks === void 0 ? void 0 : currentBaseMarks[0]) === null || _c === void 0 ? void 0 : _c.type) === 'line' || ((_d = currentBaseMarks === null || currentBaseMarks === void 0 ? void 0 : currentBaseMarks[0]) === null || _d === void 0 ? void 0 : _d.type) === 'area';
20437
22152
  if (!currentBaseMarks || currentBaseMarks.length === 0) {
20438
22153
  return;
20439
22154
  }
@@ -20441,30 +22156,59 @@
20441
22156
  if (!data || data.length === 0) {
20442
22157
  return;
20443
22158
  }
20444
- if (!this._idToGraphic) {
20445
- this._idToGraphic = new Map();
22159
+ if (this._isCollectionBase) {
22160
+ if (!this._idToPoint) {
22161
+ this._idToPoint = new Map();
22162
+ }
22163
+ const baseMark = currentBaseMarks[0];
22164
+ const points = getPointsOfLineArea(baseMark);
22165
+ if (points === null || points === void 0 ? void 0 : points.length) {
22166
+ for (let i = 0; i < points.length; i++) {
22167
+ const textData = data[i];
22168
+ if (textData && points[i]) {
22169
+ if (!vutils.isValid(textData.id)) {
22170
+ textData.id = `vrender-component-${this.name}-${i}`;
22171
+ }
22172
+ this._idToPoint.set(textData.id, points[i]);
22173
+ }
22174
+ }
22175
+ }
20446
22176
  }
20447
- for (let i = 0; i < currentBaseMarks.length; i++) {
20448
- const textData = data[i];
20449
- const baseMark = currentBaseMarks[i];
20450
- if (textData && baseMark) {
20451
- if (!vutils.isValid(textData.id)) {
20452
- textData.id = `vrender-component-${this.name}-${i}`;
22177
+ else {
22178
+ if (!this._idToGraphic) {
22179
+ this._idToGraphic = new Map();
22180
+ }
22181
+ for (let i = 0; i < currentBaseMarks.length; i++) {
22182
+ const textData = data[i];
22183
+ const baseMark = currentBaseMarks[i];
22184
+ if (textData && baseMark) {
22185
+ if (!vutils.isValid(textData.id)) {
22186
+ textData.id = `vrender-component-${this.name}-${i}`;
22187
+ }
22188
+ this._idToGraphic.set(textData.id, baseMark);
20453
22189
  }
20454
- this._idToGraphic.set(textData.id, baseMark);
20455
22190
  }
20456
22191
  }
20457
22192
  }
22193
+ getRelatedGrphic(item) {
22194
+ return this._isCollectionBase ? this._baseMarks[0] : this._idToGraphic.get(item.id);
22195
+ }
20458
22196
  _layout(data = []) {
20459
22197
  const { textStyle = {}, position, offset } = this.attribute;
20460
22198
  const labels = [];
20461
22199
  for (let i = 0; i < data.length; i++) {
20462
22200
  const textData = data[i];
20463
- const baseMark = this._idToGraphic.get(textData.id);
20464
- const labelAttribute = Object.assign(Object.assign({ fill: baseMark.attribute.fill }, textStyle), textData);
22201
+ const baseMark = this.getRelatedGrphic(textData);
22202
+ const labelAttribute = Object.assign(Object.assign({ fill: this._isCollectionBase
22203
+ ? vutils.isArray(baseMark.attribute.stroke)
22204
+ ? baseMark.attribute.stroke.find(entry => !!entry && entry !== true)
22205
+ : baseMark.attribute.stroke
22206
+ : baseMark.attribute.fill }, textStyle), textData);
20465
22207
  const text = this._createLabelText(labelAttribute);
20466
22208
  const textBounds = this.getGraphicBounds(text);
20467
- const graphicBounds = this.getGraphicBounds(baseMark, { x: textData.x, y: textData.y });
22209
+ const graphicBounds = this._isCollectionBase
22210
+ ? this.getGraphicBounds(null, this._idToPoint.get(textData.id))
22211
+ : this.getGraphicBounds(baseMark, { x: textData.x, y: textData.y });
20468
22212
  const textLocation = this.labeling(textBounds, graphicBounds, vutils.isFunction(position) ? position(textData) : position, offset);
20469
22213
  if (textLocation) {
20470
22214
  labelAttribute.x = textLocation.x;
@@ -20516,7 +22260,7 @@
20516
22260
  continue;
20517
22261
  }
20518
22262
  const text = labels[i];
20519
- const baseMark = this._idToGraphic.get(text.attribute.id);
22263
+ const baseMark = this.getRelatedGrphic(text.attribute);
20520
22264
  text.update();
20521
22265
  if (!vutils.isRectIntersect(baseMark.AABBBounds, { x1: 0, x2: bmpTool.width, y1: 0, y2: bmpTool.height }, true)) {
20522
22266
  continue;
@@ -20535,7 +22279,9 @@
20535
22279
  }
20536
22280
  let hasPlace = false;
20537
22281
  for (let j = 0; j < strategy.length; j++) {
20538
- hasPlace = place(bmpTool, bitmap, strategy[j], this.attribute, text, this.getGraphicBounds(baseMark, labels[i]), this.labeling);
22282
+ hasPlace = place(bmpTool, bitmap, strategy[j], this.attribute, text, this._isCollectionBase
22283
+ ? this.getGraphicBounds(null, this._idToPoint.get(labels[i].attribute.id))
22284
+ : this.getGraphicBounds(baseMark, labels[i].attribute), this.labeling);
20539
22285
  if (hasPlace !== false) {
20540
22286
  text.setAttributes({ x: hasPlace.x, y: hasPlace.y });
20541
22287
  result.push(text);
@@ -20602,11 +22348,13 @@
20602
22348
  labels.forEach((text, index) => {
20603
22349
  var _a, _b, _c, _d, _e, _f, _g;
20604
22350
  const labelLine = this._labelLine(text);
20605
- const relatedGraphic = this._idToGraphic.get(text.attribute.id);
20606
- const state = (prevTextMap === null || prevTextMap === void 0 ? void 0 : prevTextMap.get(relatedGraphic)) ? 'update' : 'enter';
22351
+ const relatedGraphic = this.getRelatedGrphic(text.attribute);
22352
+ const textId = text.attribute.id;
22353
+ const textKey = this._isCollectionBase ? textId : relatedGraphic;
22354
+ const state = (prevTextMap === null || prevTextMap === void 0 ? void 0 : prevTextMap.get(textKey)) ? 'update' : 'enter';
20607
22355
  if (state === 'enter') {
20608
22356
  texts.push(text);
20609
- currentTextMap.set(relatedGraphic, labelLine ? { text, labelLine } : { text });
22357
+ currentTextMap.set(textKey, labelLine ? { text, labelLine } : { text });
20610
22358
  if (relatedGraphic) {
20611
22359
  const { from, to } = getAnimationAttributes(text.attribute, 'fadeIn');
20612
22360
  this.add(text);
@@ -20615,7 +22363,7 @@
20615
22363
  this.add(labelLine);
20616
22364
  }
20617
22365
  this._syncStateWithRelatedGraphic(relatedGraphic);
20618
- relatedGraphic.once('animate-bind', () => {
22366
+ relatedGraphic.once('animate-bind', a => {
20619
22367
  text.setAttributes(from);
20620
22368
  const listener = this._afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, {
20621
22369
  mode,
@@ -20629,9 +22377,9 @@
20629
22377
  }
20630
22378
  }
20631
22379
  else if (state === 'update') {
20632
- const prevLabel = prevTextMap.get(relatedGraphic);
20633
- prevTextMap.delete(relatedGraphic);
20634
- currentTextMap.set(relatedGraphic, prevLabel);
22380
+ const prevLabel = prevTextMap.get(textKey);
22381
+ prevTextMap.delete(textKey);
22382
+ currentTextMap.set(textKey, prevLabel);
20635
22383
  const prevText = prevLabel.text;
20636
22384
  prevText.animate().to(text.attribute, duration, easing);
20637
22385
  if (prevLabel.labelLine) {
@@ -20666,10 +22414,11 @@
20666
22414
  labels.forEach(text => {
20667
22415
  var _a;
20668
22416
  const labelLine = this._labelLine(text);
20669
- const relatedGraphic = this._idToGraphic.get(text.attribute.id);
22417
+ const relatedGraphic = this.getRelatedGrphic(text.attribute);
20670
22418
  const state = (prevTextMap === null || prevTextMap === void 0 ? void 0 : prevTextMap.get(relatedGraphic)) ? 'update' : 'enter';
22419
+ const textKey = this._isCollectionBase ? text.attribute.id : relatedGraphic;
20671
22420
  if (state === 'enter') {
20672
- currentTextMap.set(relatedGraphic, labelLine ? { text, labelLine } : { text });
22421
+ currentTextMap.set(textKey, labelLine ? { text, labelLine } : { text });
20673
22422
  this.add(text);
20674
22423
  if (labelLine) {
20675
22424
  this.add(labelLine);
@@ -20677,9 +22426,9 @@
20677
22426
  this._syncStateWithRelatedGraphic(relatedGraphic);
20678
22427
  }
20679
22428
  else if (state === 'update') {
20680
- const prevLabel = prevTextMap.get(relatedGraphic);
20681
- prevTextMap.delete(relatedGraphic);
20682
- currentTextMap.set(relatedGraphic, prevLabel);
22429
+ const prevLabel = prevTextMap.get(textKey);
22430
+ prevTextMap.delete(textKey);
22431
+ currentTextMap.set(textKey, prevLabel);
20683
22432
  prevLabel.text.setAttributes(text.attribute);
20684
22433
  if (prevLabel === null || prevLabel === void 0 ? void 0 : prevLabel.labelLine) {
20685
22434
  prevLabel.labelLine.setAttributes({ points: (_a = text.attribute) === null || _a === void 0 ? void 0 : _a.points });
@@ -20701,7 +22450,7 @@
20701
22450
  }
20702
22451
  _afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, { mode, duration, easing, to, delay }) {
20703
22452
  const listener = (event) => {
20704
- var _a;
22453
+ var _a, _b;
20705
22454
  const { detail } = event;
20706
22455
  if (!detail) {
20707
22456
  return {};
@@ -20740,7 +22489,15 @@
20740
22489
  break;
20741
22490
  case 'same-time':
20742
22491
  default:
20743
- if (detail.animationState.isFirstFrameOfStep) {
22492
+ if (this._isCollectionBase) {
22493
+ const point = this._idToPoint.get(text.attribute.id);
22494
+ if (point &&
22495
+ (!text.animates || !text.animates.has('label-animate')) &&
22496
+ this._baseMarks[0].containsPoint(point.x, point.y, IContainPointMode.LOCAL, (_b = this.stage) === null || _b === void 0 ? void 0 : _b.pickerService)) {
22497
+ text.animate({ onEnd }).wait(delay).to(to, duration, easing);
22498
+ }
22499
+ }
22500
+ else if (detail.animationState.isFirstFrameOfStep) {
20744
22501
  text.animate({ onEnd }).wait(delay).to(to, duration, easing);
20745
22502
  }
20746
22503
  break;
@@ -20765,7 +22522,7 @@
20765
22522
  if (!label) {
20766
22523
  continue;
20767
22524
  }
20768
- const baseMark = this._idToGraphic.get(label.attribute.id);
22525
+ const baseMark = this.getRelatedGrphic(label.attribute);
20769
22526
  const backgroundColor = baseMark.attribute.fill;
20770
22527
  const foregroundColor = label.attribute.fill;
20771
22528
  const baseColor = backgroundColor;
@@ -20842,56 +22599,7 @@
20842
22599
  this.name = 'symbol-label';
20843
22600
  }
20844
22601
  labeling(textBounds, graphicBounds, position = 'top', offset = 0) {
20845
- if (!textBounds) {
20846
- return;
20847
- }
20848
- const { x1, y1, x2, y2 } = textBounds;
20849
- const width = Math.abs(x2 - x1);
20850
- const height = Math.abs(y2 - y1);
20851
- const anchorX = (graphicBounds.x1 + graphicBounds.x2) / 2;
20852
- const anchorY = (graphicBounds.y1 + graphicBounds.y2) / 2;
20853
- let sx = 0;
20854
- let sy = 0;
20855
- let offsetX = 0;
20856
- let offsetY = 0;
20857
- if (graphicBounds) {
20858
- offsetX = Math.abs(graphicBounds.x1 - graphicBounds.x2) / 2;
20859
- offsetY = Math.abs(graphicBounds.y1 - graphicBounds.y2) / 2;
20860
- }
20861
- const angle = {
20862
- 'top-right': -235,
20863
- 'top-left': 235,
20864
- 'bottom-right': 45,
20865
- 'bottom-left': -45
20866
- };
20867
- switch (position) {
20868
- case 'top':
20869
- sy = -1;
20870
- break;
20871
- case 'bottom':
20872
- sy = 1;
20873
- break;
20874
- case 'left':
20875
- sx = -1;
20876
- break;
20877
- case 'right':
20878
- sx = 1;
20879
- break;
20880
- case 'bottom-left':
20881
- case 'bottom-right':
20882
- case 'top-left':
20883
- case 'top-right':
20884
- sx = Math.sin(angle[position] * (Math.PI / 180));
20885
- sy = Math.cos(angle[position] * (Math.PI / 180));
20886
- break;
20887
- case 'center':
20888
- sx = 0;
20889
- sy = 0;
20890
- break;
20891
- }
20892
- const x = anchorX + sx * (offset + offsetX) + Math.sign(sx) * (width / 2);
20893
- const y = anchorY + sy * (offset + offsetY) + Math.sign(sy) * (height / 2);
20894
- return { x, y };
22602
+ return labelingPoint(textBounds, graphicBounds, position, offset);
20895
22603
  }
20896
22604
  }
20897
22605
  SymbolLabel.defaultAttributes = {
@@ -21030,125 +22738,6 @@
21030
22738
  pickable: false
21031
22739
  };
21032
22740
 
21033
- function polarToCartesian(point) {
21034
- if (!point.radius) {
21035
- return { x: 0, y: 0 };
21036
- }
21037
- return {
21038
- x: Math.cos(point.angle) * point.radius,
21039
- y: Math.sin(point.angle) * point.radius
21040
- };
21041
- }
21042
- function circlePoint(x0, y0, radius, radian) {
21043
- const offset = polarToCartesian({
21044
- radius,
21045
- angle: radian
21046
- });
21047
- return {
21048
- x: x0 + offset.x,
21049
- y: y0 + offset.y
21050
- };
21051
- }
21052
- function computeQuadrant(angle) {
21053
- angle = normalizeAngle(angle);
21054
- if (angle > 0 && angle <= Math.PI / 2) {
21055
- return 2;
21056
- }
21057
- else if (angle > Math.PI / 2 && angle <= Math.PI) {
21058
- return 3;
21059
- }
21060
- else if (angle > Math.PI && angle <= (3 * Math.PI) / 2) {
21061
- return 4;
21062
- }
21063
- return 1;
21064
- }
21065
- function normalizeAngle(angle) {
21066
- while (angle < 0) {
21067
- angle += Math.PI * 2;
21068
- }
21069
- while (angle >= Math.PI * 2) {
21070
- angle -= Math.PI * 2;
21071
- }
21072
- return angle;
21073
- }
21074
- function isQuadrantLeft(quadrant) {
21075
- return quadrant === 3 || quadrant === 4;
21076
- }
21077
- function isQuadrantRight(quadrant) {
21078
- return quadrant === 1 || quadrant === 2;
21079
- }
21080
- function lineCirclePoints(a, b, c, x0, y0, r) {
21081
- if ((a === 0 && b === 0) || r <= 0) {
21082
- return [];
21083
- }
21084
- if (a === 0) {
21085
- const y1 = -c / b;
21086
- const fy = (y1 - y0) ** 2;
21087
- const fd = r ** 2 - fy;
21088
- if (fd < 0) {
21089
- return [];
21090
- }
21091
- else if (fd === 0) {
21092
- return [{ x: x0, y: y1 }];
21093
- }
21094
- const x1 = Math.sqrt(fd) + x0;
21095
- const x2 = -Math.sqrt(fd) + x0;
21096
- return [
21097
- { x: x1, y: y1 },
21098
- { x: x2, y: y1 }
21099
- ];
21100
- }
21101
- else if (b === 0) {
21102
- const x1 = -c / a;
21103
- const fx = (x1 - x0) ** 2;
21104
- const fd = r ** 2 - fx;
21105
- if (fd < 0) {
21106
- return [];
21107
- }
21108
- else if (fd === 0) {
21109
- return [{ x: x1, y: y0 }];
21110
- }
21111
- const y1 = Math.sqrt(fd) + y0;
21112
- const y2 = -Math.sqrt(fd) + y0;
21113
- return [
21114
- { x: x1, y: y1 },
21115
- { x: x1, y: y2 }
21116
- ];
21117
- }
21118
- const fa = (b / a) ** 2 + 1;
21119
- const fb = 2 * ((c / a + x0) * (b / a) - y0);
21120
- const fc = (c / a + x0) ** 2 + y0 ** 2 - r ** 2;
21121
- const fd = fb ** 2 - 4 * fa * fc;
21122
- if (fd < 0) {
21123
- return [];
21124
- }
21125
- const y1 = (-fb + Math.sqrt(fd)) / (2 * fa);
21126
- const y2 = (-fb - Math.sqrt(fd)) / (2 * fa);
21127
- const x1 = -(b * y1 + c) / a;
21128
- const x2 = -(b * y2 + c) / a;
21129
- if (fd === 0) {
21130
- return [{ x: x1, y: y1 }];
21131
- }
21132
- return [
21133
- { x: x1, y: y1 },
21134
- { x: x2, y: y2 }
21135
- ];
21136
- }
21137
- function connectLineRadian(radius, length) {
21138
- if (length > radius * 2) {
21139
- return NaN;
21140
- }
21141
- return Math.asin(length / 2 / radius) * 2;
21142
- }
21143
- function checkBoundsOverlap(boundsA, boundsB) {
21144
- const { x1: ax1, y1: ay1, x2: ax2, y2: ay2 } = boundsA;
21145
- const { x1: bx1, y1: by1, x2: bx2, y2: by2 } = boundsB;
21146
- return !((ax1 <= bx1 && ax2 <= bx1) ||
21147
- (ax1 >= bx2 && ax2 >= bx2) ||
21148
- (ay1 <= by1 && ay2 <= by1) ||
21149
- (ay1 >= by2 && ay2 >= by2));
21150
- }
21151
-
21152
22741
  class ArcInfo {
21153
22742
  constructor(refDatum, center, outerCenter, quadrant, radian, middleAngle, innerRadius, outerRadius, circleCenter) {
21154
22743
  this.refDatum = refDatum;
@@ -21873,10 +23462,33 @@
21873
23462
  pickable: false
21874
23463
  };
21875
23464
 
23465
+ class LineDataLabel extends LabelBase {
23466
+ constructor(attributes) {
23467
+ super(vutils.merge({}, LineDataLabel.defaultAttributes, attributes));
23468
+ this.name = 'line-data-label';
23469
+ }
23470
+ labeling(textBounds, graphicBounds, position = 'top', offset = 0) {
23471
+ return labelingPoint(textBounds, graphicBounds, position, offset);
23472
+ }
23473
+ }
23474
+ LineDataLabel.defaultAttributes = {
23475
+ textStyle: {
23476
+ fontSize: 12,
23477
+ fill: '#000',
23478
+ textAlign: 'center',
23479
+ textBaseline: 'middle',
23480
+ boundsPadding: [-1, 0, -1, 0]
23481
+ },
23482
+ position: 'top',
23483
+ offset: 5,
23484
+ pickable: false
23485
+ };
23486
+
21876
23487
  const labelComponentMap = {
21877
23488
  rect: RectLabel,
21878
23489
  symbol: SymbolLabel,
21879
- arc: ArcLabel
23490
+ arc: ArcLabel,
23491
+ 'line-data': LineDataLabel
21880
23492
  };
21881
23493
  class DataLabel extends AbstractComponent {
21882
23494
  constructor(attributes) {
@@ -24209,6 +25821,7 @@
24209
25821
  };
24210
25822
  this._statePointToData = state => state;
24211
25823
  this._onHandlerPointerDown = (e, tag) => {
25824
+ e.stopPropagation();
24212
25825
  if (tag === 'start') {
24213
25826
  this._activeTag = DataZoomActiveTag.startHandler;
24214
25827
  this._activeItem = this._startHandler;
@@ -24234,6 +25847,7 @@
24234
25847
  this._activeCache.lastPos = this.eventPosToStagePos(e);
24235
25848
  };
24236
25849
  this._onHandlerPointerMove = (e) => {
25850
+ e.stopPropagation();
24237
25851
  const { start, end, brushSelect } = this.attribute;
24238
25852
  const pos = this.eventPosToStagePos(e);
24239
25853
  const { attPos, max } = this._layoutCache;
@@ -24365,6 +25979,7 @@
24365
25979
  };
24366
25980
  }
24367
25981
  _onHandlerPointerUp(e) {
25982
+ e.preventDefault();
24368
25983
  const { start, end, brushSelect } = this.attribute;
24369
25984
  if (this._activeState) {
24370
25985
  if (this._activeTag === DataZoomActiveTag.background) {
@@ -24384,10 +25999,12 @@
24384
25999
  }
24385
26000
  }
24386
26001
  _onHandlerPointerEnter(e) {
26002
+ e.stopPropagation();
24387
26003
  this._showText = true;
24388
26004
  this.renderText();
24389
26005
  }
24390
26006
  _onHandlerPointerLeave(e) {
26007
+ e.stopPropagation();
24391
26008
  this._showText = false;
24392
26009
  this.renderText();
24393
26010
  }
@@ -27537,7 +29154,7 @@
27537
29154
  }
27538
29155
  if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign)) {
27539
29156
  const mainTitleVerticalAlign = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign : verticalAlign;
27540
- const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleWidth;
29157
+ const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleHeight;
27541
29158
  if (mainTitleVerticalAlign === 'top') {
27542
29159
  (_18 = this._mainTitle) === null || _18 === void 0 ? void 0 : _18.setAttribute('y', 0);
27543
29160
  (_19 = this._mainTitle) === null || _19 === void 0 ? void 0 : _19.setAttribute('textBaseline', 'top');
@@ -28650,6 +30267,7 @@
28650
30267
  if (this._outOfInteractiveRange(e)) {
28651
30268
  return;
28652
30269
  }
30270
+ e.stopPropagation();
28653
30271
  const brushMoved = (_b = (_a = this.attribute) === null || _a === void 0 ? void 0 : _a.brushMoved) !== null && _b !== void 0 ? _b : true;
28654
30272
  this._activeMoveState = brushMoved && this._isPosInBrushMask(e);
28655
30273
  this._activeDrawState = !this._activeMoveState;
@@ -28660,11 +30278,13 @@
28660
30278
  if (this._outOfInteractiveRange(e)) {
28661
30279
  return;
28662
30280
  }
30281
+ e.stopPropagation();
28663
30282
  this._activeDrawState && this._drawing(e);
28664
30283
  this._activeMoveState && this._moving(e);
28665
30284
  };
28666
30285
  this._onBrushEnd = (e) => {
28667
30286
  var _a;
30287
+ e.preventDefault();
28668
30288
  const { removeOnClick = true } = this.attribute;
28669
30289
  if (this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick) {
28670
30290
  this._container.incrementalClearChild();
@@ -29447,7 +31067,7 @@
29447
31067
  }
29448
31068
  };
29449
31069
 
29450
- const version = "0.16.2";
31070
+ const version = "0.16.3";
29451
31071
 
29452
31072
  exports.AbstractComponent = AbstractComponent;
29453
31073
  exports.ArcInfo = ArcInfo;
@@ -29481,6 +31101,7 @@
29481
31101
  exports.LineAxis = LineAxis;
29482
31102
  exports.LineAxisGrid = LineAxisGrid;
29483
31103
  exports.LineCrosshair = LineCrosshair;
31104
+ exports.LineDataLabel = LineDataLabel;
29484
31105
  exports.LineLabel = LineLabel;
29485
31106
  exports.LinkPath = LinkPath;
29486
31107
  exports.MarkArea = MarkArea;