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

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.
package/dist/index.js CHANGED
@@ -2782,17 +2782,17 @@
2782
2782
  var EnvContribution = Symbol["for"]("EnvContribution");
2783
2783
  var VGlobal = Symbol["for"]("VGlobal");
2784
2784
 
2785
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
2785
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
2786
2786
  var d,
2787
2787
  c = arguments.length,
2788
2788
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
2789
2789
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
2790
2790
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2791
2791
  },
2792
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
2792
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
2793
2793
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
2794
2794
  },
2795
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
2795
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
2796
2796
  return function (target, key) {
2797
2797
  decorator(target, key, paramIndex);
2798
2798
  };
@@ -2818,26 +2818,41 @@
2818
2818
  key: "supportEvent",
2819
2819
  get: function get() {
2820
2820
  return this._env || this.setEnv("browser"), this.envContribution.supportEvent;
2821
+ },
2822
+ set: function set(support) {
2823
+ this._env || this.setEnv("browser"), this.envContribution.supportEvent = support;
2821
2824
  }
2822
2825
  }, {
2823
2826
  key: "supportsTouchEvents",
2824
2827
  get: function get() {
2825
2828
  return this._env || this.setEnv("browser"), this.envContribution.supportsTouchEvents;
2829
+ },
2830
+ set: function set(support) {
2831
+ this._env || this.setEnv("browser"), this.envContribution.supportsTouchEvents = support;
2826
2832
  }
2827
2833
  }, {
2828
2834
  key: "supportsPointerEvents",
2829
2835
  get: function get() {
2830
2836
  return this._env || this.setEnv("browser"), this.envContribution.supportsPointerEvents;
2837
+ },
2838
+ set: function set(support) {
2839
+ this._env || this.setEnv("browser"), this.envContribution.supportsPointerEvents = support;
2831
2840
  }
2832
2841
  }, {
2833
2842
  key: "supportsMouseEvents",
2834
2843
  get: function get() {
2835
2844
  return this._env || this.setEnv("browser"), this.envContribution.supportsMouseEvents;
2845
+ },
2846
+ set: function set(support) {
2847
+ this._env || this.setEnv("browser"), this.envContribution.supportsMouseEvents = support;
2836
2848
  }
2837
2849
  }, {
2838
2850
  key: "applyStyles",
2839
2851
  get: function get() {
2840
2852
  return this._env || this.setEnv("browser"), this.envContribution.applyStyles;
2853
+ },
2854
+ set: function set(support) {
2855
+ this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
2841
2856
  }
2842
2857
  }, {
2843
2858
  key: "bindContribution",
@@ -3017,7 +3032,7 @@
3017
3032
  }]);
3018
3033
  return DefaultGlobal;
3019
3034
  }();
3020
- DefaultGlobal = __decorate$R([injectable(), __param$n(0, inject(ContributionProvider)), __param$n(0, named(EnvContribution)), __metadata$n("design:paramtypes", [Object])], DefaultGlobal);
3035
+ DefaultGlobal = __decorate$X([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(EnvContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGlobal);
3021
3036
 
3022
3037
  var circleThreshold = vutils.tau - 1e-8;
3023
3038
  var BoundsContext = /*#__PURE__*/function () {
@@ -3795,10 +3810,10 @@
3795
3810
  value: function lineEnd() {
3796
3811
  switch (this._point) {
3797
3812
  case 2:
3798
- this.context.lineTo(this._x1, this._y1, !1 !== this._lastDefined2, this.lastPoint1);
3813
+ this.context.lineTo(this._x1, this._y1, !1 !== this._lastDefined1 && !1 !== this._lastDefined2, this.lastPoint1);
3799
3814
  break;
3800
3815
  case 3:
3801
- _point(this, this._t0, slope2(this, this._t0), !1 !== this._lastDefined2, this.lastPoint1);
3816
+ _point(this, this._t0, slope2(this, this._t0), !1 !== this._lastDefined1 && !1 !== this._lastDefined2, this.lastPoint1);
3802
3817
  }
3803
3818
  (this._line || 0 !== this._line && 1 === this._point) && this.context.closePath(), this._line = 1 - this._line;
3804
3819
  }
@@ -4737,7 +4752,7 @@
4737
4752
  return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
4738
4753
  }
4739
4754
 
4740
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4755
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4741
4756
  var d,
4742
4757
  c = arguments.length,
4743
4758
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4943,9 +4958,9 @@
4943
4958
  }]);
4944
4959
  return ATextMeasure;
4945
4960
  }();
4946
- ATextMeasure = __decorate$Q([injectable()], ATextMeasure);
4961
+ ATextMeasure = __decorate$W([injectable()], ATextMeasure);
4947
4962
 
4948
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4963
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4949
4964
  var d,
4950
4965
  c = arguments.length,
4951
4966
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4962,7 +4977,7 @@
4962
4977
  }
4963
4978
  return _createClass(DefaultTextMeasureContribution);
4964
4979
  }(ATextMeasure);
4965
- DefaultTextMeasureContribution = __decorate$P([injectable()], DefaultTextMeasureContribution);
4980
+ DefaultTextMeasureContribution = __decorate$V([injectable()], DefaultTextMeasureContribution);
4966
4981
 
4967
4982
  var container = new Container();
4968
4983
 
@@ -4971,18 +4986,376 @@
4971
4986
  function wrapCanvas(params) {
4972
4987
  return container.getNamed(CanvasFactory, application.global.env)(params);
4973
4988
  }
4989
+ var EPSILON_NUMERIC = 1e-4,
4990
+ THREE_SQRT = Math.sqrt(3),
4991
+ ONE_THIRD = 1 / 3;
4992
+ function isAroundZero(val) {
4993
+ return val > -EPSILON && val < EPSILON;
4994
+ }
4995
+ function isNotAroundZero(val) {
4996
+ return val > EPSILON || val < -EPSILON;
4997
+ }
4998
+ var _v0 = [0, 0],
4999
+ _v1 = [0, 0],
5000
+ _v2 = [0, 0];
5001
+ function distanceSquare(v1, v2) {
5002
+ return (v1[0] - v2[0]) * (v1[0] - v2[0]) + (v1[1] - v2[1]) * (v1[1] - v2[1]);
5003
+ }
5004
+ function quadraticAt(p0, p1, p2, t) {
5005
+ var onet = 1 - t;
5006
+ return onet * (onet * p0 + 2 * t * p1) + t * t * p2;
5007
+ }
5008
+ function cubicAt(p0, p1, p2, p3, t) {
5009
+ var onet = 1 - t;
5010
+ return onet * onet * (onet * p0 + 3 * t * p1) + t * t * (t * p3 + 3 * onet * p2);
5011
+ }
5012
+ function quadraticRootAt(p0, p1, p2, val, roots) {
5013
+ var a = p0 - 2 * p1 + p2,
5014
+ b = 2 * (p1 - p0),
5015
+ c = p0 - val;
5016
+ var n = 0;
5017
+ if (isAroundZero(a)) {
5018
+ if (isNotAroundZero(b)) {
5019
+ var t1 = -c / b;
5020
+ t1 >= 0 && t1 <= 1 && (roots[n++] = t1);
5021
+ }
5022
+ } else {
5023
+ var disc = b * b - 4 * a * c;
5024
+ if (isAroundZero(disc)) {
5025
+ var _t2 = -b / (2 * a);
5026
+ _t2 >= 0 && _t2 <= 1 && (roots[n++] = _t2);
5027
+ } else if (disc > 0) {
5028
+ var discSqrt = Math.sqrt(disc),
5029
+ _t3 = (-b + discSqrt) / (2 * a),
5030
+ t2 = (-b - discSqrt) / (2 * a);
5031
+ _t3 >= 0 && _t3 <= 1 && (roots[n++] = _t3), t2 >= 0 && t2 <= 1 && (roots[n++] = t2);
5032
+ }
5033
+ }
5034
+ return n;
5035
+ }
5036
+ function quadraticExtremum(p0, p1, p2) {
5037
+ var divider = p0 + p2 - 2 * p1;
5038
+ return 0 === divider ? .5 : (p0 - p1) / divider;
5039
+ }
5040
+ function quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, out) {
5041
+ var t = 0,
5042
+ interval = .005,
5043
+ d = 1 / 0;
5044
+ _v0[0] = x, _v0[1] = y;
5045
+ for (var _t = 0; _t < 1; _t += .05) {
5046
+ _v1[0] = quadraticAt(x0, x1, x2, _t), _v1[1] = quadraticAt(y0, y1, y2, _t);
5047
+ var d1 = distanceSquare(_v0, _v1);
5048
+ d1 < d && (t = _t, d = d1);
5049
+ }
5050
+ d = 1 / 0;
5051
+ for (var i = 0; i < 32 && !(interval < EPSILON_NUMERIC); i++) {
5052
+ var prev = t - interval,
5053
+ next = t + interval;
5054
+ _v1[0] = quadraticAt(x0, x1, x2, prev), _v1[1] = quadraticAt(y0, y1, y2, prev);
5055
+ var _d = distanceSquare(_v1, _v0);
5056
+ if (prev >= 0 && _d < d) t = prev, d = _d;else {
5057
+ _v2[0] = quadraticAt(x0, x1, x2, next), _v2[1] = quadraticAt(y0, y1, y2, next);
5058
+ var d2 = distanceSquare(_v2, _v0);
5059
+ next <= 1 && d2 < d ? (t = next, d = d2) : interval *= .5;
5060
+ }
5061
+ }
5062
+ return out && (out[0] = quadraticAt(x0, x1, x2, t), out[1] = quadraticAt(y0, y1, y2, t)), Math.sqrt(d);
5063
+ }
5064
+ function cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, out) {
5065
+ var prev,
5066
+ next,
5067
+ d1,
5068
+ d2,
5069
+ t = 0,
5070
+ interval = .005,
5071
+ d = 1 / 0;
5072
+ _v0[0] = x, _v0[1] = y;
5073
+ for (var _t = 0; _t < 1; _t += .05) _v1[0] = cubicAt(x0, x1, x2, x3, _t), _v1[1] = cubicAt(y0, y1, y2, y3, _t), d1 = distanceSquare(_v0, _v1), d1 < d && (t = _t, d = d1);
5074
+ d = 1 / 0;
5075
+ for (var i = 0; i < 32 && !(interval < EPSILON_NUMERIC); i++) prev = t - interval, next = t + interval, _v1[0] = cubicAt(x0, x1, x2, x3, prev), _v1[1] = cubicAt(y0, y1, y2, y3, prev), d1 = distanceSquare(_v1, _v0), prev >= 0 && d1 < d ? (t = prev, d = d1) : (_v2[0] = cubicAt(x0, x1, x2, x3, next), _v2[1] = cubicAt(y0, y1, y2, y3, next), d2 = distanceSquare(_v2, _v0), next <= 1 && d2 < d ? (t = next, d = d2) : interval *= .5);
5076
+ return out && (out[0] = cubicAt(x0, x1, x2, x3, t), out[1] = cubicAt(y0, y1, y2, y3, t)), Math.sqrt(d);
5077
+ }
5078
+ function normalizeRadian(angle) {
5079
+ return (angle %= vutils.pi2) < 0 && (angle += vutils.pi2), angle;
5080
+ }
5081
+ function windingLine(x0, y0, x1, y1, x, y) {
5082
+ if (y > y0 && y > y1 || y < y0 && y < y1) return 0;
5083
+ if (y1 === y0) return 0;
5084
+ var t = (y - y0) / (y1 - y0);
5085
+ var dir = y1 < y0 ? 1 : -1;
5086
+ 1 !== t && 0 !== t || (dir = y1 < y0 ? .5 : -.5);
5087
+ var x_ = t * (x1 - x0) + x0;
5088
+ return x_ === x ? 1 / 0 : x_ > x ? dir : 0;
5089
+ }
5090
+ function containQuadStroke(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
5091
+ if (0 === lineWidth) return !1;
5092
+ var _l = lineWidth;
5093
+ if (y > y0 + _l && y > y1 + _l && y > y2 + _l || y < y0 - _l && y < y1 - _l && y < y2 - _l || x > x0 + _l && x > x1 + _l && x > x2 + _l || x < x0 - _l && x < x1 - _l && x < x2 - _l) return !1;
5094
+ return quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, null) <= _l / 2;
5095
+ }
5096
+ function containCubicStroke(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
5097
+ if (0 === lineWidth) return !1;
5098
+ var _l = lineWidth;
5099
+ if (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l || y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l || x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l || x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l) return !1;
5100
+ return cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, null) <= _l / 2;
5101
+ }
5102
+ function containArcStroke(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
5103
+ if (0 === lineWidth) return !1;
5104
+ var _l = lineWidth;
5105
+ x -= cx, y -= cy;
5106
+ var d = Math.sqrt(x * x + y * y);
5107
+ if (d - _l > r || d + _l < r) return !1;
5108
+ if (Math.abs(startAngle - endAngle) % vutils.pi2 < 1e-4) return !0;
5109
+ if (anticlockwise) {
5110
+ var tmp = startAngle;
5111
+ startAngle = normalizeRadian(endAngle), endAngle = normalizeRadian(tmp);
5112
+ } else startAngle = normalizeRadian(startAngle), endAngle = normalizeRadian(endAngle);
5113
+ startAngle > endAngle && (endAngle += vutils.pi2);
5114
+ var angle = Math.atan2(y, x);
5115
+ return angle < 0 && (angle += vutils.pi2), angle >= startAngle && angle <= endAngle || angle + vutils.pi2 >= startAngle && angle + vutils.pi2 <= endAngle;
5116
+ }
5117
+ function containLineStroke(x0, y0, x1, y1, lineWidth, x, y) {
5118
+ if (0 === lineWidth) return !1;
5119
+ var _l = lineWidth,
5120
+ _halfL = lineWidth / 2;
5121
+ var _a = 0,
5122
+ _b = x0;
5123
+ if (y > y0 + _halfL && y > y1 + _halfL || y < y0 - _halfL && y < y1 - _halfL || x > x0 + _halfL && x > x1 + _halfL || x < x0 - _halfL && x < x1 - _halfL) return !1;
5124
+ if (x0 === x1) return Math.abs(x - x0) <= _l / 2;
5125
+ _a = (y0 - y1) / (x0 - x1), _b = (x0 * y1 - x1 * y0) / (x0 - x1);
5126
+ var tmp = _a * x - y + _b;
5127
+ return tmp * tmp / (_a * _a + 1) <= _l / 2 * _l / 2;
5128
+ }
5129
+ var EPSILON = 1e-4;
5130
+ function cubicRootAt(p0, p1, p2, p3, val, roots) {
5131
+ var a = p3 + 3 * (p1 - p2) - p0,
5132
+ b = 3 * (p2 - 2 * p1 + p0),
5133
+ c = 3 * (p1 - p0),
5134
+ d = p0 - val,
5135
+ A = b * b - 3 * a * c,
5136
+ B = b * c - 9 * a * d,
5137
+ C = c * c - 3 * b * d;
5138
+ var n = 0;
5139
+ if (isAroundZero(A) && isAroundZero(B)) {
5140
+ if (isAroundZero(b)) roots[0] = 0;else {
5141
+ var t1 = -c / b;
5142
+ t1 >= 0 && t1 <= 1 && (roots[n++] = t1);
5143
+ }
5144
+ } else {
5145
+ var disc = B * B - 4 * A * C;
5146
+ if (isAroundZero(disc)) {
5147
+ var K = B / A,
5148
+ _t4 = -b / a + K,
5149
+ t2 = -K / 2;
5150
+ _t4 >= 0 && _t4 <= 1 && (roots[n++] = _t4), t2 >= 0 && t2 <= 1 && (roots[n++] = t2);
5151
+ } else if (disc > 0) {
5152
+ var discSqrt = Math.sqrt(disc);
5153
+ var Y1 = A * b + 1.5 * a * (-B + discSqrt),
5154
+ Y2 = A * b + 1.5 * a * (-B - discSqrt);
5155
+ Y1 = Y1 < 0 ? -Math.pow(-Y1, ONE_THIRD) : Math.pow(Y1, ONE_THIRD), Y2 = Y2 < 0 ? -Math.pow(-Y2, ONE_THIRD) : Math.pow(Y2, ONE_THIRD);
5156
+ var _t5 = (-b - (Y1 + Y2)) / (3 * a);
5157
+ _t5 >= 0 && _t5 <= 1 && (roots[n++] = _t5);
5158
+ } else {
5159
+ var T = (2 * A * b - 3 * a * B) / (2 * Math.sqrt(A * A * A)),
5160
+ theta = Math.acos(T) / 3,
5161
+ ASqrt = Math.sqrt(A),
5162
+ tmp = Math.cos(theta),
5163
+ _t6 = (-b - 2 * ASqrt * tmp) / (3 * a),
5164
+ _t7 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a),
5165
+ t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);
5166
+ _t6 >= 0 && _t6 <= 1 && (roots[n++] = _t6), _t7 >= 0 && _t7 <= 1 && (roots[n++] = _t7), t3 >= 0 && t3 <= 1 && (roots[n++] = t3);
5167
+ }
5168
+ }
5169
+ return n;
5170
+ }
5171
+ function cubicExtrema(p0, p1, p2, p3, extrema) {
5172
+ var b = 6 * p2 - 12 * p1 + 6 * p0,
5173
+ a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2,
5174
+ c = 3 * p1 - 3 * p0;
5175
+ var n = 0;
5176
+ if (isAroundZero(a)) {
5177
+ if (isNotAroundZero(b)) {
5178
+ var t1 = -c / b;
5179
+ t1 >= 0 && t1 <= 1 && (extrema[n++] = t1);
5180
+ }
5181
+ } else {
5182
+ var disc = b * b - 4 * a * c;
5183
+ if (isAroundZero(disc)) extrema[0] = -b / (2 * a);else if (disc > 0) {
5184
+ var discSqrt = Math.sqrt(disc),
5185
+ _t8 = (-b + discSqrt) / (2 * a),
5186
+ t2 = (-b - discSqrt) / (2 * a);
5187
+ _t8 >= 0 && _t8 <= 1 && (extrema[n++] = _t8), t2 >= 0 && t2 <= 1 && (extrema[n++] = t2);
5188
+ }
5189
+ }
5190
+ return n;
5191
+ }
5192
+ function isAroundEqual(a, b) {
5193
+ return Math.abs(a - b) < EPSILON;
5194
+ }
5195
+ var roots = [-1, -1, -1],
5196
+ extrema = [-1, -1];
5197
+ function swapExtrema() {
5198
+ var tmp = extrema[0];
5199
+ extrema[0] = extrema[1], extrema[1] = tmp;
5200
+ }
5201
+ function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
5202
+ if (y > y0 && y > y1 && y > y2 && y > y3 || y < y0 && y < y1 && y < y2 && y < y3) return 0;
5203
+ var nRoots = cubicRootAt(y0, y1, y2, y3, y, roots);
5204
+ if (0 === nRoots) return 0;
5205
+ var w = 0,
5206
+ nExtrema = -1,
5207
+ y0_ = 0,
5208
+ y1_ = 0;
5209
+ for (var i = 0; i < nRoots; i++) {
5210
+ var t = roots[i],
5211
+ unit = 0 === t || 1 === t ? .5 : 1;
5212
+ cubicAt(x0, x1, x2, x3, t) < x || (nExtrema < 0 && (nExtrema = cubicExtrema(y0, y1, y2, y3, extrema), extrema[1] < extrema[0] && nExtrema > 1 && swapExtrema(), y0_ = cubicAt(y0, y1, y2, y3, extrema[0]), nExtrema > 1 && (y1_ = cubicAt(y0, y1, y2, y3, extrema[1]))), 2 === nExtrema ? t < extrema[0] ? w += y0_ < y0 ? unit : -unit : t < extrema[1] ? w += y1_ < y0_ ? unit : -unit : w += y3 < y1_ ? unit : -unit : t < extrema[0] ? w += y0_ < y0 ? unit : -unit : w += y3 < y0_ ? unit : -unit);
5213
+ }
5214
+ return w;
5215
+ }
5216
+ function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {
5217
+ if (y > y0 && y > y1 && y > y2 || y < y0 && y < y1 && y < y2) return 0;
5218
+ var nRoots = quadraticRootAt(y0, y1, y2, y, roots);
5219
+ if (0 === nRoots) return 0;
5220
+ var t = quadraticExtremum(y0, y1, y2);
5221
+ if (t >= 0 && t <= 1) {
5222
+ var w = 0;
5223
+ var y_ = quadraticAt(y0, y1, y2, t);
5224
+ for (var i = 0; i < nRoots; i++) {
5225
+ var _unit = 0 === roots[i] || 1 === roots[i] ? .5 : 1;
5226
+ quadraticAt(x0, x1, x2, roots[i]) < x || (roots[i] < t ? w += y_ < y0 ? _unit : -_unit : w += y2 < y_ ? _unit : -_unit);
5227
+ }
5228
+ return w;
5229
+ }
5230
+ var unit = 0 === roots[0] || 1 === roots[0] ? .5 : 1;
5231
+ return quadraticAt(x0, x1, x2, roots[0]) < x ? 0 : y2 < y0 ? unit : -unit;
5232
+ }
5233
+ function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
5234
+ if ((y -= cy) > r || y < -r) return 0;
5235
+ var tmp = Math.sqrt(r * r - y * y);
5236
+ roots[0] = -tmp, roots[1] = tmp;
5237
+ var dTheta = Math.abs(startAngle - endAngle);
5238
+ if (dTheta < 1e-4) return 0;
5239
+ if (dTheta >= vutils.pi2 - 1e-4) {
5240
+ startAngle = 0, endAngle = vutils.pi2;
5241
+ var dir = anticlockwise ? 1 : -1;
5242
+ return x >= roots[0] + cx && x <= roots[1] + cx ? dir : 0;
5243
+ }
5244
+ if (startAngle > endAngle) {
5245
+ var _tmp = startAngle;
5246
+ startAngle = endAngle, endAngle = _tmp;
5247
+ }
5248
+ startAngle < 0 && (startAngle += vutils.pi2, endAngle += vutils.pi2);
5249
+ var w = 0;
5250
+ for (var i = 0; i < 2; i++) {
5251
+ var x_ = roots[i];
5252
+ if (x_ + cx > x) {
5253
+ var angle = Math.atan2(y, x_),
5254
+ _dir = anticlockwise ? 1 : -1;
5255
+ angle < 0 && (angle = vutils.pi2 + angle), (angle >= startAngle && angle <= endAngle || angle + vutils.pi2 >= startAngle && angle + vutils.pi2 <= endAngle) && (angle > vutils.pi / 2 && angle < 1.5 * vutils.pi && (_dir = -_dir), w += _dir);
5256
+ }
5257
+ }
5258
+ return w;
5259
+ }
5260
+ function modpi2(radian) {
5261
+ return Math.round(radian / vutils.pi * 1e8) / 1e8 % 2 * vutils.pi;
5262
+ }
5263
+ function normalizeArcAngles(angles, anticlockwise) {
5264
+ var newStartAngle = modpi2(angles[0]);
5265
+ newStartAngle < 0 && (newStartAngle += vutils.pi2);
5266
+ var delta = newStartAngle - angles[0];
5267
+ var newEndAngle = angles[1];
5268
+ newEndAngle += delta, !anticlockwise && newEndAngle - newStartAngle >= vutils.pi2 ? newEndAngle = newStartAngle + vutils.pi2 : anticlockwise && newStartAngle - newEndAngle >= vutils.pi2 ? newEndAngle = newStartAngle - vutils.pi2 : !anticlockwise && newStartAngle > newEndAngle ? newEndAngle = newStartAngle + (vutils.pi2 - modpi2(newStartAngle - newEndAngle)) : anticlockwise && newStartAngle < newEndAngle && (newEndAngle = newStartAngle - (vutils.pi2 - modpi2(newEndAngle - newStartAngle))), angles[0] = newStartAngle, angles[1] = newEndAngle;
5269
+ }
5270
+ var tmpAngles = [0, 0];
5271
+ function containPath(commands, lineWidth, isStroke, x, y) {
5272
+ var data = commands,
5273
+ len = commands.length;
5274
+ var x1,
5275
+ y1,
5276
+ w = 0,
5277
+ xi = 0,
5278
+ yi = 0,
5279
+ x0 = 0,
5280
+ y0 = 0;
5281
+ for (var i = 0; i < len; i++) {
5282
+ var command = data[i],
5283
+ isFirst = 0 === i;
5284
+ command[0] === enumCommandMap.M && i > 1 && (isStroke || (w += windingLine(xi, yi, x0, y0, x, y))), isFirst && (xi = command[1], yi = command[2], x0 = xi, y0 = yi);
5285
+ var c0 = command[0],
5286
+ c1 = command[1],
5287
+ c2 = command[2],
5288
+ c3 = command[3],
5289
+ c4 = command[4],
5290
+ c5 = command[5],
5291
+ c6 = command[6];
5292
+ var startAngle = c4,
5293
+ endAngle = c5;
5294
+ tmpAngles[0] = startAngle, tmpAngles[1] = endAngle, normalizeArcAngles(tmpAngles, Boolean(command[6])), startAngle = tmpAngles[0], endAngle = tmpAngles[1];
5295
+ var theta = startAngle,
5296
+ dTheta = endAngle - startAngle,
5297
+ anticlockwise = !!(1 - (command[6] ? 0 : 1)),
5298
+ _x = (x - c1) * c3 / c3 + c1;
5299
+ switch (c0) {
5300
+ case enumCommandMap.M:
5301
+ x0 = c1, y0 = c2, xi = x0, yi = y0;
5302
+ break;
5303
+ case enumCommandMap.L:
5304
+ if (isStroke) {
5305
+ if (containLineStroke(xi, yi, c1, c2, lineWidth, x, y)) return !0;
5306
+ } else w += windingLine(xi, yi, c1, c2, x, y) || 0;
5307
+ xi = c1, yi = c2;
5308
+ break;
5309
+ case enumCommandMap.C:
5310
+ if (isStroke) {
5311
+ if (containCubicStroke(xi, yi, c1, c2, c3, c4, c5, c6, lineWidth, x, y)) return !0;
5312
+ } else w += windingCubic(xi, yi, c1, c2, c3, c4, c5, c6, x, y) || 0;
5313
+ xi = c5, yi = c6;
5314
+ break;
5315
+ case enumCommandMap.Q:
5316
+ if (isStroke) {
5317
+ if (containQuadStroke(xi, yi, c1, c2, c3, c4, lineWidth, x, y)) return !0;
5318
+ } else w += windingQuadratic(xi, yi, c1, c2, c3, c4, x, y) || 0;
5319
+ xi = c3, yi = c4;
5320
+ break;
5321
+ case enumCommandMap.A:
5322
+ if (x1 = Math.cos(theta) * c3 + c1, y1 = Math.sin(theta) * c3 + c2, isFirst ? (x0 = x1, y0 = y1) : w += windingLine(xi, yi, x1, y1, x, y), isStroke) {
5323
+ if (containArcStroke(c1, c2, c3, theta, theta + dTheta, anticlockwise, lineWidth, _x, y)) return !0;
5324
+ } else w += windingArc(c1, c2, c3, theta, theta + dTheta, anticlockwise, _x, y);
5325
+ xi = Math.cos(theta + dTheta) * c3 + c1, yi = Math.sin(theta + dTheta) * c3 + c2;
5326
+ break;
5327
+ case enumCommandMap.R:
5328
+ if (x0 = xi = c1, y0 = yi = c2, x1 = x0 + c3, y1 = y0 + c4, isStroke) {
5329
+ if (containLineStroke(x0, y0, x1, y0, lineWidth, x, y) || containLineStroke(x1, y0, x1, y1, lineWidth, x, y) || containLineStroke(x1, y1, x0, y1, lineWidth, x, y) || containLineStroke(x0, y1, x0, y0, lineWidth, x, y)) return !0;
5330
+ } else w += windingLine(x1, y0, x1, y1, x, y), w += windingLine(x0, y1, x0, y0, x, y);
5331
+ break;
5332
+ case enumCommandMap.Z:
5333
+ if (isStroke) {
5334
+ if (containLineStroke(xi, yi, x0, y0, lineWidth, x, y)) return !0;
5335
+ } else w += windingLine(xi, yi, x0, y0, x, y);
5336
+ xi = x0, yi = y0;
5337
+ }
5338
+ }
5339
+ return isStroke || isAroundEqual(yi, y0) || (w += windingLine(xi, yi, x0, y0, x, y) || 0), 0 !== w;
5340
+ }
5341
+ function contain(commands, x, y) {
5342
+ return containPath(commands, 0, !1, x, y);
5343
+ }
5344
+ function containStroke(commands, lineWidth, x, y) {
5345
+ return containPath(commands, lineWidth, !0, x, y);
5346
+ }
4974
5347
 
4975
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5348
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4976
5349
  var d,
4977
5350
  c = arguments.length,
4978
5351
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
4979
5352
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
4980
5353
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4981
5354
  },
4982
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
5355
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
4983
5356
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
4984
5357
  },
4985
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
5358
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
4986
5359
  return function (target, key) {
4987
5360
  decorator(target, key, paramIndex);
4988
5361
  };
@@ -5053,7 +5426,7 @@
5053
5426
  }]);
5054
5427
  return DefaultGraphicUtil;
5055
5428
  }();
5056
- DefaultGraphicUtil = __decorate$O([injectable(), __param$m(0, inject(ContributionProvider)), __param$m(0, named(TextMeasureContribution)), __param$m(1, inject(VGlobal)), __metadata$m("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
5429
+ DefaultGraphicUtil = __decorate$U([injectable(), __param$n(0, inject(ContributionProvider)), __param$n(0, named(TextMeasureContribution)), __param$n(1, inject(VGlobal)), __metadata$q("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
5057
5430
  var TransformMode;
5058
5431
  !function (TransformMode) {
5059
5432
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -5130,7 +5503,7 @@
5130
5503
  }]);
5131
5504
  return DefaultTransformUtil;
5132
5505
  }();
5133
- DefaultTransformUtil = __decorate$O([injectable(), __metadata$m("design:paramtypes", [])], DefaultTransformUtil);
5506
+ DefaultTransformUtil = __decorate$U([injectable(), __metadata$q("design:paramtypes", [])], DefaultTransformUtil);
5134
5507
 
5135
5508
  var defaultThemeObj = {
5136
5509
  arc: DefaultArcAttribute,
@@ -5916,6 +6289,8 @@
5916
6289
  return _createClass(CustomEvent);
5917
6290
  }(FederatedEvent);
5918
6291
 
6292
+ "object" == (typeof performance === "undefined" ? "undefined" : _typeof(performance)) && performance.now ? performance : Date;
6293
+
5919
6294
  var EventTarget = {
5920
6295
  pickable: !0,
5921
6296
  visible: !0,
@@ -5929,6 +6304,292 @@
5929
6304
  }
5930
6305
  };
5931
6306
 
6307
+ var ManualTickHandler = /*#__PURE__*/function () {
6308
+ function ManualTickHandler() {
6309
+ _classCallCheck(this, ManualTickHandler);
6310
+ this.time = 0;
6311
+ }
6312
+ _createClass(ManualTickHandler, [{
6313
+ key: "avaliable",
6314
+ value: function avaliable() {
6315
+ return ManualTickHandler.Avaliable();
6316
+ }
6317
+ }, {
6318
+ key: "tick",
6319
+ value: function tick(interval, cb) {
6320
+ this.time = Math.max(0, interval + this.time), cb(this, {
6321
+ once: !0
6322
+ });
6323
+ }
6324
+ }, {
6325
+ key: "tickTo",
6326
+ value: function tickTo(t, cb) {
6327
+ this.time = Math.max(0, t), cb(this, {
6328
+ once: !0
6329
+ });
6330
+ }
6331
+ }, {
6332
+ key: "release",
6333
+ value: function release() {
6334
+ this.timerId > 0 && (this.timerId = -1);
6335
+ }
6336
+ }, {
6337
+ key: "getTime",
6338
+ value: function getTime() {
6339
+ return this.time;
6340
+ }
6341
+ }], [{
6342
+ key: "Avaliable",
6343
+ value: function Avaliable() {
6344
+ return !0;
6345
+ }
6346
+ }]);
6347
+ return ManualTickHandler;
6348
+ }();
6349
+ var TimeOutTickHandler = /*#__PURE__*/function () {
6350
+ function TimeOutTickHandler() {
6351
+ _classCallCheck(this, TimeOutTickHandler);
6352
+ }
6353
+ _createClass(TimeOutTickHandler, [{
6354
+ key: "avaliable",
6355
+ value: function avaliable() {
6356
+ return TimeOutTickHandler.Avaliable();
6357
+ }
6358
+ }, {
6359
+ key: "tick",
6360
+ value: function tick(interval, cb) {
6361
+ var _this = this;
6362
+ this.timerId = setTimeout(function () {
6363
+ cb(_this);
6364
+ }, interval);
6365
+ }
6366
+ }, {
6367
+ key: "release",
6368
+ value: function release() {
6369
+ this.timerId > 0 && (clearTimeout(this.timerId), this.timerId = -1);
6370
+ }
6371
+ }, {
6372
+ key: "getTime",
6373
+ value: function getTime() {
6374
+ return Date.now();
6375
+ }
6376
+ }], [{
6377
+ key: "Avaliable",
6378
+ value: function Avaliable() {
6379
+ return !0;
6380
+ }
6381
+ }]);
6382
+ return TimeOutTickHandler;
6383
+ }();
6384
+ var RAFTickHandler = /*#__PURE__*/function () {
6385
+ function RAFTickHandler() {
6386
+ _classCallCheck(this, RAFTickHandler);
6387
+ }
6388
+ _createClass(RAFTickHandler, [{
6389
+ key: "avaliable",
6390
+ value: function avaliable() {
6391
+ return RAFTickHandler.Avaliable();
6392
+ }
6393
+ }, {
6394
+ key: "tick",
6395
+ value: function tick(interval, cb) {
6396
+ var _this2 = this;
6397
+ application.global.getRequestAnimationFrame()(function () {
6398
+ _this2.released || cb(_this2);
6399
+ });
6400
+ }
6401
+ }, {
6402
+ key: "release",
6403
+ value: function release() {
6404
+ this.released = !0;
6405
+ }
6406
+ }, {
6407
+ key: "getTime",
6408
+ value: function getTime() {
6409
+ return Date.now();
6410
+ }
6411
+ }], [{
6412
+ key: "Avaliable",
6413
+ value: function Avaliable() {
6414
+ return !!application.global.getRequestAnimationFrame();
6415
+ }
6416
+ }]);
6417
+ return RAFTickHandler;
6418
+ }();
6419
+ var STATUS$1;
6420
+ !function (STATUS) {
6421
+ STATUS[STATUS.INITIAL = 0] = "INITIAL", STATUS[STATUS.RUNNING = 1] = "RUNNING", STATUS[STATUS.PAUSE = 2] = "PAUSE";
6422
+ }(STATUS$1 || (STATUS$1 = {}));
6423
+ var DefaultTicker = /*#__PURE__*/function () {
6424
+ function DefaultTicker() {
6425
+ var _this3 = this;
6426
+ var timelines = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
6427
+ _classCallCheck(this, DefaultTicker);
6428
+ this.handleTick = function (handler, params) {
6429
+ var _ref = null != params ? params : {},
6430
+ _ref$once = _ref.once,
6431
+ once = _ref$once === void 0 ? !1 : _ref$once;
6432
+ _this3.ifCanStop() ? _this3.stop() : (_this3._handlerTick(handler), once || handler.tick(_this3.interval, _this3.handleTick));
6433
+ }, this._handlerTick = function (handler) {
6434
+ var time = _this3.tickerHandler.getTime();
6435
+ var delta = 0;
6436
+ _this3.lastFrameTime >= 0 && (delta = time - _this3.lastFrameTime), _this3.lastFrameTime = time, _this3.status === STATUS$1.RUNNING && (_this3.tickCounts++, _this3.timelines.forEach(function (t) {
6437
+ t.tick(delta);
6438
+ }));
6439
+ }, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.timelines = timelines, this.autoStop = !0;
6440
+ }
6441
+ _createClass(DefaultTicker, [{
6442
+ key: "mode",
6443
+ get: function get() {
6444
+ return this._mode;
6445
+ },
6446
+ set: function set(m) {
6447
+ this._mode !== m && (this._mode = m, this.setupTickHandler());
6448
+ }
6449
+ }, {
6450
+ key: "init",
6451
+ value: function init() {
6452
+ var _this4 = this;
6453
+ this.interval = NaN, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("window", function () {
6454
+ _this4.initHandler();
6455
+ }), application.global.env && this.initHandler();
6456
+ }
6457
+ }, {
6458
+ key: "addTimeline",
6459
+ value: function addTimeline(timeline) {
6460
+ this.timelines.push(timeline);
6461
+ }
6462
+ }, {
6463
+ key: "remTimeline",
6464
+ value: function remTimeline(timeline) {
6465
+ this.timelines = this.timelines.filter(function (t) {
6466
+ return t !== timeline;
6467
+ });
6468
+ }
6469
+ }, {
6470
+ key: "initHandler",
6471
+ value: function initHandler() {
6472
+ if (this._mode) return null;
6473
+ var ticks = [{
6474
+ mode: "raf",
6475
+ cons: RAFTickHandler
6476
+ }, {
6477
+ mode: "timeout",
6478
+ cons: TimeOutTickHandler
6479
+ }, {
6480
+ mode: "manual",
6481
+ cons: ManualTickHandler
6482
+ }];
6483
+ for (var i = 0; i < ticks.length; i++) if (ticks[i].cons.Avaliable()) {
6484
+ this.mode = ticks[i].mode;
6485
+ break;
6486
+ }
6487
+ return null;
6488
+ }
6489
+ }, {
6490
+ key: "setupTickHandler",
6491
+ value: function setupTickHandler() {
6492
+ var handler;
6493
+ switch (this._mode) {
6494
+ case "raf":
6495
+ handler = new RAFTickHandler();
6496
+ break;
6497
+ case "timeout":
6498
+ handler = new TimeOutTickHandler();
6499
+ break;
6500
+ case "manual":
6501
+ handler = new ManualTickHandler();
6502
+ break;
6503
+ default:
6504
+ console.warn("非法的计时器模式"), handler = new RAFTickHandler();
6505
+ }
6506
+ return !!handler.avaliable() && (this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0);
6507
+ }
6508
+ }, {
6509
+ key: "setInterval",
6510
+ value: function setInterval(interval) {
6511
+ this.interval = interval;
6512
+ }
6513
+ }, {
6514
+ key: "getInterval",
6515
+ value: function getInterval() {
6516
+ return this.interval;
6517
+ }
6518
+ }, {
6519
+ key: "setFPS",
6520
+ value: function setFPS(fps) {
6521
+ this.setInterval(1e3 / fps);
6522
+ }
6523
+ }, {
6524
+ key: "getFPS",
6525
+ value: function getFPS() {
6526
+ return 1e3 / this.interval;
6527
+ }
6528
+ }, {
6529
+ key: "tick",
6530
+ value: function tick(interval) {
6531
+ var _this5 = this;
6532
+ this.tickerHandler.tick(interval, function (handler) {
6533
+ _this5.handleTick(handler, {
6534
+ once: !0
6535
+ });
6536
+ });
6537
+ }
6538
+ }, {
6539
+ key: "tickTo",
6540
+ value: function tickTo(t) {
6541
+ var _this6 = this;
6542
+ this.tickerHandler.tickTo && this.tickerHandler.tickTo(t, function (handler) {
6543
+ _this6.handleTick(handler, {
6544
+ once: !0
6545
+ });
6546
+ });
6547
+ }
6548
+ }, {
6549
+ key: "pause",
6550
+ value: function pause() {
6551
+ return this.status !== STATUS$1.INITIAL && (this.status = STATUS$1.PAUSE, !0);
6552
+ }
6553
+ }, {
6554
+ key: "resume",
6555
+ value: function resume() {
6556
+ return this.status !== STATUS$1.INITIAL && (this.status = STATUS$1.RUNNING, !0);
6557
+ }
6558
+ }, {
6559
+ key: "ifCanStop",
6560
+ value: function ifCanStop() {
6561
+ if (this.autoStop) {
6562
+ if (!this.timelines.length) return !0;
6563
+ if (0 === this.timelines.reduce(function (a, b) {
6564
+ return a + b.animateCount;
6565
+ }, 0)) return !0;
6566
+ }
6567
+ return !1;
6568
+ }
6569
+ }, {
6570
+ key: "start",
6571
+ value: function start() {
6572
+ var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
6573
+ if (this.status === STATUS$1.RUNNING) return !1;
6574
+ if (!this.tickerHandler) return !1;
6575
+ if (!force) {
6576
+ if (this.status === STATUS$1.PAUSE) return !1;
6577
+ if (!this.timelines.length) return !1;
6578
+ if (0 === this.timelines.reduce(function (a, b) {
6579
+ return a + b.animateCount;
6580
+ }, 0)) return !1;
6581
+ }
6582
+ return this.status = STATUS$1.RUNNING, this.tickerHandler.tick(0, this.handleTick), !0;
6583
+ }
6584
+ }, {
6585
+ key: "stop",
6586
+ value: function stop() {
6587
+ this.status = STATUS$1.INITIAL, this.setupTickHandler(), this.lastFrameTime = -1;
6588
+ }
6589
+ }]);
6590
+ return DefaultTicker;
6591
+ }();
6592
+
5932
6593
  var Easing = /*#__PURE__*/function () {
5933
6594
  function Easing() {
5934
6595
  _classCallCheck(this, Easing);
@@ -6982,6 +7643,10 @@
6982
7643
  return ColorStore.Get(fromColor, ColorType.Color255, _fromColorRGB), ColorStore.Get(toColor, ColorType.Color255, _toColorRGB), "rgba(".concat(Math.round(_fromColorRGB[0] + (_toColorRGB[0] - _fromColorRGB[0]) * ratio), ",").concat(Math.round(_fromColorRGB[1] + (_toColorRGB[1] - _fromColorRGB[1]) * ratio), ",").concat(Math.round(_fromColorRGB[2] + (_toColorRGB[2] - _fromColorRGB[2]) * ratio), ",").concat(_fromColorRGB[3] + (_toColorRGB[3] - _fromColorRGB[3]) * ratio, ")");
6983
7644
  }
6984
7645
 
7646
+ Object.keys(vutils.DEFAULT_COLORS).forEach(function (k) {
7647
+ vutils.DEFAULT_COLORS[k];
7648
+ });
7649
+
6985
7650
  var ResourceLoader = /*#__PURE__*/function () {
6986
7651
  function ResourceLoader() {
6987
7652
  _classCallCheck(this, ResourceLoader);
@@ -8637,17 +9302,17 @@
8637
9302
  var DynamicLayerHandlerContribution = Symbol["for"]("DynamicLayerHandlerContribution");
8638
9303
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
8639
9304
 
8640
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9305
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8641
9306
  var d,
8642
9307
  c = arguments.length,
8643
9308
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8644
9309
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
8645
9310
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8646
9311
  },
8647
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
9312
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
8648
9313
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8649
9314
  },
8650
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
9315
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
8651
9316
  return function (target, key) {
8652
9317
  decorator(target, key, paramIndex);
8653
9318
  };
@@ -8728,19 +9393,19 @@
8728
9393
  }]);
8729
9394
  return DefaultLayerService;
8730
9395
  }();
8731
- DefaultLayerService = __decorate$N([injectable(), __param$l(0, inject(VGlobal)), __metadata$l("design:paramtypes", [Object])], DefaultLayerService);
9396
+ DefaultLayerService = __decorate$T([injectable(), __param$m(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], DefaultLayerService);
8732
9397
 
8733
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9398
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8734
9399
  var d,
8735
9400
  c = arguments.length,
8736
9401
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8737
9402
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
8738
9403
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8739
9404
  },
8740
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
9405
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
8741
9406
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8742
9407
  },
8743
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
9408
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
8744
9409
  return function (target, key) {
8745
9410
  decorator(target, key, paramIndex);
8746
9411
  };
@@ -8895,7 +9560,7 @@
8895
9560
  }]);
8896
9561
  return DefaultWindow;
8897
9562
  }();
8898
- __decorate$M([postConstruct(), __metadata$k("design:type", Function), __metadata$k("design:paramtypes", []), __metadata$k("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$M([injectable(), __param$k(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], DefaultWindow);
9563
+ __decorate$S([postConstruct(), __metadata$o("design:type", Function), __metadata$o("design:paramtypes", []), __metadata$o("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$S([injectable(), __param$l(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], DefaultWindow);
8899
9564
 
8900
9565
  var coreModule = new ContainerModule(function (bind) {
8901
9566
  bind(DefaultGlobal).toSelf().inSingletonScope(), bind(VGlobal).toService(DefaultGlobal), bind(DefaultWindow).to(DefaultWindow), bind(VWindow).toService(DefaultWindow), bind(DefaultGraphicUtil).toSelf().inSingletonScope(), bind(GraphicUtil).toService(DefaultGraphicUtil), bind(DefaultTransformUtil).toSelf().inSingletonScope(), bind(TransformUtil).toService(DefaultTransformUtil), bind(DefaultLayerService).toSelf().inSingletonScope(), bind(LayerService).toService(DefaultLayerService);
@@ -12183,6 +12848,10 @@
12183
12848
  cap: 1
12184
12849
  }, NOWORK_ANIMATE_ATTR);
12185
12850
 
12851
+ Object.assign({
12852
+ cap: 1
12853
+ }, NOWORK_ANIMATE_ATTR);
12854
+
12186
12855
  var POLYGON_UPDATE_TAG_KEY = ["points", "cornerRadius"].concat(_toConsumableArray(GRAPHIC_UPDATE_TAG_KEY));
12187
12856
  var Polygon = /*#__PURE__*/function (_Graphic) {
12188
12857
  _inherits(Polygon, _Graphic);
@@ -12265,7 +12934,7 @@
12265
12934
  }(Graphic);
12266
12935
  Polygon.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
12267
12936
 
12268
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12937
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12269
12938
  var d,
12270
12939
  c = arguments.length,
12271
12940
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12295,9 +12964,9 @@
12295
12964
  }]);
12296
12965
  return DefaultOuterBorderBoundsContribution;
12297
12966
  }();
12298
- DefaultOuterBorderBoundsContribution = __decorate$L([injectable()], DefaultOuterBorderBoundsContribution);
12967
+ DefaultOuterBorderBoundsContribution = __decorate$R([injectable()], DefaultOuterBorderBoundsContribution);
12299
12968
 
12300
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12969
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12301
12970
  var d,
12302
12971
  c = arguments.length,
12303
12972
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12314,9 +12983,9 @@
12314
12983
  }
12315
12984
  return _createClass(DefaultRectOuterBorderBoundsContribution);
12316
12985
  }(DefaultOuterBorderBoundsContribution);
12317
- DefaultRectOuterBorderBoundsContribution = __decorate$K([injectable()], DefaultRectOuterBorderBoundsContribution);
12986
+ DefaultRectOuterBorderBoundsContribution = __decorate$Q([injectable()], DefaultRectOuterBorderBoundsContribution);
12318
12987
 
12319
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12988
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12320
12989
  var d,
12321
12990
  c = arguments.length,
12322
12991
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12352,9 +13021,9 @@
12352
13021
  }]);
12353
13022
  return DefaultSymbolOuterBorderBoundsContribution;
12354
13023
  }(DefaultOuterBorderBoundsContribution);
12355
- DefaultSymbolOuterBorderBoundsContribution = __decorate$J([injectable()], DefaultSymbolOuterBorderBoundsContribution);
13024
+ DefaultSymbolOuterBorderBoundsContribution = __decorate$P([injectable()], DefaultSymbolOuterBorderBoundsContribution);
12356
13025
 
12357
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13026
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12358
13027
  var d,
12359
13028
  c = arguments.length,
12360
13029
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12371,9 +13040,9 @@
12371
13040
  }
12372
13041
  return _createClass(DefaultCircleOuterBorderBoundsContribution);
12373
13042
  }(DefaultOuterBorderBoundsContribution);
12374
- DefaultCircleOuterBorderBoundsContribution = __decorate$I([injectable()], DefaultCircleOuterBorderBoundsContribution);
13043
+ DefaultCircleOuterBorderBoundsContribution = __decorate$O([injectable()], DefaultCircleOuterBorderBoundsContribution);
12375
13044
 
12376
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13045
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12377
13046
  var d,
12378
13047
  c = arguments.length,
12379
13048
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12390,9 +13059,9 @@
12390
13059
  }
12391
13060
  return _createClass(DefaultArcOuterBorderBoundsContribution);
12392
13061
  }(DefaultOuterBorderBoundsContribution);
12393
- DefaultArcOuterBorderBoundsContribution = __decorate$H([injectable()], DefaultArcOuterBorderBoundsContribution);
13062
+ DefaultArcOuterBorderBoundsContribution = __decorate$N([injectable()], DefaultArcOuterBorderBoundsContribution);
12394
13063
 
12395
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13064
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12396
13065
  var d,
12397
13066
  c = arguments.length,
12398
13067
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12409,7 +13078,7 @@
12409
13078
  }
12410
13079
  return _createClass(DefaultPathOuterBorderBoundsContribution);
12411
13080
  }(DefaultOuterBorderBoundsContribution);
12412
- DefaultPathOuterBorderBoundsContribution = __decorate$G([injectable()], DefaultPathOuterBorderBoundsContribution);
13081
+ DefaultPathOuterBorderBoundsContribution = __decorate$M([injectable()], DefaultPathOuterBorderBoundsContribution);
12413
13082
 
12414
13083
  function createMat4() {
12415
13084
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
@@ -12497,17 +13166,17 @@
12497
13166
  var matrixAllocate = new DefaultMatrixAllocate();
12498
13167
  var mat4Allocate = new DefaultMat4Allocate();
12499
13168
 
12500
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13169
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12501
13170
  var d,
12502
13171
  c = arguments.length,
12503
13172
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
12504
13173
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
12505
13174
  return c > 3 && r && Object.defineProperty(target, key, r), r;
12506
13175
  },
12507
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
13176
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
12508
13177
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
12509
13178
  },
12510
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
13179
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
12511
13180
  return function (target, key) {
12512
13181
  decorator(target, key, paramIndex);
12513
13182
  };
@@ -13131,7 +13800,7 @@
13131
13800
  }]);
13132
13801
  return DefaultGraphicService;
13133
13802
  }();
13134
- DefaultGraphicService = __decorate$F([injectable(), __param$j(0, inject(GraphicCreator)), __param$j(1, inject(ContributionProvider)), __param$j(1, named(RectBoundsContribution)), __param$j(2, inject(ContributionProvider)), __param$j(2, named(SymbolBoundsContribution)), __param$j(3, inject(ContributionProvider)), __param$j(3, named(CircleBoundsContribution)), __param$j(4, inject(ContributionProvider)), __param$j(4, named(ArcBoundsContribution)), __param$j(5, inject(ContributionProvider)), __param$j(5, named(PathBoundsContribution)), __metadata$j("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
13803
+ DefaultGraphicService = __decorate$L([injectable(), __param$k(0, inject(GraphicCreator)), __param$k(1, inject(ContributionProvider)), __param$k(1, named(RectBoundsContribution)), __param$k(2, inject(ContributionProvider)), __param$k(2, named(SymbolBoundsContribution)), __param$k(3, inject(ContributionProvider)), __param$k(3, named(CircleBoundsContribution)), __param$k(4, inject(ContributionProvider)), __param$k(4, named(ArcBoundsContribution)), __param$k(5, inject(ContributionProvider)), __param$k(5, named(PathBoundsContribution)), __metadata$n("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
13135
13804
 
13136
13805
  var ShadowRoot = /*#__PURE__*/function (_Group) {
13137
13806
  _inherits(ShadowRoot, _Group);
@@ -13253,7 +13922,7 @@
13253
13922
  }
13254
13923
  createRichText({});
13255
13924
 
13256
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13925
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13257
13926
  var d,
13258
13927
  c = arguments.length,
13259
13928
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13423,19 +14092,19 @@
13423
14092
  }]);
13424
14093
  return BaseRender;
13425
14094
  }();
13426
- BaseRender = __decorate$E([injectable()], BaseRender);
14095
+ BaseRender = __decorate$K([injectable()], BaseRender);
13427
14096
 
13428
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14097
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13429
14098
  var d,
13430
14099
  c = arguments.length,
13431
14100
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13432
14101
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
13433
14102
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13434
14103
  },
13435
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
14104
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
13436
14105
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13437
14106
  },
13438
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
14107
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
13439
14108
  return function (target, key) {
13440
14109
  decorator(target, key, paramIndex);
13441
14110
  };
@@ -13605,19 +14274,19 @@
13605
14274
  }]);
13606
14275
  return DefaultCanvasArcRender;
13607
14276
  }(BaseRender);
13608
- DefaultCanvasArcRender = __decorate$D([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(ArcRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasArcRender);
14277
+ DefaultCanvasArcRender = __decorate$J([injectable(), __param$j(0, inject(ContributionProvider)), __param$j(0, named(ArcRenderContribution)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasArcRender);
13609
14278
 
13610
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14279
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13611
14280
  var d,
13612
14281
  c = arguments.length,
13613
14282
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13614
14283
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
13615
14284
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13616
14285
  },
13617
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
14286
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
13618
14287
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13619
14288
  },
13620
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
14289
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
13621
14290
  return function (target, key) {
13622
14291
  decorator(target, key, paramIndex);
13623
14292
  };
@@ -13663,7 +14332,7 @@
13663
14332
  }]);
13664
14333
  return DefaultCanvasCircleRender;
13665
14334
  }(BaseRender);
13666
- DefaultCanvasCircleRender = __decorate$C([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(CircleRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasCircleRender);
14335
+ DefaultCanvasCircleRender = __decorate$I([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(CircleRenderContribution)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasCircleRender);
13667
14336
 
13668
14337
  function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
13669
14338
  var _a;
@@ -13803,7 +14472,7 @@
13803
14472
  }
13804
14473
  }
13805
14474
 
13806
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14475
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13807
14476
  var d,
13808
14477
  c = arguments.length,
13809
14478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13961,7 +14630,7 @@
13961
14630
  }]);
13962
14631
  return DefaultCanvasLineRender;
13963
14632
  }(BaseRender);
13964
- DefaultCanvasLineRender = __decorate$B([injectable()], DefaultCanvasLineRender);
14633
+ DefaultCanvasLineRender = __decorate$H([injectable()], DefaultCanvasLineRender);
13965
14634
 
13966
14635
  function drawAreaSegments(path, segPath, percent, params) {
13967
14636
  var _a;
@@ -14102,17 +14771,17 @@
14102
14771
  }
14103
14772
  }
14104
14773
 
14105
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14774
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14106
14775
  var d,
14107
14776
  c = arguments.length,
14108
14777
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14109
14778
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14110
14779
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14111
14780
  },
14112
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
14781
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
14113
14782
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14114
14783
  },
14115
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
14784
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
14116
14785
  return function (target, key) {
14117
14786
  decorator(target, key, paramIndex);
14118
14787
  };
@@ -14332,19 +15001,19 @@
14332
15001
  }]);
14333
15002
  return DefaultCanvasAreaRender;
14334
15003
  }(BaseRender);
14335
- DefaultCanvasAreaRender = __decorate$A([injectable(), __param$g(0, inject(ContributionProvider)), __param$g(0, named(AreaRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasAreaRender);
15004
+ DefaultCanvasAreaRender = __decorate$G([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(AreaRenderContribution)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasAreaRender);
14336
15005
 
14337
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15006
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14338
15007
  var d,
14339
15008
  c = arguments.length,
14340
15009
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14341
15010
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14342
15011
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14343
15012
  },
14344
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
15013
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
14345
15014
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14346
15015
  },
14347
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
15016
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
14348
15017
  return function (target, key) {
14349
15018
  decorator(target, key, paramIndex);
14350
15019
  };
@@ -14390,7 +15059,7 @@
14390
15059
  }]);
14391
15060
  return DefaultCanvasPathRender;
14392
15061
  }(BaseRender);
14393
- DefaultCanvasPathRender = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(PathRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPathRender);
15062
+ DefaultCanvasPathRender = __decorate$F([injectable(), __param$g(0, inject(ContributionProvider)), __param$g(0, named(PathRenderContribution)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasPathRender);
14394
15063
 
14395
15064
  var halfPi = vutils.pi / 2;
14396
15065
  function createRectPath(path, x, y, width, height, rectCornerRadius) {
@@ -14450,17 +15119,17 @@
14450
15119
  return path.closePath(), path;
14451
15120
  }
14452
15121
 
14453
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15122
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14454
15123
  var d,
14455
15124
  c = arguments.length,
14456
15125
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14457
15126
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14458
15127
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14459
15128
  },
14460
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
15129
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
14461
15130
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14462
15131
  },
14463
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
15132
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
14464
15133
  return function (target, key) {
14465
15134
  decorator(target, key, paramIndex);
14466
15135
  };
@@ -14529,19 +15198,19 @@
14529
15198
  }]);
14530
15199
  return DefaultCanvasRectRender;
14531
15200
  }(BaseRender);
14532
- DefaultCanvasRectRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(RectRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectRender);
15201
+ DefaultCanvasRectRender = __decorate$E([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(RectRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasRectRender);
14533
15202
 
14534
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15203
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14535
15204
  var d,
14536
15205
  c = arguments.length,
14537
15206
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14538
15207
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14539
15208
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14540
15209
  },
14541
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
15210
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
14542
15211
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14543
15212
  },
14544
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
15213
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
14545
15214
  return function (target, key) {
14546
15215
  decorator(target, key, paramIndex);
14547
15216
  };
@@ -14602,19 +15271,19 @@
14602
15271
  }]);
14603
15272
  return DefaultCanvasSymbolRender;
14604
15273
  }(BaseRender);
14605
- DefaultCanvasSymbolRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(SymbolRenderContribution)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
15274
+ DefaultCanvasSymbolRender = __decorate$D([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(SymbolRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
14606
15275
 
14607
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15276
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14608
15277
  var d,
14609
15278
  c = arguments.length,
14610
15279
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14611
15280
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14612
15281
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14613
15282
  },
14614
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
15283
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
14615
15284
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14616
15285
  },
14617
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
15286
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
14618
15287
  return function (target, key) {
14619
15288
  decorator(target, key, paramIndex);
14620
15289
  };
@@ -14844,7 +15513,19 @@
14844
15513
  }]);
14845
15514
  return DefaultCanvasTextRender;
14846
15515
  }(BaseRender);
14847
- DefaultCanvasTextRender = __decorate$w([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(TextRenderContribution)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasTextRender);
15516
+ DefaultCanvasTextRender = __decorate$C([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(TextRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasTextRender);
15517
+
15518
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15519
+ var d,
15520
+ c = arguments.length,
15521
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15522
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15523
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15524
+ };
15525
+ var AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
15526
+ _classCallCheck(this, AbstractGraphicRender);
15527
+ });
15528
+ AbstractGraphicRender = __decorate$B([injectable()], AbstractGraphicRender);
14848
15529
 
14849
15530
  function drawPolygon(path, points, x, y) {
14850
15531
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -14897,17 +15578,17 @@
14897
15578
  };
14898
15579
  }
14899
15580
 
14900
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15581
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14901
15582
  var d,
14902
15583
  c = arguments.length,
14903
15584
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14904
15585
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14905
15586
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14906
15587
  },
14907
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
15588
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
14908
15589
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14909
15590
  },
14910
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
15591
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
14911
15592
  return function (target, key) {
14912
15593
  decorator(target, key, paramIndex);
14913
15594
  };
@@ -14955,19 +15636,19 @@
14955
15636
  }]);
14956
15637
  return DefaultCanvasPolygonRender;
14957
15638
  }(BaseRender);
14958
- DefaultCanvasPolygonRender = __decorate$v([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PolygonRenderContribution)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
15639
+ DefaultCanvasPolygonRender = __decorate$A([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(PolygonRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
14959
15640
 
14960
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15641
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14961
15642
  var d,
14962
15643
  c = arguments.length,
14963
15644
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14964
15645
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14965
15646
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14966
15647
  },
14967
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
15648
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
14968
15649
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14969
15650
  },
14970
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
15651
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
14971
15652
  return function (target, key) {
14972
15653
  decorator(target, key, paramIndex);
14973
15654
  };
@@ -15035,7 +15716,7 @@
15035
15716
  }]);
15036
15717
  return DefaultCanvasImageRender;
15037
15718
  }(BaseRender);
15038
- DefaultCanvasImageRender = __decorate$u([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(ImageRenderContribution)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasImageRender);
15719
+ DefaultCanvasImageRender = __decorate$z([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(ImageRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasImageRender);
15039
15720
 
15040
15721
  var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
15041
15722
  var ArcRender = Symbol["for"]("ArcRender");
@@ -15198,17 +15879,17 @@
15198
15879
  }();
15199
15880
  var canvasAllocate = new DefaultCanvasAllocate();
15200
15881
 
15201
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15882
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15202
15883
  var d,
15203
15884
  c = arguments.length,
15204
15885
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15205
15886
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15206
15887
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15207
15888
  },
15208
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
15889
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
15209
15890
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15210
15891
  },
15211
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
15892
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
15212
15893
  return function (target, key) {
15213
15894
  decorator(target, key, paramIndex);
15214
15895
  };
@@ -15242,7 +15923,7 @@
15242
15923
  }]);
15243
15924
  return DefaultBaseBackgroundRenderContribution;
15244
15925
  }();
15245
- DefaultBaseBackgroundRenderContribution = __decorate$t([injectable()], DefaultBaseBackgroundRenderContribution);
15926
+ DefaultBaseBackgroundRenderContribution = __decorate$y([injectable()], DefaultBaseBackgroundRenderContribution);
15246
15927
  var DefaultBaseInteractiveRenderContribution = /*#__PURE__*/function () {
15247
15928
  function DefaultBaseInteractiveRenderContribution(subRenderContribitions) {
15248
15929
  _classCallCheck(this, DefaultBaseInteractiveRenderContribution);
@@ -15258,7 +15939,7 @@
15258
15939
  }]);
15259
15940
  return DefaultBaseInteractiveRenderContribution;
15260
15941
  }();
15261
- DefaultBaseInteractiveRenderContribution = __decorate$t([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(InteractiveSubRenderContribution)), __metadata$9("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15942
+ DefaultBaseInteractiveRenderContribution = __decorate$y([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(InteractiveSubRenderContribution)), __metadata$d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15262
15943
  var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
15263
15944
  function DefaultBaseTextureRenderContribution() {
15264
15945
  _classCallCheck(this, DefaultBaseTextureRenderContribution);
@@ -15400,9 +16081,9 @@
15400
16081
  }]);
15401
16082
  return DefaultBaseTextureRenderContribution;
15402
16083
  }();
15403
- DefaultBaseTextureRenderContribution = __decorate$t([injectable()], DefaultBaseTextureRenderContribution);
16084
+ DefaultBaseTextureRenderContribution = __decorate$y([injectable()], DefaultBaseTextureRenderContribution);
15404
16085
 
15405
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16086
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15406
16087
  var d,
15407
16088
  c = arguments.length,
15408
16089
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15484,7 +16165,7 @@
15484
16165
  }]);
15485
16166
  return DefaultArcRenderContribution;
15486
16167
  }();
15487
- DefaultArcRenderContribution = __decorate$s([injectable()], DefaultArcRenderContribution);
16168
+ DefaultArcRenderContribution = __decorate$x([injectable()], DefaultArcRenderContribution);
15488
16169
  var DefaultArcBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15489
16170
  _inherits(DefaultArcBackgroundRenderContribution, _DefaultBaseBackgroun);
15490
16171
  var _super = _createSuper(DefaultArcBackgroundRenderContribution);
@@ -15496,7 +16177,7 @@
15496
16177
  }
15497
16178
  return _createClass(DefaultArcBackgroundRenderContribution);
15498
16179
  }(DefaultBaseBackgroundRenderContribution);
15499
- DefaultArcBackgroundRenderContribution = __decorate$s([injectable()], DefaultArcBackgroundRenderContribution);
16180
+ DefaultArcBackgroundRenderContribution = __decorate$x([injectable()], DefaultArcBackgroundRenderContribution);
15500
16181
  var DefaultArcTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15501
16182
  _inherits(DefaultArcTextureRenderContribution, _DefaultBaseTextureRe);
15502
16183
  var _super2 = _createSuper(DefaultArcTextureRenderContribution);
@@ -15508,9 +16189,9 @@
15508
16189
  }
15509
16190
  return _createClass(DefaultArcTextureRenderContribution);
15510
16191
  }(DefaultBaseTextureRenderContribution);
15511
- DefaultArcTextureRenderContribution = __decorate$s([injectable()], DefaultArcTextureRenderContribution);
16192
+ DefaultArcTextureRenderContribution = __decorate$x([injectable()], DefaultArcTextureRenderContribution);
15512
16193
 
15513
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16194
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15514
16195
  var d,
15515
16196
  c = arguments.length,
15516
16197
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15572,7 +16253,7 @@
15572
16253
  }]);
15573
16254
  return DefaultCircleRenderContribution;
15574
16255
  }();
15575
- DefaultCircleRenderContribution = __decorate$r([injectable()], DefaultCircleRenderContribution);
16256
+ DefaultCircleRenderContribution = __decorate$w([injectable()], DefaultCircleRenderContribution);
15576
16257
  var DefaultCircleBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15577
16258
  _inherits(DefaultCircleBackgroundRenderContribution, _DefaultBaseBackgroun);
15578
16259
  var _super = _createSuper(DefaultCircleBackgroundRenderContribution);
@@ -15584,7 +16265,7 @@
15584
16265
  }
15585
16266
  return _createClass(DefaultCircleBackgroundRenderContribution);
15586
16267
  }(DefaultBaseBackgroundRenderContribution);
15587
- DefaultCircleBackgroundRenderContribution = __decorate$r([injectable()], DefaultCircleBackgroundRenderContribution);
16268
+ DefaultCircleBackgroundRenderContribution = __decorate$w([injectable()], DefaultCircleBackgroundRenderContribution);
15588
16269
  var DefaultCircleTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15589
16270
  _inherits(DefaultCircleTextureRenderContribution, _DefaultBaseTextureRe);
15590
16271
  var _super2 = _createSuper(DefaultCircleTextureRenderContribution);
@@ -15596,9 +16277,9 @@
15596
16277
  }
15597
16278
  return _createClass(DefaultCircleTextureRenderContribution);
15598
16279
  }(DefaultBaseTextureRenderContribution);
15599
- DefaultCircleTextureRenderContribution = __decorate$r([injectable()], DefaultCircleTextureRenderContribution);
16280
+ DefaultCircleTextureRenderContribution = __decorate$w([injectable()], DefaultCircleTextureRenderContribution);
15600
16281
 
15601
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16282
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15602
16283
  var d,
15603
16284
  c = arguments.length,
15604
16285
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15629,9 +16310,9 @@
15629
16310
  }]);
15630
16311
  return DefaultGroupBackgroundRenderContribution;
15631
16312
  }(DefaultBaseBackgroundRenderContribution);
15632
- DefaultGroupBackgroundRenderContribution = __decorate$q([injectable()], DefaultGroupBackgroundRenderContribution);
16313
+ DefaultGroupBackgroundRenderContribution = __decorate$v([injectable()], DefaultGroupBackgroundRenderContribution);
15633
16314
 
15634
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16315
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15635
16316
  var d,
15636
16317
  c = arguments.length,
15637
16318
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15696,7 +16377,7 @@
15696
16377
  }]);
15697
16378
  return DefaultImageBackgroundRenderContribution;
15698
16379
  }(DefaultBaseBackgroundRenderContribution);
15699
- DefaultImageBackgroundRenderContribution = __decorate$p([injectable()], DefaultImageBackgroundRenderContribution);
16380
+ DefaultImageBackgroundRenderContribution = __decorate$u([injectable()], DefaultImageBackgroundRenderContribution);
15700
16381
  function getActualPosition(graphic) {
15701
16382
  var boundsPadding = parsePadding(graphic.attribute.boundsPadding),
15702
16383
  bounds = graphic.AABBBounds;
@@ -15712,7 +16393,7 @@
15712
16393
  };
15713
16394
  }
15714
16395
 
15715
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16396
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15716
16397
  var d,
15717
16398
  c = arguments.length,
15718
16399
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15784,7 +16465,7 @@
15784
16465
  }]);
15785
16466
  return DefaultRectRenderContribution;
15786
16467
  }();
15787
- DefaultRectRenderContribution = __decorate$o([injectable()], DefaultRectRenderContribution);
16468
+ DefaultRectRenderContribution = __decorate$t([injectable()], DefaultRectRenderContribution);
15788
16469
  var DefaultRectBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15789
16470
  _inherits(DefaultRectBackgroundRenderContribution, _DefaultBaseBackgroun);
15790
16471
  var _super = _createSuper(DefaultRectBackgroundRenderContribution);
@@ -15796,7 +16477,7 @@
15796
16477
  }
15797
16478
  return _createClass(DefaultRectBackgroundRenderContribution);
15798
16479
  }(DefaultBaseBackgroundRenderContribution);
15799
- DefaultRectBackgroundRenderContribution = __decorate$o([injectable()], DefaultRectBackgroundRenderContribution);
16480
+ DefaultRectBackgroundRenderContribution = __decorate$t([injectable()], DefaultRectBackgroundRenderContribution);
15800
16481
  var DefaultRectTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
15801
16482
  _inherits(DefaultRectTextureRenderContribution, _DefaultBaseTextureRe);
15802
16483
  var _super2 = _createSuper(DefaultRectTextureRenderContribution);
@@ -15808,7 +16489,7 @@
15808
16489
  }
15809
16490
  return _createClass(DefaultRectTextureRenderContribution);
15810
16491
  }(DefaultBaseTextureRenderContribution);
15811
- DefaultRectTextureRenderContribution = __decorate$o([injectable()], DefaultRectTextureRenderContribution);
16492
+ DefaultRectTextureRenderContribution = __decorate$t([injectable()], DefaultRectTextureRenderContribution);
15812
16493
  var SplitRectBeforeRenderContribution = /*#__PURE__*/function () {
15813
16494
  function SplitRectBeforeRenderContribution() {
15814
16495
  _classCallCheck(this, SplitRectBeforeRenderContribution);
@@ -15826,7 +16507,7 @@
15826
16507
  }]);
15827
16508
  return SplitRectBeforeRenderContribution;
15828
16509
  }();
15829
- SplitRectBeforeRenderContribution = __decorate$o([injectable()], SplitRectBeforeRenderContribution);
16510
+ SplitRectBeforeRenderContribution = __decorate$t([injectable()], SplitRectBeforeRenderContribution);
15830
16511
  var SplitRectAfterRenderContribution = /*#__PURE__*/function () {
15831
16512
  function SplitRectAfterRenderContribution() {
15832
16513
  _classCallCheck(this, SplitRectAfterRenderContribution);
@@ -15855,9 +16536,9 @@
15855
16536
  }]);
15856
16537
  return SplitRectAfterRenderContribution;
15857
16538
  }();
15858
- SplitRectAfterRenderContribution = __decorate$o([injectable()], SplitRectAfterRenderContribution);
16539
+ SplitRectAfterRenderContribution = __decorate$t([injectable()], SplitRectAfterRenderContribution);
15859
16540
 
15860
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16541
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15861
16542
  var d,
15862
16543
  c = arguments.length,
15863
16544
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15917,7 +16598,7 @@
15917
16598
  }]);
15918
16599
  return DefaultSymbolRenderContribution;
15919
16600
  }();
15920
- DefaultSymbolRenderContribution = __decorate$n([injectable()], DefaultSymbolRenderContribution);
16601
+ DefaultSymbolRenderContribution = __decorate$s([injectable()], DefaultSymbolRenderContribution);
15921
16602
  var DefaultSymbolBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
15922
16603
  _inherits(DefaultSymbolBackgroundRenderContribution, _DefaultBaseBackgroun);
15923
16604
  var _super = _createSuper(DefaultSymbolBackgroundRenderContribution);
@@ -15941,17 +16622,17 @@
15941
16622
  return _createClass(DefaultSymbolTextureRenderContribution);
15942
16623
  }(DefaultBaseTextureRenderContribution);
15943
16624
 
15944
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16625
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15945
16626
  var d,
15946
16627
  c = arguments.length,
15947
16628
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15948
16629
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15949
16630
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15950
16631
  },
15951
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
16632
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
15952
16633
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15953
16634
  },
15954
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
16635
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
15955
16636
  return function (target, key) {
15956
16637
  decorator(target, key, paramIndex);
15957
16638
  };
@@ -16007,7 +16688,7 @@
16007
16688
  }]);
16008
16689
  return DefaultRenderService;
16009
16690
  }();
16010
- DefaultRenderService = __decorate$m([injectable(), __param$8(0, inject(DrawContribution)), __metadata$8("design:paramtypes", [Object])], DefaultRenderService);
16691
+ DefaultRenderService = __decorate$r([injectable(), __param$9(0, inject(DrawContribution)), __metadata$c("design:paramtypes", [Object])], DefaultRenderService);
16011
16692
 
16012
16693
  var renderModule$1 = new ContainerModule(function (bind) {
16013
16694
  bind(DefaultRenderService).toSelf(), bind(RenderService).toService(DefaultRenderService);
@@ -16016,17 +16697,17 @@
16016
16697
  var PickerService = Symbol["for"]("PickerService");
16017
16698
  var GlobalPickerService = Symbol["for"]("GlobalPickerService");
16018
16699
 
16019
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16700
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16020
16701
  var d,
16021
16702
  c = arguments.length,
16022
16703
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16023
16704
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16024
16705
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16025
16706
  },
16026
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
16707
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
16027
16708
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16028
16709
  },
16029
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
16710
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
16030
16711
  return function (target, key) {
16031
16712
  decorator(target, key, paramIndex);
16032
16713
  };
@@ -16108,9 +16789,9 @@
16108
16789
  }]);
16109
16790
  return DefaultGlobalPickerService;
16110
16791
  }();
16111
- DefaultGlobalPickerService = __decorate$l([injectable(), __param$7(0, inject(VGlobal)), __metadata$7("design:paramtypes", [Object])], DefaultGlobalPickerService);
16792
+ DefaultGlobalPickerService = __decorate$q([injectable(), __param$8(0, inject(VGlobal)), __metadata$b("design:paramtypes", [Object])], DefaultGlobalPickerService);
16112
16793
 
16113
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16794
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16114
16795
  var d,
16115
16796
  c = arguments.length,
16116
16797
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16154,7 +16835,7 @@
16154
16835
  }]);
16155
16836
  return ShadowRootPickItemInterceptorContribution;
16156
16837
  }();
16157
- ShadowRootPickItemInterceptorContribution = __decorate$k([injectable()], ShadowRootPickItemInterceptorContribution);
16838
+ ShadowRootPickItemInterceptorContribution = __decorate$p([injectable()], ShadowRootPickItemInterceptorContribution);
16158
16839
  var InteractivePickItemInterceptorContribution = /*#__PURE__*/function () {
16159
16840
  function InteractivePickItemInterceptorContribution() {
16160
16841
  _classCallCheck(this, InteractivePickItemInterceptorContribution);
@@ -16178,7 +16859,7 @@
16178
16859
  }]);
16179
16860
  return InteractivePickItemInterceptorContribution;
16180
16861
  }();
16181
- InteractivePickItemInterceptorContribution = __decorate$k([injectable()], InteractivePickItemInterceptorContribution);
16862
+ InteractivePickItemInterceptorContribution = __decorate$p([injectable()], InteractivePickItemInterceptorContribution);
16182
16863
  var Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
16183
16864
  function Canvas3DPickItemInterceptor() {
16184
16865
  _classCallCheck(this, Canvas3DPickItemInterceptor);
@@ -16255,7 +16936,7 @@
16255
16936
  }]);
16256
16937
  return Canvas3DPickItemInterceptor;
16257
16938
  }();
16258
- Canvas3DPickItemInterceptor = __decorate$k([injectable()], Canvas3DPickItemInterceptor);
16939
+ Canvas3DPickItemInterceptor = __decorate$p([injectable()], Canvas3DPickItemInterceptor);
16259
16940
 
16260
16941
  var pickModule = new ContainerModule(function (bind) {
16261
16942
  bind(PickerService).toService(GlobalPickerService), bind(DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(DefaultGlobalPickerService), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
@@ -16268,17 +16949,17 @@
16268
16949
  var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
16269
16950
  var PluginService = Symbol["for"]("PluginService");
16270
16951
 
16271
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16952
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16272
16953
  var d,
16273
16954
  c = arguments.length,
16274
16955
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16275
16956
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16276
16957
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16277
16958
  },
16278
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
16959
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
16279
16960
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16280
16961
  },
16281
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
16962
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
16282
16963
  return function (target, key) {
16283
16964
  decorator(target, key, paramIndex);
16284
16965
  };
@@ -16326,7 +17007,7 @@
16326
17007
  }]);
16327
17008
  return DefaultPluginService;
16328
17009
  }();
16329
- DefaultPluginService = __decorate$j([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(AutoEnablePlugins)), __metadata$6("design:paramtypes", [Object])], DefaultPluginService);
17010
+ DefaultPluginService = __decorate$o([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(AutoEnablePlugins)), __metadata$a("design:paramtypes", [Object])], DefaultPluginService);
16330
17011
 
16331
17012
  var pluginModule = new ContainerModule(function (bind) {
16332
17013
  bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -16340,17 +17021,17 @@
16340
17021
  bind(DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
16341
17022
  });
16342
17023
 
16343
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17024
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16344
17025
  var d,
16345
17026
  c = arguments.length,
16346
17027
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16347
17028
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16348
17029
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16349
17030
  },
16350
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
17031
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
16351
17032
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16352
17033
  },
16353
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
17034
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
16354
17035
  return function (target, key) {
16355
17036
  decorator(target, key, paramIndex);
16356
17037
  };
@@ -16445,19 +17126,19 @@
16445
17126
  }]);
16446
17127
  return CanvasLayerHandlerContribution;
16447
17128
  }();
16448
- CanvasLayerHandlerContribution = __decorate$i([injectable(), __param$5(0, inject(VGlobal)), __metadata$5("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
17129
+ CanvasLayerHandlerContribution = __decorate$n([injectable(), __param$6(0, inject(VGlobal)), __metadata$9("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
16449
17130
 
16450
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17131
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16451
17132
  var d,
16452
17133
  c = arguments.length,
16453
17134
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16454
17135
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16455
17136
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16456
17137
  },
16457
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
17138
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
16458
17139
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16459
17140
  },
16460
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
17141
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
16461
17142
  return function (target, key) {
16462
17143
  decorator(target, key, paramIndex);
16463
17144
  };
@@ -16517,19 +17198,19 @@
16517
17198
  }]);
16518
17199
  return EmptyLayerHandlerContribution;
16519
17200
  }();
16520
- EmptyLayerHandlerContribution = __decorate$h([injectable(), __param$4(0, inject(VGlobal)), __metadata$4("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
17201
+ EmptyLayerHandlerContribution = __decorate$m([injectable(), __param$5(0, inject(VGlobal)), __metadata$8("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
16521
17202
 
16522
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17203
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16523
17204
  var d,
16524
17205
  c = arguments.length,
16525
17206
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16526
17207
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16527
17208
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16528
17209
  },
16529
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
17210
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
16530
17211
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16531
17212
  },
16532
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
17213
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
16533
17214
  return function (target, key) {
16534
17215
  decorator(target, key, paramIndex);
16535
17216
  };
@@ -16618,7 +17299,7 @@
16618
17299
  }]);
16619
17300
  return OffscreenLayerHandlerContribution;
16620
17301
  }();
16621
- OffscreenLayerHandlerContribution = __decorate$g([injectable(), __param$3(0, inject(VGlobal)), __metadata$3("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
17302
+ OffscreenLayerHandlerContribution = __decorate$l([injectable(), __param$4(0, inject(VGlobal)), __metadata$7("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
16622
17303
 
16623
17304
  var layerHandlerModules = new ContainerModule(function (bind) {
16624
17305
  bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
@@ -16745,7 +17426,7 @@
16745
17426
  return result;
16746
17427
  }
16747
17428
 
16748
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17429
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16749
17430
  var d,
16750
17431
  c = arguments.length,
16751
17432
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16784,7 +17465,7 @@
16784
17465
  }]);
16785
17466
  return ShadowRootDrawItemInterceptorContribution;
16786
17467
  }();
16787
- ShadowRootDrawItemInterceptorContribution = __decorate$f([injectable()], ShadowRootDrawItemInterceptorContribution);
17468
+ ShadowRootDrawItemInterceptorContribution = __decorate$k([injectable()], ShadowRootDrawItemInterceptorContribution);
16788
17469
  var CommonDrawItemInterceptorContribution = /*#__PURE__*/function () {
16789
17470
  function CommonDrawItemInterceptorContribution() {
16790
17471
  _classCallCheck(this, CommonDrawItemInterceptorContribution);
@@ -16812,7 +17493,7 @@
16812
17493
  }]);
16813
17494
  return CommonDrawItemInterceptorContribution;
16814
17495
  }();
16815
- CommonDrawItemInterceptorContribution = __decorate$f([injectable()], CommonDrawItemInterceptorContribution);
17496
+ CommonDrawItemInterceptorContribution = __decorate$k([injectable()], CommonDrawItemInterceptorContribution);
16816
17497
  var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
16817
17498
  function InteractiveDrawItemInterceptorContribution() {
16818
17499
  _classCallCheck(this, InteractiveDrawItemInterceptorContribution);
@@ -16871,7 +17552,7 @@
16871
17552
  }]);
16872
17553
  return InteractiveDrawItemInterceptorContribution;
16873
17554
  }();
16874
- InteractiveDrawItemInterceptorContribution = __decorate$f([injectable()], InteractiveDrawItemInterceptorContribution);
17555
+ InteractiveDrawItemInterceptorContribution = __decorate$k([injectable()], InteractiveDrawItemInterceptorContribution);
16875
17556
  var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
16876
17557
  function Canvas3DDrawItemInterceptor() {
16877
17558
  _classCallCheck(this, Canvas3DDrawItemInterceptor);
@@ -16960,19 +17641,19 @@
16960
17641
  }]);
16961
17642
  return Canvas3DDrawItemInterceptor;
16962
17643
  }();
16963
- Canvas3DDrawItemInterceptor = __decorate$f([injectable()], Canvas3DDrawItemInterceptor);
17644
+ Canvas3DDrawItemInterceptor = __decorate$k([injectable()], Canvas3DDrawItemInterceptor);
16964
17645
 
16965
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17646
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16966
17647
  var d,
16967
17648
  c = arguments.length,
16968
17649
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16969
17650
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16970
17651
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16971
17652
  },
16972
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
17653
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
16973
17654
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16974
17655
  },
16975
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
17656
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
16976
17657
  return function (target, key) {
16977
17658
  decorator(target, key, paramIndex);
16978
17659
  };
@@ -17174,9 +17855,9 @@
17174
17855
  }]);
17175
17856
  return DefaultDrawContribution;
17176
17857
  }();
17177
- __decorate$e([inject(VGlobal), __metadata$2("design:type", Object)], DefaultDrawContribution.prototype, "global", void 0), __decorate$e([postConstruct(), __metadata$2("design:type", Function), __metadata$2("design:paramtypes", []), __metadata$2("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$e([injectable(), __param$2(0, multiInject(GraphicRender)), __param$2(1, inject(RenderSelector)), __param$2(2, inject(LayerService)), __param$2(3, inject(ContributionProvider)), __param$2(3, named(DrawItemInterceptor)), __metadata$2("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
17858
+ __decorate$j([inject(VGlobal), __metadata$6("design:type", Object)], DefaultDrawContribution.prototype, "global", void 0), __decorate$j([postConstruct(), __metadata$6("design:type", Function), __metadata$6("design:paramtypes", []), __metadata$6("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$j([injectable(), __param$3(0, multiInject(GraphicRender)), __param$3(1, inject(RenderSelector)), __param$3(2, inject(LayerService)), __param$3(3, inject(ContributionProvider)), __param$3(3, named(DrawItemInterceptor)), __metadata$6("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
17178
17859
 
17179
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17860
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17180
17861
  var d,
17181
17862
  c = arguments.length,
17182
17863
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17195,19 +17876,19 @@
17195
17876
  }]);
17196
17877
  return DefaultRenderSelector;
17197
17878
  }();
17198
- DefaultRenderSelector = __decorate$d([injectable()], DefaultRenderSelector);
17879
+ DefaultRenderSelector = __decorate$i([injectable()], DefaultRenderSelector);
17199
17880
 
17200
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17881
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17201
17882
  var d,
17202
17883
  c = arguments.length,
17203
17884
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17204
17885
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17205
17886
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17206
17887
  },
17207
- __metadata$1 = undefined && undefined.__metadata || function (k, v) {
17888
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
17208
17889
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17209
17890
  },
17210
- __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
17891
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
17211
17892
  return function (target, key) {
17212
17893
  decorator(target, key, paramIndex);
17213
17894
  };
@@ -17309,9 +17990,9 @@
17309
17990
  }]);
17310
17991
  return DefaultCanvasGroupRender;
17311
17992
  }();
17312
- DefaultCanvasGroupRender = __decorate$c([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(GroupRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17993
+ DefaultCanvasGroupRender = __decorate$h([injectable(), __param$2(0, inject(ContributionProvider)), __param$2(0, named(GroupRenderContribution)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17313
17994
 
17314
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17995
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17315
17996
  var d,
17316
17997
  c = arguments.length,
17317
17998
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17375,9 +18056,9 @@
17375
18056
  }]);
17376
18057
  return DefaultIncrementalCanvasLineRender;
17377
18058
  }(DefaultCanvasLineRender);
17378
- DefaultIncrementalCanvasLineRender = __decorate$b([injectable()], DefaultIncrementalCanvasLineRender);
18059
+ DefaultIncrementalCanvasLineRender = __decorate$g([injectable()], DefaultIncrementalCanvasLineRender);
17379
18060
 
17380
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18061
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17381
18062
  var d,
17382
18063
  c = arguments.length,
17383
18064
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17432,20 +18113,20 @@
17432
18113
  }]);
17433
18114
  return DefaultIncrementalCanvasAreaRender;
17434
18115
  }(DefaultCanvasAreaRender);
17435
- DefaultIncrementalCanvasAreaRender = __decorate$a([injectable()], DefaultIncrementalCanvasAreaRender);
18116
+ DefaultIncrementalCanvasAreaRender = __decorate$f([injectable()], DefaultIncrementalCanvasAreaRender);
17436
18117
 
17437
18118
  var STATUS,
17438
- __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18119
+ __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17439
18120
  var d,
17440
18121
  c = arguments.length,
17441
18122
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17442
18123
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17443
18124
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17444
18125
  },
17445
- __metadata = undefined && undefined.__metadata || function (k, v) {
18126
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
17446
18127
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17447
18128
  },
17448
- __param = undefined && undefined.__param || function (paramIndex, decorator) {
18129
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
17449
18130
  return function (target, key) {
17450
18131
  decorator(target, key, paramIndex);
17451
18132
  };
@@ -17801,9 +18482,9 @@
17801
18482
  }]);
17802
18483
  return DefaultIncrementalDrawContribution;
17803
18484
  }(DefaultDrawContribution);
17804
- __decorate$9([inject(VGlobal), __metadata("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$9([injectable(), __param(0, multiInject(GraphicRender)), __param(1, inject(RenderSelector)), __param(2, inject(DefaultIncrementalCanvasLineRender)), __param(3, inject(DefaultIncrementalCanvasAreaRender)), __param(4, inject(LayerService)), __param(5, inject(ContributionProvider)), __param(5, named(DrawItemInterceptor)), __metadata("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
18485
+ __decorate$e([inject(VGlobal), __metadata$4("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$e([injectable(), __param$1(0, multiInject(GraphicRender)), __param$1(1, inject(RenderSelector)), __param$1(2, inject(DefaultIncrementalCanvasLineRender)), __param$1(3, inject(DefaultIncrementalCanvasAreaRender)), __param$1(4, inject(LayerService)), __param$1(5, inject(ContributionProvider)), __param$1(5, named(DrawItemInterceptor)), __metadata$4("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
17805
18486
 
17806
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18487
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17807
18488
  var d,
17808
18489
  c = arguments.length,
17809
18490
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17945,9 +18626,9 @@
17945
18626
  }]);
17946
18627
  return DefaultCanvasRect3dRender;
17947
18628
  }(BaseRender);
17948
- DefaultCanvasRect3dRender = __decorate$8([injectable()], DefaultCanvasRect3dRender);
18629
+ DefaultCanvasRect3dRender = __decorate$d([injectable()], DefaultCanvasRect3dRender);
17949
18630
 
17950
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18631
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17951
18632
  var d,
17952
18633
  c = arguments.length,
17953
18634
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18029,9 +18710,9 @@
18029
18710
  }]);
18030
18711
  return DefaultCanvasRichTextRender;
18031
18712
  }(BaseRender);
18032
- DefaultCanvasRichTextRender = __decorate$7([injectable()], DefaultCanvasRichTextRender);
18713
+ DefaultCanvasRichTextRender = __decorate$c([injectable()], DefaultCanvasRichTextRender);
18033
18714
 
18034
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18715
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18035
18716
  var d,
18036
18717
  c = arguments.length,
18037
18718
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18068,9 +18749,9 @@
18068
18749
  }]);
18069
18750
  return DefaultCanvasGlyphRender;
18070
18751
  }();
18071
- DefaultCanvasGlyphRender = __decorate$6([injectable()], DefaultCanvasGlyphRender);
18752
+ DefaultCanvasGlyphRender = __decorate$b([injectable()], DefaultCanvasGlyphRender);
18072
18753
 
18073
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18754
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18074
18755
  var d,
18075
18756
  c = arguments.length,
18076
18757
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18196,9 +18877,9 @@
18196
18877
  }]);
18197
18878
  return DefaultCanvasArc3DRender;
18198
18879
  }(BaseRender);
18199
- DefaultCanvasArc3DRender = __decorate$5([injectable()], DefaultCanvasArc3DRender);
18880
+ DefaultCanvasArc3DRender = __decorate$a([injectable()], DefaultCanvasArc3DRender);
18200
18881
 
18201
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18882
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18202
18883
  var d,
18203
18884
  c = arguments.length,
18204
18885
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18315,178 +18996,1008 @@
18315
18996
  });
18316
18997
  }
18317
18998
  }, {
18318
- key: "draw",
18319
- value: function draw(pyramid3d, renderService, drawContext) {
18320
- var pyramid3dAttribute = getTheme(pyramid3d).polygon;
18321
- this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
18999
+ key: "draw",
19000
+ value: function draw(pyramid3d, renderService, drawContext) {
19001
+ var pyramid3dAttribute = getTheme(pyramid3d).polygon;
19002
+ this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
19003
+ }
19004
+ }]);
19005
+ return DefaultCanvasPyramid3dRender;
19006
+ }(BaseRender);
19007
+ DefaultCanvasPyramid3dRender = __decorate$9([injectable()], DefaultCanvasPyramid3dRender);
19008
+
19009
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19010
+ var d,
19011
+ c = arguments.length,
19012
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19013
+ 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);
19014
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19015
+ };
19016
+ var DefaultPolygonBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
19017
+ _inherits(DefaultPolygonBackgroundRenderContribution, _DefaultBaseBackgroun);
19018
+ var _super = _createSuper(DefaultPolygonBackgroundRenderContribution);
19019
+ function DefaultPolygonBackgroundRenderContribution() {
19020
+ var _this;
19021
+ _classCallCheck(this, DefaultPolygonBackgroundRenderContribution);
19022
+ _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
19023
+ return _this;
19024
+ }
19025
+ return _createClass(DefaultPolygonBackgroundRenderContribution);
19026
+ }(DefaultBaseBackgroundRenderContribution);
19027
+ DefaultPolygonBackgroundRenderContribution = __decorate$8([injectable()], DefaultPolygonBackgroundRenderContribution);
19028
+ var DefaultPolygonTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
19029
+ _inherits(DefaultPolygonTextureRenderContribution, _DefaultBaseTextureRe);
19030
+ var _super2 = _createSuper(DefaultPolygonTextureRenderContribution);
19031
+ function DefaultPolygonTextureRenderContribution() {
19032
+ var _this2;
19033
+ _classCallCheck(this, DefaultPolygonTextureRenderContribution);
19034
+ _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
19035
+ return _this2;
19036
+ }
19037
+ return _createClass(DefaultPolygonTextureRenderContribution);
19038
+ }(DefaultBaseTextureRenderContribution);
19039
+ DefaultPolygonTextureRenderContribution = __decorate$8([injectable()], DefaultPolygonTextureRenderContribution);
19040
+
19041
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19042
+ var d,
19043
+ c = arguments.length,
19044
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19045
+ 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);
19046
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19047
+ };
19048
+ var DefaultPathBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
19049
+ _inherits(DefaultPathBackgroundRenderContribution, _DefaultBaseBackgroun);
19050
+ var _super = _createSuper(DefaultPathBackgroundRenderContribution);
19051
+ function DefaultPathBackgroundRenderContribution() {
19052
+ var _this;
19053
+ _classCallCheck(this, DefaultPathBackgroundRenderContribution);
19054
+ _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
19055
+ return _this;
19056
+ }
19057
+ return _createClass(DefaultPathBackgroundRenderContribution);
19058
+ }(DefaultBaseBackgroundRenderContribution);
19059
+ DefaultPathBackgroundRenderContribution = __decorate$7([injectable()], DefaultPathBackgroundRenderContribution);
19060
+ var DefaultPathTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
19061
+ _inherits(DefaultPathTextureRenderContribution, _DefaultBaseTextureRe);
19062
+ var _super2 = _createSuper(DefaultPathTextureRenderContribution);
19063
+ function DefaultPathTextureRenderContribution() {
19064
+ var _this2;
19065
+ _classCallCheck(this, DefaultPathTextureRenderContribution);
19066
+ _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
19067
+ return _this2;
19068
+ }
19069
+ return _createClass(DefaultPathTextureRenderContribution);
19070
+ }(DefaultBaseTextureRenderContribution);
19071
+ DefaultPathTextureRenderContribution = __decorate$7([injectable()], DefaultPathTextureRenderContribution);
19072
+
19073
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19074
+ var d,
19075
+ c = arguments.length,
19076
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19077
+ 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);
19078
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19079
+ };
19080
+ var DefaultAreaBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
19081
+ _inherits(DefaultAreaBackgroundRenderContribution, _DefaultBaseBackgroun);
19082
+ var _super = _createSuper(DefaultAreaBackgroundRenderContribution);
19083
+ function DefaultAreaBackgroundRenderContribution() {
19084
+ var _this;
19085
+ _classCallCheck(this, DefaultAreaBackgroundRenderContribution);
19086
+ _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
19087
+ return _this;
19088
+ }
19089
+ return _createClass(DefaultAreaBackgroundRenderContribution);
19090
+ }(DefaultBaseBackgroundRenderContribution);
19091
+ DefaultAreaBackgroundRenderContribution = __decorate$6([injectable()], DefaultAreaBackgroundRenderContribution);
19092
+ var DefaultAreaTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
19093
+ _inherits(DefaultAreaTextureRenderContribution, _DefaultBaseTextureRe);
19094
+ var _super2 = _createSuper(DefaultAreaTextureRenderContribution);
19095
+ function DefaultAreaTextureRenderContribution() {
19096
+ var _this2;
19097
+ _classCallCheck(this, DefaultAreaTextureRenderContribution);
19098
+ _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
19099
+ return _this2;
19100
+ }
19101
+ _createClass(DefaultAreaTextureRenderContribution, [{
19102
+ key: "drawShape",
19103
+ value: function drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
19104
+ var _a, _b, _c, _d;
19105
+ this.textureMap || this.initTextureMap(context, graphic.stage);
19106
+ var _ref = options || {},
19107
+ _ref$attribute = _ref.attribute,
19108
+ attribute = _ref$attribute === void 0 ? graphic.attribute : _ref$attribute,
19109
+ _attribute$texture = attribute.texture,
19110
+ texture = _attribute$texture === void 0 ? null !== (_a = graphic.attribute.texture) && void 0 !== _a ? _a : getAttributeFromDefaultAttrList(graphicAttribute, "texture") : _attribute$texture,
19111
+ _attribute$textureCol = attribute.textureColor,
19112
+ textureColor = _attribute$textureCol === void 0 ? null !== (_b = graphic.attribute.textureColor) && void 0 !== _b ? _b : getAttributeFromDefaultAttrList(graphicAttribute, "textureColor") : _attribute$textureCol,
19113
+ _attribute$textureSiz = attribute.textureSize,
19114
+ textureSize = _attribute$textureSiz === void 0 ? null !== (_c = graphic.attribute.textureSize) && void 0 !== _c ? _c : getAttributeFromDefaultAttrList(graphicAttribute, "textureSize") : _attribute$textureSiz,
19115
+ _attribute$texturePad = attribute.texturePadding,
19116
+ texturePadding = _attribute$texturePad === void 0 ? null !== (_d = graphic.attribute.texturePadding) && void 0 !== _d ? _d : getAttributeFromDefaultAttrList(graphicAttribute, "texturePadding") : _attribute$texturePad;
19117
+ if (!texture) return;
19118
+ var pattern = this.textureMap.get(texture);
19119
+ if (!pattern) switch (texture) {
19120
+ case "circle":
19121
+ pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
19122
+ break;
19123
+ case "diamond":
19124
+ pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
19125
+ break;
19126
+ case "rect":
19127
+ pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
19128
+ break;
19129
+ case "vertical-line":
19130
+ pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
19131
+ break;
19132
+ case "horizontal-line":
19133
+ pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
19134
+ break;
19135
+ case "bias-lr":
19136
+ pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
19137
+ break;
19138
+ case "bias-rl":
19139
+ pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
19140
+ break;
19141
+ case "grid":
19142
+ pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
19143
+ }
19144
+ pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
19145
+ }
19146
+ }]);
19147
+ return DefaultAreaTextureRenderContribution;
19148
+ }(DefaultBaseTextureRenderContribution);
19149
+ DefaultAreaTextureRenderContribution = __decorate$6([injectable()], DefaultAreaTextureRenderContribution);
19150
+
19151
+ var renderModule = new ContainerModule(function (bind) {
19152
+ bind(DefaultDrawContribution).toSelf(), bind(DrawContribution).toService(DefaultDrawContribution), bind(DefaultIncrementalDrawContribution).toSelf(), bind(IncrementalDrawContribution).toService(DefaultIncrementalDrawContribution), bind(DefaultRenderSelector).toSelf(), bind(RenderSelector).toService(DefaultRenderSelector), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender), bind(GraphicRender).to(DefaultCanvasCircleRender), bind(DefaultCircleRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleTextureRenderContribution).toSelf().inSingletonScope(), bind(CircleRenderContribution).toService(DefaultCircleRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleBackgroundRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleTextureRenderContribution), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender), bind(GraphicRender).to(DefaultCanvasRectRender), bind(DefaultCanvasRect3dRender).toSelf().inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender), bind(DefaultRectRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectTextureRenderContribution).toSelf().inSingletonScope(), bind(SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(DefaultRectRenderContribution), bind(RectRenderContribution).toService(DefaultRectBackgroundRenderContribution), bind(RectRenderContribution).toService(DefaultRectTextureRenderContribution), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution), bindContributionProvider(bind, RectRenderContribution), bind(DefaultCanvasTextRender).toSelf().inSingletonScope(), bind(TextRender).to(DefaultCanvasTextRender), bind(GraphicRender).to(DefaultCanvasTextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender), bind(GraphicRender).to(DefaultCanvasPathRender), bind(DefaultPathBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPathTextureRenderContribution).toSelf().inSingletonScope(), bind(PathRenderContribution).toService(DefaultPathBackgroundRenderContribution), bind(PathRenderContribution).toService(DefaultPathTextureRenderContribution), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender), bind(GraphicRender).to(DefaultCanvasSymbolRender), bind(DefaultSymbolRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolTextureRenderContribution).toSelf().inSingletonScope(), bind(SymbolRenderContribution).toService(DefaultSymbolRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolBackgroundRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolTextureRenderContribution), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender), bind(GraphicRender).to(DefaultCanvasArcRender), bind(DefaultCanvasArc3DRender).toSelf().inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender), bind(DefaultArcRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcTextureRenderContribution).toSelf().inSingletonScope(), bind(ArcRenderContribution).toService(DefaultArcRenderContribution), bind(ArcRenderContribution).toService(DefaultArcBackgroundRenderContribution), bind(ArcRenderContribution).toService(DefaultArcTextureRenderContribution), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender), bind(GraphicRender).to(DefaultCanvasLineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender), bind(GraphicRender).to(DefaultCanvasAreaRender), bind(DefaultAreaBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultAreaTextureRenderContribution).toSelf().inSingletonScope(), bind(AreaRenderContribution).toService(DefaultAreaBackgroundRenderContribution), bind(AreaRenderContribution).toService(DefaultAreaTextureRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultCanvasGroupRender).toSelf().inSingletonScope(), bind(GroupRender).to(DefaultCanvasGroupRender), bind(GraphicRender).to(DefaultCanvasGroupRender), bind(DefaultGroupBackgroundRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DefaultGroupBackgroundRenderContribution), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultCanvasPolygonRender).toSelf().inSingletonScope(), bind(PolygonRender).to(DefaultCanvasPolygonRender), bind(GraphicRender).to(DefaultCanvasPolygonRender), bind(DefaultPolygonBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPolygonTextureRenderContribution).toSelf().inSingletonScope(), bind(PolygonRenderContribution).toService(DefaultPolygonBackgroundRenderContribution), bind(PolygonRenderContribution).toService(DefaultPolygonTextureRenderContribution), bindContributionProvider(bind, PolygonRenderContribution), bind(DefaultCanvasGlyphRender).toSelf().inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender), bind(DefaultCanvasImageRender).toSelf().inSingletonScope(), bind(ImageRender).toService(DefaultCanvasImageRender), bind(GraphicRender).toService(ImageRender), bind(DefaultImageBackgroundRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(DefaultImageBackgroundRenderContribution), bindContributionProvider(bind, ImageRenderContribution), bind(DefaultCanvasRichTextRender).toSelf().inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender), bind(DefaultCanvasPyramid3dRender).toSelf().inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bind(InteractiveDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(InteractiveDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
19153
+ });
19154
+
19155
+ function load(container) {
19156
+ container.load(renderModule);
19157
+ }
19158
+
19159
+ container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$1(container), load(container);
19160
+ var vglobal = container.get(VGlobal);
19161
+ application.global = vglobal;
19162
+ var graphicUtil = container.get(GraphicUtil);
19163
+ application.graphicUtil = graphicUtil;
19164
+ var transformUtil = container.get(TransformUtil);
19165
+ application.transformUtil = transformUtil;
19166
+ var graphicService = container.get(GraphicService);
19167
+ application.graphicService = graphicService;
19168
+ container.get(GlobalPickerService);
19169
+ var layerService = container.get(LayerService);
19170
+ application.layerService = layerService;
19171
+
19172
+ new vutils.AABBBounds();
19173
+
19174
+ new vutils.AABBBounds();
19175
+
19176
+ var defaultTicker = new DefaultTicker();
19177
+ defaultTicker.addTimeline(defaultTimeline);
19178
+ defaultTicker.setFPS(60);
19179
+
19180
+ var params;
19181
+ !function (params) {
19182
+ params[params.W = 1] = "W", params[params.H = 2] = "H", params[params.WH = 3] = "WH";
19183
+ }(params || (params = {}));
19184
+
19185
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19186
+ var d,
19187
+ c = arguments.length,
19188
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19189
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19190
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19191
+ },
19192
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
19193
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19194
+ };
19195
+ var initMatrix = new vutils.Matrix(1, 0, 0, 1, 0, 0),
19196
+ globalPoint = {
19197
+ x: 0,
19198
+ y: 0
19199
+ };
19200
+ var EmptyContext2d = /*#__PURE__*/function () {
19201
+ function EmptyContext2d(canvas, dpr) {
19202
+ _classCallCheck(this, EmptyContext2d);
19203
+ this.matrix = new vutils.Matrix(1, 0, 0, 1, 0, 0), this.stack = [], this.dpr = dpr, this.applyedMatrix = new vutils.Matrix(1, 0, 0, 1, 0, 0), this.path = new CustomPath2D();
19204
+ }
19205
+ _createClass(EmptyContext2d, [{
19206
+ key: "nativeContext",
19207
+ get: function get() {
19208
+ return this.path;
19209
+ }
19210
+ }, {
19211
+ key: "getCanvas",
19212
+ value: function getCanvas() {
19213
+ throw new Error("不支持getCanvas");
19214
+ }
19215
+ }, {
19216
+ key: "getContext",
19217
+ value: function getContext() {
19218
+ throw new Error("不支持getContext");
19219
+ }
19220
+ }, {
19221
+ key: "setTransformForCurrent",
19222
+ value: function setTransformForCurrent() {
19223
+ var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
19224
+ !force && this.applyedMatrix.equalToMatrix(this.matrix) || (this.applyedMatrix = this.cloneMatrix(this.matrix));
19225
+ }
19226
+ }, {
19227
+ key: "currentMatrix",
19228
+ get: function get() {
19229
+ return this.matrix;
19230
+ }
19231
+ }, {
19232
+ key: "cloneMatrix",
19233
+ value: function cloneMatrix(m) {
19234
+ return matrixAllocate.allocateByObj(m);
19235
+ }
19236
+ }, {
19237
+ key: "clear",
19238
+ value: function clear() {
19239
+ this.save(), this.resetTransform(), this.restore();
19240
+ }
19241
+ }, {
19242
+ key: "restore",
19243
+ value: function restore() {
19244
+ this.stack.length > 0 && (matrixAllocate.free(this.matrix), this.matrix = this.stack.pop(), this.setTransformForCurrent());
19245
+ }
19246
+ }, {
19247
+ key: "highPerformanceRestore",
19248
+ value: function highPerformanceRestore() {
19249
+ this.stack.length > 0 && (matrixAllocate.free(this.matrix), this.matrix = this.stack.pop());
19250
+ }
19251
+ }, {
19252
+ key: "rotate",
19253
+ value: function rotate(rad) {
19254
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19255
+ this.matrix.rotate(rad), setTransform && this.setTransformForCurrent();
19256
+ }
19257
+ }, {
19258
+ key: "save",
19259
+ value: function save() {
19260
+ var matrix = this.cloneMatrix(this.matrix);
19261
+ this.stack.push(matrix);
19262
+ }
19263
+ }, {
19264
+ key: "highPerformanceSave",
19265
+ value: function highPerformanceSave() {
19266
+ var matrix = this.cloneMatrix(this.matrix);
19267
+ this.stack.push(matrix);
19268
+ }
19269
+ }, {
19270
+ key: "scale",
19271
+ value: function scale(sx, sy) {
19272
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19273
+ this.matrix.scale(sx, sy), setTransform && this.setTransformForCurrent();
19274
+ }
19275
+ }, {
19276
+ key: "setScale",
19277
+ value: function setScale(sx, sy) {
19278
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19279
+ this.matrix.setScale(sx, sy), setTransform && this.setTransformForCurrent();
19280
+ }
19281
+ }, {
19282
+ key: "scalePoint",
19283
+ value: function scalePoint(sx, sy, px, py) {
19284
+ var setTransform = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !0;
19285
+ this.translate(px, py, !1), this.scale(sx, sy, !1), this.translate(-px, -py, !1), setTransform && this.setTransformForCurrent();
19286
+ }
19287
+ }, {
19288
+ key: "setTransform",
19289
+ value: function setTransform(a, b, c, d, e, f) {
19290
+ var _setTransform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
19291
+ var dpr = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : this.dpr;
19292
+ this.matrix.setValue(dpr * a, dpr * b, dpr * c, dpr * d, dpr * e, dpr * f), _setTransform && this.setTransformForCurrent();
19293
+ }
19294
+ }, {
19295
+ key: "setTransformFromMatrix",
19296
+ value: function setTransformFromMatrix(matrix) {
19297
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19298
+ var dpr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dpr;
19299
+ this.matrix.setValue(matrix.a * dpr, matrix.b * dpr, matrix.c * dpr, matrix.d * dpr, matrix.e * dpr, matrix.f * dpr), setTransform && this.setTransformForCurrent();
19300
+ }
19301
+ }, {
19302
+ key: "resetTransform",
19303
+ value: function resetTransform() {
19304
+ var setTransform = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19305
+ var dpr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.dpr;
19306
+ this.setTransform(dpr, 0, 0, dpr, 0, 0), setTransform && this.setTransformForCurrent();
19307
+ }
19308
+ }, {
19309
+ key: "transform",
19310
+ value: function transform(a, b, c, d, e, f) {
19311
+ var setTransform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
19312
+ this.matrix.multiply(a, b, c, d, e, f), setTransform && this.setTransformForCurrent();
19313
+ }
19314
+ }, {
19315
+ key: "transformFromMatrix",
19316
+ value: function transformFromMatrix(matrix, setTransform) {
19317
+ this.matrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), setTransform && this.setTransformForCurrent();
19318
+ }
19319
+ }, {
19320
+ key: "translate",
19321
+ value: function translate(x, y) {
19322
+ var setTransform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19323
+ this.matrix.translate(x, y), setTransform && this.setTransformForCurrent();
19324
+ }
19325
+ }, {
19326
+ key: "rotateDegrees",
19327
+ value: function rotateDegrees(deg) {
19328
+ var setTransform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
19329
+ var rad = deg * Math.PI / 180;
19330
+ this.rotate(rad, setTransform);
19331
+ }
19332
+ }, {
19333
+ key: "rotateAbout",
19334
+ value: function rotateAbout(rad, x, y) {
19335
+ var setTransform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
19336
+ this.translate(x, y, !1), this.rotate(rad, !1), this.translate(-x, -y, !1), setTransform && this.setTransformForCurrent();
19337
+ }
19338
+ }, {
19339
+ key: "rotateDegreesAbout",
19340
+ value: function rotateDegreesAbout(deg, x, y) {
19341
+ var setTransform = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
19342
+ this.translate(x, y, !1), this.rotateDegrees(deg, !1), this.translate(-x, -y, !1), setTransform && this.setTransformForCurrent();
19343
+ }
19344
+ }, {
19345
+ key: "beginPath",
19346
+ value: function beginPath() {
19347
+ this.path.clear();
19348
+ }
19349
+ }, {
19350
+ key: "clip",
19351
+ value: function clip(path, fillRule) {}
19352
+ }, {
19353
+ key: "arc",
19354
+ value: function arc(x, y, radius, startAngle, endAngle, anticlockwise) {
19355
+ this.path.arc(x, y, radius, startAngle, endAngle, anticlockwise);
19356
+ }
19357
+ }, {
19358
+ key: "arcTo",
19359
+ value: function arcTo(x1, y1, x2, y2, radiusX) {
19360
+ this.path.arcTo(x1, y1, x2, y2, radiusX);
19361
+ }
19362
+ }, {
19363
+ key: "bezierCurveTo",
19364
+ value: function bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
19365
+ this.path.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
19366
+ }
19367
+ }, {
19368
+ key: "closePath",
19369
+ value: function closePath() {
19370
+ this.path.closePath();
19371
+ }
19372
+ }, {
19373
+ key: "ellipse",
19374
+ value: function ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) {}
19375
+ }, {
19376
+ key: "lineTo",
19377
+ value: function lineTo(x, y) {
19378
+ this.path.lineTo(x, y);
19379
+ }
19380
+ }, {
19381
+ key: "moveTo",
19382
+ value: function moveTo(x, y) {
19383
+ this.path.moveTo(x, y);
19384
+ }
19385
+ }, {
19386
+ key: "quadraticCurveTo",
19387
+ value: function quadraticCurveTo(cpx, cpy, x, y) {
19388
+ this.path.quadraticCurveTo(cpx, cpy, x, y);
19389
+ }
19390
+ }, {
19391
+ key: "rect",
19392
+ value: function rect(x, y, w, h) {
19393
+ this.path.rect(x, y, w, h);
19394
+ }
19395
+ }, {
19396
+ key: "createImageData",
19397
+ value: function createImageData(imageDataOrSw, sh) {
19398
+ return null;
19399
+ }
19400
+ }, {
19401
+ key: "createLinearGradient",
19402
+ value: function createLinearGradient(x0, y0, x1, y1) {
19403
+ throw new Error("不支持createLinearGradient");
19404
+ }
19405
+ }, {
19406
+ key: "createPattern",
19407
+ value: function createPattern(image, repetition) {
19408
+ throw new Error("不支持createPattern");
19409
+ }
19410
+ }, {
19411
+ key: "createRadialGradient",
19412
+ value: function createRadialGradient(x0, y0, r0, x1, y1, r1) {
19413
+ throw new Error("不支持createRadialGradient");
19414
+ }
19415
+ }, {
19416
+ key: "createConicGradient",
19417
+ value: function createConicGradient(x, y, startAngle, endAngle) {
19418
+ return null;
19419
+ }
19420
+ }, {
19421
+ key: "fill",
19422
+ value: function fill(path, fillRule) {}
19423
+ }, {
19424
+ key: "fillRect",
19425
+ value: function fillRect(x, y, width, height) {
19426
+ this.path.rect(x, y, width, height);
19427
+ }
19428
+ }, {
19429
+ key: "clearRect",
19430
+ value: function clearRect(x, y, w, h) {}
19431
+ }, {
19432
+ key: "fillText",
19433
+ value: function fillText(text, x, y) {}
19434
+ }, {
19435
+ key: "getImageData",
19436
+ value: function getImageData(sx, sy, sw, sh) {
19437
+ return null;
19438
+ }
19439
+ }, {
19440
+ key: "getLineDash",
19441
+ value: function getLineDash() {
19442
+ return [];
19443
+ }
19444
+ }, {
19445
+ key: "isPointInPath",
19446
+ value: function isPointInPath(x, y) {
19447
+ return this.matrix.transformPoint({
19448
+ x: x,
19449
+ y: y
19450
+ }, globalPoint), contain(this.path.commandList, globalPoint.x, globalPoint.y);
19451
+ }
19452
+ }, {
19453
+ key: "isPointInStroke",
19454
+ value: function isPointInStroke(x, y) {
19455
+ if (!this.lineWidth) return !1;
19456
+ this.matrix.transformPoint({
19457
+ x: x,
19458
+ y: y
19459
+ }, globalPoint);
19460
+ var lineWidth = getScaledStroke(this, this.lineWidth, this.dpr);
19461
+ return containStroke(this.path.commandList, lineWidth, globalPoint.x, globalPoint.y);
19462
+ }
19463
+ }, {
19464
+ key: "measureText",
19465
+ value: function measureText(text) {
19466
+ throw new Error("不支持measureText");
19467
+ }
19468
+ }, {
19469
+ key: "putImageData",
19470
+ value: function putImageData(imagedata, dx, dy) {
19471
+ throw new Error("不支持measureText");
19472
+ }
19473
+ }, {
19474
+ key: "setLineDash",
19475
+ value: function setLineDash(segments) {}
19476
+ }, {
19477
+ key: "stroke",
19478
+ value: function stroke(path) {}
19479
+ }, {
19480
+ key: "strokeRect",
19481
+ value: function strokeRect(x, y, width, height) {
19482
+ this.path.rect(x, y, width, height);
19483
+ }
19484
+ }, {
19485
+ key: "strokeText",
19486
+ value: function strokeText(text, x, y) {}
19487
+ }, {
19488
+ key: "drawImage",
19489
+ value: function drawImage() {}
19490
+ }, {
19491
+ key: "setCommonStyle",
19492
+ value: function setCommonStyle(params, attribute, offsetX, offsetY, defaultParams) {}
19493
+ }, {
19494
+ key: "_setCommonStyle",
19495
+ value: function _setCommonStyle(params, offsetX, offsetY, defaultParams) {}
19496
+ }, {
19497
+ key: "setStrokeStyle",
19498
+ value: function setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams) {}
19499
+ }, {
19500
+ key: "_setStrokeStyle",
19501
+ value: function _setStrokeStyle(params, offsetX, offsetY, defaultParams) {}
19502
+ }, {
19503
+ key: "setTextStyleWithoutAlignBaseline",
19504
+ value: function setTextStyleWithoutAlignBaseline(params, defaultParams) {}
19505
+ }, {
19506
+ key: "setTextStyle",
19507
+ value: function setTextStyle(params, defaultParams) {}
19508
+ }, {
19509
+ key: "draw",
19510
+ value: function draw() {}
19511
+ }, {
19512
+ key: "clearMatrix",
19513
+ value: function clearMatrix() {
19514
+ var setTransform = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19515
+ var dpr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.dpr;
19516
+ this.setTransformFromMatrix(initMatrix, setTransform, dpr);
19517
+ }
19518
+ }, {
19519
+ key: "onlyTranslate",
19520
+ value: function onlyTranslate() {
19521
+ var dpr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.dpr;
19522
+ return this.matrix.a === dpr && 0 === this.matrix.b && 0 === this.matrix.c && this.matrix.d === dpr;
19523
+ }
19524
+ }, {
19525
+ key: "release",
19526
+ value: function release() {
19527
+ this.stack.forEach(function (m) {
19528
+ return matrixAllocate.free(m);
19529
+ }), this.stack.length = 0;
19530
+ }
19531
+ }]);
19532
+ return EmptyContext2d;
19533
+ }();
19534
+ EmptyContext2d = __decorate$5([injectable(), __metadata$3("design:paramtypes", [Object, Number])], EmptyContext2d);
19535
+
19536
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19537
+ var d,
19538
+ c = arguments.length,
19539
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19540
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19541
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19542
+ },
19543
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
19544
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19545
+ };
19546
+ var DefaultConfig = {
19547
+ WIDTH: 500,
19548
+ HEIGHT: 500,
19549
+ DPR: 1
19550
+ };
19551
+ var BaseCanvas = /*#__PURE__*/function () {
19552
+ function BaseCanvas(params) {
19553
+ _classCallCheck(this, BaseCanvas);
19554
+ var nativeCanvas = params.nativeCanvas,
19555
+ _params$width = params.width,
19556
+ width = _params$width === void 0 ? DefaultConfig.WIDTH : _params$width,
19557
+ _params$height = params.height,
19558
+ height = _params$height === void 0 ? DefaultConfig.HEIGHT : _params$height,
19559
+ _params$dpr = params.dpr,
19560
+ dpr = _params$dpr === void 0 ? DefaultConfig.DPR : _params$dpr,
19561
+ x = params.x,
19562
+ y = params.y,
19563
+ _params$canvasControl = params.canvasControled,
19564
+ canvasControled = _params$canvasControl === void 0 ? !0 : _params$canvasControl;
19565
+ this._x = null != x ? x : 0, this._y = null != y ? y : 0, this._pixelWidth = width * dpr, this._pixelHeight = height * dpr, this._visiable = !1 !== params.visiable, this.controled = canvasControled, this._displayWidth = width, this._displayHeight = height, this._dpr = dpr, this._nativeCanvas = nativeCanvas, this._id = nativeCanvas.id, this.init(params);
19566
+ }
19567
+ _createClass(BaseCanvas, [{
19568
+ key: "displayWidth",
19569
+ get: function get() {
19570
+ return this._pixelWidth / this._dpr;
19571
+ }
19572
+ }, {
19573
+ key: "displayHeight",
19574
+ get: function get() {
19575
+ return this._pixelHeight / this._dpr;
19576
+ }
19577
+ }, {
19578
+ key: "id",
19579
+ get: function get() {
19580
+ return this._id;
19581
+ }
19582
+ }, {
19583
+ key: "x",
19584
+ get: function get() {
19585
+ return this._x;
19586
+ },
19587
+ set: function set(_x) {
19588
+ this._x = _x;
19589
+ }
19590
+ }, {
19591
+ key: "y",
19592
+ get: function get() {
19593
+ return this._y;
19594
+ },
19595
+ set: function set(_y) {
19596
+ this._y = _y;
19597
+ }
19598
+ }, {
19599
+ key: "nativeCanvas",
19600
+ get: function get() {
19601
+ return this._nativeCanvas;
19602
+ }
19603
+ }, {
19604
+ key: "width",
19605
+ get: function get() {
19606
+ return this._pixelWidth;
19607
+ },
19608
+ set: function set(width) {
19609
+ this._pixelWidth = width, this._displayWidth = width / (this._dpr || 1);
19610
+ }
19611
+ }, {
19612
+ key: "height",
19613
+ get: function get() {
19614
+ return this._pixelHeight;
19615
+ },
19616
+ set: function set(height) {
19617
+ this._pixelHeight = height, this._displayHeight = height / (this._dpr || 1);
19618
+ }
19619
+ }, {
19620
+ key: "getContext",
19621
+ value: function getContext(str) {
19622
+ return this._context;
19623
+ }
19624
+ }, {
19625
+ key: "visiable",
19626
+ get: function get() {
19627
+ return this._visiable;
19628
+ },
19629
+ set: function set(visiable) {
19630
+ this._visiable = visiable, visiable ? this.show() : this.hide();
19631
+ }
19632
+ }, {
19633
+ key: "dpr",
19634
+ get: function get() {
19635
+ return this._dpr;
19636
+ },
19637
+ set: function set(dpr) {
19638
+ this._dpr = dpr, this.resize(this._displayWidth, this._displayHeight);
19639
+ }
19640
+ }, {
19641
+ key: "getNativeCanvas",
19642
+ value: function getNativeCanvas() {
19643
+ return this._nativeCanvas;
19644
+ }
19645
+ }, {
19646
+ key: "hide",
19647
+ value: function hide() {}
19648
+ }, {
19649
+ key: "show",
19650
+ value: function show() {}
19651
+ }, {
19652
+ key: "applyPosition",
19653
+ value: function applyPosition() {}
19654
+ }, {
19655
+ key: "resetStyle",
19656
+ value: function resetStyle(params) {}
19657
+ }, {
19658
+ key: "resize",
19659
+ value: function resize(width, height) {}
19660
+ }, {
19661
+ key: "toDataURL",
19662
+ value: function toDataURL(mimeType, quality) {
19663
+ return "";
19664
+ }
19665
+ }, {
19666
+ key: "readPixels",
19667
+ value: function readPixels(x, y, w, h) {
19668
+ return this._context.getImageData(x, y, w, h);
19669
+ }
19670
+ }, {
19671
+ key: "convertToBlob",
19672
+ value: function convertToBlob(options) {
19673
+ throw new Error("暂未实现");
19674
+ }
19675
+ }, {
19676
+ key: "transferToImageBitmap",
19677
+ value: function transferToImageBitmap() {
19678
+ throw new Error("暂未实现");
19679
+ }
19680
+ }, {
19681
+ key: "release",
19682
+ value: function release() {
19683
+ this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
19684
+ }
19685
+ }]);
19686
+ return BaseCanvas;
19687
+ }();
19688
+ BaseCanvas.env = "browser", BaseCanvas = __decorate$4([injectable(), __metadata$2("design:paramtypes", [Object])], BaseCanvas);
19689
+
19690
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19691
+ var d,
19692
+ c = arguments.length,
19693
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19694
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19695
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19696
+ };
19697
+ var BaseEnvContribution = /*#__PURE__*/function () {
19698
+ function BaseEnvContribution() {
19699
+ _classCallCheck(this, BaseEnvContribution);
19700
+ }
19701
+ _createClass(BaseEnvContribution, [{
19702
+ key: "configure",
19703
+ value: function configure(service) {
19704
+ service.env === this.type && service.setActiveEnvContribution(this);
19705
+ }
19706
+ }, {
19707
+ key: "getNativeAABBBounds",
19708
+ value: function getNativeAABBBounds(dom) {
19709
+ return new vutils.AABBBounds();
19710
+ }
19711
+ }, {
19712
+ key: "removeDom",
19713
+ value: function removeDom(dom) {
19714
+ return !1;
19715
+ }
19716
+ }, {
19717
+ key: "createDom",
19718
+ value: function createDom(params) {
19719
+ return null;
19720
+ }
19721
+ }, {
19722
+ key: "getDynamicCanvasCount",
19723
+ value: function getDynamicCanvasCount() {
19724
+ return 999;
19725
+ }
19726
+ }, {
19727
+ key: "getStaticCanvasCount",
19728
+ value: function getStaticCanvasCount() {
19729
+ return 999;
19730
+ }
19731
+ }, {
19732
+ key: "getElementById",
19733
+ value: function getElementById(str) {
19734
+ return document.getElementById(str);
19735
+ }
19736
+ }, {
19737
+ key: "getRootElement",
19738
+ value: function getRootElement() {
19739
+ return document.body;
19740
+ }
19741
+ }, {
19742
+ key: "loadJson",
19743
+ value: function loadJson(url) {
19744
+ var jsonPromise = fetch(url).then(function (data) {
19745
+ return data.json();
19746
+ });
19747
+ return jsonPromise.then(function (json) {
19748
+ return {
19749
+ data: json,
19750
+ state: "success"
19751
+ };
19752
+ })["catch"](function () {
19753
+ return {
19754
+ data: null,
19755
+ state: "fail"
19756
+ };
19757
+ }), jsonPromise;
19758
+ }
19759
+ }, {
19760
+ key: "loadArrayBuffer",
19761
+ value: function loadArrayBuffer(url) {
19762
+ return fetch(url).then(function (data) {
19763
+ return data.arrayBuffer();
19764
+ }).then(function (arrayBuffer) {
19765
+ return {
19766
+ data: arrayBuffer,
19767
+ loadState: "success"
19768
+ };
19769
+ })["catch"](function () {
19770
+ return {
19771
+ data: null,
19772
+ loadState: "fail"
19773
+ };
19774
+ });
19775
+ }
19776
+ }, {
19777
+ key: "loadBlob",
19778
+ value: function loadBlob(url) {
19779
+ return fetch(url).then(function (data) {
19780
+ return data.blob();
19781
+ }).then(function (blob) {
19782
+ return {
19783
+ data: blob,
19784
+ loadState: "success"
19785
+ };
19786
+ })["catch"](function () {
19787
+ return {
19788
+ data: null,
19789
+ loadState: "fail"
19790
+ };
19791
+ });
19792
+ }
19793
+ }, {
19794
+ key: "getElementTop",
19795
+ value: function getElementTop(dom, baseWindow) {
19796
+ return 0;
19797
+ }
19798
+ }, {
19799
+ key: "getElementLeft",
19800
+ value: function getElementLeft(dom, baseWindow) {
19801
+ return 0;
19802
+ }
19803
+ }, {
19804
+ key: "getElementTopLeft",
19805
+ value: function getElementTopLeft(dom, baseWindow) {
19806
+ return {
19807
+ top: 0,
19808
+ left: 0
19809
+ };
19810
+ }
19811
+ }]);
19812
+ return BaseEnvContribution;
19813
+ }();
19814
+ BaseEnvContribution = __decorate$3([injectable()], BaseEnvContribution);
19815
+
19816
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19817
+ var d,
19818
+ c = arguments.length,
19819
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19820
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19821
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19822
+ },
19823
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
19824
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19825
+ };
19826
+ var BaseWindowHandlerContribution = /*#__PURE__*/function () {
19827
+ function BaseWindowHandlerContribution() {
19828
+ _classCallCheck(this, BaseWindowHandlerContribution);
19829
+ this._uid = Generator.GenAutoIncrementId();
19830
+ }
19831
+ _createClass(BaseWindowHandlerContribution, [{
19832
+ key: "onChange",
19833
+ value: function onChange(cb) {
19834
+ this._onChangeCb = cb;
19835
+ }
19836
+ }, {
19837
+ key: "configure",
19838
+ value: function configure(window, global) {
19839
+ global.env === this.type && window.setWindowHandler(this);
19840
+ }
19841
+ }, {
19842
+ key: "release",
19843
+ value: function release() {
19844
+ this.releaseWindow();
19845
+ }
19846
+ }, {
19847
+ key: "isVisible",
19848
+ value: function isVisible(bbox) {
19849
+ return !0;
19850
+ }
19851
+ }, {
19852
+ key: "onVisibleChange",
19853
+ value: function onVisibleChange(cb) {}
19854
+ }, {
19855
+ key: "getTopLeft",
19856
+ value: function getTopLeft(baseWindow) {
19857
+ return {
19858
+ top: 0,
19859
+ left: 0
19860
+ };
18322
19861
  }
18323
19862
  }]);
18324
- return DefaultCanvasPyramid3dRender;
18325
- }(BaseRender);
18326
- DefaultCanvasPyramid3dRender = __decorate$4([injectable()], DefaultCanvasPyramid3dRender);
18327
-
18328
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18329
- var d,
18330
- c = arguments.length,
18331
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18332
- 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);
18333
- return c > 3 && r && Object.defineProperty(target, key, r), r;
18334
- };
18335
- var DefaultPolygonBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
18336
- _inherits(DefaultPolygonBackgroundRenderContribution, _DefaultBaseBackgroun);
18337
- var _super = _createSuper(DefaultPolygonBackgroundRenderContribution);
18338
- function DefaultPolygonBackgroundRenderContribution() {
18339
- var _this;
18340
- _classCallCheck(this, DefaultPolygonBackgroundRenderContribution);
18341
- _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
18342
- return _this;
18343
- }
18344
- return _createClass(DefaultPolygonBackgroundRenderContribution);
18345
- }(DefaultBaseBackgroundRenderContribution);
18346
- DefaultPolygonBackgroundRenderContribution = __decorate$3([injectable()], DefaultPolygonBackgroundRenderContribution);
18347
- var DefaultPolygonTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18348
- _inherits(DefaultPolygonTextureRenderContribution, _DefaultBaseTextureRe);
18349
- var _super2 = _createSuper(DefaultPolygonTextureRenderContribution);
18350
- function DefaultPolygonTextureRenderContribution() {
18351
- var _this2;
18352
- _classCallCheck(this, DefaultPolygonTextureRenderContribution);
18353
- _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
18354
- return _this2;
18355
- }
18356
- return _createClass(DefaultPolygonTextureRenderContribution);
18357
- }(DefaultBaseTextureRenderContribution);
18358
- DefaultPolygonTextureRenderContribution = __decorate$3([injectable()], DefaultPolygonTextureRenderContribution);
18359
-
18360
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18361
- var d,
18362
- c = arguments.length,
18363
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18364
- 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);
18365
- return c > 3 && r && Object.defineProperty(target, key, r), r;
18366
- };
18367
- var DefaultPathBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
18368
- _inherits(DefaultPathBackgroundRenderContribution, _DefaultBaseBackgroun);
18369
- var _super = _createSuper(DefaultPathBackgroundRenderContribution);
18370
- function DefaultPathBackgroundRenderContribution() {
18371
- var _this;
18372
- _classCallCheck(this, DefaultPathBackgroundRenderContribution);
18373
- _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
18374
- return _this;
18375
- }
18376
- return _createClass(DefaultPathBackgroundRenderContribution);
18377
- }(DefaultBaseBackgroundRenderContribution);
18378
- DefaultPathBackgroundRenderContribution = __decorate$2([injectable()], DefaultPathBackgroundRenderContribution);
18379
- var DefaultPathTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18380
- _inherits(DefaultPathTextureRenderContribution, _DefaultBaseTextureRe);
18381
- var _super2 = _createSuper(DefaultPathTextureRenderContribution);
18382
- function DefaultPathTextureRenderContribution() {
18383
- var _this2;
18384
- _classCallCheck(this, DefaultPathTextureRenderContribution);
18385
- _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
18386
- return _this2;
18387
- }
18388
- return _createClass(DefaultPathTextureRenderContribution);
18389
- }(DefaultBaseTextureRenderContribution);
18390
- DefaultPathTextureRenderContribution = __decorate$2([injectable()], DefaultPathTextureRenderContribution);
19863
+ return BaseWindowHandlerContribution;
19864
+ }();
19865
+ BaseWindowHandlerContribution = __decorate$2([injectable(), __metadata$1("design:paramtypes", [])], BaseWindowHandlerContribution);
18391
19866
 
18392
19867
  var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18393
- var d,
18394
- c = arguments.length,
18395
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18396
- 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);
18397
- return c > 3 && r && Object.defineProperty(target, key, r), r;
18398
- };
18399
- var DefaultAreaBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
18400
- _inherits(DefaultAreaBackgroundRenderContribution, _DefaultBaseBackgroun);
18401
- var _super = _createSuper(DefaultAreaBackgroundRenderContribution);
18402
- function DefaultAreaBackgroundRenderContribution() {
18403
- var _this;
18404
- _classCallCheck(this, DefaultAreaBackgroundRenderContribution);
18405
- _this = _super.apply(this, arguments), _this.time = BaseRenderContributionTime.beforeFillStroke;
18406
- return _this;
18407
- }
18408
- return _createClass(DefaultAreaBackgroundRenderContribution);
18409
- }(DefaultBaseBackgroundRenderContribution);
18410
- DefaultAreaBackgroundRenderContribution = __decorate$1([injectable()], DefaultAreaBackgroundRenderContribution);
18411
- var DefaultAreaTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
18412
- _inherits(DefaultAreaTextureRenderContribution, _DefaultBaseTextureRe);
18413
- var _super2 = _createSuper(DefaultAreaTextureRenderContribution);
18414
- function DefaultAreaTextureRenderContribution() {
18415
- var _this2;
18416
- _classCallCheck(this, DefaultAreaTextureRenderContribution);
18417
- _this2 = _super2.apply(this, arguments), _this2.time = BaseRenderContributionTime.afterFillStroke;
18418
- return _this2;
18419
- }
18420
- _createClass(DefaultAreaTextureRenderContribution, [{
18421
- key: "drawShape",
18422
- value: function drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
18423
- var _a, _b, _c, _d;
18424
- this.textureMap || this.initTextureMap(context, graphic.stage);
18425
- var _ref = options || {},
18426
- _ref$attribute = _ref.attribute,
18427
- attribute = _ref$attribute === void 0 ? graphic.attribute : _ref$attribute,
18428
- _attribute$texture = attribute.texture,
18429
- texture = _attribute$texture === void 0 ? null !== (_a = graphic.attribute.texture) && void 0 !== _a ? _a : getAttributeFromDefaultAttrList(graphicAttribute, "texture") : _attribute$texture,
18430
- _attribute$textureCol = attribute.textureColor,
18431
- textureColor = _attribute$textureCol === void 0 ? null !== (_b = graphic.attribute.textureColor) && void 0 !== _b ? _b : getAttributeFromDefaultAttrList(graphicAttribute, "textureColor") : _attribute$textureCol,
18432
- _attribute$textureSiz = attribute.textureSize,
18433
- textureSize = _attribute$textureSiz === void 0 ? null !== (_c = graphic.attribute.textureSize) && void 0 !== _c ? _c : getAttributeFromDefaultAttrList(graphicAttribute, "textureSize") : _attribute$textureSiz,
18434
- _attribute$texturePad = attribute.texturePadding,
18435
- texturePadding = _attribute$texturePad === void 0 ? null !== (_d = graphic.attribute.texturePadding) && void 0 !== _d ? _d : getAttributeFromDefaultAttrList(graphicAttribute, "texturePadding") : _attribute$texturePad;
18436
- if (!texture) return;
18437
- var pattern = this.textureMap.get(texture);
18438
- if (!pattern) switch (texture) {
18439
- case "circle":
18440
- pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
18441
- break;
18442
- case "diamond":
18443
- pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
18444
- break;
18445
- case "rect":
18446
- pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
18447
- break;
18448
- case "vertical-line":
18449
- pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
18450
- break;
18451
- case "horizontal-line":
18452
- pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
18453
- break;
18454
- case "bias-lr":
18455
- pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
18456
- break;
18457
- case "bias-rl":
18458
- pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
18459
- break;
18460
- case "grid":
18461
- pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
19868
+ var d,
19869
+ c = arguments.length,
19870
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19871
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19872
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19873
+ },
19874
+ __metadata = undefined && undefined.__metadata || function (k, v) {
19875
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19876
+ },
19877
+ __param = undefined && undefined.__param || function (paramIndex, decorator) {
19878
+ return function (target, key) {
19879
+ decorator(target, key, paramIndex);
19880
+ };
19881
+ };
19882
+ var DefaultPickService = /*#__PURE__*/function () {
19883
+ function DefaultPickService(global, pickItemInterceptorContributions) {
19884
+ _classCallCheck(this, DefaultPickService);
19885
+ this.global = global, this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.type = "default";
19886
+ }
19887
+ _createClass(DefaultPickService, [{
19888
+ key: "_init",
19889
+ value: function _init() {
19890
+ this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort(function (a, b) {
19891
+ return a.order - b.order;
19892
+ });
19893
+ }
19894
+ }, {
19895
+ key: "pick",
19896
+ value: function pick(graphics, point, params) {
19897
+ var result = {
19898
+ graphic: null,
19899
+ group: null
19900
+ };
19901
+ params.pickerService = this;
19902
+ var offsetX = 0,
19903
+ offsetY = 0;
19904
+ if (params && params.bounds) {
19905
+ if (!params.bounds.contains(point.x, point.y)) return result;
19906
+ offsetX = params.bounds.x1, offsetY = params.bounds.y1;
19907
+ }
19908
+ this.pickContext && (this.pickContext.inuse = !0), params.pickContext = this.pickContext, this.pickContext && this.pickContext.clearMatrix(!0, 1);
19909
+ var parentMatrix = new vutils.Matrix(1, 0, 0, 1, offsetX, offsetY);
19910
+ var group;
19911
+ for (var i = graphics.length - 1; i >= 0 && (result = graphics[i].isContainer ? this.pickGroup(graphics[i], point, parentMatrix, params) : this.pickItem(graphics[i], point, parentMatrix, params), !result.graphic); i--) group || (group = result.group);
19912
+ if (result.graphic || (result.group = group), this.pickContext && (this.pickContext.inuse = !1), result.graphic) {
19913
+ var g = result.graphic;
19914
+ for (; g.parent;) g = g.parent;
19915
+ g.shadowHost && (result.params = {
19916
+ shadowTarget: result.graphic
19917
+ }, result.graphic = g.shadowHost);
18462
19918
  }
18463
- pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
19919
+ return result;
19920
+ }
19921
+ }, {
19922
+ key: "containsPoint",
19923
+ value: function containsPoint(graphic, point, params) {
19924
+ return !!this.pickItem(graphic, point, null, params);
19925
+ }
19926
+ }, {
19927
+ key: "pickGroup",
19928
+ value: function pickGroup(group, point, parentMatrix, params) {
19929
+ var _this = this;
19930
+ var result = {
19931
+ group: null,
19932
+ graphic: null
19933
+ };
19934
+ if (!1 === group.attribute.visibleAll) return result;
19935
+ var context = params.pickContext,
19936
+ lastMatrix = context.modelMatrix;
19937
+ if (context.camera) {
19938
+ var m = group.transMatrix,
19939
+ matrix = mat4Allocate.allocate();
19940
+ if (mat3Tomat4(matrix, m), lastMatrix) {
19941
+ if (matrix) {
19942
+ var _m = mat4Allocate.allocate();
19943
+ context.modelMatrix = multiplyMat4Mat4(_m, lastMatrix, matrix), mat4Allocate.free(matrix);
19944
+ }
19945
+ } else mat3Tomat4(matrix, group.globalTransMatrix), context.modelMatrix = matrix;
19946
+ }
19947
+ if (this.InterceptorContributions.length) for (var i = 0; i < this.InterceptorContributions.length; i++) {
19948
+ var drawContribution = this.InterceptorContributions[i];
19949
+ if (drawContribution.beforePickItem) {
19950
+ var _result = drawContribution.beforePickItem(group, this, point, params, {
19951
+ parentMatrix: parentMatrix
19952
+ });
19953
+ if (_result) return context.modelMatrix !== lastMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastMatrix, _result;
19954
+ }
19955
+ }
19956
+ var transMatrix = group.transMatrix,
19957
+ currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
19958
+ newPoint = new vutils.Point(point.x, point.y);
19959
+ currentGroupMatrix.transformPoint(newPoint, newPoint);
19960
+ var insideGroup = group.AABBBounds.containsPoint(newPoint);
19961
+ if (!insideGroup && !group.stage.camera) return result;
19962
+ var pickedItem = this.pickItem(group, newPoint.clone(), parentMatrix, params);
19963
+ pickedItem && pickedItem.graphic && (result.graphic = pickedItem.graphic, result.params = pickedItem.params);
19964
+ var groupPicked = !1 !== group.attribute.pickable && insideGroup;
19965
+ 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) {
19966
+ if (graphic.isContainer) {
19967
+ var _newPoint = new vutils.Point(point.x, point.y),
19968
+ theme = getTheme(group).group,
19969
+ _group$attribute = group.attribute,
19970
+ _group$attribute$scro = _group$attribute.scrollX,
19971
+ scrollX = _group$attribute$scro === void 0 ? theme.scrollX : _group$attribute$scro,
19972
+ _group$attribute$scro2 = _group$attribute.scrollY,
19973
+ scrollY = _group$attribute$scro2 === void 0 ? theme.scrollY : _group$attribute$scro2;
19974
+ _newPoint.x -= scrollX, _newPoint.y -= scrollY, result = _this.pickGroup(graphic, _newPoint, currentGroupMatrix, params);
19975
+ } else {
19976
+ var _newPoint2 = new vutils.Point(point.x, point.y);
19977
+ currentGroupMatrix.transformPoint(_newPoint2, _newPoint2);
19978
+ var _theme = getTheme(group).group,
19979
+ _group$attribute2 = group.attribute,
19980
+ _group$attribute2$scr = _group$attribute2.scrollX,
19981
+ _scrollX = _group$attribute2$scr === void 0 ? _theme.scrollX : _group$attribute2$scr,
19982
+ _group$attribute2$scr2 = _group$attribute2.scrollY,
19983
+ _scrollY = _group$attribute2$scr2 === void 0 ? _theme.scrollY : _group$attribute2$scr2;
19984
+ _newPoint2.x -= _scrollX, _newPoint2.y -= _scrollY;
19985
+ var _pickedItem = _this.pickItem(graphic, _newPoint2, parentMatrix, params);
19986
+ _pickedItem && _pickedItem.graphic && (result.graphic = _pickedItem.graphic, result.params = _pickedItem.params);
19987
+ }
19988
+ return !!result.graphic || !!result.group;
19989
+ }, !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;
19990
+ }
19991
+ }, {
19992
+ key: "selectPicker",
19993
+ value: function selectPicker(graphic) {
19994
+ var picker = this.pickerMap.get(graphic.numberType);
19995
+ return picker || null;
18464
19996
  }
18465
19997
  }]);
18466
- return DefaultAreaTextureRenderContribution;
18467
- }(DefaultBaseTextureRenderContribution);
18468
- DefaultAreaTextureRenderContribution = __decorate$1([injectable()], DefaultAreaTextureRenderContribution);
18469
-
18470
- var renderModule = new ContainerModule(function (bind) {
18471
- 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);
18472
- });
18473
-
18474
- function load(container) {
18475
- container.load(renderModule);
18476
- }
18477
-
18478
- container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$1(container), load(container);
18479
- var vglobal = container.get(VGlobal);
18480
- application.global = vglobal;
18481
- var graphicUtil = container.get(GraphicUtil);
18482
- application.graphicUtil = graphicUtil;
18483
- var transformUtil = container.get(TransformUtil);
18484
- application.transformUtil = transformUtil;
18485
- var graphicService = container.get(GraphicService);
18486
- application.graphicService = graphicService;
18487
- container.get(GlobalPickerService);
18488
- var layerService = container.get(LayerService);
18489
- application.layerService = layerService;
19998
+ return DefaultPickService;
19999
+ }();
20000
+ DefaultPickService = __decorate$1([injectable(), __param(0, inject(VGlobal)), __param(1, inject(ContributionProvider)), __param(1, named(PickItemInterceptor)), __metadata("design:paramtypes", [Object, Object])], DefaultPickService);
18490
20001
 
18491
20002
  const GROUP_ATTRIBUTES = [
18492
20003
  'x',
@@ -19735,6 +21246,12 @@
19735
21246
  this.activeEvent = 'onRegister';
19736
21247
  this._uid = Generator.GenAutoIncrementId();
19737
21248
  this.key = this.name + this._uid;
21249
+ this.pointerlave = (e) => {
21250
+ const { stage } = this.pluginService;
21251
+ if (e.target === stage) {
21252
+ this.unpoptip(e);
21253
+ }
21254
+ };
19738
21255
  this.poptip = (e) => {
19739
21256
  const graphic = e.target;
19740
21257
  if (graphic.type !== 'text' || !graphic.cliped || graphic.isContainer || !graphic.attribute) {
@@ -19768,6 +21285,7 @@
19768
21285
  this.pluginService = context;
19769
21286
  const { stage } = this.pluginService;
19770
21287
  stage.addEventListener('pointerover', this.poptip);
21288
+ stage.addEventListener('pointerleave', this.pointerlave);
19771
21289
  }
19772
21290
  setActiveGraphic(graphic, rerender) {
19773
21291
  this.activeGraphic = graphic;
@@ -19776,6 +21294,7 @@
19776
21294
  deactivate(context) {
19777
21295
  const { stage } = this.pluginService;
19778
21296
  stage.removeEventListener('pointerover', this.poptip);
21297
+ stage.removeEventListener('pointerleave', this.pointerlave);
19779
21298
  }
19780
21299
  };
19781
21300
  PopTipForClipedTextPlugin = __decorate([
@@ -24209,6 +25728,7 @@
24209
25728
  };
24210
25729
  this._statePointToData = state => state;
24211
25730
  this._onHandlerPointerDown = (e, tag) => {
25731
+ e.stopPropagation();
24212
25732
  if (tag === 'start') {
24213
25733
  this._activeTag = DataZoomActiveTag.startHandler;
24214
25734
  this._activeItem = this._startHandler;
@@ -24234,6 +25754,7 @@
24234
25754
  this._activeCache.lastPos = this.eventPosToStagePos(e);
24235
25755
  };
24236
25756
  this._onHandlerPointerMove = (e) => {
25757
+ e.stopPropagation();
24237
25758
  const { start, end, brushSelect } = this.attribute;
24238
25759
  const pos = this.eventPosToStagePos(e);
24239
25760
  const { attPos, max } = this._layoutCache;
@@ -24365,6 +25886,7 @@
24365
25886
  };
24366
25887
  }
24367
25888
  _onHandlerPointerUp(e) {
25889
+ e.preventDefault();
24368
25890
  const { start, end, brushSelect } = this.attribute;
24369
25891
  if (this._activeState) {
24370
25892
  if (this._activeTag === DataZoomActiveTag.background) {
@@ -24384,10 +25906,12 @@
24384
25906
  }
24385
25907
  }
24386
25908
  _onHandlerPointerEnter(e) {
25909
+ e.stopPropagation();
24387
25910
  this._showText = true;
24388
25911
  this.renderText();
24389
25912
  }
24390
25913
  _onHandlerPointerLeave(e) {
25914
+ e.stopPropagation();
24391
25915
  this._showText = false;
24392
25916
  this.renderText();
24393
25917
  }
@@ -27537,7 +29061,7 @@
27537
29061
  }
27538
29062
  if (vutils.isValid(verticalAlign) || vutils.isValid(textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign)) {
27539
29063
  const mainTitleVerticalAlign = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.verticalAlign : verticalAlign;
27540
- const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleWidth;
29064
+ const mainTitleHeight = (textStyle === null || textStyle === void 0 ? void 0 : textStyle.height) ? textStyle === null || textStyle === void 0 ? void 0 : textStyle.height : titleHeight;
27541
29065
  if (mainTitleVerticalAlign === 'top') {
27542
29066
  (_18 = this._mainTitle) === null || _18 === void 0 ? void 0 : _18.setAttribute('y', 0);
27543
29067
  (_19 = this._mainTitle) === null || _19 === void 0 ? void 0 : _19.setAttribute('textBaseline', 'top');
@@ -28650,6 +30174,7 @@
28650
30174
  if (this._outOfInteractiveRange(e)) {
28651
30175
  return;
28652
30176
  }
30177
+ e.stopPropagation();
28653
30178
  const brushMoved = (_b = (_a = this.attribute) === null || _a === void 0 ? void 0 : _a.brushMoved) !== null && _b !== void 0 ? _b : true;
28654
30179
  this._activeMoveState = brushMoved && this._isPosInBrushMask(e);
28655
30180
  this._activeDrawState = !this._activeMoveState;
@@ -28660,11 +30185,13 @@
28660
30185
  if (this._outOfInteractiveRange(e)) {
28661
30186
  return;
28662
30187
  }
30188
+ e.stopPropagation();
28663
30189
  this._activeDrawState && this._drawing(e);
28664
30190
  this._activeMoveState && this._moving(e);
28665
30191
  };
28666
30192
  this._onBrushEnd = (e) => {
28667
30193
  var _a;
30194
+ e.preventDefault();
28668
30195
  const { removeOnClick = true } = this.attribute;
28669
30196
  if (this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick) {
28670
30197
  this._container.incrementalClearChild();
@@ -29447,7 +30974,7 @@
29447
30974
  }
29448
30975
  };
29449
30976
 
29450
- const version = "0.16.2";
30977
+ const version = "0.16.3-alpha.0";
29451
30978
 
29452
30979
  exports.AbstractComponent = AbstractComponent;
29453
30980
  exports.ArcInfo = ArcInfo;