@visactor/vrender-components 0.16.2-alpha.0 → 0.16.2-alpha.1

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 (61) hide show
  1. package/cjs/checkbox/checkbox.d.ts +17 -0
  2. package/cjs/checkbox/checkbox.js +102 -0
  3. package/cjs/checkbox/checkbox.js.map +1 -0
  4. package/cjs/checkbox/index.d.ts +2 -0
  5. package/cjs/checkbox/index.js +21 -0
  6. package/cjs/checkbox/index.js.map +1 -0
  7. package/cjs/checkbox/type.d.ts +22 -0
  8. package/cjs/checkbox/type.js +5 -0
  9. package/cjs/checkbox/type.js.map +1 -0
  10. package/cjs/crosshair/polygon.js +2 -1
  11. package/cjs/index.d.ts +2 -1
  12. package/cjs/index.js +2 -2
  13. package/cjs/index.js.map +1 -1
  14. package/cjs/indicator/index.js +1 -2
  15. package/cjs/jsx/component-type.js +2 -1
  16. package/cjs/legend/constant.js +1 -2
  17. package/cjs/link-path/index.js +2 -1
  18. package/cjs/marker/config.js +1 -1
  19. package/cjs/marker/index.js +1 -1
  20. package/cjs/marker/line.js +1 -1
  21. package/cjs/poptip/poptip-plugin.d.ts +1 -0
  22. package/cjs/poptip/poptip-plugin.js +6 -3
  23. package/cjs/poptip/poptip-plugin.js.map +1 -1
  24. package/cjs/scrollbar/scrollbar.js +5 -3
  25. package/cjs/scrollbar/scrollbar.js.map +1 -1
  26. package/cjs/slider/slider.js +5 -3
  27. package/cjs/slider/slider.js.map +1 -1
  28. package/cjs/title/title.js +1 -1
  29. package/cjs/title/title.js.map +1 -1
  30. package/dist/index.js +1930 -277
  31. package/dist/index.min.js +1 -1
  32. package/es/checkbox/checkbox.d.ts +17 -0
  33. package/es/checkbox/checkbox.js +99 -0
  34. package/es/checkbox/checkbox.js.map +1 -0
  35. package/es/checkbox/index.d.ts +2 -0
  36. package/es/checkbox/index.js +4 -0
  37. package/es/checkbox/index.js.map +1 -0
  38. package/es/checkbox/type.d.ts +22 -0
  39. package/es/checkbox/type.js +1 -0
  40. package/es/checkbox/type.js.map +1 -0
  41. package/es/crosshair/polygon.js +2 -1
  42. package/es/index.d.ts +2 -1
  43. package/es/index.js +3 -1
  44. package/es/index.js.map +1 -1
  45. package/es/indicator/index.js +1 -2
  46. package/es/jsx/component-type.js +2 -1
  47. package/es/legend/constant.js +1 -2
  48. package/es/link-path/index.js +2 -1
  49. package/es/marker/config.js +1 -1
  50. package/es/marker/index.js +1 -1
  51. package/es/marker/line.js +1 -1
  52. package/es/poptip/poptip-plugin.d.ts +1 -0
  53. package/es/poptip/poptip-plugin.js +6 -3
  54. package/es/poptip/poptip-plugin.js.map +1 -1
  55. package/es/scrollbar/scrollbar.js +5 -3
  56. package/es/scrollbar/scrollbar.js.map +1 -1
  57. package/es/slider/slider.js +5 -3
  58. package/es/slider/slider.js.map +1 -1
  59. package/es/title/title.js +1 -1
  60. package/es/title/title.js.map +1 -1
  61. 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
  };
@@ -3017,7 +3017,7 @@
3017
3017
  }]);
3018
3018
  return DefaultGlobal;
3019
3019
  }();
3020
- DefaultGlobal = __decorate$R([injectable(), __param$n(0, inject(ContributionProvider)), __param$n(0, named(EnvContribution)), __metadata$n("design:paramtypes", [Object])], DefaultGlobal);
3020
+ DefaultGlobal = __decorate$X([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(EnvContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGlobal);
3021
3021
 
3022
3022
  var circleThreshold = vutils.tau - 1e-8;
3023
3023
  var BoundsContext = /*#__PURE__*/function () {
@@ -3795,10 +3795,10 @@
3795
3795
  value: function lineEnd() {
3796
3796
  switch (this._point) {
3797
3797
  case 2:
3798
- this.context.lineTo(this._x1, this._y1, !1 !== this._lastDefined2, this.lastPoint1);
3798
+ this.context.lineTo(this._x1, this._y1, !1 !== this._lastDefined1 && !1 !== this._lastDefined2, this.lastPoint1);
3799
3799
  break;
3800
3800
  case 3:
3801
- _point(this, this._t0, slope2(this, this._t0), !1 !== this._lastDefined2, this.lastPoint1);
3801
+ _point(this, this._t0, slope2(this, this._t0), !1 !== this._lastDefined1 && !1 !== this._lastDefined2, this.lastPoint1);
3802
3802
  }
3803
3803
  (this._line || 0 !== this._line && 1 === this._point) && this.context.closePath(), this._line = 1 - this._line;
3804
3804
  }
@@ -4737,7 +4737,7 @@
4737
4737
  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
4738
  }
4739
4739
 
4740
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4740
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4741
4741
  var d,
4742
4742
  c = arguments.length,
4743
4743
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4943,9 +4943,9 @@
4943
4943
  }]);
4944
4944
  return ATextMeasure;
4945
4945
  }();
4946
- ATextMeasure = __decorate$Q([injectable()], ATextMeasure);
4946
+ ATextMeasure = __decorate$W([injectable()], ATextMeasure);
4947
4947
 
4948
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4948
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4949
4949
  var d,
4950
4950
  c = arguments.length,
4951
4951
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4962,7 +4962,7 @@
4962
4962
  }
4963
4963
  return _createClass(DefaultTextMeasureContribution);
4964
4964
  }(ATextMeasure);
4965
- DefaultTextMeasureContribution = __decorate$P([injectable()], DefaultTextMeasureContribution);
4965
+ DefaultTextMeasureContribution = __decorate$V([injectable()], DefaultTextMeasureContribution);
4966
4966
 
4967
4967
  var container = new Container();
4968
4968
 
@@ -4971,18 +4971,376 @@
4971
4971
  function wrapCanvas(params) {
4972
4972
  return container.getNamed(CanvasFactory, application.global.env)(params);
4973
4973
  }
4974
+ var EPSILON_NUMERIC = 1e-4,
4975
+ THREE_SQRT = Math.sqrt(3),
4976
+ ONE_THIRD = 1 / 3;
4977
+ function isAroundZero(val) {
4978
+ return val > -EPSILON && val < EPSILON;
4979
+ }
4980
+ function isNotAroundZero(val) {
4981
+ return val > EPSILON || val < -EPSILON;
4982
+ }
4983
+ var _v0 = [0, 0],
4984
+ _v1 = [0, 0],
4985
+ _v2 = [0, 0];
4986
+ function distanceSquare(v1, v2) {
4987
+ return (v1[0] - v2[0]) * (v1[0] - v2[0]) + (v1[1] - v2[1]) * (v1[1] - v2[1]);
4988
+ }
4989
+ function quadraticAt(p0, p1, p2, t) {
4990
+ var onet = 1 - t;
4991
+ return onet * (onet * p0 + 2 * t * p1) + t * t * p2;
4992
+ }
4993
+ function cubicAt(p0, p1, p2, p3, t) {
4994
+ var onet = 1 - t;
4995
+ return onet * onet * (onet * p0 + 3 * t * p1) + t * t * (t * p3 + 3 * onet * p2);
4996
+ }
4997
+ function quadraticRootAt(p0, p1, p2, val, roots) {
4998
+ var a = p0 - 2 * p1 + p2,
4999
+ b = 2 * (p1 - p0),
5000
+ c = p0 - val;
5001
+ var n = 0;
5002
+ if (isAroundZero(a)) {
5003
+ if (isNotAroundZero(b)) {
5004
+ var t1 = -c / b;
5005
+ t1 >= 0 && t1 <= 1 && (roots[n++] = t1);
5006
+ }
5007
+ } else {
5008
+ var disc = b * b - 4 * a * c;
5009
+ if (isAroundZero(disc)) {
5010
+ var _t2 = -b / (2 * a);
5011
+ _t2 >= 0 && _t2 <= 1 && (roots[n++] = _t2);
5012
+ } else if (disc > 0) {
5013
+ var discSqrt = Math.sqrt(disc),
5014
+ _t3 = (-b + discSqrt) / (2 * a),
5015
+ t2 = (-b - discSqrt) / (2 * a);
5016
+ _t3 >= 0 && _t3 <= 1 && (roots[n++] = _t3), t2 >= 0 && t2 <= 1 && (roots[n++] = t2);
5017
+ }
5018
+ }
5019
+ return n;
5020
+ }
5021
+ function quadraticExtremum(p0, p1, p2) {
5022
+ var divider = p0 + p2 - 2 * p1;
5023
+ return 0 === divider ? .5 : (p0 - p1) / divider;
5024
+ }
5025
+ function quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, out) {
5026
+ var t = 0,
5027
+ interval = .005,
5028
+ d = 1 / 0;
5029
+ _v0[0] = x, _v0[1] = y;
5030
+ for (var _t = 0; _t < 1; _t += .05) {
5031
+ _v1[0] = quadraticAt(x0, x1, x2, _t), _v1[1] = quadraticAt(y0, y1, y2, _t);
5032
+ var d1 = distanceSquare(_v0, _v1);
5033
+ d1 < d && (t = _t, d = d1);
5034
+ }
5035
+ d = 1 / 0;
5036
+ for (var i = 0; i < 32 && !(interval < EPSILON_NUMERIC); i++) {
5037
+ var prev = t - interval,
5038
+ next = t + interval;
5039
+ _v1[0] = quadraticAt(x0, x1, x2, prev), _v1[1] = quadraticAt(y0, y1, y2, prev);
5040
+ var _d = distanceSquare(_v1, _v0);
5041
+ if (prev >= 0 && _d < d) t = prev, d = _d;else {
5042
+ _v2[0] = quadraticAt(x0, x1, x2, next), _v2[1] = quadraticAt(y0, y1, y2, next);
5043
+ var d2 = distanceSquare(_v2, _v0);
5044
+ next <= 1 && d2 < d ? (t = next, d = d2) : interval *= .5;
5045
+ }
5046
+ }
5047
+ return out && (out[0] = quadraticAt(x0, x1, x2, t), out[1] = quadraticAt(y0, y1, y2, t)), Math.sqrt(d);
5048
+ }
5049
+ function cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, out) {
5050
+ var prev,
5051
+ next,
5052
+ d1,
5053
+ d2,
5054
+ t = 0,
5055
+ interval = .005,
5056
+ d = 1 / 0;
5057
+ _v0[0] = x, _v0[1] = y;
5058
+ 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);
5059
+ d = 1 / 0;
5060
+ 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);
5061
+ return out && (out[0] = cubicAt(x0, x1, x2, x3, t), out[1] = cubicAt(y0, y1, y2, y3, t)), Math.sqrt(d);
5062
+ }
5063
+ function normalizeRadian(angle) {
5064
+ return (angle %= vutils.pi2) < 0 && (angle += vutils.pi2), angle;
5065
+ }
5066
+ function windingLine(x0, y0, x1, y1, x, y) {
5067
+ if (y > y0 && y > y1 || y < y0 && y < y1) return 0;
5068
+ if (y1 === y0) return 0;
5069
+ var t = (y - y0) / (y1 - y0);
5070
+ var dir = y1 < y0 ? 1 : -1;
5071
+ 1 !== t && 0 !== t || (dir = y1 < y0 ? .5 : -.5);
5072
+ var x_ = t * (x1 - x0) + x0;
5073
+ return x_ === x ? 1 / 0 : x_ > x ? dir : 0;
5074
+ }
5075
+ function containQuadStroke(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
5076
+ if (0 === lineWidth) return !1;
5077
+ var _l = lineWidth;
5078
+ 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;
5079
+ return quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, null) <= _l / 2;
5080
+ }
5081
+ function containCubicStroke(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
5082
+ if (0 === lineWidth) return !1;
5083
+ var _l = lineWidth;
5084
+ 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;
5085
+ return cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, null) <= _l / 2;
5086
+ }
5087
+ function containArcStroke(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
5088
+ if (0 === lineWidth) return !1;
5089
+ var _l = lineWidth;
5090
+ x -= cx, y -= cy;
5091
+ var d = Math.sqrt(x * x + y * y);
5092
+ if (d - _l > r || d + _l < r) return !1;
5093
+ if (Math.abs(startAngle - endAngle) % vutils.pi2 < 1e-4) return !0;
5094
+ if (anticlockwise) {
5095
+ var tmp = startAngle;
5096
+ startAngle = normalizeRadian(endAngle), endAngle = normalizeRadian(tmp);
5097
+ } else startAngle = normalizeRadian(startAngle), endAngle = normalizeRadian(endAngle);
5098
+ startAngle > endAngle && (endAngle += vutils.pi2);
5099
+ var angle = Math.atan2(y, x);
5100
+ return angle < 0 && (angle += vutils.pi2), angle >= startAngle && angle <= endAngle || angle + vutils.pi2 >= startAngle && angle + vutils.pi2 <= endAngle;
5101
+ }
5102
+ function containLineStroke(x0, y0, x1, y1, lineWidth, x, y) {
5103
+ if (0 === lineWidth) return !1;
5104
+ var _l = lineWidth,
5105
+ _halfL = lineWidth / 2;
5106
+ var _a = 0,
5107
+ _b = x0;
5108
+ 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;
5109
+ if (x0 === x1) return Math.abs(x - x0) <= _l / 2;
5110
+ _a = (y0 - y1) / (x0 - x1), _b = (x0 * y1 - x1 * y0) / (x0 - x1);
5111
+ var tmp = _a * x - y + _b;
5112
+ return tmp * tmp / (_a * _a + 1) <= _l / 2 * _l / 2;
5113
+ }
5114
+ var EPSILON = 1e-4;
5115
+ function cubicRootAt(p0, p1, p2, p3, val, roots) {
5116
+ var a = p3 + 3 * (p1 - p2) - p0,
5117
+ b = 3 * (p2 - 2 * p1 + p0),
5118
+ c = 3 * (p1 - p0),
5119
+ d = p0 - val,
5120
+ A = b * b - 3 * a * c,
5121
+ B = b * c - 9 * a * d,
5122
+ C = c * c - 3 * b * d;
5123
+ var n = 0;
5124
+ if (isAroundZero(A) && isAroundZero(B)) {
5125
+ if (isAroundZero(b)) roots[0] = 0;else {
5126
+ var t1 = -c / b;
5127
+ t1 >= 0 && t1 <= 1 && (roots[n++] = t1);
5128
+ }
5129
+ } else {
5130
+ var disc = B * B - 4 * A * C;
5131
+ if (isAroundZero(disc)) {
5132
+ var K = B / A,
5133
+ _t4 = -b / a + K,
5134
+ t2 = -K / 2;
5135
+ _t4 >= 0 && _t4 <= 1 && (roots[n++] = _t4), t2 >= 0 && t2 <= 1 && (roots[n++] = t2);
5136
+ } else if (disc > 0) {
5137
+ var discSqrt = Math.sqrt(disc);
5138
+ var Y1 = A * b + 1.5 * a * (-B + discSqrt),
5139
+ Y2 = A * b + 1.5 * a * (-B - discSqrt);
5140
+ 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);
5141
+ var _t5 = (-b - (Y1 + Y2)) / (3 * a);
5142
+ _t5 >= 0 && _t5 <= 1 && (roots[n++] = _t5);
5143
+ } else {
5144
+ var T = (2 * A * b - 3 * a * B) / (2 * Math.sqrt(A * A * A)),
5145
+ theta = Math.acos(T) / 3,
5146
+ ASqrt = Math.sqrt(A),
5147
+ tmp = Math.cos(theta),
5148
+ _t6 = (-b - 2 * ASqrt * tmp) / (3 * a),
5149
+ _t7 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a),
5150
+ t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);
5151
+ _t6 >= 0 && _t6 <= 1 && (roots[n++] = _t6), _t7 >= 0 && _t7 <= 1 && (roots[n++] = _t7), t3 >= 0 && t3 <= 1 && (roots[n++] = t3);
5152
+ }
5153
+ }
5154
+ return n;
5155
+ }
5156
+ function cubicExtrema(p0, p1, p2, p3, extrema) {
5157
+ var b = 6 * p2 - 12 * p1 + 6 * p0,
5158
+ a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2,
5159
+ c = 3 * p1 - 3 * p0;
5160
+ var n = 0;
5161
+ if (isAroundZero(a)) {
5162
+ if (isNotAroundZero(b)) {
5163
+ var t1 = -c / b;
5164
+ t1 >= 0 && t1 <= 1 && (extrema[n++] = t1);
5165
+ }
5166
+ } else {
5167
+ var disc = b * b - 4 * a * c;
5168
+ if (isAroundZero(disc)) extrema[0] = -b / (2 * a);else if (disc > 0) {
5169
+ var discSqrt = Math.sqrt(disc),
5170
+ _t8 = (-b + discSqrt) / (2 * a),
5171
+ t2 = (-b - discSqrt) / (2 * a);
5172
+ _t8 >= 0 && _t8 <= 1 && (extrema[n++] = _t8), t2 >= 0 && t2 <= 1 && (extrema[n++] = t2);
5173
+ }
5174
+ }
5175
+ return n;
5176
+ }
5177
+ function isAroundEqual(a, b) {
5178
+ return Math.abs(a - b) < EPSILON;
5179
+ }
5180
+ var roots = [-1, -1, -1],
5181
+ extrema = [-1, -1];
5182
+ function swapExtrema() {
5183
+ var tmp = extrema[0];
5184
+ extrema[0] = extrema[1], extrema[1] = tmp;
5185
+ }
5186
+ function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
5187
+ if (y > y0 && y > y1 && y > y2 && y > y3 || y < y0 && y < y1 && y < y2 && y < y3) return 0;
5188
+ var nRoots = cubicRootAt(y0, y1, y2, y3, y, roots);
5189
+ if (0 === nRoots) return 0;
5190
+ var w = 0,
5191
+ nExtrema = -1,
5192
+ y0_ = 0,
5193
+ y1_ = 0;
5194
+ for (var i = 0; i < nRoots; i++) {
5195
+ var t = roots[i],
5196
+ unit = 0 === t || 1 === t ? .5 : 1;
5197
+ 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);
5198
+ }
5199
+ return w;
5200
+ }
5201
+ function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {
5202
+ if (y > y0 && y > y1 && y > y2 || y < y0 && y < y1 && y < y2) return 0;
5203
+ var nRoots = quadraticRootAt(y0, y1, y2, y, roots);
5204
+ if (0 === nRoots) return 0;
5205
+ var t = quadraticExtremum(y0, y1, y2);
5206
+ if (t >= 0 && t <= 1) {
5207
+ var w = 0;
5208
+ var y_ = quadraticAt(y0, y1, y2, t);
5209
+ for (var i = 0; i < nRoots; i++) {
5210
+ var _unit = 0 === roots[i] || 1 === roots[i] ? .5 : 1;
5211
+ quadraticAt(x0, x1, x2, roots[i]) < x || (roots[i] < t ? w += y_ < y0 ? _unit : -_unit : w += y2 < y_ ? _unit : -_unit);
5212
+ }
5213
+ return w;
5214
+ }
5215
+ var unit = 0 === roots[0] || 1 === roots[0] ? .5 : 1;
5216
+ return quadraticAt(x0, x1, x2, roots[0]) < x ? 0 : y2 < y0 ? unit : -unit;
5217
+ }
5218
+ function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
5219
+ if ((y -= cy) > r || y < -r) return 0;
5220
+ var tmp = Math.sqrt(r * r - y * y);
5221
+ roots[0] = -tmp, roots[1] = tmp;
5222
+ var dTheta = Math.abs(startAngle - endAngle);
5223
+ if (dTheta < 1e-4) return 0;
5224
+ if (dTheta >= vutils.pi2 - 1e-4) {
5225
+ startAngle = 0, endAngle = vutils.pi2;
5226
+ var dir = anticlockwise ? 1 : -1;
5227
+ return x >= roots[0] + cx && x <= roots[1] + cx ? dir : 0;
5228
+ }
5229
+ if (startAngle > endAngle) {
5230
+ var _tmp = startAngle;
5231
+ startAngle = endAngle, endAngle = _tmp;
5232
+ }
5233
+ startAngle < 0 && (startAngle += vutils.pi2, endAngle += vutils.pi2);
5234
+ var w = 0;
5235
+ for (var i = 0; i < 2; i++) {
5236
+ var x_ = roots[i];
5237
+ if (x_ + cx > x) {
5238
+ var angle = Math.atan2(y, x_),
5239
+ _dir = anticlockwise ? 1 : -1;
5240
+ 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);
5241
+ }
5242
+ }
5243
+ return w;
5244
+ }
5245
+ function modpi2(radian) {
5246
+ return Math.round(radian / vutils.pi * 1e8) / 1e8 % 2 * vutils.pi;
5247
+ }
5248
+ function normalizeArcAngles(angles, anticlockwise) {
5249
+ var newStartAngle = modpi2(angles[0]);
5250
+ newStartAngle < 0 && (newStartAngle += vutils.pi2);
5251
+ var delta = newStartAngle - angles[0];
5252
+ var newEndAngle = angles[1];
5253
+ 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;
5254
+ }
5255
+ var tmpAngles = [0, 0];
5256
+ function containPath(commands, lineWidth, isStroke, x, y) {
5257
+ var data = commands,
5258
+ len = commands.length;
5259
+ var x1,
5260
+ y1,
5261
+ w = 0,
5262
+ xi = 0,
5263
+ yi = 0,
5264
+ x0 = 0,
5265
+ y0 = 0;
5266
+ for (var i = 0; i < len; i++) {
5267
+ var command = data[i],
5268
+ isFirst = 0 === i;
5269
+ 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);
5270
+ var c0 = command[0],
5271
+ c1 = command[1],
5272
+ c2 = command[2],
5273
+ c3 = command[3],
5274
+ c4 = command[4],
5275
+ c5 = command[5],
5276
+ c6 = command[6];
5277
+ var startAngle = c4,
5278
+ endAngle = c5;
5279
+ tmpAngles[0] = startAngle, tmpAngles[1] = endAngle, normalizeArcAngles(tmpAngles, Boolean(command[6])), startAngle = tmpAngles[0], endAngle = tmpAngles[1];
5280
+ var theta = startAngle,
5281
+ dTheta = endAngle - startAngle,
5282
+ anticlockwise = !!(1 - (command[6] ? 0 : 1)),
5283
+ _x = (x - c1) * c3 / c3 + c1;
5284
+ switch (c0) {
5285
+ case enumCommandMap.M:
5286
+ x0 = c1, y0 = c2, xi = x0, yi = y0;
5287
+ break;
5288
+ case enumCommandMap.L:
5289
+ if (isStroke) {
5290
+ if (containLineStroke(xi, yi, c1, c2, lineWidth, x, y)) return !0;
5291
+ } else w += windingLine(xi, yi, c1, c2, x, y) || 0;
5292
+ xi = c1, yi = c2;
5293
+ break;
5294
+ case enumCommandMap.C:
5295
+ if (isStroke) {
5296
+ if (containCubicStroke(xi, yi, c1, c2, c3, c4, c5, c6, lineWidth, x, y)) return !0;
5297
+ } else w += windingCubic(xi, yi, c1, c2, c3, c4, c5, c6, x, y) || 0;
5298
+ xi = c5, yi = c6;
5299
+ break;
5300
+ case enumCommandMap.Q:
5301
+ if (isStroke) {
5302
+ if (containQuadStroke(xi, yi, c1, c2, c3, c4, lineWidth, x, y)) return !0;
5303
+ } else w += windingQuadratic(xi, yi, c1, c2, c3, c4, x, y) || 0;
5304
+ xi = c3, yi = c4;
5305
+ break;
5306
+ case enumCommandMap.A:
5307
+ 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) {
5308
+ if (containArcStroke(c1, c2, c3, theta, theta + dTheta, anticlockwise, lineWidth, _x, y)) return !0;
5309
+ } else w += windingArc(c1, c2, c3, theta, theta + dTheta, anticlockwise, _x, y);
5310
+ xi = Math.cos(theta + dTheta) * c3 + c1, yi = Math.sin(theta + dTheta) * c3 + c2;
5311
+ break;
5312
+ case enumCommandMap.R:
5313
+ if (x0 = xi = c1, y0 = yi = c2, x1 = x0 + c3, y1 = y0 + c4, isStroke) {
5314
+ 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;
5315
+ } else w += windingLine(x1, y0, x1, y1, x, y), w += windingLine(x0, y1, x0, y0, x, y);
5316
+ break;
5317
+ case enumCommandMap.Z:
5318
+ if (isStroke) {
5319
+ if (containLineStroke(xi, yi, x0, y0, lineWidth, x, y)) return !0;
5320
+ } else w += windingLine(xi, yi, x0, y0, x, y);
5321
+ xi = x0, yi = y0;
5322
+ }
5323
+ }
5324
+ return isStroke || isAroundEqual(yi, y0) || (w += windingLine(xi, yi, x0, y0, x, y) || 0), 0 !== w;
5325
+ }
5326
+ function contain(commands, x, y) {
5327
+ return containPath(commands, 0, !1, x, y);
5328
+ }
5329
+ function containStroke(commands, lineWidth, x, y) {
5330
+ return containPath(commands, lineWidth, !0, x, y);
5331
+ }
4974
5332
 
4975
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5333
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4976
5334
  var d,
4977
5335
  c = arguments.length,
4978
5336
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
4979
5337
  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
5338
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4981
5339
  },
4982
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
5340
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
4983
5341
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
4984
5342
  },
4985
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
5343
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
4986
5344
  return function (target, key) {
4987
5345
  decorator(target, key, paramIndex);
4988
5346
  };
@@ -5053,7 +5411,7 @@
5053
5411
  }]);
5054
5412
  return DefaultGraphicUtil;
5055
5413
  }();
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);
5414
+ 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
5415
  var TransformMode;
5058
5416
  !function (TransformMode) {
5059
5417
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -5130,7 +5488,7 @@
5130
5488
  }]);
5131
5489
  return DefaultTransformUtil;
5132
5490
  }();
5133
- DefaultTransformUtil = __decorate$O([injectable(), __metadata$m("design:paramtypes", [])], DefaultTransformUtil);
5491
+ DefaultTransformUtil = __decorate$U([injectable(), __metadata$q("design:paramtypes", [])], DefaultTransformUtil);
5134
5492
 
5135
5493
  var defaultThemeObj = {
5136
5494
  arc: DefaultArcAttribute,
@@ -5916,6 +6274,8 @@
5916
6274
  return _createClass(CustomEvent);
5917
6275
  }(FederatedEvent);
5918
6276
 
6277
+ "object" == (typeof performance === "undefined" ? "undefined" : _typeof(performance)) && performance.now ? performance : Date;
6278
+
5919
6279
  var EventTarget = {
5920
6280
  pickable: !0,
5921
6281
  visible: !0,
@@ -5929,6 +6289,292 @@
5929
6289
  }
5930
6290
  };
5931
6291
 
6292
+ var ManualTickHandler = /*#__PURE__*/function () {
6293
+ function ManualTickHandler() {
6294
+ _classCallCheck(this, ManualTickHandler);
6295
+ this.time = 0;
6296
+ }
6297
+ _createClass(ManualTickHandler, [{
6298
+ key: "avaliable",
6299
+ value: function avaliable() {
6300
+ return ManualTickHandler.Avaliable();
6301
+ }
6302
+ }, {
6303
+ key: "tick",
6304
+ value: function tick(interval, cb) {
6305
+ this.time = Math.max(0, interval + this.time), cb(this, {
6306
+ once: !0
6307
+ });
6308
+ }
6309
+ }, {
6310
+ key: "tickTo",
6311
+ value: function tickTo(t, cb) {
6312
+ this.time = Math.max(0, t), cb(this, {
6313
+ once: !0
6314
+ });
6315
+ }
6316
+ }, {
6317
+ key: "release",
6318
+ value: function release() {
6319
+ this.timerId > 0 && (this.timerId = -1);
6320
+ }
6321
+ }, {
6322
+ key: "getTime",
6323
+ value: function getTime() {
6324
+ return this.time;
6325
+ }
6326
+ }], [{
6327
+ key: "Avaliable",
6328
+ value: function Avaliable() {
6329
+ return !0;
6330
+ }
6331
+ }]);
6332
+ return ManualTickHandler;
6333
+ }();
6334
+ var TimeOutTickHandler = /*#__PURE__*/function () {
6335
+ function TimeOutTickHandler() {
6336
+ _classCallCheck(this, TimeOutTickHandler);
6337
+ }
6338
+ _createClass(TimeOutTickHandler, [{
6339
+ key: "avaliable",
6340
+ value: function avaliable() {
6341
+ return TimeOutTickHandler.Avaliable();
6342
+ }
6343
+ }, {
6344
+ key: "tick",
6345
+ value: function tick(interval, cb) {
6346
+ var _this = this;
6347
+ this.timerId = setTimeout(function () {
6348
+ cb(_this);
6349
+ }, interval);
6350
+ }
6351
+ }, {
6352
+ key: "release",
6353
+ value: function release() {
6354
+ this.timerId > 0 && (clearTimeout(this.timerId), this.timerId = -1);
6355
+ }
6356
+ }, {
6357
+ key: "getTime",
6358
+ value: function getTime() {
6359
+ return Date.now();
6360
+ }
6361
+ }], [{
6362
+ key: "Avaliable",
6363
+ value: function Avaliable() {
6364
+ return !0;
6365
+ }
6366
+ }]);
6367
+ return TimeOutTickHandler;
6368
+ }();
6369
+ var RAFTickHandler = /*#__PURE__*/function () {
6370
+ function RAFTickHandler() {
6371
+ _classCallCheck(this, RAFTickHandler);
6372
+ }
6373
+ _createClass(RAFTickHandler, [{
6374
+ key: "avaliable",
6375
+ value: function avaliable() {
6376
+ return RAFTickHandler.Avaliable();
6377
+ }
6378
+ }, {
6379
+ key: "tick",
6380
+ value: function tick(interval, cb) {
6381
+ var _this2 = this;
6382
+ application.global.getRequestAnimationFrame()(function () {
6383
+ _this2.released || cb(_this2);
6384
+ });
6385
+ }
6386
+ }, {
6387
+ key: "release",
6388
+ value: function release() {
6389
+ this.released = !0;
6390
+ }
6391
+ }, {
6392
+ key: "getTime",
6393
+ value: function getTime() {
6394
+ return Date.now();
6395
+ }
6396
+ }], [{
6397
+ key: "Avaliable",
6398
+ value: function Avaliable() {
6399
+ return !!application.global.getRequestAnimationFrame();
6400
+ }
6401
+ }]);
6402
+ return RAFTickHandler;
6403
+ }();
6404
+ var STATUS$1;
6405
+ !function (STATUS) {
6406
+ STATUS[STATUS.INITIAL = 0] = "INITIAL", STATUS[STATUS.RUNNING = 1] = "RUNNING", STATUS[STATUS.PAUSE = 2] = "PAUSE";
6407
+ }(STATUS$1 || (STATUS$1 = {}));
6408
+ var DefaultTicker = /*#__PURE__*/function () {
6409
+ function DefaultTicker() {
6410
+ var _this3 = this;
6411
+ var timelines = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
6412
+ _classCallCheck(this, DefaultTicker);
6413
+ this.handleTick = function (handler, params) {
6414
+ var _ref = null != params ? params : {},
6415
+ _ref$once = _ref.once,
6416
+ once = _ref$once === void 0 ? !1 : _ref$once;
6417
+ _this3.ifCanStop() ? _this3.stop() : (_this3._handlerTick(handler), once || handler.tick(_this3.interval, _this3.handleTick));
6418
+ }, this._handlerTick = function (handler) {
6419
+ var time = _this3.tickerHandler.getTime();
6420
+ var delta = 0;
6421
+ _this3.lastFrameTime >= 0 && (delta = time - _this3.lastFrameTime), _this3.lastFrameTime = time, _this3.status === STATUS$1.RUNNING && (_this3.tickCounts++, _this3.timelines.forEach(function (t) {
6422
+ t.tick(delta);
6423
+ }));
6424
+ }, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.timelines = timelines, this.autoStop = !0;
6425
+ }
6426
+ _createClass(DefaultTicker, [{
6427
+ key: "mode",
6428
+ get: function get() {
6429
+ return this._mode;
6430
+ },
6431
+ set: function set(m) {
6432
+ this._mode !== m && (this._mode = m, this.setupTickHandler());
6433
+ }
6434
+ }, {
6435
+ key: "init",
6436
+ value: function init() {
6437
+ var _this4 = this;
6438
+ this.interval = NaN, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("window", function () {
6439
+ _this4.initHandler();
6440
+ }), application.global.env && this.initHandler();
6441
+ }
6442
+ }, {
6443
+ key: "addTimeline",
6444
+ value: function addTimeline(timeline) {
6445
+ this.timelines.push(timeline);
6446
+ }
6447
+ }, {
6448
+ key: "remTimeline",
6449
+ value: function remTimeline(timeline) {
6450
+ this.timelines = this.timelines.filter(function (t) {
6451
+ return t !== timeline;
6452
+ });
6453
+ }
6454
+ }, {
6455
+ key: "initHandler",
6456
+ value: function initHandler() {
6457
+ if (this._mode) return null;
6458
+ var ticks = [{
6459
+ mode: "raf",
6460
+ cons: RAFTickHandler
6461
+ }, {
6462
+ mode: "timeout",
6463
+ cons: TimeOutTickHandler
6464
+ }, {
6465
+ mode: "manual",
6466
+ cons: ManualTickHandler
6467
+ }];
6468
+ for (var i = 0; i < ticks.length; i++) if (ticks[i].cons.Avaliable()) {
6469
+ this.mode = ticks[i].mode;
6470
+ break;
6471
+ }
6472
+ return null;
6473
+ }
6474
+ }, {
6475
+ key: "setupTickHandler",
6476
+ value: function setupTickHandler() {
6477
+ var handler;
6478
+ switch (this._mode) {
6479
+ case "raf":
6480
+ handler = new RAFTickHandler();
6481
+ break;
6482
+ case "timeout":
6483
+ handler = new TimeOutTickHandler();
6484
+ break;
6485
+ case "manual":
6486
+ handler = new ManualTickHandler();
6487
+ break;
6488
+ default:
6489
+ console.warn("非法的计时器模式"), handler = new RAFTickHandler();
6490
+ }
6491
+ return !!handler.avaliable() && (this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0);
6492
+ }
6493
+ }, {
6494
+ key: "setInterval",
6495
+ value: function setInterval(interval) {
6496
+ this.interval = interval;
6497
+ }
6498
+ }, {
6499
+ key: "getInterval",
6500
+ value: function getInterval() {
6501
+ return this.interval;
6502
+ }
6503
+ }, {
6504
+ key: "setFPS",
6505
+ value: function setFPS(fps) {
6506
+ this.setInterval(1e3 / fps);
6507
+ }
6508
+ }, {
6509
+ key: "getFPS",
6510
+ value: function getFPS() {
6511
+ return 1e3 / this.interval;
6512
+ }
6513
+ }, {
6514
+ key: "tick",
6515
+ value: function tick(interval) {
6516
+ var _this5 = this;
6517
+ this.tickerHandler.tick(interval, function (handler) {
6518
+ _this5.handleTick(handler, {
6519
+ once: !0
6520
+ });
6521
+ });
6522
+ }
6523
+ }, {
6524
+ key: "tickTo",
6525
+ value: function tickTo(t) {
6526
+ var _this6 = this;
6527
+ this.tickerHandler.tickTo && this.tickerHandler.tickTo(t, function (handler) {
6528
+ _this6.handleTick(handler, {
6529
+ once: !0
6530
+ });
6531
+ });
6532
+ }
6533
+ }, {
6534
+ key: "pause",
6535
+ value: function pause() {
6536
+ return this.status !== STATUS$1.INITIAL && (this.status = STATUS$1.PAUSE, !0);
6537
+ }
6538
+ }, {
6539
+ key: "resume",
6540
+ value: function resume() {
6541
+ return this.status !== STATUS$1.INITIAL && (this.status = STATUS$1.RUNNING, !0);
6542
+ }
6543
+ }, {
6544
+ key: "ifCanStop",
6545
+ value: function ifCanStop() {
6546
+ if (this.autoStop) {
6547
+ if (!this.timelines.length) return !0;
6548
+ if (0 === this.timelines.reduce(function (a, b) {
6549
+ return a + b.animateCount;
6550
+ }, 0)) return !0;
6551
+ }
6552
+ return !1;
6553
+ }
6554
+ }, {
6555
+ key: "start",
6556
+ value: function start() {
6557
+ var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
6558
+ if (this.status === STATUS$1.RUNNING) return !1;
6559
+ if (!this.tickerHandler) return !1;
6560
+ if (!force) {
6561
+ if (this.status === STATUS$1.PAUSE) return !1;
6562
+ if (!this.timelines.length) return !1;
6563
+ if (0 === this.timelines.reduce(function (a, b) {
6564
+ return a + b.animateCount;
6565
+ }, 0)) return !1;
6566
+ }
6567
+ return this.status = STATUS$1.RUNNING, this.tickerHandler.tick(0, this.handleTick), !0;
6568
+ }
6569
+ }, {
6570
+ key: "stop",
6571
+ value: function stop() {
6572
+ this.status = STATUS$1.INITIAL, this.setupTickHandler(), this.lastFrameTime = -1;
6573
+ }
6574
+ }]);
6575
+ return DefaultTicker;
6576
+ }();
6577
+
5932
6578
  var Easing = /*#__PURE__*/function () {
5933
6579
  function Easing() {
5934
6580
  _classCallCheck(this, Easing);
@@ -6982,6 +7628,10 @@
6982
7628
  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
7629
  }
6984
7630
 
7631
+ Object.keys(vutils.DEFAULT_COLORS).forEach(function (k) {
7632
+ vutils.DEFAULT_COLORS[k];
7633
+ });
7634
+
6985
7635
  var ResourceLoader = /*#__PURE__*/function () {
6986
7636
  function ResourceLoader() {
6987
7637
  _classCallCheck(this, ResourceLoader);
@@ -8637,17 +9287,17 @@
8637
9287
  var DynamicLayerHandlerContribution = Symbol["for"]("DynamicLayerHandlerContribution");
8638
9288
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
8639
9289
 
8640
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9290
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8641
9291
  var d,
8642
9292
  c = arguments.length,
8643
9293
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8644
9294
  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
9295
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8646
9296
  },
8647
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
9297
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
8648
9298
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8649
9299
  },
8650
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
9300
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
8651
9301
  return function (target, key) {
8652
9302
  decorator(target, key, paramIndex);
8653
9303
  };
@@ -8728,19 +9378,19 @@
8728
9378
  }]);
8729
9379
  return DefaultLayerService;
8730
9380
  }();
8731
- DefaultLayerService = __decorate$N([injectable(), __param$l(0, inject(VGlobal)), __metadata$l("design:paramtypes", [Object])], DefaultLayerService);
9381
+ DefaultLayerService = __decorate$T([injectable(), __param$m(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], DefaultLayerService);
8732
9382
 
8733
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9383
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8734
9384
  var d,
8735
9385
  c = arguments.length,
8736
9386
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8737
9387
  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
9388
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8739
9389
  },
8740
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
9390
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
8741
9391
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8742
9392
  },
8743
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
9393
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
8744
9394
  return function (target, key) {
8745
9395
  decorator(target, key, paramIndex);
8746
9396
  };
@@ -8895,7 +9545,7 @@
8895
9545
  }]);
8896
9546
  return DefaultWindow;
8897
9547
  }();
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);
9548
+ __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
9549
 
8900
9550
  var coreModule = new ContainerModule(function (bind) {
8901
9551
  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 +12833,10 @@
12183
12833
  cap: 1
12184
12834
  }, NOWORK_ANIMATE_ATTR);
12185
12835
 
12836
+ Object.assign({
12837
+ cap: 1
12838
+ }, NOWORK_ANIMATE_ATTR);
12839
+
12186
12840
  var POLYGON_UPDATE_TAG_KEY = ["points", "cornerRadius"].concat(_toConsumableArray(GRAPHIC_UPDATE_TAG_KEY));
12187
12841
  var Polygon = /*#__PURE__*/function (_Graphic) {
12188
12842
  _inherits(Polygon, _Graphic);
@@ -12265,7 +12919,7 @@
12265
12919
  }(Graphic);
12266
12920
  Polygon.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
12267
12921
 
12268
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12922
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12269
12923
  var d,
12270
12924
  c = arguments.length,
12271
12925
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12295,9 +12949,9 @@
12295
12949
  }]);
12296
12950
  return DefaultOuterBorderBoundsContribution;
12297
12951
  }();
12298
- DefaultOuterBorderBoundsContribution = __decorate$L([injectable()], DefaultOuterBorderBoundsContribution);
12952
+ DefaultOuterBorderBoundsContribution = __decorate$R([injectable()], DefaultOuterBorderBoundsContribution);
12299
12953
 
12300
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12954
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12301
12955
  var d,
12302
12956
  c = arguments.length,
12303
12957
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12314,9 +12968,9 @@
12314
12968
  }
12315
12969
  return _createClass(DefaultRectOuterBorderBoundsContribution);
12316
12970
  }(DefaultOuterBorderBoundsContribution);
12317
- DefaultRectOuterBorderBoundsContribution = __decorate$K([injectable()], DefaultRectOuterBorderBoundsContribution);
12971
+ DefaultRectOuterBorderBoundsContribution = __decorate$Q([injectable()], DefaultRectOuterBorderBoundsContribution);
12318
12972
 
12319
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12973
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12320
12974
  var d,
12321
12975
  c = arguments.length,
12322
12976
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12352,9 +13006,9 @@
12352
13006
  }]);
12353
13007
  return DefaultSymbolOuterBorderBoundsContribution;
12354
13008
  }(DefaultOuterBorderBoundsContribution);
12355
- DefaultSymbolOuterBorderBoundsContribution = __decorate$J([injectable()], DefaultSymbolOuterBorderBoundsContribution);
13009
+ DefaultSymbolOuterBorderBoundsContribution = __decorate$P([injectable()], DefaultSymbolOuterBorderBoundsContribution);
12356
13010
 
12357
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13011
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12358
13012
  var d,
12359
13013
  c = arguments.length,
12360
13014
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12371,9 +13025,9 @@
12371
13025
  }
12372
13026
  return _createClass(DefaultCircleOuterBorderBoundsContribution);
12373
13027
  }(DefaultOuterBorderBoundsContribution);
12374
- DefaultCircleOuterBorderBoundsContribution = __decorate$I([injectable()], DefaultCircleOuterBorderBoundsContribution);
13028
+ DefaultCircleOuterBorderBoundsContribution = __decorate$O([injectable()], DefaultCircleOuterBorderBoundsContribution);
12375
13029
 
12376
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13030
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12377
13031
  var d,
12378
13032
  c = arguments.length,
12379
13033
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12390,9 +13044,9 @@
12390
13044
  }
12391
13045
  return _createClass(DefaultArcOuterBorderBoundsContribution);
12392
13046
  }(DefaultOuterBorderBoundsContribution);
12393
- DefaultArcOuterBorderBoundsContribution = __decorate$H([injectable()], DefaultArcOuterBorderBoundsContribution);
13047
+ DefaultArcOuterBorderBoundsContribution = __decorate$N([injectable()], DefaultArcOuterBorderBoundsContribution);
12394
13048
 
12395
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13049
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12396
13050
  var d,
12397
13051
  c = arguments.length,
12398
13052
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12409,7 +13063,7 @@
12409
13063
  }
12410
13064
  return _createClass(DefaultPathOuterBorderBoundsContribution);
12411
13065
  }(DefaultOuterBorderBoundsContribution);
12412
- DefaultPathOuterBorderBoundsContribution = __decorate$G([injectable()], DefaultPathOuterBorderBoundsContribution);
13066
+ DefaultPathOuterBorderBoundsContribution = __decorate$M([injectable()], DefaultPathOuterBorderBoundsContribution);
12413
13067
 
12414
13068
  function createMat4() {
12415
13069
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
@@ -12497,17 +13151,17 @@
12497
13151
  var matrixAllocate = new DefaultMatrixAllocate();
12498
13152
  var mat4Allocate = new DefaultMat4Allocate();
12499
13153
 
12500
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13154
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12501
13155
  var d,
12502
13156
  c = arguments.length,
12503
13157
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
12504
13158
  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
13159
  return c > 3 && r && Object.defineProperty(target, key, r), r;
12506
13160
  },
12507
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
13161
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
12508
13162
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
12509
13163
  },
12510
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
13164
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
12511
13165
  return function (target, key) {
12512
13166
  decorator(target, key, paramIndex);
12513
13167
  };
@@ -13131,7 +13785,7 @@
13131
13785
  }]);
13132
13786
  return DefaultGraphicService;
13133
13787
  }();
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);
13788
+ 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
13789
 
13136
13790
  var ShadowRoot = /*#__PURE__*/function (_Group) {
13137
13791
  _inherits(ShadowRoot, _Group);
@@ -13253,7 +13907,7 @@
13253
13907
  }
13254
13908
  createRichText({});
13255
13909
 
13256
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13910
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13257
13911
  var d,
13258
13912
  c = arguments.length,
13259
13913
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13423,19 +14077,19 @@
13423
14077
  }]);
13424
14078
  return BaseRender;
13425
14079
  }();
13426
- BaseRender = __decorate$E([injectable()], BaseRender);
14080
+ BaseRender = __decorate$K([injectable()], BaseRender);
13427
14081
 
13428
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14082
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13429
14083
  var d,
13430
14084
  c = arguments.length,
13431
14085
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13432
14086
  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
14087
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13434
14088
  },
13435
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
14089
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
13436
14090
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13437
14091
  },
13438
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
14092
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
13439
14093
  return function (target, key) {
13440
14094
  decorator(target, key, paramIndex);
13441
14095
  };
@@ -13605,19 +14259,19 @@
13605
14259
  }]);
13606
14260
  return DefaultCanvasArcRender;
13607
14261
  }(BaseRender);
13608
- DefaultCanvasArcRender = __decorate$D([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(ArcRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasArcRender);
14262
+ DefaultCanvasArcRender = __decorate$J([injectable(), __param$j(0, inject(ContributionProvider)), __param$j(0, named(ArcRenderContribution)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasArcRender);
13609
14263
 
13610
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14264
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13611
14265
  var d,
13612
14266
  c = arguments.length,
13613
14267
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13614
14268
  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
14269
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13616
14270
  },
13617
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
14271
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
13618
14272
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13619
14273
  },
13620
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
14274
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
13621
14275
  return function (target, key) {
13622
14276
  decorator(target, key, paramIndex);
13623
14277
  };
@@ -13663,7 +14317,7 @@
13663
14317
  }]);
13664
14318
  return DefaultCanvasCircleRender;
13665
14319
  }(BaseRender);
13666
- DefaultCanvasCircleRender = __decorate$C([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(CircleRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasCircleRender);
14320
+ DefaultCanvasCircleRender = __decorate$I([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(CircleRenderContribution)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasCircleRender);
13667
14321
 
13668
14322
  function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
13669
14323
  var _a;
@@ -13803,7 +14457,7 @@
13803
14457
  }
13804
14458
  }
13805
14459
 
13806
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14460
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13807
14461
  var d,
13808
14462
  c = arguments.length,
13809
14463
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13961,7 +14615,7 @@
13961
14615
  }]);
13962
14616
  return DefaultCanvasLineRender;
13963
14617
  }(BaseRender);
13964
- DefaultCanvasLineRender = __decorate$B([injectable()], DefaultCanvasLineRender);
14618
+ DefaultCanvasLineRender = __decorate$H([injectable()], DefaultCanvasLineRender);
13965
14619
 
13966
14620
  function drawAreaSegments(path, segPath, percent, params) {
13967
14621
  var _a;
@@ -14102,17 +14756,17 @@
14102
14756
  }
14103
14757
  }
14104
14758
 
14105
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14759
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14106
14760
  var d,
14107
14761
  c = arguments.length,
14108
14762
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14109
14763
  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
14764
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14111
14765
  },
14112
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
14766
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
14113
14767
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14114
14768
  },
14115
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
14769
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
14116
14770
  return function (target, key) {
14117
14771
  decorator(target, key, paramIndex);
14118
14772
  };
@@ -14332,19 +14986,19 @@
14332
14986
  }]);
14333
14987
  return DefaultCanvasAreaRender;
14334
14988
  }(BaseRender);
14335
- DefaultCanvasAreaRender = __decorate$A([injectable(), __param$g(0, inject(ContributionProvider)), __param$g(0, named(AreaRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasAreaRender);
14989
+ DefaultCanvasAreaRender = __decorate$G([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(AreaRenderContribution)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasAreaRender);
14336
14990
 
14337
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14991
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14338
14992
  var d,
14339
14993
  c = arguments.length,
14340
14994
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14341
14995
  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
14996
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14343
14997
  },
14344
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
14998
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
14345
14999
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14346
15000
  },
14347
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
15001
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
14348
15002
  return function (target, key) {
14349
15003
  decorator(target, key, paramIndex);
14350
15004
  };
@@ -14390,7 +15044,7 @@
14390
15044
  }]);
14391
15045
  return DefaultCanvasPathRender;
14392
15046
  }(BaseRender);
14393
- DefaultCanvasPathRender = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(PathRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPathRender);
15047
+ DefaultCanvasPathRender = __decorate$F([injectable(), __param$g(0, inject(ContributionProvider)), __param$g(0, named(PathRenderContribution)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasPathRender);
14394
15048
 
14395
15049
  var halfPi = vutils.pi / 2;
14396
15050
  function createRectPath(path, x, y, width, height, rectCornerRadius) {
@@ -14450,17 +15104,17 @@
14450
15104
  return path.closePath(), path;
14451
15105
  }
14452
15106
 
14453
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15107
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14454
15108
  var d,
14455
15109
  c = arguments.length,
14456
15110
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14457
15111
  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
15112
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14459
15113
  },
14460
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
15114
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
14461
15115
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14462
15116
  },
14463
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
15117
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
14464
15118
  return function (target, key) {
14465
15119
  decorator(target, key, paramIndex);
14466
15120
  };
@@ -14529,19 +15183,19 @@
14529
15183
  }]);
14530
15184
  return DefaultCanvasRectRender;
14531
15185
  }(BaseRender);
14532
- DefaultCanvasRectRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(RectRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectRender);
15186
+ DefaultCanvasRectRender = __decorate$E([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(RectRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasRectRender);
14533
15187
 
14534
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15188
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14535
15189
  var d,
14536
15190
  c = arguments.length,
14537
15191
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14538
15192
  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
15193
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14540
15194
  },
14541
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
15195
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
14542
15196
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14543
15197
  },
14544
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
15198
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
14545
15199
  return function (target, key) {
14546
15200
  decorator(target, key, paramIndex);
14547
15201
  };
@@ -14602,19 +15256,19 @@
14602
15256
  }]);
14603
15257
  return DefaultCanvasSymbolRender;
14604
15258
  }(BaseRender);
14605
- DefaultCanvasSymbolRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(SymbolRenderContribution)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
15259
+ DefaultCanvasSymbolRender = __decorate$D([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(SymbolRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
14606
15260
 
14607
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15261
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14608
15262
  var d,
14609
15263
  c = arguments.length,
14610
15264
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14611
15265
  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
15266
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14613
15267
  },
14614
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
15268
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
14615
15269
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14616
15270
  },
14617
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
15271
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
14618
15272
  return function (target, key) {
14619
15273
  decorator(target, key, paramIndex);
14620
15274
  };
@@ -14844,7 +15498,19 @@
14844
15498
  }]);
14845
15499
  return DefaultCanvasTextRender;
14846
15500
  }(BaseRender);
14847
- DefaultCanvasTextRender = __decorate$w([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(TextRenderContribution)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasTextRender);
15501
+ DefaultCanvasTextRender = __decorate$C([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(TextRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasTextRender);
15502
+
15503
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15504
+ var d,
15505
+ c = arguments.length,
15506
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15507
+ 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);
15508
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15509
+ };
15510
+ var AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
15511
+ _classCallCheck(this, AbstractGraphicRender);
15512
+ });
15513
+ AbstractGraphicRender = __decorate$B([injectable()], AbstractGraphicRender);
14848
15514
 
14849
15515
  function drawPolygon(path, points, x, y) {
14850
15516
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -14897,17 +15563,17 @@
14897
15563
  };
14898
15564
  }
14899
15565
 
14900
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15566
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14901
15567
  var d,
14902
15568
  c = arguments.length,
14903
15569
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14904
15570
  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
15571
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14906
15572
  },
14907
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
15573
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
14908
15574
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14909
15575
  },
14910
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
15576
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
14911
15577
  return function (target, key) {
14912
15578
  decorator(target, key, paramIndex);
14913
15579
  };
@@ -14955,19 +15621,19 @@
14955
15621
  }]);
14956
15622
  return DefaultCanvasPolygonRender;
14957
15623
  }(BaseRender);
14958
- DefaultCanvasPolygonRender = __decorate$v([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PolygonRenderContribution)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
15624
+ DefaultCanvasPolygonRender = __decorate$A([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(PolygonRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
14959
15625
 
14960
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15626
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14961
15627
  var d,
14962
15628
  c = arguments.length,
14963
15629
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14964
15630
  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
15631
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14966
15632
  },
14967
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
15633
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
14968
15634
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14969
15635
  },
14970
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
15636
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
14971
15637
  return function (target, key) {
14972
15638
  decorator(target, key, paramIndex);
14973
15639
  };
@@ -15035,7 +15701,7 @@
15035
15701
  }]);
15036
15702
  return DefaultCanvasImageRender;
15037
15703
  }(BaseRender);
15038
- DefaultCanvasImageRender = __decorate$u([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(ImageRenderContribution)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasImageRender);
15704
+ DefaultCanvasImageRender = __decorate$z([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(ImageRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasImageRender);
15039
15705
 
15040
15706
  var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
15041
15707
  var ArcRender = Symbol["for"]("ArcRender");
@@ -15198,17 +15864,17 @@
15198
15864
  }();
15199
15865
  var canvasAllocate = new DefaultCanvasAllocate();
15200
15866
 
15201
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15867
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15202
15868
  var d,
15203
15869
  c = arguments.length,
15204
15870
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15205
15871
  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
15872
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15207
15873
  },
15208
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
15874
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
15209
15875
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15210
15876
  },
15211
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
15877
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
15212
15878
  return function (target, key) {
15213
15879
  decorator(target, key, paramIndex);
15214
15880
  };
@@ -15242,7 +15908,7 @@
15242
15908
  }]);
15243
15909
  return DefaultBaseBackgroundRenderContribution;
15244
15910
  }();
15245
- DefaultBaseBackgroundRenderContribution = __decorate$t([injectable()], DefaultBaseBackgroundRenderContribution);
15911
+ DefaultBaseBackgroundRenderContribution = __decorate$y([injectable()], DefaultBaseBackgroundRenderContribution);
15246
15912
  var DefaultBaseInteractiveRenderContribution = /*#__PURE__*/function () {
15247
15913
  function DefaultBaseInteractiveRenderContribution(subRenderContribitions) {
15248
15914
  _classCallCheck(this, DefaultBaseInteractiveRenderContribution);
@@ -15258,7 +15924,7 @@
15258
15924
  }]);
15259
15925
  return DefaultBaseInteractiveRenderContribution;
15260
15926
  }();
15261
- DefaultBaseInteractiveRenderContribution = __decorate$t([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(InteractiveSubRenderContribution)), __metadata$9("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15927
+ DefaultBaseInteractiveRenderContribution = __decorate$y([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(InteractiveSubRenderContribution)), __metadata$d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15262
15928
  var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
15263
15929
  function DefaultBaseTextureRenderContribution() {
15264
15930
  _classCallCheck(this, DefaultBaseTextureRenderContribution);
@@ -15268,16 +15934,17 @@
15268
15934
  key: "createCommonPattern",
15269
15935
  value: function createCommonPattern(size, padding, color, targetContext, cb) {
15270
15936
  var r = (size - 2 * padding) / 2,
15937
+ dpr = targetContext.dpr,
15271
15938
  canvas = canvasAllocate.allocate({
15272
15939
  width: size,
15273
15940
  height: size,
15274
- dpr: 1
15941
+ dpr: dpr
15275
15942
  }),
15276
15943
  ctx = canvas.getContext("2d");
15277
15944
  if (!ctx) return null;
15278
- ctx.clearRect(0, 0, size, size), cb(r, ctx);
15945
+ ctx.inuse = !0, ctx.clearMatrix(), ctx.setTransformForCurrent(!0), ctx.clearRect(0, 0, size, size), cb(r, ctx);
15279
15946
  var pattern = targetContext.createPattern(canvas.nativeCanvas, "repeat");
15280
- return canvasAllocate.free(canvas), pattern;
15947
+ return pattern.setTransform && pattern.setTransform(new DOMMatrix([1 / dpr, 0, 0, 1 / dpr, 0, 0])), canvasAllocate.free(canvas), pattern;
15281
15948
  }
15282
15949
  }, {
15283
15950
  key: "createCirclePattern",
@@ -15399,9 +16066,9 @@
15399
16066
  }]);
15400
16067
  return DefaultBaseTextureRenderContribution;
15401
16068
  }();
15402
- DefaultBaseTextureRenderContribution = __decorate$t([injectable()], DefaultBaseTextureRenderContribution);
16069
+ DefaultBaseTextureRenderContribution = __decorate$y([injectable()], DefaultBaseTextureRenderContribution);
15403
16070
 
15404
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16071
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15405
16072
  var d,
15406
16073
  c = arguments.length,
15407
16074
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15483,7 +16150,7 @@
15483
16150
  }]);
15484
16151
  return DefaultArcRenderContribution;
15485
16152
  }();
15486
- DefaultArcRenderContribution = __decorate$s([injectable()], DefaultArcRenderContribution);
16153
+ DefaultArcRenderContribution = __decorate$x([injectable()], DefaultArcRenderContribution);
15487
16154
  var DefaultArcBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15488
16155
  _inherits(DefaultArcBackgroundRenderContribution, _DefaultBaseBackgroun);
15489
16156
  var _super = _createSuper(DefaultArcBackgroundRenderContribution);
@@ -15495,7 +16162,7 @@
15495
16162
  }
15496
16163
  return _createClass(DefaultArcBackgroundRenderContribution);
15497
16164
  }(DefaultBaseBackgroundRenderContribution);
15498
- DefaultArcBackgroundRenderContribution = __decorate$s([injectable()], DefaultArcBackgroundRenderContribution);
16165
+ DefaultArcBackgroundRenderContribution = __decorate$x([injectable()], DefaultArcBackgroundRenderContribution);
15499
16166
  var DefaultArcTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15500
16167
  _inherits(DefaultArcTextureRenderContribution, _DefaultBaseTextureRe);
15501
16168
  var _super2 = _createSuper(DefaultArcTextureRenderContribution);
@@ -15507,9 +16174,9 @@
15507
16174
  }
15508
16175
  return _createClass(DefaultArcTextureRenderContribution);
15509
16176
  }(DefaultBaseTextureRenderContribution);
15510
- DefaultArcTextureRenderContribution = __decorate$s([injectable()], DefaultArcTextureRenderContribution);
16177
+ DefaultArcTextureRenderContribution = __decorate$x([injectable()], DefaultArcTextureRenderContribution);
15511
16178
 
15512
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16179
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15513
16180
  var d,
15514
16181
  c = arguments.length,
15515
16182
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15571,7 +16238,7 @@
15571
16238
  }]);
15572
16239
  return DefaultCircleRenderContribution;
15573
16240
  }();
15574
- DefaultCircleRenderContribution = __decorate$r([injectable()], DefaultCircleRenderContribution);
16241
+ DefaultCircleRenderContribution = __decorate$w([injectable()], DefaultCircleRenderContribution);
15575
16242
  var DefaultCircleBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15576
16243
  _inherits(DefaultCircleBackgroundRenderContribution, _DefaultBaseBackgroun);
15577
16244
  var _super = _createSuper(DefaultCircleBackgroundRenderContribution);
@@ -15583,7 +16250,7 @@
15583
16250
  }
15584
16251
  return _createClass(DefaultCircleBackgroundRenderContribution);
15585
16252
  }(DefaultBaseBackgroundRenderContribution);
15586
- DefaultCircleBackgroundRenderContribution = __decorate$r([injectable()], DefaultCircleBackgroundRenderContribution);
16253
+ DefaultCircleBackgroundRenderContribution = __decorate$w([injectable()], DefaultCircleBackgroundRenderContribution);
15587
16254
  var DefaultCircleTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15588
16255
  _inherits(DefaultCircleTextureRenderContribution, _DefaultBaseTextureRe);
15589
16256
  var _super2 = _createSuper(DefaultCircleTextureRenderContribution);
@@ -15595,9 +16262,9 @@
15595
16262
  }
15596
16263
  return _createClass(DefaultCircleTextureRenderContribution);
15597
16264
  }(DefaultBaseTextureRenderContribution);
15598
- DefaultCircleTextureRenderContribution = __decorate$r([injectable()], DefaultCircleTextureRenderContribution);
16265
+ DefaultCircleTextureRenderContribution = __decorate$w([injectable()], DefaultCircleTextureRenderContribution);
15599
16266
 
15600
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16267
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15601
16268
  var d,
15602
16269
  c = arguments.length,
15603
16270
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15628,9 +16295,9 @@
15628
16295
  }]);
15629
16296
  return DefaultGroupBackgroundRenderContribution;
15630
16297
  }(DefaultBaseBackgroundRenderContribution);
15631
- DefaultGroupBackgroundRenderContribution = __decorate$q([injectable()], DefaultGroupBackgroundRenderContribution);
16298
+ DefaultGroupBackgroundRenderContribution = __decorate$v([injectable()], DefaultGroupBackgroundRenderContribution);
15632
16299
 
15633
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16300
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15634
16301
  var d,
15635
16302
  c = arguments.length,
15636
16303
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15695,7 +16362,7 @@
15695
16362
  }]);
15696
16363
  return DefaultImageBackgroundRenderContribution;
15697
16364
  }(DefaultBaseBackgroundRenderContribution);
15698
- DefaultImageBackgroundRenderContribution = __decorate$p([injectable()], DefaultImageBackgroundRenderContribution);
16365
+ DefaultImageBackgroundRenderContribution = __decorate$u([injectable()], DefaultImageBackgroundRenderContribution);
15699
16366
  function getActualPosition(graphic) {
15700
16367
  var boundsPadding = parsePadding(graphic.attribute.boundsPadding),
15701
16368
  bounds = graphic.AABBBounds;
@@ -15711,7 +16378,7 @@
15711
16378
  };
15712
16379
  }
15713
16380
 
15714
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16381
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15715
16382
  var d,
15716
16383
  c = arguments.length,
15717
16384
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15783,7 +16450,7 @@
15783
16450
  }]);
15784
16451
  return DefaultRectRenderContribution;
15785
16452
  }();
15786
- DefaultRectRenderContribution = __decorate$o([injectable()], DefaultRectRenderContribution);
16453
+ DefaultRectRenderContribution = __decorate$t([injectable()], DefaultRectRenderContribution);
15787
16454
  var DefaultRectBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15788
16455
  _inherits(DefaultRectBackgroundRenderContribution, _DefaultBaseBackgroun);
15789
16456
  var _super = _createSuper(DefaultRectBackgroundRenderContribution);
@@ -15795,7 +16462,7 @@
15795
16462
  }
15796
16463
  return _createClass(DefaultRectBackgroundRenderContribution);
15797
16464
  }(DefaultBaseBackgroundRenderContribution);
15798
- DefaultRectBackgroundRenderContribution = __decorate$o([injectable()], DefaultRectBackgroundRenderContribution);
16465
+ DefaultRectBackgroundRenderContribution = __decorate$t([injectable()], DefaultRectBackgroundRenderContribution);
15799
16466
  var DefaultRectTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15800
16467
  _inherits(DefaultRectTextureRenderContribution, _DefaultBaseTextureRe);
15801
16468
  var _super2 = _createSuper(DefaultRectTextureRenderContribution);
@@ -15807,7 +16474,7 @@
15807
16474
  }
15808
16475
  return _createClass(DefaultRectTextureRenderContribution);
15809
16476
  }(DefaultBaseTextureRenderContribution);
15810
- DefaultRectTextureRenderContribution = __decorate$o([injectable()], DefaultRectTextureRenderContribution);
16477
+ DefaultRectTextureRenderContribution = __decorate$t([injectable()], DefaultRectTextureRenderContribution);
15811
16478
  var SplitRectBeforeRenderContribution = /*#__PURE__*/function () {
15812
16479
  function SplitRectBeforeRenderContribution() {
15813
16480
  _classCallCheck(this, SplitRectBeforeRenderContribution);
@@ -15825,7 +16492,7 @@
15825
16492
  }]);
15826
16493
  return SplitRectBeforeRenderContribution;
15827
16494
  }();
15828
- SplitRectBeforeRenderContribution = __decorate$o([injectable()], SplitRectBeforeRenderContribution);
16495
+ SplitRectBeforeRenderContribution = __decorate$t([injectable()], SplitRectBeforeRenderContribution);
15829
16496
  var SplitRectAfterRenderContribution = /*#__PURE__*/function () {
15830
16497
  function SplitRectAfterRenderContribution() {
15831
16498
  _classCallCheck(this, SplitRectAfterRenderContribution);
@@ -15854,9 +16521,9 @@
15854
16521
  }]);
15855
16522
  return SplitRectAfterRenderContribution;
15856
16523
  }();
15857
- SplitRectAfterRenderContribution = __decorate$o([injectable()], SplitRectAfterRenderContribution);
16524
+ SplitRectAfterRenderContribution = __decorate$t([injectable()], SplitRectAfterRenderContribution);
15858
16525
 
15859
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16526
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15860
16527
  var d,
15861
16528
  c = arguments.length,
15862
16529
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15916,7 +16583,7 @@
15916
16583
  }]);
15917
16584
  return DefaultSymbolRenderContribution;
15918
16585
  }();
15919
- DefaultSymbolRenderContribution = __decorate$n([injectable()], DefaultSymbolRenderContribution);
16586
+ DefaultSymbolRenderContribution = __decorate$s([injectable()], DefaultSymbolRenderContribution);
15920
16587
  var DefaultSymbolBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15921
16588
  _inherits(DefaultSymbolBackgroundRenderContribution, _DefaultBaseBackgroun);
15922
16589
  var _super = _createSuper(DefaultSymbolBackgroundRenderContribution);
@@ -15940,17 +16607,17 @@
15940
16607
  return _createClass(DefaultSymbolTextureRenderContribution);
15941
16608
  }(DefaultBaseTextureRenderContribution);
15942
16609
 
15943
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16610
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15944
16611
  var d,
15945
16612
  c = arguments.length,
15946
16613
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15947
16614
  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);
15948
16615
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15949
16616
  },
15950
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
16617
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
15951
16618
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15952
16619
  },
15953
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
16620
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
15954
16621
  return function (target, key) {
15955
16622
  decorator(target, key, paramIndex);
15956
16623
  };
@@ -16006,7 +16673,7 @@
16006
16673
  }]);
16007
16674
  return DefaultRenderService;
16008
16675
  }();
16009
- DefaultRenderService = __decorate$m([injectable(), __param$8(0, inject(DrawContribution)), __metadata$8("design:paramtypes", [Object])], DefaultRenderService);
16676
+ DefaultRenderService = __decorate$r([injectable(), __param$9(0, inject(DrawContribution)), __metadata$c("design:paramtypes", [Object])], DefaultRenderService);
16010
16677
 
16011
16678
  var renderModule$1 = new ContainerModule(function (bind) {
16012
16679
  bind(DefaultRenderService).toSelf(), bind(RenderService).toService(DefaultRenderService);
@@ -16015,17 +16682,17 @@
16015
16682
  var PickerService = Symbol["for"]("PickerService");
16016
16683
  var GlobalPickerService = Symbol["for"]("GlobalPickerService");
16017
16684
 
16018
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16685
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16019
16686
  var d,
16020
16687
  c = arguments.length,
16021
16688
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16022
16689
  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);
16023
16690
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16024
16691
  },
16025
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
16692
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
16026
16693
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16027
16694
  },
16028
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
16695
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
16029
16696
  return function (target, key) {
16030
16697
  decorator(target, key, paramIndex);
16031
16698
  };
@@ -16107,9 +16774,9 @@
16107
16774
  }]);
16108
16775
  return DefaultGlobalPickerService;
16109
16776
  }();
16110
- DefaultGlobalPickerService = __decorate$l([injectable(), __param$7(0, inject(VGlobal)), __metadata$7("design:paramtypes", [Object])], DefaultGlobalPickerService);
16777
+ DefaultGlobalPickerService = __decorate$q([injectable(), __param$8(0, inject(VGlobal)), __metadata$b("design:paramtypes", [Object])], DefaultGlobalPickerService);
16111
16778
 
16112
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16779
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16113
16780
  var d,
16114
16781
  c = arguments.length,
16115
16782
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16153,7 +16820,7 @@
16153
16820
  }]);
16154
16821
  return ShadowRootPickItemInterceptorContribution;
16155
16822
  }();
16156
- ShadowRootPickItemInterceptorContribution = __decorate$k([injectable()], ShadowRootPickItemInterceptorContribution);
16823
+ ShadowRootPickItemInterceptorContribution = __decorate$p([injectable()], ShadowRootPickItemInterceptorContribution);
16157
16824
  var InteractivePickItemInterceptorContribution = /*#__PURE__*/function () {
16158
16825
  function InteractivePickItemInterceptorContribution() {
16159
16826
  _classCallCheck(this, InteractivePickItemInterceptorContribution);
@@ -16177,7 +16844,7 @@
16177
16844
  }]);
16178
16845
  return InteractivePickItemInterceptorContribution;
16179
16846
  }();
16180
- InteractivePickItemInterceptorContribution = __decorate$k([injectable()], InteractivePickItemInterceptorContribution);
16847
+ InteractivePickItemInterceptorContribution = __decorate$p([injectable()], InteractivePickItemInterceptorContribution);
16181
16848
  var Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
16182
16849
  function Canvas3DPickItemInterceptor() {
16183
16850
  _classCallCheck(this, Canvas3DPickItemInterceptor);
@@ -16254,7 +16921,7 @@
16254
16921
  }]);
16255
16922
  return Canvas3DPickItemInterceptor;
16256
16923
  }();
16257
- Canvas3DPickItemInterceptor = __decorate$k([injectable()], Canvas3DPickItemInterceptor);
16924
+ Canvas3DPickItemInterceptor = __decorate$p([injectable()], Canvas3DPickItemInterceptor);
16258
16925
 
16259
16926
  var pickModule = new ContainerModule(function (bind) {
16260
16927
  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);
@@ -16267,17 +16934,17 @@
16267
16934
  var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
16268
16935
  var PluginService = Symbol["for"]("PluginService");
16269
16936
 
16270
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16937
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16271
16938
  var d,
16272
16939
  c = arguments.length,
16273
16940
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16274
16941
  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);
16275
16942
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16276
16943
  },
16277
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
16944
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
16278
16945
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16279
16946
  },
16280
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
16947
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
16281
16948
  return function (target, key) {
16282
16949
  decorator(target, key, paramIndex);
16283
16950
  };
@@ -16325,7 +16992,7 @@
16325
16992
  }]);
16326
16993
  return DefaultPluginService;
16327
16994
  }();
16328
- DefaultPluginService = __decorate$j([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(AutoEnablePlugins)), __metadata$6("design:paramtypes", [Object])], DefaultPluginService);
16995
+ DefaultPluginService = __decorate$o([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(AutoEnablePlugins)), __metadata$a("design:paramtypes", [Object])], DefaultPluginService);
16329
16996
 
16330
16997
  var pluginModule = new ContainerModule(function (bind) {
16331
16998
  bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -16339,17 +17006,17 @@
16339
17006
  bind(DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
16340
17007
  });
16341
17008
 
16342
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17009
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16343
17010
  var d,
16344
17011
  c = arguments.length,
16345
17012
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16346
17013
  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);
16347
17014
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16348
17015
  },
16349
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
17016
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
16350
17017
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16351
17018
  },
16352
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
17019
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
16353
17020
  return function (target, key) {
16354
17021
  decorator(target, key, paramIndex);
16355
17022
  };
@@ -16444,19 +17111,19 @@
16444
17111
  }]);
16445
17112
  return CanvasLayerHandlerContribution;
16446
17113
  }();
16447
- CanvasLayerHandlerContribution = __decorate$i([injectable(), __param$5(0, inject(VGlobal)), __metadata$5("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
17114
+ CanvasLayerHandlerContribution = __decorate$n([injectable(), __param$6(0, inject(VGlobal)), __metadata$9("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
16448
17115
 
16449
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17116
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16450
17117
  var d,
16451
17118
  c = arguments.length,
16452
17119
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16453
17120
  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);
16454
17121
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16455
17122
  },
16456
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
17123
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
16457
17124
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16458
17125
  },
16459
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
17126
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
16460
17127
  return function (target, key) {
16461
17128
  decorator(target, key, paramIndex);
16462
17129
  };
@@ -16516,19 +17183,19 @@
16516
17183
  }]);
16517
17184
  return EmptyLayerHandlerContribution;
16518
17185
  }();
16519
- EmptyLayerHandlerContribution = __decorate$h([injectable(), __param$4(0, inject(VGlobal)), __metadata$4("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
17186
+ EmptyLayerHandlerContribution = __decorate$m([injectable(), __param$5(0, inject(VGlobal)), __metadata$8("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
16520
17187
 
16521
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17188
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16522
17189
  var d,
16523
17190
  c = arguments.length,
16524
17191
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16525
17192
  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);
16526
17193
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16527
17194
  },
16528
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
17195
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
16529
17196
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16530
17197
  },
16531
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
17198
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
16532
17199
  return function (target, key) {
16533
17200
  decorator(target, key, paramIndex);
16534
17201
  };
@@ -16617,7 +17284,7 @@
16617
17284
  }]);
16618
17285
  return OffscreenLayerHandlerContribution;
16619
17286
  }();
16620
- OffscreenLayerHandlerContribution = __decorate$g([injectable(), __param$3(0, inject(VGlobal)), __metadata$3("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
17287
+ OffscreenLayerHandlerContribution = __decorate$l([injectable(), __param$4(0, inject(VGlobal)), __metadata$7("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
16621
17288
 
16622
17289
  var layerHandlerModules = new ContainerModule(function (bind) {
16623
17290
  bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
@@ -16744,7 +17411,7 @@
16744
17411
  return result;
16745
17412
  }
16746
17413
 
16747
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17414
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16748
17415
  var d,
16749
17416
  c = arguments.length,
16750
17417
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16783,7 +17450,7 @@
16783
17450
  }]);
16784
17451
  return ShadowRootDrawItemInterceptorContribution;
16785
17452
  }();
16786
- ShadowRootDrawItemInterceptorContribution = __decorate$f([injectable()], ShadowRootDrawItemInterceptorContribution);
17453
+ ShadowRootDrawItemInterceptorContribution = __decorate$k([injectable()], ShadowRootDrawItemInterceptorContribution);
16787
17454
  var CommonDrawItemInterceptorContribution = /*#__PURE__*/function () {
16788
17455
  function CommonDrawItemInterceptorContribution() {
16789
17456
  _classCallCheck(this, CommonDrawItemInterceptorContribution);
@@ -16811,7 +17478,7 @@
16811
17478
  }]);
16812
17479
  return CommonDrawItemInterceptorContribution;
16813
17480
  }();
16814
- CommonDrawItemInterceptorContribution = __decorate$f([injectable()], CommonDrawItemInterceptorContribution);
17481
+ CommonDrawItemInterceptorContribution = __decorate$k([injectable()], CommonDrawItemInterceptorContribution);
16815
17482
  var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
16816
17483
  function InteractiveDrawItemInterceptorContribution() {
16817
17484
  _classCallCheck(this, InteractiveDrawItemInterceptorContribution);
@@ -16870,7 +17537,7 @@
16870
17537
  }]);
16871
17538
  return InteractiveDrawItemInterceptorContribution;
16872
17539
  }();
16873
- InteractiveDrawItemInterceptorContribution = __decorate$f([injectable()], InteractiveDrawItemInterceptorContribution);
17540
+ InteractiveDrawItemInterceptorContribution = __decorate$k([injectable()], InteractiveDrawItemInterceptorContribution);
16874
17541
  var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
16875
17542
  function Canvas3DDrawItemInterceptor() {
16876
17543
  _classCallCheck(this, Canvas3DDrawItemInterceptor);
@@ -16959,19 +17626,19 @@
16959
17626
  }]);
16960
17627
  return Canvas3DDrawItemInterceptor;
16961
17628
  }();
16962
- Canvas3DDrawItemInterceptor = __decorate$f([injectable()], Canvas3DDrawItemInterceptor);
17629
+ Canvas3DDrawItemInterceptor = __decorate$k([injectable()], Canvas3DDrawItemInterceptor);
16963
17630
 
16964
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17631
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16965
17632
  var d,
16966
17633
  c = arguments.length,
16967
17634
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16968
17635
  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);
16969
17636
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16970
17637
  },
16971
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
17638
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
16972
17639
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16973
17640
  },
16974
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
17641
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
16975
17642
  return function (target, key) {
16976
17643
  decorator(target, key, paramIndex);
16977
17644
  };
@@ -17173,9 +17840,9 @@
17173
17840
  }]);
17174
17841
  return DefaultDrawContribution;
17175
17842
  }();
17176
- __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);
17843
+ __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);
17177
17844
 
17178
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17845
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17179
17846
  var d,
17180
17847
  c = arguments.length,
17181
17848
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17194,19 +17861,19 @@
17194
17861
  }]);
17195
17862
  return DefaultRenderSelector;
17196
17863
  }();
17197
- DefaultRenderSelector = __decorate$d([injectable()], DefaultRenderSelector);
17864
+ DefaultRenderSelector = __decorate$i([injectable()], DefaultRenderSelector);
17198
17865
 
17199
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17866
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17200
17867
  var d,
17201
17868
  c = arguments.length,
17202
17869
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17203
17870
  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);
17204
17871
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17205
17872
  },
17206
- __metadata$1 = undefined && undefined.__metadata || function (k, v) {
17873
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
17207
17874
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17208
17875
  },
17209
- __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
17876
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
17210
17877
  return function (target, key) {
17211
17878
  decorator(target, key, paramIndex);
17212
17879
  };
@@ -17308,9 +17975,9 @@
17308
17975
  }]);
17309
17976
  return DefaultCanvasGroupRender;
17310
17977
  }();
17311
- DefaultCanvasGroupRender = __decorate$c([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(GroupRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17978
+ DefaultCanvasGroupRender = __decorate$h([injectable(), __param$2(0, inject(ContributionProvider)), __param$2(0, named(GroupRenderContribution)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17312
17979
 
17313
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17980
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17314
17981
  var d,
17315
17982
  c = arguments.length,
17316
17983
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17374,9 +18041,9 @@
17374
18041
  }]);
17375
18042
  return DefaultIncrementalCanvasLineRender;
17376
18043
  }(DefaultCanvasLineRender);
17377
- DefaultIncrementalCanvasLineRender = __decorate$b([injectable()], DefaultIncrementalCanvasLineRender);
18044
+ DefaultIncrementalCanvasLineRender = __decorate$g([injectable()], DefaultIncrementalCanvasLineRender);
17378
18045
 
17379
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18046
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17380
18047
  var d,
17381
18048
  c = arguments.length,
17382
18049
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17431,20 +18098,20 @@
17431
18098
  }]);
17432
18099
  return DefaultIncrementalCanvasAreaRender;
17433
18100
  }(DefaultCanvasAreaRender);
17434
- DefaultIncrementalCanvasAreaRender = __decorate$a([injectable()], DefaultIncrementalCanvasAreaRender);
18101
+ DefaultIncrementalCanvasAreaRender = __decorate$f([injectable()], DefaultIncrementalCanvasAreaRender);
17435
18102
 
17436
18103
  var STATUS,
17437
- __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18104
+ __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17438
18105
  var d,
17439
18106
  c = arguments.length,
17440
18107
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17441
18108
  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);
17442
18109
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17443
18110
  },
17444
- __metadata = undefined && undefined.__metadata || function (k, v) {
18111
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
17445
18112
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17446
18113
  },
17447
- __param = undefined && undefined.__param || function (paramIndex, decorator) {
18114
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
17448
18115
  return function (target, key) {
17449
18116
  decorator(target, key, paramIndex);
17450
18117
  };
@@ -17800,9 +18467,9 @@
17800
18467
  }]);
17801
18468
  return DefaultIncrementalDrawContribution;
17802
18469
  }(DefaultDrawContribution);
17803
- __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);
18470
+ __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);
17804
18471
 
17805
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18472
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17806
18473
  var d,
17807
18474
  c = arguments.length,
17808
18475
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17944,9 +18611,9 @@
17944
18611
  }]);
17945
18612
  return DefaultCanvasRect3dRender;
17946
18613
  }(BaseRender);
17947
- DefaultCanvasRect3dRender = __decorate$8([injectable()], DefaultCanvasRect3dRender);
18614
+ DefaultCanvasRect3dRender = __decorate$d([injectable()], DefaultCanvasRect3dRender);
17948
18615
 
17949
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18616
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17950
18617
  var d,
17951
18618
  c = arguments.length,
17952
18619
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18028,9 +18695,9 @@
18028
18695
  }]);
18029
18696
  return DefaultCanvasRichTextRender;
18030
18697
  }(BaseRender);
18031
- DefaultCanvasRichTextRender = __decorate$7([injectable()], DefaultCanvasRichTextRender);
18698
+ DefaultCanvasRichTextRender = __decorate$c([injectable()], DefaultCanvasRichTextRender);
18032
18699
 
18033
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18700
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18034
18701
  var d,
18035
18702
  c = arguments.length,
18036
18703
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18067,9 +18734,9 @@
18067
18734
  }]);
18068
18735
  return DefaultCanvasGlyphRender;
18069
18736
  }();
18070
- DefaultCanvasGlyphRender = __decorate$6([injectable()], DefaultCanvasGlyphRender);
18737
+ DefaultCanvasGlyphRender = __decorate$b([injectable()], DefaultCanvasGlyphRender);
18071
18738
 
18072
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18739
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18073
18740
  var d,
18074
18741
  c = arguments.length,
18075
18742
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18195,9 +18862,9 @@
18195
18862
  }]);
18196
18863
  return DefaultCanvasArc3DRender;
18197
18864
  }(BaseRender);
18198
- DefaultCanvasArc3DRender = __decorate$5([injectable()], DefaultCanvasArc3DRender);
18865
+ DefaultCanvasArc3DRender = __decorate$a([injectable()], DefaultCanvasArc3DRender);
18199
18866
 
18200
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18867
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18201
18868
  var d,
18202
18869
  c = arguments.length,
18203
18870
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18322,9 +18989,9 @@
18322
18989
  }]);
18323
18990
  return DefaultCanvasPyramid3dRender;
18324
18991
  }(BaseRender);
18325
- DefaultCanvasPyramid3dRender = __decorate$4([injectable()], DefaultCanvasPyramid3dRender);
18992
+ DefaultCanvasPyramid3dRender = __decorate$9([injectable()], DefaultCanvasPyramid3dRender);
18326
18993
 
18327
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18994
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18328
18995
  var d,
18329
18996
  c = arguments.length,
18330
18997
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18342,7 +19009,7 @@
18342
19009
  }
18343
19010
  return _createClass(DefaultPolygonBackgroundRenderContribution);
18344
19011
  }(DefaultBaseBackgroundRenderContribution);
18345
- DefaultPolygonBackgroundRenderContribution = __decorate$3([injectable()], DefaultPolygonBackgroundRenderContribution);
19012
+ DefaultPolygonBackgroundRenderContribution = __decorate$8([injectable()], DefaultPolygonBackgroundRenderContribution);
18346
19013
  var DefaultPolygonTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18347
19014
  _inherits(DefaultPolygonTextureRenderContribution, _DefaultBaseTextureRe);
18348
19015
  var _super2 = _createSuper(DefaultPolygonTextureRenderContribution);
@@ -18354,9 +19021,9 @@
18354
19021
  }
18355
19022
  return _createClass(DefaultPolygonTextureRenderContribution);
18356
19023
  }(DefaultBaseTextureRenderContribution);
18357
- DefaultPolygonTextureRenderContribution = __decorate$3([injectable()], DefaultPolygonTextureRenderContribution);
19024
+ DefaultPolygonTextureRenderContribution = __decorate$8([injectable()], DefaultPolygonTextureRenderContribution);
18358
19025
 
18359
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19026
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18360
19027
  var d,
18361
19028
  c = arguments.length,
18362
19029
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18374,7 +19041,7 @@
18374
19041
  }
18375
19042
  return _createClass(DefaultPathBackgroundRenderContribution);
18376
19043
  }(DefaultBaseBackgroundRenderContribution);
18377
- DefaultPathBackgroundRenderContribution = __decorate$2([injectable()], DefaultPathBackgroundRenderContribution);
19044
+ DefaultPathBackgroundRenderContribution = __decorate$7([injectable()], DefaultPathBackgroundRenderContribution);
18378
19045
  var DefaultPathTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18379
19046
  _inherits(DefaultPathTextureRenderContribution, _DefaultBaseTextureRe);
18380
19047
  var _super2 = _createSuper(DefaultPathTextureRenderContribution);
@@ -18384,108 +19051,938 @@
18384
19051
  _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
18385
19052
  return _this2;
18386
19053
  }
18387
- return _createClass(DefaultPathTextureRenderContribution);
18388
- }(DefaultBaseTextureRenderContribution);
18389
- DefaultPathTextureRenderContribution = __decorate$2([injectable()], DefaultPathTextureRenderContribution);
19054
+ return _createClass(DefaultPathTextureRenderContribution);
19055
+ }(DefaultBaseTextureRenderContribution);
19056
+ DefaultPathTextureRenderContribution = __decorate$7([injectable()], DefaultPathTextureRenderContribution);
19057
+
19058
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19059
+ var d,
19060
+ c = arguments.length,
19061
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19062
+ 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);
19063
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19064
+ };
19065
+ var DefaultAreaBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
19066
+ _inherits(DefaultAreaBackgroundRenderContribution, _DefaultBaseBackgroun);
19067
+ var _super = _createSuper(DefaultAreaBackgroundRenderContribution);
19068
+ function DefaultAreaBackgroundRenderContribution() {
19069
+ var _this;
19070
+ _classCallCheck(this, DefaultAreaBackgroundRenderContribution);
19071
+ _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
19072
+ return _this;
19073
+ }
19074
+ return _createClass(DefaultAreaBackgroundRenderContribution);
19075
+ }(DefaultBaseBackgroundRenderContribution);
19076
+ DefaultAreaBackgroundRenderContribution = __decorate$6([injectable()], DefaultAreaBackgroundRenderContribution);
19077
+ var DefaultAreaTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
19078
+ _inherits(DefaultAreaTextureRenderContribution, _DefaultBaseTextureRe);
19079
+ var _super2 = _createSuper(DefaultAreaTextureRenderContribution);
19080
+ function DefaultAreaTextureRenderContribution() {
19081
+ var _this2;
19082
+ _classCallCheck(this, DefaultAreaTextureRenderContribution);
19083
+ _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
19084
+ return _this2;
19085
+ }
19086
+ _createClass(DefaultAreaTextureRenderContribution, [{
19087
+ key: "drawShape",
19088
+ value: function drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
19089
+ var _a, _b, _c, _d;
19090
+ this.textureMap || this.initTextureMap(context, graphic.stage);
19091
+ var _ref = options || {},
19092
+ _ref$attribute = _ref.attribute,
19093
+ attribute = _ref$attribute === void 0 ? graphic.attribute : _ref$attribute,
19094
+ _attribute$texture = attribute.texture,
19095
+ texture = _attribute$texture === void 0 ? null !== (_a = graphic.attribute.texture) && void 0 !== _a ? _a : getAttributeFromDefaultAttrList(graphicAttribute, "texture") : _attribute$texture,
19096
+ _attribute$textureCol = attribute.textureColor,
19097
+ textureColor = _attribute$textureCol === void 0 ? null !== (_b = graphic.attribute.textureColor) && void 0 !== _b ? _b : getAttributeFromDefaultAttrList(graphicAttribute, "textureColor") : _attribute$textureCol,
19098
+ _attribute$textureSiz = attribute.textureSize,
19099
+ textureSize = _attribute$textureSiz === void 0 ? null !== (_c = graphic.attribute.textureSize) && void 0 !== _c ? _c : getAttributeFromDefaultAttrList(graphicAttribute, "textureSize") : _attribute$textureSiz,
19100
+ _attribute$texturePad = attribute.texturePadding,
19101
+ texturePadding = _attribute$texturePad === void 0 ? null !== (_d = graphic.attribute.texturePadding) && void 0 !== _d ? _d : getAttributeFromDefaultAttrList(graphicAttribute, "texturePadding") : _attribute$texturePad;
19102
+ if (!texture) return;
19103
+ var pattern = this.textureMap.get(texture);
19104
+ if (!pattern) switch (texture) {
19105
+ case "circle":
19106
+ pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
19107
+ break;
19108
+ case "diamond":
19109
+ pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
19110
+ break;
19111
+ case "rect":
19112
+ pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
19113
+ break;
19114
+ case "vertical-line":
19115
+ pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
19116
+ break;
19117
+ case "horizontal-line":
19118
+ pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
19119
+ break;
19120
+ case "bias-lr":
19121
+ pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
19122
+ break;
19123
+ case "bias-rl":
19124
+ pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
19125
+ break;
19126
+ case "grid":
19127
+ pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
19128
+ }
19129
+ pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
19130
+ }
19131
+ }]);
19132
+ return DefaultAreaTextureRenderContribution;
19133
+ }(DefaultBaseTextureRenderContribution);
19134
+ DefaultAreaTextureRenderContribution = __decorate$6([injectable()], DefaultAreaTextureRenderContribution);
19135
+
19136
+ var renderModule = new ContainerModule(function (bind) {
19137
+ 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);
19138
+ });
19139
+
19140
+ function load(container) {
19141
+ container.load(renderModule);
19142
+ }
19143
+
19144
+ container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$1(container), load(container);
19145
+ var vglobal = container.get(VGlobal);
19146
+ application.global = vglobal;
19147
+ var graphicUtil = container.get(GraphicUtil);
19148
+ application.graphicUtil = graphicUtil;
19149
+ var transformUtil = container.get(TransformUtil);
19150
+ application.transformUtil = transformUtil;
19151
+ var graphicService = container.get(GraphicService);
19152
+ application.graphicService = graphicService;
19153
+ container.get(GlobalPickerService);
19154
+ var layerService = container.get(LayerService);
19155
+ application.layerService = layerService;
19156
+
19157
+ new vutils.AABBBounds();
19158
+
19159
+ new vutils.AABBBounds();
19160
+
19161
+ var defaultTicker = new DefaultTicker();
19162
+ defaultTicker.addTimeline(defaultTimeline);
19163
+ defaultTicker.setFPS(60);
19164
+
19165
+ var params;
19166
+ !function (params) {
19167
+ params[params.W = 1] = "W", params[params.H = 2] = "H", params[params.WH = 3] = "WH";
19168
+ }(params || (params = {}));
19169
+
19170
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19171
+ var d,
19172
+ c = arguments.length,
19173
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19174
+ 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);
19175
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19176
+ },
19177
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
19178
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19179
+ };
19180
+ var initMatrix = new vutils.Matrix(1, 0, 0, 1, 0, 0),
19181
+ globalPoint = {
19182
+ x: 0,
19183
+ y: 0
19184
+ };
19185
+ var EmptyContext2d = /*#__PURE__*/function () {
19186
+ function EmptyContext2d(canvas, dpr) {
19187
+ _classCallCheck(this, EmptyContext2d);
19188
+ 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();
19189
+ }
19190
+ _createClass(EmptyContext2d, [{
19191
+ key: "nativeContext",
19192
+ get: function get() {
19193
+ return this.path;
19194
+ }
19195
+ }, {
19196
+ key: "getCanvas",
19197
+ value: function getCanvas() {
19198
+ throw new Error("不支持getCanvas");
19199
+ }
19200
+ }, {
19201
+ key: "getContext",
19202
+ value: function getContext() {
19203
+ throw new Error("不支持getContext");
19204
+ }
19205
+ }, {
19206
+ key: "setTransformForCurrent",
19207
+ value: function setTransformForCurrent() {
19208
+ var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
19209
+ !force && this.applyedMatrix.equalToMatrix(this.matrix) || (this.applyedMatrix = this.cloneMatrix(this.matrix));
19210
+ }
19211
+ }, {
19212
+ key: "currentMatrix",
19213
+ get: function get() {
19214
+ return this.matrix;
19215
+ }
19216
+ }, {
19217
+ key: "cloneMatrix",
19218
+ value: function cloneMatrix(m) {
19219
+ return matrixAllocate.allocateByObj(m);
19220
+ }
19221
+ }, {
19222
+ key: "clear",
19223
+ value: function clear() {
19224
+ this.save(), this.resetTransform(), this.restore();
19225
+ }
19226
+ }, {
19227
+ key: "restore",
19228
+ value: function restore() {
19229
+ this.stack.length > 0 && (matrixAllocate.free(this.matrix), this.matrix = this.stack.pop(), this.setTransformForCurrent());
19230
+ }
19231
+ }, {
19232
+ key: "highPerformanceRestore",
19233
+ value: function highPerformanceRestore() {
19234
+ this.stack.length > 0 && (matrixAllocate.free(this.matrix), this.matrix = this.stack.pop());
19235
+ }
19236
+ }, {
19237
+ key: "rotate",
19238
+ value: function rotate(rad) {
19239
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19240
+ this.matrix.rotate(rad), setTransform && this.setTransformForCurrent();
19241
+ }
19242
+ }, {
19243
+ key: "save",
19244
+ value: function save() {
19245
+ var matrix = this.cloneMatrix(this.matrix);
19246
+ this.stack.push(matrix);
19247
+ }
19248
+ }, {
19249
+ key: "highPerformanceSave",
19250
+ value: function highPerformanceSave() {
19251
+ var matrix = this.cloneMatrix(this.matrix);
19252
+ this.stack.push(matrix);
19253
+ }
19254
+ }, {
19255
+ key: "scale",
19256
+ value: function scale(sx, sy) {
19257
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19258
+ this.matrix.scale(sx, sy), setTransform && this.setTransformForCurrent();
19259
+ }
19260
+ }, {
19261
+ key: "setScale",
19262
+ value: function setScale(sx, sy) {
19263
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19264
+ this.matrix.setScale(sx, sy), setTransform && this.setTransformForCurrent();
19265
+ }
19266
+ }, {
19267
+ key: "scalePoint",
19268
+ value: function scalePoint(sx, sy, px, py) {
19269
+ var setTransform = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !0;
19270
+ this.translate(px, py, !1), this.scale(sx, sy, !1), this.translate(-px, -py, !1), setTransform && this.setTransformForCurrent();
19271
+ }
19272
+ }, {
19273
+ key: "setTransform",
19274
+ value: function setTransform(a, b, c, d, e, f) {
19275
+ var _setTransform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
19276
+ var dpr = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : this.dpr;
19277
+ this.matrix.setValue(dpr * a, dpr * b, dpr * c, dpr * d, dpr * e, dpr * f), _setTransform && this.setTransformForCurrent();
19278
+ }
19279
+ }, {
19280
+ key: "setTransformFromMatrix",
19281
+ value: function setTransformFromMatrix(matrix) {
19282
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19283
+ var dpr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dpr;
19284
+ this.matrix.setValue(matrix.a * dpr, matrix.b * dpr, matrix.c * dpr, matrix.d * dpr, matrix.e * dpr, matrix.f * dpr), setTransform && this.setTransformForCurrent();
19285
+ }
19286
+ }, {
19287
+ key: "resetTransform",
19288
+ value: function resetTransform() {
19289
+ var setTransform = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19290
+ var dpr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.dpr;
19291
+ this.setTransform(dpr, 0, 0, dpr, 0, 0), setTransform && this.setTransformForCurrent();
19292
+ }
19293
+ }, {
19294
+ key: "transform",
19295
+ value: function transform(a, b, c, d, e, f) {
19296
+ var setTransform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
19297
+ this.matrix.multiply(a, b, c, d, e, f), setTransform && this.setTransformForCurrent();
19298
+ }
19299
+ }, {
19300
+ key: "transformFromMatrix",
19301
+ value: function transformFromMatrix(matrix, setTransform) {
19302
+ this.matrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), setTransform && this.setTransformForCurrent();
19303
+ }
19304
+ }, {
19305
+ key: "translate",
19306
+ value: function translate(x, y) {
19307
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19308
+ this.matrix.translate(x, y), setTransform && this.setTransformForCurrent();
19309
+ }
19310
+ }, {
19311
+ key: "rotateDegrees",
19312
+ value: function rotateDegrees(deg) {
19313
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19314
+ var rad = deg * Math.PI / 180;
19315
+ this.rotate(rad, setTransform);
19316
+ }
19317
+ }, {
19318
+ key: "rotateAbout",
19319
+ value: function rotateAbout(rad, x, y) {
19320
+ var setTransform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
19321
+ this.translate(x, y, !1), this.rotate(rad, !1), this.translate(-x, -y, !1), setTransform && this.setTransformForCurrent();
19322
+ }
19323
+ }, {
19324
+ key: "rotateDegreesAbout",
19325
+ value: function rotateDegreesAbout(deg, x, y) {
19326
+ var setTransform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
19327
+ this.translate(x, y, !1), this.rotateDegrees(deg, !1), this.translate(-x, -y, !1), setTransform && this.setTransformForCurrent();
19328
+ }
19329
+ }, {
19330
+ key: "beginPath",
19331
+ value: function beginPath() {
19332
+ this.path.clear();
19333
+ }
19334
+ }, {
19335
+ key: "clip",
19336
+ value: function clip(path, fillRule) {}
19337
+ }, {
19338
+ key: "arc",
19339
+ value: function arc(x, y, radius, startAngle, endAngle, anticlockwise) {
19340
+ this.path.arc(x, y, radius, startAngle, endAngle, anticlockwise);
19341
+ }
19342
+ }, {
19343
+ key: "arcTo",
19344
+ value: function arcTo(x1, y1, x2, y2, radiusX) {
19345
+ this.path.arcTo(x1, y1, x2, y2, radiusX);
19346
+ }
19347
+ }, {
19348
+ key: "bezierCurveTo",
19349
+ value: function bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
19350
+ this.path.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
19351
+ }
19352
+ }, {
19353
+ key: "closePath",
19354
+ value: function closePath() {
19355
+ this.path.closePath();
19356
+ }
19357
+ }, {
19358
+ key: "ellipse",
19359
+ value: function ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) {}
19360
+ }, {
19361
+ key: "lineTo",
19362
+ value: function lineTo(x, y) {
19363
+ this.path.lineTo(x, y);
19364
+ }
19365
+ }, {
19366
+ key: "moveTo",
19367
+ value: function moveTo(x, y) {
19368
+ this.path.moveTo(x, y);
19369
+ }
19370
+ }, {
19371
+ key: "quadraticCurveTo",
19372
+ value: function quadraticCurveTo(cpx, cpy, x, y) {
19373
+ this.path.quadraticCurveTo(cpx, cpy, x, y);
19374
+ }
19375
+ }, {
19376
+ key: "rect",
19377
+ value: function rect(x, y, w, h) {
19378
+ this.path.rect(x, y, w, h);
19379
+ }
19380
+ }, {
19381
+ key: "createImageData",
19382
+ value: function createImageData(imageDataOrSw, sh) {
19383
+ return null;
19384
+ }
19385
+ }, {
19386
+ key: "createLinearGradient",
19387
+ value: function createLinearGradient(x0, y0, x1, y1) {
19388
+ throw new Error("不支持createLinearGradient");
19389
+ }
19390
+ }, {
19391
+ key: "createPattern",
19392
+ value: function createPattern(image, repetition) {
19393
+ throw new Error("不支持createPattern");
19394
+ }
19395
+ }, {
19396
+ key: "createRadialGradient",
19397
+ value: function createRadialGradient(x0, y0, r0, x1, y1, r1) {
19398
+ throw new Error("不支持createRadialGradient");
19399
+ }
19400
+ }, {
19401
+ key: "createConicGradient",
19402
+ value: function createConicGradient(x, y, startAngle, endAngle) {
19403
+ return null;
19404
+ }
19405
+ }, {
19406
+ key: "fill",
19407
+ value: function fill(path, fillRule) {}
19408
+ }, {
19409
+ key: "fillRect",
19410
+ value: function fillRect(x, y, width, height) {
19411
+ this.path.rect(x, y, width, height);
19412
+ }
19413
+ }, {
19414
+ key: "clearRect",
19415
+ value: function clearRect(x, y, w, h) {}
19416
+ }, {
19417
+ key: "fillText",
19418
+ value: function fillText(text, x, y) {}
19419
+ }, {
19420
+ key: "getImageData",
19421
+ value: function getImageData(sx, sy, sw, sh) {
19422
+ return null;
19423
+ }
19424
+ }, {
19425
+ key: "getLineDash",
19426
+ value: function getLineDash() {
19427
+ return [];
19428
+ }
19429
+ }, {
19430
+ key: "isPointInPath",
19431
+ value: function isPointInPath(x, y) {
19432
+ return this.matrix.transformPoint({
19433
+ x: x,
19434
+ y: y
19435
+ }, globalPoint), contain(this.path.commandList, globalPoint.x, globalPoint.y);
19436
+ }
19437
+ }, {
19438
+ key: "isPointInStroke",
19439
+ value: function isPointInStroke(x, y) {
19440
+ if (!this.lineWidth) return !1;
19441
+ this.matrix.transformPoint({
19442
+ x: x,
19443
+ y: y
19444
+ }, globalPoint);
19445
+ var lineWidth = getScaledStroke(this, this.lineWidth, this.dpr);
19446
+ return containStroke(this.path.commandList, lineWidth, globalPoint.x, globalPoint.y);
19447
+ }
19448
+ }, {
19449
+ key: "measureText",
19450
+ value: function measureText(text) {
19451
+ throw new Error("不支持measureText");
19452
+ }
19453
+ }, {
19454
+ key: "putImageData",
19455
+ value: function putImageData(imagedata, dx, dy) {
19456
+ throw new Error("不支持measureText");
19457
+ }
19458
+ }, {
19459
+ key: "setLineDash",
19460
+ value: function setLineDash(segments) {}
19461
+ }, {
19462
+ key: "stroke",
19463
+ value: function stroke(path) {}
19464
+ }, {
19465
+ key: "strokeRect",
19466
+ value: function strokeRect(x, y, width, height) {
19467
+ this.path.rect(x, y, width, height);
19468
+ }
19469
+ }, {
19470
+ key: "strokeText",
19471
+ value: function strokeText(text, x, y) {}
19472
+ }, {
19473
+ key: "drawImage",
19474
+ value: function drawImage() {}
19475
+ }, {
19476
+ key: "setCommonStyle",
19477
+ value: function setCommonStyle(params, attribute, offsetX, offsetY, defaultParams) {}
19478
+ }, {
19479
+ key: "_setCommonStyle",
19480
+ value: function _setCommonStyle(params, offsetX, offsetY, defaultParams) {}
19481
+ }, {
19482
+ key: "setStrokeStyle",
19483
+ value: function setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams) {}
19484
+ }, {
19485
+ key: "_setStrokeStyle",
19486
+ value: function _setStrokeStyle(params, offsetX, offsetY, defaultParams) {}
19487
+ }, {
19488
+ key: "setTextStyleWithoutAlignBaseline",
19489
+ value: function setTextStyleWithoutAlignBaseline(params, defaultParams) {}
19490
+ }, {
19491
+ key: "setTextStyle",
19492
+ value: function setTextStyle(params, defaultParams) {}
19493
+ }, {
19494
+ key: "draw",
19495
+ value: function draw() {}
19496
+ }, {
19497
+ key: "clearMatrix",
19498
+ value: function clearMatrix() {
19499
+ var setTransform = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19500
+ var dpr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.dpr;
19501
+ this.setTransformFromMatrix(initMatrix, setTransform, dpr);
19502
+ }
19503
+ }, {
19504
+ key: "onlyTranslate",
19505
+ value: function onlyTranslate() {
19506
+ var dpr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.dpr;
19507
+ return this.matrix.a === dpr && 0 === this.matrix.b && 0 === this.matrix.c && this.matrix.d === dpr;
19508
+ }
19509
+ }, {
19510
+ key: "release",
19511
+ value: function release() {
19512
+ this.stack.forEach(function (m) {
19513
+ return matrixAllocate.free(m);
19514
+ }), this.stack.length = 0;
19515
+ }
19516
+ }]);
19517
+ return EmptyContext2d;
19518
+ }();
19519
+ EmptyContext2d = __decorate$5([injectable(), __metadata$3("design:paramtypes", [Object, Number])], EmptyContext2d);
19520
+
19521
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19522
+ var d,
19523
+ c = arguments.length,
19524
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19525
+ 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);
19526
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19527
+ },
19528
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
19529
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19530
+ };
19531
+ var DefaultConfig = {
19532
+ WIDTH: 500,
19533
+ HEIGHT: 500,
19534
+ DPR: 1
19535
+ };
19536
+ var BaseCanvas = /*#__PURE__*/function () {
19537
+ function BaseCanvas(params) {
19538
+ _classCallCheck(this, BaseCanvas);
19539
+ var nativeCanvas = params.nativeCanvas,
19540
+ _params$width = params.width,
19541
+ width = _params$width === void 0 ? DefaultConfig.WIDTH : _params$width,
19542
+ _params$height = params.height,
19543
+ height = _params$height === void 0 ? DefaultConfig.HEIGHT : _params$height,
19544
+ _params$dpr = params.dpr,
19545
+ dpr = _params$dpr === void 0 ? DefaultConfig.DPR : _params$dpr,
19546
+ x = params.x,
19547
+ y = params.y,
19548
+ _params$canvasControl = params.canvasControled,
19549
+ canvasControled = _params$canvasControl === void 0 ? !0 : _params$canvasControl;
19550
+ 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);
19551
+ }
19552
+ _createClass(BaseCanvas, [{
19553
+ key: "displayWidth",
19554
+ get: function get() {
19555
+ return this._pixelWidth / this._dpr;
19556
+ }
19557
+ }, {
19558
+ key: "displayHeight",
19559
+ get: function get() {
19560
+ return this._pixelHeight / this._dpr;
19561
+ }
19562
+ }, {
19563
+ key: "id",
19564
+ get: function get() {
19565
+ return this._id;
19566
+ }
19567
+ }, {
19568
+ key: "x",
19569
+ get: function get() {
19570
+ return this._x;
19571
+ },
19572
+ set: function set(_x) {
19573
+ this._x = _x;
19574
+ }
19575
+ }, {
19576
+ key: "y",
19577
+ get: function get() {
19578
+ return this._y;
19579
+ },
19580
+ set: function set(_y) {
19581
+ this._y = _y;
19582
+ }
19583
+ }, {
19584
+ key: "nativeCanvas",
19585
+ get: function get() {
19586
+ return this._nativeCanvas;
19587
+ }
19588
+ }, {
19589
+ key: "width",
19590
+ get: function get() {
19591
+ return this._pixelWidth;
19592
+ },
19593
+ set: function set(width) {
19594
+ this._pixelWidth = width, this._displayWidth = width / (this._dpr || 1);
19595
+ }
19596
+ }, {
19597
+ key: "height",
19598
+ get: function get() {
19599
+ return this._pixelHeight;
19600
+ },
19601
+ set: function set(height) {
19602
+ this._pixelHeight = height, this._displayHeight = height / (this._dpr || 1);
19603
+ }
19604
+ }, {
19605
+ key: "getContext",
19606
+ value: function getContext(str) {
19607
+ return this._context;
19608
+ }
19609
+ }, {
19610
+ key: "visiable",
19611
+ get: function get() {
19612
+ return this._visiable;
19613
+ },
19614
+ set: function set(visiable) {
19615
+ this._visiable = visiable, visiable ? this.show() : this.hide();
19616
+ }
19617
+ }, {
19618
+ key: "dpr",
19619
+ get: function get() {
19620
+ return this._dpr;
19621
+ },
19622
+ set: function set(dpr) {
19623
+ this._dpr = dpr, this.resize(this._displayWidth, this._displayHeight);
19624
+ }
19625
+ }, {
19626
+ key: "getNativeCanvas",
19627
+ value: function getNativeCanvas() {
19628
+ return this._nativeCanvas;
19629
+ }
19630
+ }, {
19631
+ key: "hide",
19632
+ value: function hide() {}
19633
+ }, {
19634
+ key: "show",
19635
+ value: function show() {}
19636
+ }, {
19637
+ key: "applyPosition",
19638
+ value: function applyPosition() {}
19639
+ }, {
19640
+ key: "resetStyle",
19641
+ value: function resetStyle(params) {}
19642
+ }, {
19643
+ key: "resize",
19644
+ value: function resize(width, height) {}
19645
+ }, {
19646
+ key: "toDataURL",
19647
+ value: function toDataURL(mimeType, quality) {
19648
+ return "";
19649
+ }
19650
+ }, {
19651
+ key: "readPixels",
19652
+ value: function readPixels(x, y, w, h) {
19653
+ return this._context.getImageData(x, y, w, h);
19654
+ }
19655
+ }, {
19656
+ key: "convertToBlob",
19657
+ value: function convertToBlob(options) {
19658
+ throw new Error("暂未实现");
19659
+ }
19660
+ }, {
19661
+ key: "transferToImageBitmap",
19662
+ value: function transferToImageBitmap() {
19663
+ throw new Error("暂未实现");
19664
+ }
19665
+ }, {
19666
+ key: "release",
19667
+ value: function release() {
19668
+ this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
19669
+ }
19670
+ }]);
19671
+ return BaseCanvas;
19672
+ }();
19673
+ BaseCanvas.env = "browser", BaseCanvas = __decorate$4([injectable(), __metadata$2("design:paramtypes", [Object])], BaseCanvas);
19674
+
19675
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19676
+ var d,
19677
+ c = arguments.length,
19678
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19679
+ 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);
19680
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19681
+ };
19682
+ var BaseEnvContribution = /*#__PURE__*/function () {
19683
+ function BaseEnvContribution() {
19684
+ _classCallCheck(this, BaseEnvContribution);
19685
+ }
19686
+ _createClass(BaseEnvContribution, [{
19687
+ key: "configure",
19688
+ value: function configure(service) {
19689
+ service.env === this.type && service.setActiveEnvContribution(this);
19690
+ }
19691
+ }, {
19692
+ key: "getNativeAABBBounds",
19693
+ value: function getNativeAABBBounds(dom) {
19694
+ return new vutils.AABBBounds();
19695
+ }
19696
+ }, {
19697
+ key: "removeDom",
19698
+ value: function removeDom(dom) {
19699
+ return !1;
19700
+ }
19701
+ }, {
19702
+ key: "createDom",
19703
+ value: function createDom(params) {
19704
+ return null;
19705
+ }
19706
+ }, {
19707
+ key: "getDynamicCanvasCount",
19708
+ value: function getDynamicCanvasCount() {
19709
+ return 999;
19710
+ }
19711
+ }, {
19712
+ key: "getStaticCanvasCount",
19713
+ value: function getStaticCanvasCount() {
19714
+ return 999;
19715
+ }
19716
+ }, {
19717
+ key: "getElementById",
19718
+ value: function getElementById(str) {
19719
+ return document.getElementById(str);
19720
+ }
19721
+ }, {
19722
+ key: "getRootElement",
19723
+ value: function getRootElement() {
19724
+ return document.body;
19725
+ }
19726
+ }, {
19727
+ key: "loadJson",
19728
+ value: function loadJson(url) {
19729
+ var jsonPromise = fetch(url).then(function (data) {
19730
+ return data.json();
19731
+ });
19732
+ return jsonPromise.then(function (json) {
19733
+ return {
19734
+ data: json,
19735
+ state: "success"
19736
+ };
19737
+ })["catch"](function () {
19738
+ return {
19739
+ data: null,
19740
+ state: "fail"
19741
+ };
19742
+ }), jsonPromise;
19743
+ }
19744
+ }, {
19745
+ key: "loadArrayBuffer",
19746
+ value: function loadArrayBuffer(url) {
19747
+ return fetch(url).then(function (data) {
19748
+ return data.arrayBuffer();
19749
+ }).then(function (arrayBuffer) {
19750
+ return {
19751
+ data: arrayBuffer,
19752
+ loadState: "success"
19753
+ };
19754
+ })["catch"](function () {
19755
+ return {
19756
+ data: null,
19757
+ loadState: "fail"
19758
+ };
19759
+ });
19760
+ }
19761
+ }, {
19762
+ key: "loadBlob",
19763
+ value: function loadBlob(url) {
19764
+ return fetch(url).then(function (data) {
19765
+ return data.blob();
19766
+ }).then(function (blob) {
19767
+ return {
19768
+ data: blob,
19769
+ loadState: "success"
19770
+ };
19771
+ })["catch"](function () {
19772
+ return {
19773
+ data: null,
19774
+ loadState: "fail"
19775
+ };
19776
+ });
19777
+ }
19778
+ }, {
19779
+ key: "getElementTop",
19780
+ value: function getElementTop(dom, baseWindow) {
19781
+ return 0;
19782
+ }
19783
+ }, {
19784
+ key: "getElementLeft",
19785
+ value: function getElementLeft(dom, baseWindow) {
19786
+ return 0;
19787
+ }
19788
+ }, {
19789
+ key: "getElementTopLeft",
19790
+ value: function getElementTopLeft(dom, baseWindow) {
19791
+ return {
19792
+ top: 0,
19793
+ left: 0
19794
+ };
19795
+ }
19796
+ }]);
19797
+ return BaseEnvContribution;
19798
+ }();
19799
+ BaseEnvContribution = __decorate$3([injectable()], BaseEnvContribution);
19800
+
19801
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19802
+ var d,
19803
+ c = arguments.length,
19804
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19805
+ 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);
19806
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19807
+ },
19808
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
19809
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19810
+ };
19811
+ var BaseWindowHandlerContribution = /*#__PURE__*/function () {
19812
+ function BaseWindowHandlerContribution() {
19813
+ _classCallCheck(this, BaseWindowHandlerContribution);
19814
+ this._uid = Generator.GenAutoIncrementId();
19815
+ }
19816
+ _createClass(BaseWindowHandlerContribution, [{
19817
+ key: "onChange",
19818
+ value: function onChange(cb) {
19819
+ this._onChangeCb = cb;
19820
+ }
19821
+ }, {
19822
+ key: "configure",
19823
+ value: function configure(window, global) {
19824
+ global.env === this.type && window.setWindowHandler(this);
19825
+ }
19826
+ }, {
19827
+ key: "release",
19828
+ value: function release() {
19829
+ this.releaseWindow();
19830
+ }
19831
+ }, {
19832
+ key: "isVisible",
19833
+ value: function isVisible(bbox) {
19834
+ return !0;
19835
+ }
19836
+ }, {
19837
+ key: "onVisibleChange",
19838
+ value: function onVisibleChange(cb) {}
19839
+ }, {
19840
+ key: "getTopLeft",
19841
+ value: function getTopLeft(baseWindow) {
19842
+ return {
19843
+ top: 0,
19844
+ left: 0
19845
+ };
19846
+ }
19847
+ }]);
19848
+ return BaseWindowHandlerContribution;
19849
+ }();
19850
+ BaseWindowHandlerContribution = __decorate$2([injectable(), __metadata$1("design:paramtypes", [])], BaseWindowHandlerContribution);
18390
19851
 
18391
19852
  var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18392
- var d,
18393
- c = arguments.length,
18394
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18395
- 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);
18396
- return c > 3 && r && Object.defineProperty(target, key, r), r;
18397
- };
18398
- var DefaultAreaBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
18399
- _inherits(DefaultAreaBackgroundRenderContribution, _DefaultBaseBackgroun);
18400
- var _super = _createSuper(DefaultAreaBackgroundRenderContribution);
18401
- function DefaultAreaBackgroundRenderContribution() {
18402
- var _this;
18403
- _classCallCheck(this, DefaultAreaBackgroundRenderContribution);
18404
- _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
18405
- return _this;
18406
- }
18407
- return _createClass(DefaultAreaBackgroundRenderContribution);
18408
- }(DefaultBaseBackgroundRenderContribution);
18409
- DefaultAreaBackgroundRenderContribution = __decorate$1([injectable()], DefaultAreaBackgroundRenderContribution);
18410
- var DefaultAreaTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18411
- _inherits(DefaultAreaTextureRenderContribution, _DefaultBaseTextureRe);
18412
- var _super2 = _createSuper(DefaultAreaTextureRenderContribution);
18413
- function DefaultAreaTextureRenderContribution() {
18414
- var _this2;
18415
- _classCallCheck(this, DefaultAreaTextureRenderContribution);
18416
- _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
18417
- return _this2;
18418
- }
18419
- _createClass(DefaultAreaTextureRenderContribution, [{
18420
- key: "drawShape",
18421
- value: function drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
18422
- var _a, _b, _c, _d;
18423
- this.textureMap || this.initTextureMap(context, graphic.stage);
18424
- var _ref = options || {},
18425
- _ref$attribute = _ref.attribute,
18426
- attribute = _ref$attribute === void 0 ? graphic.attribute : _ref$attribute,
18427
- _attribute$texture = attribute.texture,
18428
- texture = _attribute$texture === void 0 ? null !== (_a = graphic.attribute.texture) && void 0 !== _a ? _a : getAttributeFromDefaultAttrList(graphicAttribute, "texture") : _attribute$texture,
18429
- _attribute$textureCol = attribute.textureColor,
18430
- textureColor = _attribute$textureCol === void 0 ? null !== (_b = graphic.attribute.textureColor) && void 0 !== _b ? _b : getAttributeFromDefaultAttrList(graphicAttribute, "textureColor") : _attribute$textureCol,
18431
- _attribute$textureSiz = attribute.textureSize,
18432
- textureSize = _attribute$textureSiz === void 0 ? null !== (_c = graphic.attribute.textureSize) && void 0 !== _c ? _c : getAttributeFromDefaultAttrList(graphicAttribute, "textureSize") : _attribute$textureSiz,
18433
- _attribute$texturePad = attribute.texturePadding,
18434
- texturePadding = _attribute$texturePad === void 0 ? null !== (_d = graphic.attribute.texturePadding) && void 0 !== _d ? _d : getAttributeFromDefaultAttrList(graphicAttribute, "texturePadding") : _attribute$texturePad;
18435
- if (!texture) return;
18436
- var pattern = this.textureMap.get(texture);
18437
- if (!pattern) switch (texture) {
18438
- case "circle":
18439
- pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
18440
- break;
18441
- case "diamond":
18442
- pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
18443
- break;
18444
- case "rect":
18445
- pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
18446
- break;
18447
- case "vertical-line":
18448
- pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
18449
- break;
18450
- case "horizontal-line":
18451
- pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
18452
- break;
18453
- case "bias-lr":
18454
- pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
18455
- break;
18456
- case "bias-rl":
18457
- pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
18458
- break;
18459
- case "grid":
18460
- pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
19853
+ var d,
19854
+ c = arguments.length,
19855
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19856
+ 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);
19857
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19858
+ },
19859
+ __metadata = undefined && undefined.__metadata || function (k, v) {
19860
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19861
+ },
19862
+ __param = undefined && undefined.__param || function (paramIndex, decorator) {
19863
+ return function (target, key) {
19864
+ decorator(target, key, paramIndex);
19865
+ };
19866
+ };
19867
+ var DefaultPickService = /*#__PURE__*/function () {
19868
+ function DefaultPickService(global, pickItemInterceptorContributions) {
19869
+ _classCallCheck(this, DefaultPickService);
19870
+ this.global = global, this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.type = "default";
19871
+ }
19872
+ _createClass(DefaultPickService, [{
19873
+ key: "_init",
19874
+ value: function _init() {
19875
+ this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort(function (a, b) {
19876
+ return a.order - b.order;
19877
+ });
19878
+ }
19879
+ }, {
19880
+ key: "pick",
19881
+ value: function pick(graphics, point, params) {
19882
+ var result = {
19883
+ graphic: null,
19884
+ group: null
19885
+ };
19886
+ params.pickerService = this;
19887
+ var offsetX = 0,
19888
+ offsetY = 0;
19889
+ if (params && params.bounds) {
19890
+ if (!params.bounds.contains(point.x, point.y)) return result;
19891
+ offsetX = params.bounds.x1, offsetY = params.bounds.y1;
19892
+ }
19893
+ this.pickContext && (this.pickContext.inuse = !0), params.pickContext = this.pickContext, this.pickContext && this.pickContext.clearMatrix(!0, 1);
19894
+ var parentMatrix = new vutils.Matrix(1, 0, 0, 1, offsetX, offsetY);
19895
+ var group;
19896
+ 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);
19897
+ if (result.graphic || (result.group = group), this.pickContext && (this.pickContext.inuse = !1), result.graphic) {
19898
+ var g = result.graphic;
19899
+ for (; g.parent;) g = g.parent;
19900
+ g.shadowHost && (result.params = {
19901
+ shadowTarget: result.graphic
19902
+ }, result.graphic = g.shadowHost);
18461
19903
  }
18462
- pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
19904
+ return result;
19905
+ }
19906
+ }, {
19907
+ key: "containsPoint",
19908
+ value: function containsPoint(graphic, point, params) {
19909
+ return !!this.pickItem(graphic, point, null, params);
19910
+ }
19911
+ }, {
19912
+ key: "pickGroup",
19913
+ value: function pickGroup(group, point, parentMatrix, params) {
19914
+ var _this = this;
19915
+ var result = {
19916
+ group: null,
19917
+ graphic: null
19918
+ };
19919
+ if (!1 === group.attribute.visibleAll) return result;
19920
+ var context = params.pickContext,
19921
+ lastMatrix = context.modelMatrix;
19922
+ if (context.camera) {
19923
+ var m = group.transMatrix,
19924
+ matrix = mat4Allocate.allocate();
19925
+ if (mat3Tomat4(matrix, m), lastMatrix) {
19926
+ if (matrix) {
19927
+ var _m = mat4Allocate.allocate();
19928
+ context.modelMatrix = multiplyMat4Mat4(_m, lastMatrix, matrix), mat4Allocate.free(matrix);
19929
+ }
19930
+ } else mat3Tomat4(matrix, group.globalTransMatrix), context.modelMatrix = matrix;
19931
+ }
19932
+ if (this.InterceptorContributions.length) for (var i = 0; i < this.InterceptorContributions.length; i++) {
19933
+ var drawContribution = this.InterceptorContributions[i];
19934
+ if (drawContribution.beforePickItem) {
19935
+ var _result = drawContribution.beforePickItem(group, this, point, params, {
19936
+ parentMatrix: parentMatrix
19937
+ });
19938
+ if (_result) return context.modelMatrix !== lastMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastMatrix, _result;
19939
+ }
19940
+ }
19941
+ var transMatrix = group.transMatrix,
19942
+ currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
19943
+ newPoint = new vutils.Point(point.x, point.y);
19944
+ currentGroupMatrix.transformPoint(newPoint, newPoint);
19945
+ var insideGroup = group.AABBBounds.containsPoint(newPoint);
19946
+ if (!insideGroup && !group.stage.camera) return result;
19947
+ var pickedItem = this.pickItem(group, newPoint.clone(), parentMatrix, params);
19948
+ pickedItem && pickedItem.graphic && (result.graphic = pickedItem.graphic, result.params = pickedItem.params);
19949
+ var groupPicked = !1 !== group.attribute.pickable && insideGroup;
19950
+ 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) {
19951
+ if (graphic.isContainer) {
19952
+ var _newPoint = new vutils.Point(point.x, point.y),
19953
+ theme = getTheme(group).group,
19954
+ _group$attribute = group.attribute,
19955
+ _group$attribute$scro = _group$attribute.scrollX,
19956
+ scrollX = _group$attribute$scro === void 0 ? theme.scrollX : _group$attribute$scro,
19957
+ _group$attribute$scro2 = _group$attribute.scrollY,
19958
+ scrollY = _group$attribute$scro2 === void 0 ? theme.scrollY : _group$attribute$scro2;
19959
+ _newPoint.x -= scrollX, _newPoint.y -= scrollY, result = _this.pickGroup(graphic, _newPoint, currentGroupMatrix, params);
19960
+ } else {
19961
+ var _newPoint2 = new vutils.Point(point.x, point.y);
19962
+ currentGroupMatrix.transformPoint(_newPoint2, _newPoint2);
19963
+ var _theme = getTheme(group).group,
19964
+ _group$attribute2 = group.attribute,
19965
+ _group$attribute2$scr = _group$attribute2.scrollX,
19966
+ _scrollX = _group$attribute2$scr === void 0 ? _theme.scrollX : _group$attribute2$scr,
19967
+ _group$attribute2$scr2 = _group$attribute2.scrollY,
19968
+ _scrollY = _group$attribute2$scr2 === void 0 ? _theme.scrollY : _group$attribute2$scr2;
19969
+ _newPoint2.x -= _scrollX, _newPoint2.y -= _scrollY;
19970
+ var _pickedItem = _this.pickItem(graphic, _newPoint2, parentMatrix, params);
19971
+ _pickedItem && _pickedItem.graphic && (result.graphic = _pickedItem.graphic, result.params = _pickedItem.params);
19972
+ }
19973
+ return !!result.graphic || !!result.group;
19974
+ }, !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;
19975
+ }
19976
+ }, {
19977
+ key: "selectPicker",
19978
+ value: function selectPicker(graphic) {
19979
+ var picker = this.pickerMap.get(graphic.numberType);
19980
+ return picker || null;
18463
19981
  }
18464
19982
  }]);
18465
- return DefaultAreaTextureRenderContribution;
18466
- }(DefaultBaseTextureRenderContribution);
18467
- DefaultAreaTextureRenderContribution = __decorate$1([injectable()], DefaultAreaTextureRenderContribution);
18468
-
18469
- var renderModule = new ContainerModule(function (bind) {
18470
- 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);
18471
- });
18472
-
18473
- function load(container) {
18474
- container.load(renderModule);
18475
- }
18476
-
18477
- container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$1(container), load(container);
18478
- var vglobal = container.get(VGlobal);
18479
- application.global = vglobal;
18480
- var graphicUtil = container.get(GraphicUtil);
18481
- application.graphicUtil = graphicUtil;
18482
- var transformUtil = container.get(TransformUtil);
18483
- application.transformUtil = transformUtil;
18484
- var graphicService = container.get(GraphicService);
18485
- application.graphicService = graphicService;
18486
- container.get(GlobalPickerService);
18487
- var layerService = container.get(LayerService);
18488
- application.layerService = layerService;
19983
+ return DefaultPickService;
19984
+ }();
19985
+ DefaultPickService = __decorate$1([injectable(), __param(0, inject(VGlobal)), __param(1, inject(ContributionProvider)), __param(1, named(PickItemInterceptor)), __metadata("design:paramtypes", [Object, Object])], DefaultPickService);
18489
19986
 
18490
19987
  const GROUP_ATTRIBUTES = [
18491
19988
  'x',
@@ -18642,11 +20139,11 @@
18642
20139
  this._onSliderPointerUp = (e) => {
18643
20140
  e.preventDefault();
18644
20141
  if (vglobal.env === 'browser') {
18645
- vglobal.removeEventListener('pointermove', this._onSliderPointerMove);
20142
+ vglobal.removeEventListener('pointermove', this._onSliderPointerMove, { capture: true });
18646
20143
  vglobal.removeEventListener('pointerup', this._onSliderPointerUp);
18647
20144
  }
18648
20145
  else {
18649
- this._slider.removeEventListener('pointermove', this._onSliderPointerMove);
20146
+ this._slider.removeEventListener('pointermove', this._onSliderPointerMove, { capture: true });
18650
20147
  this._slider.removeEventListener('pointerup', this._onSliderPointerUp);
18651
20148
  this._slider.removeEventListener('pointerupoutside', this._onSliderPointerUp);
18652
20149
  }
@@ -19734,6 +21231,12 @@
19734
21231
  this.activeEvent = 'onRegister';
19735
21232
  this._uid = Generator.GenAutoIncrementId();
19736
21233
  this.key = this.name + this._uid;
21234
+ this.pointerlave = (e) => {
21235
+ const { stage } = this.pluginService;
21236
+ if (e.target === stage) {
21237
+ this.unpoptip(e);
21238
+ }
21239
+ };
19737
21240
  this.poptip = (e) => {
19738
21241
  const graphic = e.target;
19739
21242
  if (graphic.type !== 'text' || !graphic.cliped || graphic.isContainer || !graphic.attribute) {
@@ -19767,6 +21270,7 @@
19767
21270
  this.pluginService = context;
19768
21271
  const { stage } = this.pluginService;
19769
21272
  stage.addEventListener('pointerover', this.poptip);
21273
+ stage.addEventListener('pointerleave', this.pointerlave);
19770
21274
  }
19771
21275
  setActiveGraphic(graphic, rerender) {
19772
21276
  this.activeGraphic = graphic;
@@ -19775,6 +21279,7 @@
19775
21279
  deactivate(context) {
19776
21280
  const { stage } = this.pluginService;
19777
21281
  stage.removeEventListener('pointerover', this.poptip);
21282
+ stage.removeEventListener('pointerleave', this.pointerlave);
19778
21283
  }
19779
21284
  };
19780
21285
  PopTipForClipedTextPlugin = __decorate([
@@ -26652,11 +28157,15 @@
26652
28157
  this._onTrackPointerUp = (e) => {
26653
28158
  e.preventDefault();
26654
28159
  if (vglobal.env === 'browser') {
26655
- vglobal.removeEventListener('pointermove', this._onTrackPointerMove);
28160
+ vglobal.removeEventListener('pointermove', this._onTrackPointerMove, {
28161
+ capture: true
28162
+ });
26656
28163
  vglobal.removeEventListener('pointerup', this._onTrackPointerUp);
26657
28164
  }
26658
28165
  else {
26659
- this._track.removeEventListener('pointermove', this._onTrackPointerMove);
28166
+ this._track.removeEventListener('pointermove', this._onTrackPointerMove, {
28167
+ capture: true
28168
+ });
26660
28169
  this._track.removeEventListener('pointerup', this._onTrackPointerUp);
26661
28170
  this._track.removeEventListener('pointerupoutside', this._onTrackPointerUp);
26662
28171
  }
@@ -27532,7 +29041,7 @@
27532
29041
  }
27533
29042
  if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign)) {
27534
29043
  const mainTitleVerticalAlign = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign : verticalAlign;
27535
- const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleWidth;
29044
+ const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleHeight;
27536
29045
  if (mainTitleVerticalAlign === 'top') {
27537
29046
  (_18 = this._mainTitle) === null || _18 === void 0 ? void 0 : _18.setAttribute('y', 0);
27538
29047
  (_19 = this._mainTitle) === null || _19 === void 0 ? void 0 : _19.setAttribute('textBaseline', 'top');
@@ -29299,13 +30808,157 @@
29299
30808
  return new Tag(params ? params.attribute : {});
29300
30809
  }
29301
30810
 
29302
- const version = "0.16.2-alpha.0";
30811
+ const svg = '<svg width="200" height="200" viewBox="0 0 1024 1024" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z"></path></svg>';
30812
+ class CheckBox extends AbstractComponent {
30813
+ constructor(attributes) {
30814
+ super(vutils.merge({}, CheckBox.defaultAttributes, attributes));
30815
+ this.renderGroup();
30816
+ this.onBeforeAttributeUpdate = (val, attributes, key) => {
30817
+ if ('interactive' in val) {
30818
+ this.setAttribute('pickable', val.interactive);
30819
+ }
30820
+ if ('disabled' in val) {
30821
+ this.setAttribute('cursor', val.disable ? this.attribute.disableCursor : this.attribute.cursor);
30822
+ }
30823
+ return undefined;
30824
+ };
30825
+ this.addEventListener('click', this.handleClick);
30826
+ }
30827
+ render() {
30828
+ this.removeAllChild();
30829
+ this.renderBox();
30830
+ this.renderIcon();
30831
+ this.renderText();
30832
+ this.layout();
30833
+ }
30834
+ renderBox() {
30835
+ this._box = new Rect(vutils.merge({}, this.attribute.box));
30836
+ if (this.attribute.checked && this.attribute.disabled) {
30837
+ this._box.setAttributes({
30838
+ fill: this.attribute.box.disableCheckedFill,
30839
+ stroke: this.attribute.box.disableCheckedStroke
30840
+ });
30841
+ }
30842
+ else if (this.attribute.checked) {
30843
+ this._box.setAttributes({
30844
+ fill: this.attribute.box.checkedFill,
30845
+ stroke: this.attribute.box.checkedStroke
30846
+ });
30847
+ }
30848
+ this.appendChild(this._box);
30849
+ }
30850
+ renderIcon() {
30851
+ this._icon = new Image(vutils.merge({}, this.attribute.icon));
30852
+ if (!this.attribute.checked) {
30853
+ this._icon.setAttribute('visible', false);
30854
+ }
30855
+ this.appendChild(this._icon);
30856
+ }
30857
+ renderText() {
30858
+ this._text = new WrapText(vutils.merge({}, this.attribute.text));
30859
+ if (this.attribute.disabled) {
30860
+ this._text.setAttribute('fill', this.attribute.text.disableFill);
30861
+ }
30862
+ this.appendChild(this._text);
30863
+ }
30864
+ renderGroup() {
30865
+ if (!this.attribute.interactive) {
30866
+ this.setAttribute('pickable', false);
30867
+ }
30868
+ if (this.attribute.disabled) {
30869
+ this.setAttribute('cursor', this.attribute.disableCursor);
30870
+ }
30871
+ }
30872
+ layout() {
30873
+ const boxHeight = this.attribute.box.height;
30874
+ const iconHeight = this.attribute.icon.height;
30875
+ const textHeight = this._text.AABBBounds.height();
30876
+ const maxHeight = Math.max(boxHeight, iconHeight, textHeight);
30877
+ const boxY = maxHeight / 2 - boxHeight / 2;
30878
+ const iconY = maxHeight / 2 - iconHeight / 2;
30879
+ const textY = maxHeight / 2 - textHeight / 2;
30880
+ const boxWidth = this.attribute.box.width;
30881
+ const iconWidth = this.attribute.icon.width;
30882
+ const maxWidth = Math.max(boxWidth, iconWidth);
30883
+ const boxX = maxWidth / 2 - boxWidth / 2;
30884
+ const iconX = maxWidth / 2 - iconWidth / 2;
30885
+ const textX = maxWidth + this.attribute.spaceBetweenTextAndIcon;
30886
+ this._box.setAttributes({
30887
+ x: boxX,
30888
+ y: boxY
30889
+ });
30890
+ this._icon.setAttributes({
30891
+ x: iconX,
30892
+ y: iconY
30893
+ });
30894
+ this._text.setAttributes({
30895
+ x: textX,
30896
+ y: textY
30897
+ });
30898
+ }
30899
+ handleClick() {
30900
+ var _a;
30901
+ if (this.attribute.disabled) {
30902
+ return;
30903
+ }
30904
+ else if (this.attribute.checked) {
30905
+ this.setAttribute('checked', false);
30906
+ }
30907
+ else {
30908
+ this.setAttribute('checked', true);
30909
+ }
30910
+ const changeEvent = new CustomEvent('checkbox_state_change', {
30911
+ eventType: 'checkbox_state_change',
30912
+ checked: this.attribute.checked
30913
+ });
30914
+ changeEvent.manager = (_a = this.stage) === null || _a === void 0 ? void 0 : _a.eventSystem.manager;
30915
+ this.dispatchEvent(changeEvent);
30916
+ }
30917
+ }
30918
+ CheckBox.defaultAttributes = {
30919
+ interactive: true,
30920
+ disabled: false,
30921
+ checked: false,
30922
+ cursor: 'pointer',
30923
+ disableCursor: 'not-allowed',
30924
+ spaceBetweenTextAndIcon: 8,
30925
+ text: {
30926
+ text: 'text',
30927
+ fontSize: 14,
30928
+ fill: '#000',
30929
+ disableFill: 'rgb(201,205,212)',
30930
+ textBaseline: 'top',
30931
+ pickable: false
30932
+ },
30933
+ icon: {
30934
+ image: svg,
30935
+ width: 10,
30936
+ height: 10,
30937
+ pickable: false
30938
+ },
30939
+ box: {
30940
+ width: 14,
30941
+ height: 14,
30942
+ cornerRadius: 2,
30943
+ fill: '#fff',
30944
+ stroke: 'rgb(229,230,235)',
30945
+ disableFill: 'rgb(242,243,245)',
30946
+ checkedFill: 'rgb(22, 93, 255)',
30947
+ checkedStroke: 'rgb(22, 93, 255)',
30948
+ disableCheckedFill: 'rgb(148, 191, 255)',
30949
+ disableCheckedStroke: 'rgb(148, 191, 255)',
30950
+ pickable: false
30951
+ }
30952
+ };
30953
+
30954
+ const version = "0.16.2-alpha.1";
29303
30955
 
29304
30956
  exports.AbstractComponent = AbstractComponent;
29305
30957
  exports.ArcInfo = ArcInfo;
29306
30958
  exports.ArcLabel = ArcLabel;
29307
30959
  exports.BasePlayer = BasePlayer;
29308
30960
  exports.Brush = Brush;
30961
+ exports.CheckBox = CheckBox;
29309
30962
  exports.CircleAxis = CircleAxis;
29310
30963
  exports.CircleAxisGrid = CircleAxisGrid;
29311
30964
  exports.CircleCrosshair = CircleCrosshair;