@visactor/vchart 1.1.0-beta.9 → 1.1.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/build/index.js +1285 -483
  2. package/build/index.min.js +1 -1
  3. package/cjs/chart/base-chart.d.ts +1 -1
  4. package/cjs/chart/map/map.js +2 -1
  5. package/cjs/chart/map/map.js.map +1 -1
  6. package/cjs/compile/compiler.js +2 -1
  7. package/cjs/compile/compiler.js.map +1 -1
  8. package/cjs/compile/interface/compiler.d.ts +1 -0
  9. package/cjs/compile/interface/compiler.js.map +1 -1
  10. package/cjs/component/axis/base-axis.d.ts +7 -7
  11. package/cjs/component/axis/base-axis.js +10 -6
  12. package/cjs/component/axis/base-axis.js.map +1 -1
  13. package/cjs/component/axis/cartesian/axis.js +3 -3
  14. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  15. package/cjs/component/axis/interface.d.ts +3 -3
  16. package/cjs/component/axis/interface.js.map +1 -1
  17. package/cjs/component/axis/utils.js +3 -2
  18. package/cjs/component/axis/utils.js.map +1 -1
  19. package/cjs/component/data-zoom/data-filter-base-component.js +2 -2
  20. package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
  21. package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +2 -0
  22. package/cjs/component/data-zoom/data-zoom/data-zoom.js +17 -13
  23. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  24. package/cjs/component/data-zoom/util.js +1 -1
  25. package/cjs/component/data-zoom/util.js.map +1 -1
  26. package/cjs/component/indicator/indicator.d.ts +1 -0
  27. package/cjs/component/indicator/indicator.js +7 -3
  28. package/cjs/component/indicator/indicator.js.map +1 -1
  29. package/cjs/component/interface/theme.d.ts +2 -0
  30. package/cjs/component/interface/theme.js.map +1 -1
  31. package/cjs/component/interface/type.d.ts +1 -0
  32. package/cjs/component/interface/type.js +2 -1
  33. package/cjs/component/interface/type.js.map +1 -1
  34. package/cjs/component/legend/discrete/interface.d.ts +5 -4
  35. package/cjs/component/legend/discrete/interface.js.map +1 -1
  36. package/cjs/component/legend/discrete/util.js +3 -3
  37. package/cjs/component/legend/discrete/util.js.map +1 -1
  38. package/cjs/component/legend/util.d.ts +1 -1
  39. package/cjs/core/index.d.ts +1 -1
  40. package/cjs/core/index.js +6 -5
  41. package/cjs/core/index.js.map +1 -1
  42. package/cjs/core/vchart.d.ts +2 -1
  43. package/cjs/core/vchart.js +10 -5
  44. package/cjs/core/vchart.js.map +1 -1
  45. package/cjs/data/transforms/map.js +2 -2
  46. package/cjs/data/transforms/map.js.map +1 -1
  47. package/cjs/layout/base-layout.d.ts +1 -0
  48. package/cjs/layout/base-layout.js +62 -0
  49. package/cjs/layout/base-layout.js.map +1 -1
  50. package/cjs/mark/base/base-mark.d.ts +1 -0
  51. package/cjs/mark/base/base-mark.js +8 -2
  52. package/cjs/mark/base/base-mark.js.map +1 -1
  53. package/cjs/mark/image.d.ts +10 -0
  54. package/cjs/mark/image.js +23 -0
  55. package/cjs/mark/image.js.map +1 -0
  56. package/cjs/mark/interface/common.d.ts +2 -0
  57. package/cjs/mark/interface/common.js.map +1 -1
  58. package/cjs/mark/interface/type.d.ts +1 -0
  59. package/cjs/mark/interface/type.js +5 -4
  60. package/cjs/mark/interface/type.js.map +1 -1
  61. package/cjs/model/interface.d.ts +1 -1
  62. package/cjs/model/interface.js.map +1 -1
  63. package/cjs/series/cartesian/cartesian.js +4 -4
  64. package/cjs/series/cartesian/cartesian.js.map +1 -1
  65. package/cjs/series/index.d.ts +2 -2
  66. package/cjs/series/index.js +4 -4
  67. package/cjs/series/index.js.map +1 -1
  68. package/cjs/series/map/interface.d.ts +2 -2
  69. package/cjs/series/map/interface.js.map +1 -1
  70. package/cjs/series/map/map.d.ts +2 -2
  71. package/cjs/series/map/map.js +12 -17
  72. package/cjs/series/map/map.js.map +1 -1
  73. package/cjs/series/range-column/{rangeColumn-3d.d.ts → range-column-3d.d.ts} +1 -1
  74. package/cjs/series/range-column/{rangeColumn-3d.js → range-column-3d.js} +3 -3
  75. package/cjs/series/range-column/range-column-3d.js.map +1 -0
  76. package/cjs/series/range-column/{rangeColumn.js → range-column.js} +1 -1
  77. package/cjs/series/range-column/range-column.js.map +1 -0
  78. package/cjs/series/sunburst/sunburst.d.ts +1 -1
  79. package/cjs/series/waterfall/waterfall.js +7 -6
  80. package/cjs/series/waterfall/waterfall.js.map +1 -1
  81. package/cjs/theme/buildin-theme/light/component/data-zoom.js +3 -3
  82. package/cjs/theme/buildin-theme/light/component/data-zoom.js.map +1 -1
  83. package/cjs/theme/buildin-theme/light/component/index.js +3 -2
  84. package/cjs/theme/buildin-theme/light/component/index.js.map +1 -1
  85. package/cjs/theme/buildin-theme/light/component/poptip.d.ts +2 -0
  86. package/cjs/theme/buildin-theme/light/component/poptip.js +32 -0
  87. package/cjs/theme/buildin-theme/light/component/poptip.js.map +1 -0
  88. package/cjs/typings/spec/common.d.ts +4 -1
  89. package/cjs/typings/spec/common.js.map +1 -1
  90. package/cjs/typings/visual.d.ts +12 -0
  91. package/cjs/typings/visual.js.map +1 -1
  92. package/cjs/util/style.d.ts +2 -1
  93. package/cjs/util/style.js +28 -9
  94. package/cjs/util/style.js.map +1 -1
  95. package/cjs/vchart-all.js +2 -2
  96. package/cjs/vchart-all.js.map +1 -1
  97. package/esm/chart/base-chart.d.ts +1 -1
  98. package/esm/chart/map/map.js +2 -1
  99. package/esm/chart/map/map.js.map +1 -1
  100. package/esm/compile/compiler.js +3 -2
  101. package/esm/compile/compiler.js.map +1 -1
  102. package/esm/compile/interface/compiler.d.ts +1 -0
  103. package/esm/compile/interface/compiler.js.map +1 -1
  104. package/esm/component/axis/base-axis.d.ts +7 -7
  105. package/esm/component/axis/base-axis.js +11 -7
  106. package/esm/component/axis/base-axis.js.map +1 -1
  107. package/esm/component/axis/cartesian/axis.js +1 -1
  108. package/esm/component/axis/cartesian/axis.js.map +1 -1
  109. package/esm/component/axis/interface.d.ts +3 -3
  110. package/esm/component/axis/interface.js.map +1 -1
  111. package/esm/component/axis/utils.js +2 -2
  112. package/esm/component/axis/utils.js.map +1 -1
  113. package/esm/component/data-zoom/data-filter-base-component.js +2 -2
  114. package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
  115. package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +2 -0
  116. package/esm/component/data-zoom/data-zoom/data-zoom.js +17 -13
  117. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  118. package/esm/component/data-zoom/util.js +1 -1
  119. package/esm/component/data-zoom/util.js.map +1 -1
  120. package/esm/component/indicator/indicator.d.ts +1 -0
  121. package/esm/component/indicator/indicator.js +7 -3
  122. package/esm/component/indicator/indicator.js.map +1 -1
  123. package/esm/component/interface/theme.d.ts +2 -0
  124. package/esm/component/interface/theme.js.map +1 -1
  125. package/esm/component/interface/type.d.ts +1 -0
  126. package/esm/component/interface/type.js +2 -1
  127. package/esm/component/interface/type.js.map +1 -1
  128. package/esm/component/legend/discrete/interface.d.ts +5 -4
  129. package/esm/component/legend/discrete/interface.js.map +1 -1
  130. package/esm/component/legend/discrete/util.js +3 -2
  131. package/esm/component/legend/discrete/util.js.map +1 -1
  132. package/esm/component/legend/util.d.ts +1 -1
  133. package/esm/core/index.d.ts +1 -1
  134. package/esm/core/index.js +4 -2
  135. package/esm/core/index.js.map +1 -1
  136. package/esm/core/vchart.d.ts +2 -1
  137. package/esm/core/vchart.js +12 -5
  138. package/esm/core/vchart.js.map +1 -1
  139. package/esm/data/transforms/map.js +4 -2
  140. package/esm/data/transforms/map.js.map +1 -1
  141. package/esm/layout/base-layout.d.ts +1 -0
  142. package/esm/layout/base-layout.js +62 -0
  143. package/esm/layout/base-layout.js.map +1 -1
  144. package/esm/mark/base/base-mark.d.ts +1 -0
  145. package/esm/mark/base/base-mark.js +8 -2
  146. package/esm/mark/base/base-mark.js.map +1 -1
  147. package/esm/mark/image.d.ts +10 -0
  148. package/esm/mark/image.js +19 -0
  149. package/esm/mark/image.js.map +1 -0
  150. package/esm/mark/interface/common.d.ts +2 -0
  151. package/esm/mark/interface/common.js.map +1 -1
  152. package/esm/mark/interface/type.d.ts +1 -0
  153. package/esm/mark/interface/type.js +5 -4
  154. package/esm/mark/interface/type.js.map +1 -1
  155. package/esm/model/interface.d.ts +1 -1
  156. package/esm/model/interface.js.map +1 -1
  157. package/esm/series/cartesian/cartesian.js +4 -4
  158. package/esm/series/cartesian/cartesian.js.map +1 -1
  159. package/esm/series/index.d.ts +2 -2
  160. package/esm/series/index.js +2 -2
  161. package/esm/series/index.js.map +1 -1
  162. package/esm/series/map/interface.d.ts +2 -2
  163. package/esm/series/map/interface.js.map +1 -1
  164. package/esm/series/map/map.d.ts +2 -2
  165. package/esm/series/map/map.js +13 -18
  166. package/esm/series/map/map.js.map +1 -1
  167. package/esm/series/range-column/{rangeColumn-3d.d.ts → range-column-3d.d.ts} +1 -1
  168. package/esm/series/range-column/{rangeColumn-3d.js → range-column-3d.js} +2 -2
  169. package/esm/series/range-column/range-column-3d.js.map +1 -0
  170. package/esm/series/range-column/{rangeColumn.js → range-column.js} +1 -1
  171. package/esm/series/range-column/range-column.js.map +1 -0
  172. package/esm/series/sunburst/sunburst.d.ts +1 -1
  173. package/esm/series/waterfall/waterfall.js +6 -6
  174. package/esm/series/waterfall/waterfall.js.map +1 -1
  175. package/esm/theme/buildin-theme/light/component/data-zoom.js +3 -3
  176. package/esm/theme/buildin-theme/light/component/data-zoom.js.map +1 -1
  177. package/esm/theme/buildin-theme/light/component/index.js +4 -1
  178. package/esm/theme/buildin-theme/light/component/index.js.map +1 -1
  179. package/esm/theme/buildin-theme/light/component/poptip.d.ts +2 -0
  180. package/esm/theme/buildin-theme/light/component/poptip.js +28 -0
  181. package/esm/theme/buildin-theme/light/component/poptip.js.map +1 -0
  182. package/esm/typings/spec/common.d.ts +4 -1
  183. package/esm/typings/spec/common.js.map +1 -1
  184. package/esm/typings/visual.d.ts +12 -0
  185. package/esm/typings/visual.js.map +1 -1
  186. package/esm/util/style.d.ts +2 -1
  187. package/esm/util/style.js +23 -7
  188. package/esm/util/style.js.map +1 -1
  189. package/esm/vchart-all.js +3 -1
  190. package/esm/vchart-all.js.map +1 -1
  191. package/package.json +12 -12
  192. package/cjs/series/range-column/rangeColumn-3d.js.map +0 -1
  193. package/cjs/series/range-column/rangeColumn.js.map +0 -1
  194. package/esm/series/range-column/rangeColumn-3d.js.map +0 -1
  195. package/esm/series/range-column/rangeColumn.js.map +0 -1
  196. /package/cjs/series/range-column/{rangeColumn.d.ts → range-column.d.ts} +0 -0
  197. /package/esm/series/range-column/{rangeColumn.d.ts → range-column.d.ts} +0 -0
package/build/index.js CHANGED
@@ -1662,6 +1662,9 @@
1662
1662
  !function (InnerBBox) {
1663
1663
  InnerBBox[InnerBBox.NONE = 0] = "NONE", InnerBBox[InnerBBox.BBOX1 = 1] = "BBOX1", InnerBBox[InnerBBox.BBOX2 = 2] = "BBOX2";
1664
1664
  }(InnerBBox || (InnerBBox = {}));
1665
+ function rectInsideAnotherRect(bbox1, bbox2, format) {
1666
+ return bbox1 && bbox2 ? (x11 = bbox1.x1, x12 = bbox1.x2, y11 = bbox1.y1, y12 = bbox1.y2, x21 = bbox2.x1, x22 = bbox2.x2, y21 = bbox2.y1, y22 = bbox2.y2, format && (x11 > x12 && ([x11, x12] = [x12, x11]), y11 > y12 && ([y11, y12] = [y12, y11]), x21 > x22 && ([x21, x22] = [x22, x21]), y21 > y22 && ([y21, y22] = [y22, y21])), x11 > x21 && x12 < x22 && y11 > y21 && y12 < y22 ? InnerBBox.BBOX1 : x21 > x11 && x22 < x12 && y21 > y11 && y22 < y12 ? InnerBBox.BBOX2 : InnerBBox.NONE) : InnerBBox.NONE;
1667
+ }
1665
1668
  function isRectIntersect(bbox1, bbox2, format) {
1666
1669
  return !bbox1 || !bbox2 || (format ? (x11 = bbox1.x1, x12 = bbox1.x2, y11 = bbox1.y1, y12 = bbox1.y2, x21 = bbox2.x1, x22 = bbox2.x2, y21 = bbox2.y1, y22 = bbox2.y2, x11 > x12 && ([x11, x12] = [x12, x11]), y11 > y12 && ([y11, y12] = [y12, y11]), x21 > x22 && ([x21, x22] = [x22, x21]), y21 > y22 && ([y21, y22] = [y22, y21]), !(x11 > x22 || x12 < x21 || y11 > y22 || y12 < y21)) : !(bbox1.x1 > bbox2.x2 || bbox1.x2 < bbox2.x1 || bbox1.y1 > bbox2.y2 || bbox1.y2 < bbox2.y1));
1667
1670
  }
@@ -2608,6 +2611,7 @@
2608
2611
  ComponentTypeEnum["scrollBar"] = "scrollBar";
2609
2612
  ComponentTypeEnum["label"] = "label";
2610
2613
  ComponentTypeEnum["brush"] = "brush";
2614
+ ComponentTypeEnum["poptip"] = "poptip";
2611
2615
  ComponentTypeEnum["customMark"] = "customMark";
2612
2616
  })(ComponentTypeEnum || (ComponentTypeEnum = {}));
2613
2617
 
@@ -8613,9 +8617,9 @@
8613
8617
  return new OrdinalScale().domain(this._domain).range(this._ordinalRange).unknown(this._unknown);
8614
8618
  }
8615
8619
  scale(d) {
8616
- const special = this._getSpecifiedValue(d);
8617
- if (!isNil(special)) return special;
8618
- const key = `${d}`;
8620
+ const key = `${d}`,
8621
+ special = this._getSpecifiedValue(key);
8622
+ if (void 0 !== special) return special;
8619
8623
  let i = this._index.get(key);
8620
8624
  if (!i) {
8621
8625
  if (this._unknown !== implicit) return this._unknown;
@@ -9074,12 +9078,33 @@
9074
9078
  } else z = ticks$1(i, j, Math.min(j - i, count)).map(this._pows);
9075
9079
  return r ? z.reverse() : z;
9076
9080
  }
9081
+ forceTicks() {
9082
+ let count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
9083
+ const d = this.calculateVisibleDomain(this._range);
9084
+ return forceTicks(d[0], d[d.length - 1], count);
9085
+ }
9086
+ stepTicks(step) {
9087
+ const d = this.calculateVisibleDomain(this._range);
9088
+ return stepTicks(d[0], d[d.length - 1], step);
9089
+ }
9077
9090
  nice() {
9078
9091
  return this.domain(nice(this.domain(), {
9079
9092
  floor: x => this._pows(Math.floor(this._logs(x))),
9080
9093
  ceil: x => this._pows(Math.ceil(this._logs(x)))
9081
9094
  }));
9082
9095
  }
9096
+ niceMin() {
9097
+ const maxD = this._domain[this._domain.length - 1];
9098
+ this.nice();
9099
+ const niceDomain = cloneDeep(this._domain);
9100
+ return this._domain && (niceDomain[niceDomain.length - 1] = maxD, this.domain(niceDomain)), this;
9101
+ }
9102
+ niceMax() {
9103
+ const minD = this._domain[0];
9104
+ this.nice();
9105
+ const niceDomain = cloneDeep(this._domain);
9106
+ return this._domain && (niceDomain[0] = minD, this.domain(niceDomain)), this;
9107
+ }
9083
9108
  }
9084
9109
 
9085
9110
  class PointScale extends BandScale {
@@ -15558,7 +15583,7 @@
15558
15583
  const EnvContribution = Symbol.for("EnvContribution");
15559
15584
  const Global = Symbol.for("Global");
15560
15585
 
15561
- var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15586
+ var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15562
15587
  var d,
15563
15588
  c = arguments.length,
15564
15589
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15683,7 +15708,7 @@
15683
15708
  return this._env || this.setEnv("browser"), this.envContribution.loadBlob(url);
15684
15709
  }
15685
15710
  };
15686
- DefaultGlobal = __decorate$1I([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(EnvContribution)), __metadata$15("design:paramtypes", [Object])], DefaultGlobal);
15711
+ DefaultGlobal = __decorate$1K([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(EnvContribution)), __metadata$15("design:paramtypes", [Object])], DefaultGlobal);
15687
15712
 
15688
15713
  const circleThreshold = tau$1 - 1e-8;
15689
15714
  class BoundsContext {
@@ -16952,7 +16977,7 @@
16952
16977
  opacity: 1
16953
16978
  });
16954
16979
 
16955
- var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16980
+ var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16956
16981
  var d,
16957
16982
  c = arguments.length,
16958
16983
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17064,9 +17089,9 @@
17064
17089
  return data.str += suffix, data.width += suffixWidth, data;
17065
17090
  }
17066
17091
  };
17067
- ATextMeasure = __decorate$1H([injectable()], ATextMeasure);
17092
+ ATextMeasure = __decorate$1J([injectable()], ATextMeasure);
17068
17093
 
17069
- var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17094
+ var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17070
17095
  var d,
17071
17096
  c = arguments.length,
17072
17097
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17075,7 +17100,7 @@
17075
17100
  };
17076
17101
  const TextMeasureContribution = Symbol.for("TextMeasureContribution");
17077
17102
  let DefaultTextMeasureContribution = class extends ATextMeasure {};
17078
- DefaultTextMeasureContribution = __decorate$1G([injectable()], DefaultTextMeasureContribution);
17103
+ DefaultTextMeasureContribution = __decorate$1I([injectable()], DefaultTextMeasureContribution);
17079
17104
 
17080
17105
  const container = new Container();
17081
17106
 
@@ -17447,7 +17472,7 @@
17447
17472
  return containPath(commands, lineWidth, !0, x, y);
17448
17473
  }
17449
17474
 
17450
- var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17475
+ var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17451
17476
  var d,
17452
17477
  c = arguments.length,
17453
17478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17510,7 +17535,7 @@
17510
17535
  }, null != option ? option : {}), textSpec);
17511
17536
  }
17512
17537
  };
17513
- DefaultGraphicUtil = __decorate$1F([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __param$R(1, inject(Global)), __metadata$14("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
17538
+ DefaultGraphicUtil = __decorate$1H([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __param$R(1, inject(Global)), __metadata$14("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
17514
17539
  var TransformMode;
17515
17540
  !function (TransformMode) {
17516
17541
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -17554,7 +17579,7 @@
17554
17579
  return this;
17555
17580
  }
17556
17581
  };
17557
- DefaultTransformUtil = __decorate$1F([injectable(), __metadata$14("design:paramtypes", [])], DefaultTransformUtil);
17582
+ DefaultTransformUtil = __decorate$1H([injectable(), __metadata$14("design:paramtypes", [])], DefaultTransformUtil);
17558
17583
 
17559
17584
  const defaultThemeObj = {
17560
17585
  arc: DefaultArcAttribute,
@@ -22109,7 +22134,7 @@
22109
22134
  }
22110
22135
  }
22111
22136
 
22112
- var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22137
+ var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22113
22138
  var d,
22114
22139
  c = arguments.length,
22115
22140
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22157,9 +22182,9 @@
22157
22182
  return "browser" === this.global.env ? 10 : 0;
22158
22183
  }
22159
22184
  };
22160
- DefaultLayerService = __decorate$1E([injectable(), __param$Q(0, inject(Global)), __metadata$13("design:paramtypes", [Object])], DefaultLayerService);
22185
+ DefaultLayerService = __decorate$1G([injectable(), __param$Q(0, inject(Global)), __metadata$13("design:paramtypes", [Object])], DefaultLayerService);
22161
22186
 
22162
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22187
+ var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22163
22188
  var d,
22164
22189
  c = arguments.length,
22165
22190
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22263,7 +22288,7 @@
22263
22288
  this._handler.clearViewBox(viewBox, color);
22264
22289
  }
22265
22290
  };
22266
- __decorate$1D([postConstruct(), __metadata$12("design:type", Function), __metadata$12("design:paramtypes", []), __metadata$12("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$1D([injectable(), __param$P(0, inject(Global)), __metadata$12("design:paramtypes", [Object])], DefaultWindow);
22291
+ __decorate$1F([postConstruct(), __metadata$12("design:type", Function), __metadata$12("design:paramtypes", []), __metadata$12("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$1F([injectable(), __param$P(0, inject(Global)), __metadata$12("design:paramtypes", [Object])], DefaultWindow);
22267
22292
 
22268
22293
  const TransformUtil = Symbol.for("TransformUtil");
22269
22294
  const GraphicUtil = Symbol.for("GraphicUtil");
@@ -22558,7 +22583,7 @@
22558
22583
  const TextRenderContribution = Symbol.for("TextRenderContribution");
22559
22584
  const InteractiveSubRenderContribution = Symbol.for("InteractiveSubRenderContribution");
22560
22585
 
22561
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22586
+ var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22562
22587
  var d,
22563
22588
  c = arguments.length,
22564
22589
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22770,9 +22795,9 @@
22770
22795
  drawPathProxy(arc, context, x, y, drawContext, params) || this.drawShape(arc, context, x, y, drawContext, params), context.highPerformanceRestore();
22771
22796
  }
22772
22797
  };
22773
- DefaultCanvasArcRender = __decorate$1C([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$11("design:paramtypes", [Object])], DefaultCanvasArcRender);
22798
+ DefaultCanvasArcRender = __decorate$1E([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$11("design:paramtypes", [Object])], DefaultCanvasArcRender);
22774
22799
 
22775
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22800
+ var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22776
22801
  var d,
22777
22802
  c = arguments.length,
22778
22803
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22836,7 +22861,7 @@
22836
22861
  drawPathProxy(circle, context, x, y, drawContext, params) || this.drawShape(circle, context, x, y, drawContext, params), context.highPerformanceRestore();
22837
22862
  }
22838
22863
  };
22839
- DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$10("design:paramtypes", [Object])], DefaultCanvasCircleRender);
22864
+ DefaultCanvasCircleRender = __decorate$1D([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$10("design:paramtypes", [Object])], DefaultCanvasCircleRender);
22840
22865
 
22841
22866
  const CIRCLE_UPDATE_TAG_KEY = ["radius", "startAngle", "endAngle", ...GRAPHIC_UPDATE_TAG_KEY];
22842
22867
  class Circle extends Graphic {
@@ -25161,7 +25186,7 @@
25161
25186
  }
25162
25187
  }
25163
25188
 
25164
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25189
+ var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25165
25190
  var d,
25166
25191
  c = arguments.length,
25167
25192
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25185,9 +25210,9 @@
25185
25210
  return aabbBounds;
25186
25211
  }
25187
25212
  };
25188
- DefaultOuterBorderBoundsContribution = __decorate$1A([injectable()], DefaultOuterBorderBoundsContribution);
25213
+ DefaultOuterBorderBoundsContribution = __decorate$1C([injectable()], DefaultOuterBorderBoundsContribution);
25189
25214
 
25190
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25215
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25191
25216
  var d,
25192
25217
  c = arguments.length,
25193
25218
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25196,9 +25221,9 @@
25196
25221
  };
25197
25222
  const RectBoundsContribution = Symbol.for("RectBoundsContribution");
25198
25223
  let DefaultRectOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
25199
- DefaultRectOuterBorderBoundsContribution = __decorate$1z([injectable()], DefaultRectOuterBorderBoundsContribution);
25224
+ DefaultRectOuterBorderBoundsContribution = __decorate$1B([injectable()], DefaultRectOuterBorderBoundsContribution);
25200
25225
 
25201
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25226
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25202
25227
  var d,
25203
25228
  c = arguments.length,
25204
25229
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25224,9 +25249,9 @@
25224
25249
  return aabbBounds;
25225
25250
  }
25226
25251
  };
25227
- DefaultSymbolOuterBorderBoundsContribution = __decorate$1y([injectable()], DefaultSymbolOuterBorderBoundsContribution);
25252
+ DefaultSymbolOuterBorderBoundsContribution = __decorate$1A([injectable()], DefaultSymbolOuterBorderBoundsContribution);
25228
25253
 
25229
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25254
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25230
25255
  var d,
25231
25256
  c = arguments.length,
25232
25257
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25235,9 +25260,9 @@
25235
25260
  };
25236
25261
  const CircleBoundsContribution = Symbol.for("CircleBoundsContribution");
25237
25262
  let DefaultCircleOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
25238
- DefaultCircleOuterBorderBoundsContribution = __decorate$1x([injectable()], DefaultCircleOuterBorderBoundsContribution);
25263
+ DefaultCircleOuterBorderBoundsContribution = __decorate$1z([injectable()], DefaultCircleOuterBorderBoundsContribution);
25239
25264
 
25240
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25265
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25241
25266
  var d,
25242
25267
  c = arguments.length,
25243
25268
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25246,9 +25271,9 @@
25246
25271
  };
25247
25272
  const ArcBoundsContribution = Symbol.for("ArcBoundsContribution");
25248
25273
  let DefaultArcOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
25249
- DefaultArcOuterBorderBoundsContribution = __decorate$1w([injectable()], DefaultArcOuterBorderBoundsContribution);
25274
+ DefaultArcOuterBorderBoundsContribution = __decorate$1y([injectable()], DefaultArcOuterBorderBoundsContribution);
25250
25275
 
25251
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25276
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25252
25277
  var d,
25253
25278
  c = arguments.length,
25254
25279
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25257,7 +25282,7 @@
25257
25282
  };
25258
25283
  const PathBoundsContribution = Symbol.for("PathBoundsContribution");
25259
25284
  let DefaultPathOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
25260
- DefaultPathOuterBorderBoundsContribution = __decorate$1v([injectable()], DefaultPathOuterBorderBoundsContribution);
25285
+ DefaultPathOuterBorderBoundsContribution = __decorate$1x([injectable()], DefaultPathOuterBorderBoundsContribution);
25261
25286
 
25262
25287
  function createMat4() {
25263
25288
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
@@ -25317,7 +25342,7 @@
25317
25342
  const matrixAllocate = new DefaultMatrixAllocate();
25318
25343
  const mat4Allocate = new DefaultMat4Allocate();
25319
25344
 
25320
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25345
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25321
25346
  var d,
25322
25347
  c = arguments.length,
25323
25348
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25599,7 +25624,18 @@
25599
25624
  Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
25600
25625
  const tb1 = this.tempAABBBounds1,
25601
25626
  tb2 = this.tempAABBBounds2;
25602
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
25627
+ tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
25628
+ const {
25629
+ scaleX = textTheme.scaleX,
25630
+ scaleY = textTheme.scaleY,
25631
+ shadowBlur = textTheme.shadowBlur,
25632
+ strokeBoundsBuffer = textTheme.strokeBoundsBuffer
25633
+ } = attribute;
25634
+ if (shadowBlur) {
25635
+ const shadowBlurHalfWidth = shadowBlur / Math.abs(scaleX + scaleY);
25636
+ boundStroke(tb1, shadowBlurHalfWidth, !0, strokeBoundsBuffer), aabbBounds.union(tb1);
25637
+ }
25638
+ return this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
25603
25639
  }
25604
25640
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
25605
25641
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
@@ -25849,7 +25885,7 @@
25849
25885
  this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
25850
25886
  }
25851
25887
  };
25852
- DefaultGraphicService = __decorate$1u([injectable(), __param$M(0, inject(GraphicCreator)), __param$M(1, inject(ContributionProvider)), __param$M(1, named(RectBoundsContribution)), __param$M(2, inject(ContributionProvider)), __param$M(2, named(SymbolBoundsContribution)), __param$M(3, inject(ContributionProvider)), __param$M(3, named(CircleBoundsContribution)), __param$M(4, inject(ContributionProvider)), __param$M(4, named(ArcBoundsContribution)), __param$M(5, inject(ContributionProvider)), __param$M(5, named(PathBoundsContribution)), __metadata$$("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
25888
+ DefaultGraphicService = __decorate$1w([injectable(), __param$M(0, inject(GraphicCreator)), __param$M(1, inject(ContributionProvider)), __param$M(1, named(RectBoundsContribution)), __param$M(2, inject(ContributionProvider)), __param$M(2, named(SymbolBoundsContribution)), __param$M(3, inject(ContributionProvider)), __param$M(3, named(CircleBoundsContribution)), __param$M(4, inject(ContributionProvider)), __param$M(4, named(ArcBoundsContribution)), __param$M(5, inject(ContributionProvider)), __param$M(5, named(PathBoundsContribution)), __metadata$$("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
25853
25889
 
25854
25890
  class ShadowRoot extends Group$1 {
25855
25891
  constructor(graphic) {
@@ -26069,7 +26105,7 @@
26069
26105
  }
26070
26106
  createRichText({});
26071
26107
 
26072
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26108
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26073
26109
  var d,
26074
26110
  c = arguments.length,
26075
26111
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26153,7 +26189,7 @@
26153
26189
  context.translate(p.x, p.y, !1), context.scale(scaleX, scaleY, !1), context.rotate(angle, !1), context.translate(-p.x, -p.y, !1), context.setTransformForCurrent();
26154
26190
  }
26155
26191
  };
26156
- BaseRender = __decorate$1t([injectable()], BaseRender);
26192
+ BaseRender = __decorate$1v([injectable()], BaseRender);
26157
26193
 
26158
26194
  function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
26159
26195
  const {
@@ -26230,7 +26266,7 @@
26230
26266
  }
26231
26267
  }
26232
26268
 
26233
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26269
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26234
26270
  var d,
26235
26271
  c = arguments.length,
26236
26272
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26336,7 +26372,7 @@
26336
26372
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
26337
26373
  }
26338
26374
  };
26339
- DefaultCanvasLineRender = __decorate$1s([injectable()], DefaultCanvasLineRender);
26375
+ DefaultCanvasLineRender = __decorate$1u([injectable()], DefaultCanvasLineRender);
26340
26376
 
26341
26377
  function drawAreaSegments(path, segPath, percent, params) {
26342
26378
  var _a;
@@ -26414,7 +26450,7 @@
26414
26450
  }
26415
26451
  }
26416
26452
 
26417
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26453
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26418
26454
  var d,
26419
26455
  c = arguments.length,
26420
26456
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26583,26 +26619,26 @@
26583
26619
  x: originX = 0,
26584
26620
  x: originY = 0
26585
26621
  } = attribute;
26586
- if (!1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), !1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
26622
+ if (!1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), this._areaRenderContribitions || (this._areaRenderContribitions = this.areaRenderContribitions.getContributions() || []), this._areaRenderContribitions.forEach(c => {
26623
+ c.time === BaseRenderContributionTime.afterFillStroke && c.drawShape(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
26624
+ attribute: attribute
26625
+ });
26626
+ }), !1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
26587
26627
  const {
26588
26628
  stroke: stroke
26589
26629
  } = attribute;
26590
- isArray$3(stroke) && stroke[0] && !1 === stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, cache.top, clipRange, "auto", {
26630
+ isArray$3(stroke) && (stroke[0] || stroke[2]) && !1 === stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, "auto", {
26591
26631
  offsetX: offsetX,
26592
26632
  offsetY: offsetY,
26593
26633
  offsetZ: offsetZ
26594
26634
  })), context.setStrokeStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke();
26595
26635
  }
26596
- return this._areaRenderContribitions || (this._areaRenderContribitions = this.areaRenderContribitions.getContributions() || []), this._areaRenderContribitions.forEach(c => {
26597
- c.time === BaseRenderContributionTime.afterFillStroke && c.drawShape(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
26598
- attribute: attribute
26599
- });
26600
- }), !1;
26636
+ return !1;
26601
26637
  }
26602
26638
  };
26603
- DefaultCanvasAreaRender = __decorate$1r([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(AreaRenderContribution)), __metadata$_("design:paramtypes", [Object])], DefaultCanvasAreaRender);
26639
+ DefaultCanvasAreaRender = __decorate$1t([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(AreaRenderContribution)), __metadata$_("design:paramtypes", [Object])], DefaultCanvasAreaRender);
26604
26640
 
26605
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26641
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26606
26642
  var d,
26607
26643
  c = arguments.length,
26608
26644
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26670,7 +26706,7 @@
26670
26706
  this.z = z, drawPathProxy(path, context, x, y, drawContext, params) || (this.drawShape(path, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
26671
26707
  }
26672
26708
  };
26673
- DefaultCanvasPathRender = __decorate$1q([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PathRenderContribution)), __metadata$Z("design:paramtypes", [Object])], DefaultCanvasPathRender);
26709
+ DefaultCanvasPathRender = __decorate$1s([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PathRenderContribution)), __metadata$Z("design:paramtypes", [Object])], DefaultCanvasPathRender);
26674
26710
 
26675
26711
  const halfPi = pi$1 / 2;
26676
26712
  function createRectPath(path, x, y, width, height, rectCornerRadius) {
@@ -26727,7 +26763,7 @@
26727
26763
  return path.closePath(), path;
26728
26764
  }
26729
26765
 
26730
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26766
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26731
26767
  var d,
26732
26768
  c = arguments.length,
26733
26769
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26799,9 +26835,9 @@
26799
26835
  drawPathProxy(rect, context, x, y, drawContext, params) || this.drawShape(rect, context, x, y, drawContext, params), context.highPerformanceRestore();
26800
26836
  }
26801
26837
  };
26802
- DefaultCanvasRectRender = __decorate$1p([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(RectRenderContribution)), __metadata$Y("design:paramtypes", [Object])], DefaultCanvasRectRender);
26838
+ DefaultCanvasRectRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(RectRenderContribution)), __metadata$Y("design:paramtypes", [Object])], DefaultCanvasRectRender);
26803
26839
 
26804
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26840
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26805
26841
  var d,
26806
26842
  c = arguments.length,
26807
26843
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26879,9 +26915,9 @@
26879
26915
  this.z = z, drawPathProxy(symbol, context, x, y, drawContext, params) || (this.drawShape(symbol, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
26880
26916
  }
26881
26917
  };
26882
- DefaultCanvasSymbolRender = __decorate$1o([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(SymbolRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
26918
+ DefaultCanvasSymbolRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(SymbolRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
26883
26919
 
26884
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26920
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26885
26921
  var d,
26886
26922
  c = arguments.length,
26887
26923
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27042,9 +27078,9 @@
27042
27078
  }
27043
27079
  }
27044
27080
  };
27045
- DefaultCanvasTextRender = __decorate$1n([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(TextRenderContribution)), __metadata$W("design:paramtypes", [Object])], DefaultCanvasTextRender);
27081
+ DefaultCanvasTextRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(TextRenderContribution)), __metadata$W("design:paramtypes", [Object])], DefaultCanvasTextRender);
27046
27082
 
27047
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27083
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27048
27084
  var d,
27049
27085
  c = arguments.length,
27050
27086
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27052,7 +27088,7 @@
27052
27088
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27053
27089
  };
27054
27090
  let AbstractGraphicRender = class {};
27055
- AbstractGraphicRender = __decorate$1m([injectable()], AbstractGraphicRender);
27091
+ AbstractGraphicRender = __decorate$1o([injectable()], AbstractGraphicRender);
27056
27092
 
27057
27093
  function drawPolygon(path, points, x, y) {
27058
27094
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -27099,7 +27135,7 @@
27099
27135
  };
27100
27136
  }
27101
27137
 
27102
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27138
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27103
27139
  var d,
27104
27140
  c = arguments.length,
27105
27141
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27162,9 +27198,9 @@
27162
27198
  drawPathProxy(polygon, context, x, y, drawContext, params) || this.drawShape(polygon, context, x, y, drawContext, params), context.highPerformanceRestore();
27163
27199
  }
27164
27200
  };
27165
- DefaultCanvasPolygonRender = __decorate$1l([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PolygonRenderContribution)), __metadata$V("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
27201
+ DefaultCanvasPolygonRender = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PolygonRenderContribution)), __metadata$V("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
27166
27202
 
27167
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27203
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27168
27204
  var d,
27169
27205
  c = arguments.length,
27170
27206
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27241,7 +27277,7 @@
27241
27277
  }
27242
27278
  }
27243
27279
  };
27244
- DefaultCanvasImageRender = __decorate$1k([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(ImageRenderContribution)), __metadata$U("design:paramtypes", [Object])], DefaultCanvasImageRender);
27280
+ DefaultCanvasImageRender = __decorate$1m([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(ImageRenderContribution)), __metadata$U("design:paramtypes", [Object])], DefaultCanvasImageRender);
27245
27281
 
27246
27282
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
27247
27283
  const ArcRender = Symbol.for("ArcRender");
@@ -27389,7 +27425,7 @@
27389
27425
  }
27390
27426
  const canvasAllocate = new DefaultCanvasAllocate();
27391
27427
 
27392
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27428
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27393
27429
  var d,
27394
27430
  c = arguments.length,
27395
27431
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27429,7 +27465,7 @@
27429
27465
  } else context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = background, context.fill(), context.highPerformanceRestore();
27430
27466
  }
27431
27467
  };
27432
- DefaultBaseBackgroundRenderContribution = __decorate$1j([injectable()], DefaultBaseBackgroundRenderContribution);
27468
+ DefaultBaseBackgroundRenderContribution = __decorate$1l([injectable()], DefaultBaseBackgroundRenderContribution);
27433
27469
  let DefaultBaseInteractiveRenderContribution = class {
27434
27470
  constructor(subRenderContribitions) {
27435
27471
  this.subRenderContribitions = subRenderContribitions, this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -27440,7 +27476,7 @@
27440
27476
  });
27441
27477
  }
27442
27478
  };
27443
- DefaultBaseInteractiveRenderContribution = __decorate$1j([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(InteractiveSubRenderContribution)), __metadata$T("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
27479
+ DefaultBaseInteractiveRenderContribution = __decorate$1l([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(InteractiveSubRenderContribution)), __metadata$T("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
27444
27480
  let DefaultBaseTextureRenderContribution = class {
27445
27481
  constructor() {
27446
27482
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 10;
@@ -27553,9 +27589,9 @@
27553
27589
  pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
27554
27590
  }
27555
27591
  };
27556
- DefaultBaseTextureRenderContribution = __decorate$1j([injectable()], DefaultBaseTextureRenderContribution);
27592
+ DefaultBaseTextureRenderContribution = __decorate$1l([injectable()], DefaultBaseTextureRenderContribution);
27557
27593
 
27558
- var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27594
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27559
27595
  var d,
27560
27596
  c = arguments.length,
27561
27597
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27616,21 +27652,21 @@
27616
27652
  });
27617
27653
  }
27618
27654
  };
27619
- DefaultArcRenderContribution = __decorate$1i([injectable()], DefaultArcRenderContribution);
27655
+ DefaultArcRenderContribution = __decorate$1k([injectable()], DefaultArcRenderContribution);
27620
27656
  let DefaultArcBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
27621
27657
  constructor() {
27622
27658
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
27623
27659
  }
27624
27660
  };
27625
- DefaultArcBackgroundRenderContribution = __decorate$1i([injectable()], DefaultArcBackgroundRenderContribution);
27661
+ DefaultArcBackgroundRenderContribution = __decorate$1k([injectable()], DefaultArcBackgroundRenderContribution);
27626
27662
  let DefaultArcTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
27627
27663
  constructor() {
27628
27664
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
27629
27665
  }
27630
27666
  };
27631
- DefaultArcTextureRenderContribution = __decorate$1i([injectable()], DefaultArcTextureRenderContribution);
27667
+ DefaultArcTextureRenderContribution = __decorate$1k([injectable()], DefaultArcTextureRenderContribution);
27632
27668
 
27633
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27669
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27634
27670
  var d,
27635
27671
  c = arguments.length,
27636
27672
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27672,21 +27708,21 @@
27672
27708
  }
27673
27709
  }
27674
27710
  };
27675
- DefaultCircleRenderContribution = __decorate$1h([injectable()], DefaultCircleRenderContribution);
27711
+ DefaultCircleRenderContribution = __decorate$1j([injectable()], DefaultCircleRenderContribution);
27676
27712
  let DefaultCircleBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
27677
27713
  constructor() {
27678
27714
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
27679
27715
  }
27680
27716
  };
27681
- DefaultCircleBackgroundRenderContribution = __decorate$1h([injectable()], DefaultCircleBackgroundRenderContribution);
27717
+ DefaultCircleBackgroundRenderContribution = __decorate$1j([injectable()], DefaultCircleBackgroundRenderContribution);
27682
27718
  let DefaultCircleTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
27683
27719
  constructor() {
27684
27720
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
27685
27721
  }
27686
27722
  };
27687
- DefaultCircleTextureRenderContribution = __decorate$1h([injectable()], DefaultCircleTextureRenderContribution);
27723
+ DefaultCircleTextureRenderContribution = __decorate$1j([injectable()], DefaultCircleTextureRenderContribution);
27688
27724
 
27689
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27725
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27690
27726
  var d,
27691
27727
  c = arguments.length,
27692
27728
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27710,9 +27746,9 @@
27710
27746
  } else context.highPerformanceSave(), context.fillStyle = background, context.fill(), context.highPerformanceRestore();
27711
27747
  }
27712
27748
  };
27713
- DefaultGroupBackgroundRenderContribution = __decorate$1g([injectable()], DefaultGroupBackgroundRenderContribution);
27749
+ DefaultGroupBackgroundRenderContribution = __decorate$1i([injectable()], DefaultGroupBackgroundRenderContribution);
27714
27750
 
27715
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27751
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27716
27752
  var d,
27717
27753
  c = arguments.length,
27718
27754
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27749,9 +27785,9 @@
27749
27785
  }
27750
27786
  }
27751
27787
  };
27752
- DefaultImageBackgroundRenderContribution = __decorate$1f([injectable()], DefaultImageBackgroundRenderContribution);
27788
+ DefaultImageBackgroundRenderContribution = __decorate$1h([injectable()], DefaultImageBackgroundRenderContribution);
27753
27789
 
27754
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27790
+ var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27755
27791
  var d,
27756
27792
  c = arguments.length,
27757
27793
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27799,19 +27835,19 @@
27799
27835
  }
27800
27836
  }
27801
27837
  };
27802
- DefaultRectRenderContribution = __decorate$1e([injectable()], DefaultRectRenderContribution);
27838
+ DefaultRectRenderContribution = __decorate$1g([injectable()], DefaultRectRenderContribution);
27803
27839
  let DefaultRectBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
27804
27840
  constructor() {
27805
27841
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
27806
27842
  }
27807
27843
  };
27808
- DefaultRectBackgroundRenderContribution = __decorate$1e([injectable()], DefaultRectBackgroundRenderContribution);
27844
+ DefaultRectBackgroundRenderContribution = __decorate$1g([injectable()], DefaultRectBackgroundRenderContribution);
27809
27845
  let DefaultRectTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
27810
27846
  constructor() {
27811
27847
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
27812
27848
  }
27813
27849
  };
27814
- DefaultRectTextureRenderContribution = __decorate$1e([injectable()], DefaultRectTextureRenderContribution);
27850
+ DefaultRectTextureRenderContribution = __decorate$1g([injectable()], DefaultRectTextureRenderContribution);
27815
27851
  let SplitRectBeforeRenderContribution = class {
27816
27852
  constructor() {
27817
27853
  this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
@@ -27823,7 +27859,7 @@
27823
27859
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
27824
27860
  }
27825
27861
  };
27826
- SplitRectBeforeRenderContribution = __decorate$1e([injectable()], SplitRectBeforeRenderContribution);
27862
+ SplitRectBeforeRenderContribution = __decorate$1g([injectable()], SplitRectBeforeRenderContribution);
27827
27863
  let SplitRectAfterRenderContribution = class {
27828
27864
  constructor() {
27829
27865
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -27843,9 +27879,9 @@
27843
27879
  }
27844
27880
  }
27845
27881
  };
27846
- SplitRectAfterRenderContribution = __decorate$1e([injectable()], SplitRectAfterRenderContribution);
27882
+ SplitRectAfterRenderContribution = __decorate$1g([injectable()], SplitRectAfterRenderContribution);
27847
27883
 
27848
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27884
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27849
27885
  var d,
27850
27886
  c = arguments.length,
27851
27887
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27888,7 +27924,7 @@
27888
27924
  }
27889
27925
  }
27890
27926
  };
27891
- DefaultSymbolRenderContribution = __decorate$1d([injectable()], DefaultSymbolRenderContribution);
27927
+ DefaultSymbolRenderContribution = __decorate$1f([injectable()], DefaultSymbolRenderContribution);
27892
27928
  class DefaultSymbolBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
27893
27929
  constructor() {
27894
27930
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
@@ -27900,7 +27936,7 @@
27900
27936
  }
27901
27937
  }
27902
27938
 
27903
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27939
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27904
27940
  var d,
27905
27941
  c = arguments.length,
27906
27942
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27945,7 +27981,7 @@
27945
27981
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params);
27946
27982
  }
27947
27983
  };
27948
- DefaultRenderService = __decorate$1c([injectable(), __param$D(0, inject(DrawContribution)), __metadata$S("design:paramtypes", [Object])], DefaultRenderService);
27984
+ DefaultRenderService = __decorate$1e([injectable(), __param$D(0, inject(DrawContribution)), __metadata$S("design:paramtypes", [Object])], DefaultRenderService);
27949
27985
 
27950
27986
  var renderModule$1 = new ContainerModule(bind => {
27951
27987
  bind(DefaultRenderService).toSelf(), bind(RenderService).toService(DefaultRenderService);
@@ -28057,7 +28093,7 @@
28057
28093
  return result;
28058
28094
  }
28059
28095
 
28060
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28096
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28061
28097
  var d,
28062
28098
  c = arguments.length,
28063
28099
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28124,9 +28160,9 @@
28124
28160
  context.setTransformForCurrent();
28125
28161
  }
28126
28162
  };
28127
- Canvas3DPickItemInterceptor = __decorate$1b([injectable()], Canvas3DPickItemInterceptor);
28163
+ Canvas3DPickItemInterceptor = __decorate$1d([injectable()], Canvas3DPickItemInterceptor);
28128
28164
 
28129
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28165
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28130
28166
  var d,
28131
28167
  c = arguments.length,
28132
28168
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28233,9 +28269,9 @@
28233
28269
  return picker || null;
28234
28270
  }
28235
28271
  };
28236
- DefaultPickService = __decorate$1a([injectable(), __param$C(0, inject(Global)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickItemInterceptor)), __metadata$R("design:paramtypes", [Object, Object])], DefaultPickService);
28272
+ DefaultPickService = __decorate$1c([injectable(), __param$C(0, inject(Global)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickItemInterceptor)), __metadata$R("design:paramtypes", [Object, Object])], DefaultPickService);
28237
28273
 
28238
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28274
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28239
28275
  var d,
28240
28276
  c = arguments.length,
28241
28277
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28295,7 +28331,7 @@
28295
28331
  return !1 === graphic.attribute.pickable ? null : graphic.AABBBounds.containsPoint(point) ? graphic : null;
28296
28332
  }
28297
28333
  };
28298
- DefaultGlobalPickerService = __decorate$19([injectable(), __param$B(0, inject(Global)), __metadata$Q("design:paramtypes", [Object])], DefaultGlobalPickerService);
28334
+ DefaultGlobalPickerService = __decorate$1b([injectable(), __param$B(0, inject(Global)), __metadata$Q("design:paramtypes", [Object])], DefaultGlobalPickerService);
28299
28335
 
28300
28336
  function lookAt(out, eye, center, up) {
28301
28337
  let x0, x1, x2, y0, y1, y2, z0, z1, z2, len;
@@ -28412,7 +28448,7 @@
28412
28448
  }
28413
28449
  }
28414
28450
 
28415
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28451
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28416
28452
  var d,
28417
28453
  c = arguments.length,
28418
28454
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28921,9 +28957,9 @@
28921
28957
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
28922
28958
  }
28923
28959
  };
28924
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$18([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
28960
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$1a([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
28925
28961
 
28926
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28962
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28927
28963
  var d,
28928
28964
  c = arguments.length,
28929
28965
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28951,9 +28987,15 @@
28951
28987
  get x() {
28952
28988
  return this._x;
28953
28989
  }
28990
+ set x(_x) {
28991
+ this._x = _x;
28992
+ }
28954
28993
  get y() {
28955
28994
  return this._y;
28956
28995
  }
28996
+ set y(_y) {
28997
+ this._y = _y;
28998
+ }
28957
28999
  get nativeCanvas() {
28958
29000
  return this._nativeCanvas;
28959
29001
  }
@@ -29061,7 +29103,7 @@
29061
29103
  this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
29062
29104
  }
29063
29105
  };
29064
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$17([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
29106
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$19([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
29065
29107
 
29066
29108
  const CanvasArcPicker = Symbol.for("CanvasArcPicker");
29067
29109
  const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
@@ -29091,7 +29133,7 @@
29091
29133
  const MathGlyphPicker = Symbol.for("MathGlyphPicker");
29092
29134
  const MathPickerContribution = Symbol.for("MathPickerContribution");
29093
29135
 
29094
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29136
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29095
29137
  var d,
29096
29138
  c = arguments.length,
29097
29139
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29139,9 +29181,9 @@
29139
29181
  return picker && picker.contains(graphic, point, params) ? graphic : null;
29140
29182
  }
29141
29183
  };
29142
- __decorate$16([postConstruct(), __metadata$N("design:type", Function), __metadata$N("design:paramtypes", []), __metadata$N("design:returntype", void 0)], DefaultCanvasPickerService.prototype, "init", null), DefaultCanvasPickerService = __decorate$16([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(CanvasPickerContribution)), __param$A(1, inject(CanvasCirclePicker)), __param$A(2, inject(CanvasRectPicker)), __param$A(3, inject(CanvasArcPicker)), __param$A(4, inject(CanvasAreaPicker)), __param$A(5, inject(CanvasImagePicker)), __param$A(6, inject(CanvasLinePicker)), __param$A(7, inject(CanvasPathPicker)), __param$A(8, inject(CanvasSymbolPicker)), __param$A(9, inject(CanvasTextPicker)), __param$A(10, inject(CanvasPolygonPicker)), __param$A(11, inject(CanvasRichTextPicker)), __param$A(12, inject(DrawContribution)), __param$A(13, inject(Global)), __param$A(14, inject(ContributionProvider)), __param$A(14, named(PickItemInterceptor)), __metadata$N("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])], DefaultCanvasPickerService);
29184
+ __decorate$18([postConstruct(), __metadata$N("design:type", Function), __metadata$N("design:paramtypes", []), __metadata$N("design:returntype", void 0)], DefaultCanvasPickerService.prototype, "init", null), DefaultCanvasPickerService = __decorate$18([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(CanvasPickerContribution)), __param$A(1, inject(CanvasCirclePicker)), __param$A(2, inject(CanvasRectPicker)), __param$A(3, inject(CanvasArcPicker)), __param$A(4, inject(CanvasAreaPicker)), __param$A(5, inject(CanvasImagePicker)), __param$A(6, inject(CanvasLinePicker)), __param$A(7, inject(CanvasPathPicker)), __param$A(8, inject(CanvasSymbolPicker)), __param$A(9, inject(CanvasTextPicker)), __param$A(10, inject(CanvasPolygonPicker)), __param$A(11, inject(CanvasRichTextPicker)), __param$A(12, inject(DrawContribution)), __param$A(13, inject(Global)), __param$A(14, inject(ContributionProvider)), __param$A(14, named(PickItemInterceptor)), __metadata$N("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])], DefaultCanvasPickerService);
29143
29185
 
29144
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29186
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29145
29187
  var d,
29146
29188
  c = arguments.length,
29147
29189
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29355,9 +29397,9 @@
29355
29397
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
29356
29398
  }
29357
29399
  };
29358
- EmptyContext2d = __decorate$15([injectable(), __metadata$M("design:paramtypes", [Object, Number])], EmptyContext2d);
29400
+ EmptyContext2d = __decorate$17([injectable(), __metadata$M("design:paramtypes", [Object, Number])], EmptyContext2d);
29359
29401
 
29360
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29402
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29361
29403
  var d,
29362
29404
  c = arguments.length,
29363
29405
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29392,7 +29434,7 @@
29392
29434
  return picker && picker.contains(graphic, point, params) ? graphic : null;
29393
29435
  }
29394
29436
  };
29395
- __decorate$14([postConstruct(), __metadata$L("design:type", Function), __metadata$L("design:paramtypes", []), __metadata$L("design:returntype", void 0)], DefaultMathPickerService.prototype, "init", null), DefaultMathPickerService = __decorate$14([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(MathPickerContribution)), __param$z(1, inject(Global)), __param$z(2, inject(ContributionProvider)), __param$z(2, named(PickItemInterceptor)), __metadata$L("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
29437
+ __decorate$16([postConstruct(), __metadata$L("design:type", Function), __metadata$L("design:paramtypes", []), __metadata$L("design:returntype", void 0)], DefaultMathPickerService.prototype, "init", null), DefaultMathPickerService = __decorate$16([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(MathPickerContribution)), __param$z(1, inject(Global)), __param$z(2, inject(ContributionProvider)), __param$z(2, named(PickItemInterceptor)), __metadata$L("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
29396
29438
 
29397
29439
  var pickModule = new ContainerModule(bind => {
29398
29440
  bind(DefaultCanvasPickerService).toSelf().inSingletonScope(), bind(DefaultMathPickerService).toSelf().inSingletonScope(), bind(PickerService).toService(DefaultCanvasPickerService), bind(DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(DefaultGlobalPickerService), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bindContributionProvider(bind, PickItemInterceptor);
@@ -29405,7 +29447,7 @@
29405
29447
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
29406
29448
  const PluginService = Symbol.for("PluginService");
29407
29449
 
29408
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29450
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29409
29451
  var d,
29410
29452
  c = arguments.length,
29411
29453
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29452,13 +29494,13 @@
29452
29494
  }), this.onRegisterPlugin = [];
29453
29495
  }
29454
29496
  };
29455
- DefaultPluginService = __decorate$13([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(AutoEnablePlugins)), __metadata$K("design:paramtypes", [Object])], DefaultPluginService);
29497
+ DefaultPluginService = __decorate$15([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(AutoEnablePlugins)), __metadata$K("design:paramtypes", [Object])], DefaultPluginService);
29456
29498
 
29457
29499
  var pluginModule = new ContainerModule(bind => {
29458
29500
  bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProvider(bind, AutoEnablePlugins);
29459
29501
  });
29460
29502
 
29461
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29503
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29462
29504
  var d,
29463
29505
  c = arguments.length,
29464
29506
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29510,9 +29552,9 @@
29510
29552
  }));
29511
29553
  }
29512
29554
  };
29513
- BaseEnvContribution = __decorate$12([injectable()], BaseEnvContribution);
29555
+ BaseEnvContribution = __decorate$14([injectable()], BaseEnvContribution);
29514
29556
 
29515
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29557
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29516
29558
  var d,
29517
29559
  c = arguments.length,
29518
29560
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29522,7 +29564,7 @@
29522
29564
  __metadata$J = undefined && undefined.__metadata || function (k, v) {
29523
29565
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29524
29566
  };
29525
- function createImageElement(src) {
29567
+ function createImageElement$1(src) {
29526
29568
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
29527
29569
  const img = document.createElement("img");
29528
29570
  if (img.crossOrigin = "anonymous", isSvg) {
@@ -29571,7 +29613,7 @@
29571
29613
  };
29572
29614
  }
29573
29615
  loadImage(url) {
29574
- return createImageElement(url, !1).then(img => ({
29616
+ return createImageElement$1(url, !1).then(img => ({
29575
29617
  data: img,
29576
29618
  loadState: "success"
29577
29619
  })).catch(() => ({
@@ -29580,7 +29622,7 @@
29580
29622
  }));
29581
29623
  }
29582
29624
  loadSvg(url) {
29583
- return createImageElement(url, !0).then(img => ({
29625
+ return createImageElement$1(url, !0).then(img => ({
29584
29626
  data: img,
29585
29627
  loadState: "success"
29586
29628
  })).catch(() => ({
@@ -29633,7 +29675,7 @@
29633
29675
  }
29634
29676
  release() {}
29635
29677
  };
29636
- BrowserEnvContribution = __decorate$11([injectable(), __metadata$J("design:paramtypes", [])], BrowserEnvContribution);
29678
+ BrowserEnvContribution = __decorate$13([injectable(), __metadata$J("design:paramtypes", [])], BrowserEnvContribution);
29637
29679
 
29638
29680
  function loadFeishuContributions() {
29639
29681
  container.rebind(PickerService).toService(DefaultMathPickerService);
@@ -29642,7 +29684,7 @@
29642
29684
  container.rebind(PickerService).toService(DefaultMathPickerService);
29643
29685
  }
29644
29686
 
29645
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29687
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29646
29688
  var d,
29647
29689
  c = arguments.length,
29648
29690
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29746,9 +29788,9 @@
29746
29788
  return (null === (_a = null == event ? void 0 : event.type) || void 0 === _a ? void 0 : _a.startsWith("mouse")) ? event : null;
29747
29789
  }
29748
29790
  };
29749
- FeishuEnvContribution = __decorate$10([injectable(), __metadata$I("design:paramtypes", [])], FeishuEnvContribution);
29791
+ FeishuEnvContribution = __decorate$12([injectable(), __metadata$I("design:paramtypes", [])], FeishuEnvContribution);
29750
29792
 
29751
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29793
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29752
29794
  var d,
29753
29795
  c = arguments.length,
29754
29796
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29880,9 +29922,9 @@
29880
29922
  }
29881
29923
  release() {}
29882
29924
  };
29883
- TaroEnvContribution = __decorate$$([injectable(), __metadata$H("design:paramtypes", [])], TaroEnvContribution);
29925
+ TaroEnvContribution = __decorate$11([injectable(), __metadata$H("design:paramtypes", [])], TaroEnvContribution);
29884
29926
 
29885
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29927
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29886
29928
  var d,
29887
29929
  c = arguments.length,
29888
29930
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29920,6 +29962,18 @@
29920
29962
  canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
29921
29963
  });
29922
29964
  }
29965
+ function createImageElement(src) {
29966
+ let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
29967
+ if (isSvg) return Promise.reject();
29968
+ const img = lynx.createImage(src);
29969
+ return new Promise((resolve, reject) => {
29970
+ img.onload = () => {
29971
+ resolve(img);
29972
+ }, img.onerror = () => {
29973
+ reject(new Error("加载失败"));
29974
+ };
29975
+ });
29976
+ }
29923
29977
  let LynxEnvContribution = class extends BaseEnvContribution {
29924
29978
  constructor() {
29925
29979
  super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.supportsTouchEvents = !0;
@@ -29940,10 +29994,13 @@
29940
29994
  return this.freeCanvasList.length;
29941
29995
  }
29942
29996
  loadImage(url) {
29943
- return Promise.resolve({
29944
- data: url,
29997
+ return createImageElement(url, !1).then(img => ({
29998
+ data: img,
29945
29999
  loadState: "success"
29946
- });
30000
+ })).catch(() => ({
30001
+ data: null,
30002
+ loadState: "fail"
30003
+ }));
29947
30004
  }
29948
30005
  loadSvg(url) {
29949
30006
  return Promise.reject();
@@ -29987,9 +30044,9 @@
29987
30044
  }
29988
30045
  release() {}
29989
30046
  };
29990
- LynxEnvContribution = __decorate$_([injectable(), __metadata$G("design:paramtypes", [])], LynxEnvContribution);
30047
+ LynxEnvContribution = __decorate$10([injectable(), __metadata$G("design:paramtypes", [])], LynxEnvContribution);
29991
30048
 
29992
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30049
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29993
30050
  var d,
29994
30051
  c = arguments.length,
29995
30052
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30075,9 +30132,9 @@
30075
30132
  release() {}
30076
30133
  createOffscreenCanvas(params) {}
30077
30134
  };
30078
- NodeEnvContribution = __decorate$Z([injectable()], NodeEnvContribution);
30135
+ NodeEnvContribution = __decorate$$([injectable()], NodeEnvContribution);
30079
30136
 
30080
- var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30137
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30081
30138
  var d,
30082
30139
  c = arguments.length,
30083
30140
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30198,13 +30255,13 @@
30198
30255
  return (null === (_a = null == event ? void 0 : event.type) || void 0 === _a ? void 0 : _a.startsWith("mouse")) ? event : null;
30199
30256
  }
30200
30257
  };
30201
- WxEnvContribution = __decorate$Y([injectable(), __metadata$F("design:paramtypes", [])], WxEnvContribution);
30258
+ WxEnvContribution = __decorate$_([injectable(), __metadata$F("design:paramtypes", [])], WxEnvContribution);
30202
30259
 
30203
30260
  var envModules = new ContainerModule(bind => {
30204
30261
  bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution), bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution), bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution), bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution), bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution), bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution), bindContributionProvider(bind, EnvContribution);
30205
30262
  });
30206
30263
 
30207
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30264
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30208
30265
  var d,
30209
30266
  c = arguments.length,
30210
30267
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30228,9 +30285,9 @@
30228
30285
  this.releaseWindow();
30229
30286
  }
30230
30287
  };
30231
- BaseWindowHandlerContribution = __decorate$X([injectable(), __metadata$E("design:paramtypes", [])], BaseWindowHandlerContribution);
30288
+ BaseWindowHandlerContribution = __decorate$Z([injectable(), __metadata$E("design:paramtypes", [])], BaseWindowHandlerContribution);
30232
30289
 
30233
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30290
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30234
30291
  var d,
30235
30292
  c = arguments.length,
30236
30293
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30364,9 +30421,9 @@
30364
30421
  context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
30365
30422
  }
30366
30423
  };
30367
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution = __decorate$W([injectable(), __param$x(0, inject(Global)), __metadata$D("design:paramtypes", [Object])], BrowserWindowHandlerContribution);
30424
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution = __decorate$Y([injectable(), __param$x(0, inject(Global)), __metadata$D("design:paramtypes", [Object])], BrowserWindowHandlerContribution);
30368
30425
 
30369
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30426
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30370
30427
  var d,
30371
30428
  c = arguments.length,
30372
30429
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30411,9 +30468,9 @@
30411
30468
  return null;
30412
30469
  }
30413
30470
  };
30414
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$V([injectable()], FeishuContext2d);
30471
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$X([injectable()], FeishuContext2d);
30415
30472
 
30416
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30473
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30417
30474
  var d,
30418
30475
  c = arguments.length,
30419
30476
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30435,9 +30492,15 @@
30435
30492
  get x() {
30436
30493
  return this._x;
30437
30494
  }
30495
+ set x(_x) {
30496
+ this._x = _x;
30497
+ }
30438
30498
  get y() {
30439
30499
  return this._y;
30440
30500
  }
30501
+ set y(_y) {
30502
+ this._y = _y;
30503
+ }
30441
30504
  get nativeCanvas() {
30442
30505
  return this._nativeCanvas;
30443
30506
  }
@@ -30512,9 +30575,9 @@
30512
30575
  }
30513
30576
  release() {}
30514
30577
  };
30515
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$U([injectable(), __metadata$C("design:paramtypes", [Object])], FeishuCanvas);
30578
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$W([injectable(), __metadata$C("design:paramtypes", [Object])], FeishuCanvas);
30516
30579
 
30517
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30580
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30518
30581
  var d,
30519
30582
  c = arguments.length,
30520
30583
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30659,9 +30722,9 @@
30659
30722
  context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
30660
30723
  }
30661
30724
  };
30662
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$T([injectable(), __param$w(0, inject(Global)), __metadata$B("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
30725
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$V([injectable(), __param$w(0, inject(Global)), __metadata$B("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
30663
30726
 
30664
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30727
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30665
30728
  var d,
30666
30729
  c = arguments.length,
30667
30730
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30725,9 +30788,9 @@
30725
30788
  return null;
30726
30789
  }
30727
30790
  };
30728
- TaroContext2d.env = "taro", TaroContext2d = __decorate$S([injectable()], TaroContext2d);
30791
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$U([injectable()], TaroContext2d);
30729
30792
 
30730
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30793
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30731
30794
  var d,
30732
30795
  c = arguments.length,
30733
30796
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30749,9 +30812,15 @@
30749
30812
  get x() {
30750
30813
  return this._x;
30751
30814
  }
30815
+ set x(_x) {
30816
+ this._x = _x;
30817
+ }
30752
30818
  get y() {
30753
30819
  return this._y;
30754
30820
  }
30821
+ set y(_y) {
30822
+ this._y = _y;
30823
+ }
30755
30824
  get nativeCanvas() {
30756
30825
  return this._nativeCanvas;
30757
30826
  }
@@ -30826,9 +30895,9 @@
30826
30895
  }
30827
30896
  release() {}
30828
30897
  };
30829
- TaroCanvas.env = "taro", TaroCanvas = __decorate$R([injectable(), __metadata$A("design:paramtypes", [Object])], TaroCanvas);
30898
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$T([injectable(), __metadata$A("design:paramtypes", [Object])], TaroCanvas);
30830
30899
 
30831
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30900
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30832
30901
  var d,
30833
30902
  c = arguments.length,
30834
30903
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30983,9 +31052,9 @@
30983
31052
  context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
30984
31053
  }
30985
31054
  };
30986
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$Q([injectable(), __param$v(0, inject(Global)), __metadata$z("design:paramtypes", [Object])], TaroWindowHandlerContribution);
31055
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(Global)), __metadata$z("design:paramtypes", [Object])], TaroWindowHandlerContribution);
30987
31056
 
30988
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31057
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30989
31058
  var d,
30990
31059
  c = arguments.length,
30991
31060
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31039,9 +31108,9 @@
31039
31108
  });
31040
31109
  }
31041
31110
  };
31042
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$P([injectable()], LynxContext2d);
31111
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$R([injectable()], LynxContext2d);
31043
31112
 
31044
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31113
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31045
31114
  var d,
31046
31115
  c = arguments.length,
31047
31116
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31063,9 +31132,15 @@
31063
31132
  get x() {
31064
31133
  return this._x;
31065
31134
  }
31135
+ set x(_x) {
31136
+ this._x = _x;
31137
+ }
31066
31138
  get y() {
31067
31139
  return this._y;
31068
31140
  }
31141
+ set y(_y) {
31142
+ this._y = _y;
31143
+ }
31069
31144
  get nativeCanvas() {
31070
31145
  return this._nativeCanvas;
31071
31146
  }
@@ -31140,9 +31215,9 @@
31140
31215
  }
31141
31216
  release() {}
31142
31217
  };
31143
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$O([injectable(), __metadata$y("design:paramtypes", [Object])], LynxCanvas);
31218
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$Q([injectable(), __metadata$y("design:paramtypes", [Object])], LynxCanvas);
31144
31219
 
31145
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31220
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31146
31221
  var d,
31147
31222
  c = arguments.length,
31148
31223
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31287,9 +31362,9 @@
31287
31362
  context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
31288
31363
  }
31289
31364
  };
31290
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$N([injectable(), __param$u(0, inject(Global)), __metadata$x("design:paramtypes", [Object])], LynxWindowHandlerContribution);
31365
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$P([injectable(), __param$u(0, inject(Global)), __metadata$x("design:paramtypes", [Object])], LynxWindowHandlerContribution);
31291
31366
 
31292
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31367
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31293
31368
  var d,
31294
31369
  c = arguments.length,
31295
31370
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31308,9 +31383,9 @@
31308
31383
  }
31309
31384
  release() {}
31310
31385
  };
31311
- NodeContext2d.env = "node", NodeContext2d = __decorate$M([injectable(), __metadata$w("design:paramtypes", [Object, Number])], NodeContext2d);
31386
+ NodeContext2d.env = "node", NodeContext2d = __decorate$O([injectable(), __metadata$w("design:paramtypes", [Object, Number])], NodeContext2d);
31312
31387
 
31313
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31388
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31314
31389
  var d,
31315
31390
  c = arguments.length,
31316
31391
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31332,9 +31407,11 @@
31332
31407
  get x() {
31333
31408
  return 0;
31334
31409
  }
31410
+ set x(_x) {}
31335
31411
  get y() {
31336
31412
  return 0;
31337
31413
  }
31414
+ set y(_y) {}
31338
31415
  get nativeCanvas() {
31339
31416
  return this._nativeCanvas;
31340
31417
  }
@@ -31407,9 +31484,9 @@
31407
31484
  this._nativeCanvas.release && isFunction(this._nativeCanvas.release) && this._nativeCanvas.release();
31408
31485
  }
31409
31486
  };
31410
- NodeCanvas.env = "node", NodeCanvas = __decorate$L([injectable(), __metadata$v("design:paramtypes", [Object])], NodeCanvas);
31487
+ NodeCanvas.env = "node", NodeCanvas = __decorate$N([injectable(), __metadata$v("design:paramtypes", [Object])], NodeCanvas);
31411
31488
 
31412
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31489
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31413
31490
  var d,
31414
31491
  c = arguments.length,
31415
31492
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31510,9 +31587,9 @@
31510
31587
  }
31511
31588
  clearViewBox(vb, color) {}
31512
31589
  };
31513
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$K([injectable(), __param$t(0, inject(Global)), __metadata$u("design:paramtypes", [Object])], NodeWindowHandlerContribution);
31590
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$M([injectable(), __param$t(0, inject(Global)), __metadata$u("design:paramtypes", [Object])], NodeWindowHandlerContribution);
31514
31591
 
31515
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31592
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31516
31593
  var d,
31517
31594
  c = arguments.length,
31518
31595
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31525,9 +31602,9 @@
31525
31602
  return null;
31526
31603
  }
31527
31604
  };
31528
- WxContext2d.env = "wx", WxContext2d = __decorate$J([injectable()], WxContext2d);
31605
+ WxContext2d.env = "wx", WxContext2d = __decorate$L([injectable()], WxContext2d);
31529
31606
 
31530
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31607
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31531
31608
  var d,
31532
31609
  c = arguments.length,
31533
31610
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31549,9 +31626,15 @@
31549
31626
  get x() {
31550
31627
  return this._x;
31551
31628
  }
31629
+ set x(_x) {
31630
+ this._x = _x;
31631
+ }
31552
31632
  get y() {
31553
31633
  return this._y;
31554
31634
  }
31635
+ set y(_y) {
31636
+ this._y = _y;
31637
+ }
31555
31638
  get nativeCanvas() {
31556
31639
  return this._nativeCanvas;
31557
31640
  }
@@ -31626,9 +31709,9 @@
31626
31709
  }
31627
31710
  release() {}
31628
31711
  };
31629
- WxCanvas.env = "wx", WxCanvas = __decorate$I([injectable(), __metadata$t("design:paramtypes", [Object])], WxCanvas);
31712
+ WxCanvas.env = "wx", WxCanvas = __decorate$K([injectable(), __metadata$t("design:paramtypes", [Object])], WxCanvas);
31630
31713
 
31631
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31714
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31632
31715
  var d,
31633
31716
  c = arguments.length,
31634
31717
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31774,7 +31857,7 @@
31774
31857
  context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
31775
31858
  }
31776
31859
  };
31777
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$H([injectable(), __param$s(0, inject(Global)), __metadata$s("design:paramtypes", [Object])], WxWindowHandlerContribution);
31860
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$J([injectable(), __param$s(0, inject(Global)), __metadata$s("design:paramtypes", [Object])], WxWindowHandlerContribution);
31778
31861
 
31779
31862
  var windowModules = new ContainerModule(bind => {
31780
31863
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env), bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env), bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env), bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env), bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env), bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
@@ -31784,7 +31867,7 @@
31784
31867
  bind(DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
31785
31868
  });
31786
31869
 
31787
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31870
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31788
31871
  var d,
31789
31872
  c = arguments.length,
31790
31873
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31804,9 +31887,9 @@
31804
31887
  this.global = global, this.offscreen = !1;
31805
31888
  }
31806
31889
  init(layer, window, params) {
31807
- if (this.layer = layer, params.main) this.context = window.getContext(), this.canvas = this.context.getCanvas();else {
31890
+ if (this.layer = layer, this.window = window, params.main) this.main = !0, this.context = window.getContext(), this.canvas = this.context.getCanvas();else {
31808
31891
  let nativeCanvas;
31809
- nativeCanvas = params.canvasId ? this.global.getElementById(params.canvasId) : this.global.createCanvas({
31892
+ this.main = !1, nativeCanvas = params.canvasId ? this.global.getElementById(params.canvasId) : this.global.createCanvas({
31810
31893
  width: window.width,
31811
31894
  height: window.height
31812
31895
  }), nativeCanvas.style && (nativeCanvas.style["pointer-events"] = "none");
@@ -31830,6 +31913,10 @@
31830
31913
  resizeView(w, h) {}
31831
31914
  render(group, params, userParams) {
31832
31915
  var _a;
31916
+ if (!this.main) {
31917
+ const windowCanvas = this.window.getContext().getCanvas().nativeCanvas;
31918
+ !windowCanvas || this.canvas.x === windowCanvas.offsetLeft && this.canvas.y === windowCanvas.offsetTop || (this.canvas.x = windowCanvas.offsetLeft, this.canvas.y = windowCanvas.offsetTop, this.canvas.applyPosition());
31919
+ }
31833
31920
  params.renderService.render(group, Object.assign(Object.assign({
31834
31921
  context: this.context,
31835
31922
  clear: null !== (_a = params.background) && void 0 !== _a ? _a : "#ffffff"
@@ -31858,9 +31945,9 @@
31858
31945
  this.canvas.release();
31859
31946
  }
31860
31947
  };
31861
- CanvasLayerHandlerContribution = __decorate$G([injectable(), __param$r(0, inject(Global)), __metadata$r("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
31948
+ CanvasLayerHandlerContribution = __decorate$I([injectable(), __param$r(0, inject(Global)), __metadata$r("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
31862
31949
 
31863
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31950
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31864
31951
  var d,
31865
31952
  c = arguments.length,
31866
31953
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31931,7 +32018,7 @@
31931
32018
  }
31932
32019
  merge(layerHandlers) {}
31933
32020
  };
31934
- OffscreenLayerHandlerContribution = __decorate$F([injectable(), __param$q(0, inject(Global)), __metadata$q("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
32021
+ OffscreenLayerHandlerContribution = __decorate$H([injectable(), __param$q(0, inject(Global)), __metadata$q("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
31935
32022
 
31936
32023
  var layerHandlerModules = new ContainerModule(bind => {
31937
32024
  bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(LayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -31941,7 +32028,7 @@
31941
32028
  container.load(envModules), container.load(windowModules), container.load(textMeasureModules), container.load(layerHandlerModules);
31942
32029
  }
31943
32030
 
31944
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32031
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31945
32032
  var d,
31946
32033
  c = arguments.length,
31947
32034
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31967,7 +32054,7 @@
31967
32054
  return drawContribution.renderGroup(graphic.shadowRoot, drawContext), context.highPerformanceRestore(), drawContribution.dirtyBounds && drawContribution.backupDirtyBounds && drawContribution.dirtyBounds.copy(tempDirtyBounds), !0;
31968
32055
  }
31969
32056
  };
31970
- ShadowRootDrawItemInterceptorContribution = __decorate$E([injectable()], ShadowRootDrawItemInterceptorContribution);
32057
+ ShadowRootDrawItemInterceptorContribution = __decorate$G([injectable()], ShadowRootDrawItemInterceptorContribution);
31971
32058
  let Canvas3DDrawItemInterceptor = class {
31972
32059
  constructor() {
31973
32060
  this.order = 1;
@@ -32040,9 +32127,9 @@
32040
32127
  context.setTransformForCurrent();
32041
32128
  }
32042
32129
  };
32043
- Canvas3DDrawItemInterceptor = __decorate$E([injectable()], Canvas3DDrawItemInterceptor);
32130
+ Canvas3DDrawItemInterceptor = __decorate$G([injectable()], Canvas3DDrawItemInterceptor);
32044
32131
 
32045
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32132
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32046
32133
  var d,
32047
32134
  c = arguments.length,
32048
32135
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32213,9 +32300,9 @@
32213
32300
  }
32214
32301
  }
32215
32302
  };
32216
- __decorate$D([postConstruct(), __metadata$p("design:type", Function), __metadata$p("design:paramtypes", []), __metadata$p("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$D([injectable(), __param$p(0, multiInject(GraphicRender)), __param$p(1, inject(RenderSelector)), __param$p(2, inject(LayerService)), __param$p(3, inject(ContributionProvider)), __param$p(3, named(DrawItemInterceptor)), __metadata$p("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
32303
+ __decorate$F([postConstruct(), __metadata$p("design:type", Function), __metadata$p("design:paramtypes", []), __metadata$p("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$F([injectable(), __param$p(0, multiInject(GraphicRender)), __param$p(1, inject(RenderSelector)), __param$p(2, inject(LayerService)), __param$p(3, inject(ContributionProvider)), __param$p(3, named(DrawItemInterceptor)), __metadata$p("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
32217
32304
 
32218
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32305
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32219
32306
  var d,
32220
32307
  c = arguments.length,
32221
32308
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32227,9 +32314,9 @@
32227
32314
  return null;
32228
32315
  }
32229
32316
  };
32230
- DefaultRenderSelector = __decorate$C([injectable()], DefaultRenderSelector);
32317
+ DefaultRenderSelector = __decorate$E([injectable()], DefaultRenderSelector);
32231
32318
 
32232
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32319
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32233
32320
  var d,
32234
32321
  c = arguments.length,
32235
32322
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32320,9 +32407,9 @@
32320
32407
  }) : clip ? context.restore() : context.highPerformanceRestore();
32321
32408
  }
32322
32409
  };
32323
- DefaultCanvasGroupRender = __decorate$B([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(GroupRenderContribution)), __metadata$o("design:paramtypes", [Object])], DefaultCanvasGroupRender);
32410
+ DefaultCanvasGroupRender = __decorate$D([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(GroupRenderContribution)), __metadata$o("design:paramtypes", [Object])], DefaultCanvasGroupRender);
32324
32411
 
32325
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32412
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32326
32413
  var d,
32327
32414
  c = arguments.length,
32328
32415
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32373,9 +32460,9 @@
32373
32460
  }), context.setShadowStyle && context.setShadowStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
32374
32461
  }
32375
32462
  };
32376
- DefaultIncrementalCanvasLineRender = __decorate$A([injectable()], DefaultIncrementalCanvasLineRender);
32463
+ DefaultIncrementalCanvasLineRender = __decorate$C([injectable()], DefaultIncrementalCanvasLineRender);
32377
32464
 
32378
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32465
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32379
32466
  var d,
32380
32467
  c = arguments.length,
32381
32468
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32418,10 +32505,10 @@
32418
32505
  }), context.setShadowStyle && context.setShadowStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
32419
32506
  }
32420
32507
  };
32421
- DefaultIncrementalCanvasAreaRender = __decorate$z([injectable()], DefaultIncrementalCanvasAreaRender);
32508
+ DefaultIncrementalCanvasAreaRender = __decorate$B([injectable()], DefaultIncrementalCanvasAreaRender);
32422
32509
 
32423
32510
  var STATUS,
32424
- __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32511
+ __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32425
32512
  var d,
32426
32513
  c = arguments.length,
32427
32514
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32565,9 +32652,9 @@
32565
32652
  });
32566
32653
  }
32567
32654
  };
32568
- __decorate$y([inject(Global), __metadata$n("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$y([injectable(), __param$n(0, multiInject(GraphicRender)), __param$n(1, inject(RenderSelector)), __param$n(2, inject(DefaultIncrementalCanvasLineRender)), __param$n(3, inject(DefaultIncrementalCanvasAreaRender)), __param$n(4, inject(LayerService)), __param$n(5, inject(ContributionProvider)), __param$n(5, named(DrawItemInterceptor)), __metadata$n("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
32655
+ __decorate$A([inject(Global), __metadata$n("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$A([injectable(), __param$n(0, multiInject(GraphicRender)), __param$n(1, inject(RenderSelector)), __param$n(2, inject(DefaultIncrementalCanvasLineRender)), __param$n(3, inject(DefaultIncrementalCanvasAreaRender)), __param$n(4, inject(LayerService)), __param$n(5, inject(ContributionProvider)), __param$n(5, named(DrawItemInterceptor)), __metadata$n("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
32569
32656
 
32570
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32657
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32571
32658
  var d,
32572
32659
  c = arguments.length,
32573
32660
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32698,9 +32785,9 @@
32698
32785
  this.z = z, this.drawShape(rect, context, x, y, drawContext), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.highPerformanceRestore();
32699
32786
  }
32700
32787
  };
32701
- DefaultCanvasRect3dRender = __decorate$x([injectable()], DefaultCanvasRect3dRender);
32788
+ DefaultCanvasRect3dRender = __decorate$z([injectable()], DefaultCanvasRect3dRender);
32702
32789
 
32703
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32790
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32704
32791
  var d,
32705
32792
  c = arguments.length,
32706
32793
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32770,9 +32857,9 @@
32770
32857
  this.drawShape(richtext, context, x, y, drawContext), context.highPerformanceRestore();
32771
32858
  }
32772
32859
  };
32773
- DefaultCanvasRichTextRender = __decorate$w([injectable()], DefaultCanvasRichTextRender);
32860
+ DefaultCanvasRichTextRender = __decorate$y([injectable()], DefaultCanvasRichTextRender);
32774
32861
 
32775
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32862
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32776
32863
  var d,
32777
32864
  c = arguments.length,
32778
32865
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32804,9 +32891,9 @@
32804
32891
  }), context.highPerformanceRestore();
32805
32892
  }
32806
32893
  };
32807
- DefaultCanvasGlyphRender = __decorate$v([injectable()], DefaultCanvasGlyphRender);
32894
+ DefaultCanvasGlyphRender = __decorate$x([injectable()], DefaultCanvasGlyphRender);
32808
32895
 
32809
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32896
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32810
32897
  var d,
32811
32898
  c = arguments.length,
32812
32899
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32946,9 +33033,9 @@
32946
33033
  this.z = z, drawPathProxy(arc, context, x, y, drawContext, params) || (this.drawShape(arc, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.restore();
32947
33034
  }
32948
33035
  };
32949
- DefaultCanvasArc3DRender = __decorate$u([injectable()], DefaultCanvasArc3DRender);
33036
+ DefaultCanvasArc3DRender = __decorate$w([injectable()], DefaultCanvasArc3DRender);
32950
33037
 
32951
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33038
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32952
33039
  var d,
32953
33040
  c = arguments.length,
32954
33041
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33080,9 +33167,9 @@
33080
33167
  this.z = z, this.drawShape(pyramid3d, context, x, y, drawContext), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.highPerformanceRestore();
33081
33168
  }
33082
33169
  };
33083
- DefaultCanvasPyramid3dRender = __decorate$t([injectable()], DefaultCanvasPyramid3dRender);
33170
+ DefaultCanvasPyramid3dRender = __decorate$v([injectable()], DefaultCanvasPyramid3dRender);
33084
33171
 
33085
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33172
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33086
33173
  var d,
33087
33174
  c = arguments.length,
33088
33175
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33094,15 +33181,15 @@
33094
33181
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
33095
33182
  }
33096
33183
  };
33097
- DefaultPolygonBackgroundRenderContribution = __decorate$s([injectable()], DefaultPolygonBackgroundRenderContribution);
33184
+ DefaultPolygonBackgroundRenderContribution = __decorate$u([injectable()], DefaultPolygonBackgroundRenderContribution);
33098
33185
  let DefaultPolygonTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
33099
33186
  constructor() {
33100
33187
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
33101
33188
  }
33102
33189
  };
33103
- DefaultPolygonTextureRenderContribution = __decorate$s([injectable()], DefaultPolygonTextureRenderContribution);
33190
+ DefaultPolygonTextureRenderContribution = __decorate$u([injectable()], DefaultPolygonTextureRenderContribution);
33104
33191
 
33105
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33192
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33106
33193
  var d,
33107
33194
  c = arguments.length,
33108
33195
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33114,15 +33201,15 @@
33114
33201
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
33115
33202
  }
33116
33203
  };
33117
- DefaultPathBackgroundRenderContribution = __decorate$r([injectable()], DefaultPathBackgroundRenderContribution);
33204
+ DefaultPathBackgroundRenderContribution = __decorate$t([injectable()], DefaultPathBackgroundRenderContribution);
33118
33205
  let DefaultPathTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
33119
33206
  constructor() {
33120
33207
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
33121
33208
  }
33122
33209
  };
33123
- DefaultPathTextureRenderContribution = __decorate$r([injectable()], DefaultPathTextureRenderContribution);
33210
+ DefaultPathTextureRenderContribution = __decorate$t([injectable()], DefaultPathTextureRenderContribution);
33124
33211
 
33125
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33212
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33126
33213
  var d,
33127
33214
  c = arguments.length,
33128
33215
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33134,7 +33221,7 @@
33134
33221
  super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
33135
33222
  }
33136
33223
  };
33137
- DefaultAreaBackgroundRenderContribution = __decorate$q([injectable()], DefaultAreaBackgroundRenderContribution);
33224
+ DefaultAreaBackgroundRenderContribution = __decorate$s([injectable()], DefaultAreaBackgroundRenderContribution);
33138
33225
  let DefaultAreaTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
33139
33226
  constructor() {
33140
33227
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
@@ -33181,7 +33268,7 @@
33181
33268
  pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
33182
33269
  }
33183
33270
  };
33184
- DefaultAreaTextureRenderContribution = __decorate$q([injectable()], DefaultAreaTextureRenderContribution);
33271
+ DefaultAreaTextureRenderContribution = __decorate$s([injectable()], DefaultAreaTextureRenderContribution);
33185
33272
 
33186
33273
  var renderModule = new ContainerModule(bind => {
33187
33274
  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(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bindContributionProvider(bind, DrawItemInterceptor);
@@ -33191,7 +33278,7 @@
33191
33278
  container.load(renderModule);
33192
33279
  }
33193
33280
 
33194
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33281
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33195
33282
  var d,
33196
33283
  c = arguments.length,
33197
33284
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33234,9 +33321,9 @@
33234
33321
  }), pickContext.highPerformanceRestore(), picked;
33235
33322
  }
33236
33323
  };
33237
- DefaultCanvasCirclePicker = __decorate$p([injectable(), __param$m(0, inject(CircleRender)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
33324
+ DefaultCanvasCirclePicker = __decorate$r([injectable(), __param$m(0, inject(CircleRender)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
33238
33325
 
33239
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33326
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33240
33327
  var d,
33241
33328
  c = arguments.length,
33242
33329
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33296,9 +33383,9 @@
33296
33383
  return pickContext.highPerformanceRestore(), picked;
33297
33384
  }
33298
33385
  };
33299
- DefaultCanvasRectPicker = __decorate$o([injectable(), __param$l(0, inject(RectRender)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasRectPicker);
33386
+ DefaultCanvasRectPicker = __decorate$q([injectable(), __param$l(0, inject(RectRender)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasRectPicker);
33300
33387
 
33301
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33388
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33302
33389
  var d,
33303
33390
  c = arguments.length,
33304
33391
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33342,9 +33429,9 @@
33342
33429
  }), pickContext.highPerformanceRestore(), picked;
33343
33430
  }
33344
33431
  };
33345
- DefaultCanvasArcPicker = __decorate$n([injectable(), __param$k(0, inject(ArcRender)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasArcPicker);
33432
+ DefaultCanvasArcPicker = __decorate$p([injectable(), __param$k(0, inject(ArcRender)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasArcPicker);
33346
33433
 
33347
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33434
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33348
33435
  var d,
33349
33436
  c = arguments.length,
33350
33437
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33383,9 +33470,9 @@
33383
33470
  return this.canvasRenderer.drawShape(area, pickContext, x, y, {}, null, context => !!picked || (picked = context.isPointInPath(point.x, point.y), picked)), pickContext.highPerformanceRestore(), picked;
33384
33471
  }
33385
33472
  };
33386
- DefaultCanvasAreaPicker = __decorate$m([injectable(), __param$j(0, inject(AreaRender)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
33473
+ DefaultCanvasAreaPicker = __decorate$o([injectable(), __param$j(0, inject(AreaRender)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
33387
33474
 
33388
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33475
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33389
33476
  var d,
33390
33477
  c = arguments.length,
33391
33478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33403,9 +33490,9 @@
33403
33490
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
33404
33491
  }
33405
33492
  };
33406
- DefaultCanvasImagePicker = __decorate$l([injectable()], DefaultCanvasImagePicker);
33493
+ DefaultCanvasImagePicker = __decorate$n([injectable()], DefaultCanvasImagePicker);
33407
33494
 
33408
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33495
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33409
33496
  var d,
33410
33497
  c = arguments.length,
33411
33498
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33413,9 +33500,9 @@
33413
33500
  return c > 3 && r && Object.defineProperty(target, key, r), r;
33414
33501
  };
33415
33502
  let BasePicker = class extends BaseRender {};
33416
- BasePicker = __decorate$k([injectable()], BasePicker);
33503
+ BasePicker = __decorate$m([injectable()], BasePicker);
33417
33504
 
33418
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33505
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33419
33506
  var d,
33420
33507
  c = arguments.length,
33421
33508
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33465,9 +33552,9 @@
33465
33552
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33466
33553
  }
33467
33554
  };
33468
- DefaultCanvasLinePicker = __decorate$j([injectable(), __param$i(0, inject(LineRender)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasLinePicker);
33555
+ DefaultCanvasLinePicker = __decorate$l([injectable(), __param$i(0, inject(LineRender)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasLinePicker);
33469
33556
 
33470
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33557
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33471
33558
  var d,
33472
33559
  c = arguments.length,
33473
33560
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33517,9 +33604,9 @@
33517
33604
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33518
33605
  }
33519
33606
  };
33520
- DefaultCanvasPathPicker = __decorate$i([injectable(), __param$h(0, inject(PathRender)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasPathPicker);
33607
+ DefaultCanvasPathPicker = __decorate$k([injectable(), __param$h(0, inject(PathRender)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasPathPicker);
33521
33608
 
33522
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33609
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33523
33610
  var d,
33524
33611
  c = arguments.length,
33525
33612
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33571,9 +33658,9 @@
33571
33658
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33572
33659
  }
33573
33660
  };
33574
- DefaultCanvasSymbolPicker = __decorate$h([injectable(), __param$g(0, inject(SymbolRender)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
33661
+ DefaultCanvasSymbolPicker = __decorate$j([injectable(), __param$g(0, inject(SymbolRender)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
33575
33662
 
33576
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33663
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33577
33664
  var d,
33578
33665
  c = arguments.length,
33579
33666
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33636,9 +33723,9 @@
33636
33723
  }, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33637
33724
  }
33638
33725
  };
33639
- DefaultCanvasTextPicker = __decorate$g([injectable(), __param$f(0, inject(TextRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasTextPicker);
33726
+ DefaultCanvasTextPicker = __decorate$i([injectable(), __param$f(0, inject(TextRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasTextPicker);
33640
33727
 
33641
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33728
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33642
33729
  var d,
33643
33730
  c = arguments.length,
33644
33731
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33680,9 +33767,9 @@
33680
33767
  }), pickContext.highPerformanceRestore(), picked;
33681
33768
  }
33682
33769
  };
33683
- DefaultCanvasPolygonPicker = __decorate$f([injectable(), __param$e(0, inject(PolygonRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
33770
+ DefaultCanvasPolygonPicker = __decorate$h([injectable(), __param$e(0, inject(PolygonRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
33684
33771
 
33685
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33772
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33686
33773
  var d,
33687
33774
  c = arguments.length,
33688
33775
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33706,9 +33793,9 @@
33706
33793
  return !!richtext.AABBBounds.containsPoint(point);
33707
33794
  }
33708
33795
  };
33709
- DefaultCanvasRichTextPicker = __decorate$e([injectable(), __param$d(0, inject(RichTextRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
33796
+ DefaultCanvasRichTextPicker = __decorate$g([injectable(), __param$d(0, inject(RichTextRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
33710
33797
 
33711
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33798
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33712
33799
  var d,
33713
33800
  c = arguments.length,
33714
33801
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33744,9 +33831,9 @@
33744
33831
  return !1;
33745
33832
  }
33746
33833
  };
33747
- DefaultCanvasGlyphPicker = __decorate$d([injectable(), __param$c(0, inject(GlyphRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
33834
+ DefaultCanvasGlyphPicker = __decorate$f([injectable(), __param$c(0, inject(GlyphRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
33748
33835
 
33749
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33836
+ var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33750
33837
  var d,
33751
33838
  c = arguments.length,
33752
33839
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33791,9 +33878,9 @@
33791
33878
  return this.canvasRenderer.drawShape(rect, pickContext, x, y, params, null, (context, arc3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked)), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33792
33879
  }
33793
33880
  };
33794
- DefaultCanvasRect3dPicker = __decorate$c([injectable(), __param$b(0, inject(Rect3DRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
33881
+ DefaultCanvasRect3dPicker = __decorate$e([injectable(), __param$b(0, inject(Rect3DRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
33795
33882
 
33796
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33883
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33797
33884
  var d,
33798
33885
  c = arguments.length,
33799
33886
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33838,9 +33925,9 @@
33838
33925
  return this.canvasRenderer.drawShape(pyramid3d, pickContext, x, y, {}, null, (context, pyramid3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked), (context, pyramid3dAttribute, themeAttribute) => !1), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33839
33926
  }
33840
33927
  };
33841
- DefaultCanvasPyramid3dPicker = __decorate$b([injectable(), __param$a(0, inject(Pyramid3dRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
33928
+ DefaultCanvasPyramid3dPicker = __decorate$d([injectable(), __param$a(0, inject(Pyramid3dRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
33842
33929
 
33843
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33930
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33844
33931
  var d,
33845
33932
  c = arguments.length,
33846
33933
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33885,13 +33972,13 @@
33885
33972
  return this.canvasRenderer.drawShape(arc3d, pickContext, x, y, params, null, (context, arc3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked)), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
33886
33973
  }
33887
33974
  };
33888
- DefaultCanvasArc3dPicker = __decorate$a([injectable(), __param$9(0, inject(Arc3dRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
33975
+ DefaultCanvasArc3dPicker = __decorate$c([injectable(), __param$9(0, inject(Arc3dRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
33889
33976
 
33890
33977
  var canvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
33891
33978
  bind(DefaultCanvasCirclePicker).toSelf().inSingletonScope(), bind(CanvasCirclePicker).toService(DefaultCanvasCirclePicker), bind(CanvasPickerContribution).toService(CanvasCirclePicker), bind(DefaultCanvasRectPicker).toSelf().inSingletonScope(), bind(CanvasRectPicker).toService(DefaultCanvasRectPicker), bind(CanvasPickerContribution).toService(CanvasRectPicker), bind(DefaultCanvasRect3dPicker).toSelf().inSingletonScope(), bind(CanvasRect3dPicker).toService(DefaultCanvasRect3dPicker), bind(CanvasPickerContribution).toService(CanvasRect3dPicker), bind(DefaultCanvasArcPicker).toSelf().inSingletonScope(), bind(CanvasArcPicker).toService(DefaultCanvasArcPicker), bind(CanvasPickerContribution).toService(CanvasArcPicker), bind(DefaultCanvasAreaPicker).toSelf().inSingletonScope(), bind(CanvasAreaPicker).toService(DefaultCanvasAreaPicker), bind(CanvasPickerContribution).toService(CanvasAreaPicker), bind(DefaultCanvasImagePicker).toSelf().inSingletonScope(), bind(CanvasImagePicker).toService(DefaultCanvasImagePicker), bind(CanvasPickerContribution).toService(CanvasImagePicker), bind(DefaultCanvasLinePicker).toSelf().inSingletonScope(), bind(CanvasLinePicker).toService(DefaultCanvasLinePicker), bind(CanvasPickerContribution).toService(CanvasLinePicker), bind(DefaultCanvasPathPicker).toSelf().inSingletonScope(), bind(CanvasPathPicker).toService(DefaultCanvasPathPicker), bind(CanvasPickerContribution).toService(CanvasPathPicker), bind(DefaultCanvasSymbolPicker).toSelf().inSingletonScope(), bind(CanvasSymbolPicker).toService(DefaultCanvasSymbolPicker), bind(CanvasPickerContribution).toService(CanvasSymbolPicker), bind(DefaultCanvasTextPicker).toSelf().inSingletonScope(), bind(CanvasTextPicker).toService(DefaultCanvasTextPicker), bind(CanvasPickerContribution).toService(CanvasTextPicker), bind(DefaultCanvasPolygonPicker).toSelf().inSingletonScope(), bind(CanvasPolygonPicker).toService(DefaultCanvasPolygonPicker), bind(CanvasPickerContribution).toService(CanvasPolygonPicker), bind(DefaultCanvasPyramid3dPicker).toSelf().inSingletonScope(), bind(CanvasPyramid3dPicker).toService(DefaultCanvasPyramid3dPicker), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker), bind(DefaultCanvasArc3dPicker).toSelf().inSingletonScope(), bind(CanvasArc3dPicker).toService(DefaultCanvasArc3dPicker), bind(CanvasPickerContribution).toService(CanvasArc3dPicker), bind(DefaultCanvasRichTextPicker).toSelf().inSingletonScope(), bind(CanvasRichTextPicker).toService(DefaultCanvasRichTextPicker), bind(CanvasPickerContribution).toService(CanvasRichTextPicker), bind(DefaultCanvasGlyphPicker).toSelf().inSingletonScope(), bind(CanvasGlyphPicker).toService(DefaultCanvasGlyphPicker), bind(CanvasPickerContribution).toService(CanvasGlyphPicker), bindContributionProvider(bind, CanvasPickerContribution);
33892
33979
  });
33893
33980
 
33894
- var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33981
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33895
33982
  var d,
33896
33983
  c = arguments.length,
33897
33984
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33934,9 +34021,9 @@
33934
34021
  }), pickContext.highPerformanceRestore(), picked;
33935
34022
  }
33936
34023
  };
33937
- DefaultMathPathPicker = __decorate$9([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultMathPathPicker);
34024
+ DefaultMathPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultMathPathPicker);
33938
34025
 
33939
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34026
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33940
34027
  var d,
33941
34028
  c = arguments.length,
33942
34029
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -33979,9 +34066,9 @@
33979
34066
  }), pickContext.highPerformanceRestore(), picked;
33980
34067
  }
33981
34068
  };
33982
- DefaultMathCirclePicker = __decorate$8([injectable(), __param$7(0, inject(CircleRender)), __metadata$7("design:paramtypes", [Object])], DefaultMathCirclePicker);
34069
+ DefaultMathCirclePicker = __decorate$a([injectable(), __param$7(0, inject(CircleRender)), __metadata$7("design:paramtypes", [Object])], DefaultMathCirclePicker);
33983
34070
 
33984
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34071
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33985
34072
  var d,
33986
34073
  c = arguments.length,
33987
34074
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34041,9 +34128,9 @@
34041
34128
  return pickContext.highPerformanceRestore(), picked;
34042
34129
  }
34043
34130
  };
34044
- DefaultMathRectPicker = __decorate$7([injectable(), __param$6(0, inject(RectRender)), __metadata$6("design:paramtypes", [Object])], DefaultMathRectPicker);
34131
+ DefaultMathRectPicker = __decorate$9([injectable(), __param$6(0, inject(RectRender)), __metadata$6("design:paramtypes", [Object])], DefaultMathRectPicker);
34045
34132
 
34046
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34133
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34047
34134
  var d,
34048
34135
  c = arguments.length,
34049
34136
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34087,9 +34174,9 @@
34087
34174
  }), pickContext.highPerformanceRestore(), picked;
34088
34175
  }
34089
34176
  };
34090
- DefaultMathArcPicker = __decorate$6([injectable(), __param$5(0, inject(ArcRender)), __metadata$5("design:paramtypes", [Object])], DefaultMathArcPicker);
34177
+ DefaultMathArcPicker = __decorate$8([injectable(), __param$5(0, inject(ArcRender)), __metadata$5("design:paramtypes", [Object])], DefaultMathArcPicker);
34091
34178
 
34092
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34179
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34093
34180
  var d,
34094
34181
  c = arguments.length,
34095
34182
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34128,9 +34215,9 @@
34128
34215
  return this.canvasRenderer.drawShape(area, pickContext, x, y, {}, null, context => !!picked || (picked = context.isPointInPath(point.x, point.y), picked)), pickContext.highPerformanceRestore(), picked;
34129
34216
  }
34130
34217
  };
34131
- DefaultMathAreaPicker = __decorate$5([injectable(), __param$4(0, inject(AreaRender)), __metadata$4("design:paramtypes", [Object])], DefaultMathAreaPicker);
34218
+ DefaultMathAreaPicker = __decorate$7([injectable(), __param$4(0, inject(AreaRender)), __metadata$4("design:paramtypes", [Object])], DefaultMathAreaPicker);
34132
34219
 
34133
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34220
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34134
34221
  var d,
34135
34222
  c = arguments.length,
34136
34223
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34173,9 +34260,9 @@
34173
34260
  }), pickContext.highPerformanceRestore(), picked;
34174
34261
  }
34175
34262
  };
34176
- DefaultMathLinePicker = __decorate$4([injectable(), __param$3(0, inject(LineRender)), __metadata$3("design:paramtypes", [Object])], DefaultMathLinePicker);
34263
+ DefaultMathLinePicker = __decorate$6([injectable(), __param$3(0, inject(LineRender)), __metadata$3("design:paramtypes", [Object])], DefaultMathLinePicker);
34177
34264
 
34178
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34265
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34179
34266
  var d,
34180
34267
  c = arguments.length,
34181
34268
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34218,9 +34305,9 @@
34218
34305
  }), pickContext.highPerformanceRestore(), picked;
34219
34306
  }
34220
34307
  };
34221
- DefaultMathSymbolPicker = __decorate$3([injectable(), __param$2(0, inject(SymbolRender)), __metadata$2("design:paramtypes", [Object])], DefaultMathSymbolPicker);
34308
+ DefaultMathSymbolPicker = __decorate$5([injectable(), __param$2(0, inject(SymbolRender)), __metadata$2("design:paramtypes", [Object])], DefaultMathSymbolPicker);
34222
34309
 
34223
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34310
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34224
34311
  var d,
34225
34312
  c = arguments.length,
34226
34313
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34235,9 +34322,9 @@
34235
34322
  return !!text.AABBBounds.containsPoint(point);
34236
34323
  }
34237
34324
  };
34238
- DefaultMathTextPicker = __decorate$2([injectable()], DefaultMathTextPicker);
34325
+ DefaultMathTextPicker = __decorate$4([injectable()], DefaultMathTextPicker);
34239
34326
 
34240
- var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34327
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34241
34328
  var d,
34242
34329
  c = arguments.length,
34243
34330
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34279,9 +34366,9 @@
34279
34366
  }), pickContext.highPerformanceRestore(), picked;
34280
34367
  }
34281
34368
  };
34282
- DefaultMathPolygonPicker = __decorate$1([injectable(), __param$1(0, inject(PolygonRender)), __metadata$1("design:paramtypes", [Object])], DefaultMathPolygonPicker);
34369
+ DefaultMathPolygonPicker = __decorate$3([injectable(), __param$1(0, inject(PolygonRender)), __metadata$1("design:paramtypes", [Object])], DefaultMathPolygonPicker);
34283
34370
 
34284
- var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34371
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
34285
34372
  var d,
34286
34373
  c = arguments.length,
34287
34374
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -34317,7 +34404,7 @@
34317
34404
  return !1;
34318
34405
  }
34319
34406
  };
34320
- DefaultMathGlyphPicker = __decorate([injectable(), __param(0, inject(GlyphRender)), __metadata("design:paramtypes", [Object])], DefaultMathGlyphPicker);
34407
+ DefaultMathGlyphPicker = __decorate$2([injectable(), __param(0, inject(GlyphRender)), __metadata("design:paramtypes", [Object])], DefaultMathGlyphPicker);
34321
34408
 
34322
34409
  var mathPickModule = new ContainerModule(bind => {
34323
34410
  bind(DefaultMathCirclePicker).toSelf().inSingletonScope(), bind(MathCirclePicker).toService(DefaultMathCirclePicker), bind(MathPickerContribution).toService(MathCirclePicker), bind(DefaultMathRectPicker).toSelf().inSingletonScope(), bind(MathRectPicker).toService(DefaultMathRectPicker), bind(MathPickerContribution).toService(MathRectPicker), bind(DefaultMathArcPicker).toSelf().inSingletonScope(), bind(MathArcPicker).toService(DefaultMathArcPicker), bind(MathPickerContribution).toService(MathArcPicker), bind(DefaultMathAreaPicker).toSelf().inSingletonScope(), bind(MathAreaPicker).toService(DefaultMathAreaPicker), bind(MathPickerContribution).toService(MathAreaPicker), bind(DefaultMathLinePicker).toSelf().inSingletonScope(), bind(MathLinePicker).toService(DefaultMathLinePicker), bind(MathPickerContribution).toService(MathLinePicker), bind(DefaultMathPathPicker).toSelf().inSingletonScope(), bind(MathPathPicker).toService(DefaultMathPathPicker), bind(MathPickerContribution).toService(MathPathPicker), bind(DefaultMathSymbolPicker).toSelf().inSingletonScope(), bind(MathSymbolPicker).toService(DefaultMathSymbolPicker), bind(MathPickerContribution).toService(MathSymbolPicker), bind(DefaultMathTextPicker).toSelf().inSingletonScope(), bind(MathTextPicker).toService(DefaultMathTextPicker), bind(MathPickerContribution).toService(MathTextPicker), bind(DefaultMathPolygonPicker).toSelf().inSingletonScope(), bind(MathPolygonPicker).toService(DefaultMathPolygonPicker), bind(MathPickerContribution).toService(MathPolygonPicker), bind(DefaultMathGlyphPicker).toSelf().inSingletonScope(), bind(MathGlyphPicker).toService(DefaultMathGlyphPicker), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker), bindContributionProvider(bind, MathPickerContribution);
@@ -34606,7 +34693,7 @@
34606
34693
  return this.viewBox.height();
34607
34694
  }
34608
34695
  }
34609
- })), params.autoRender && this.enableAutoRender(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this.ticker = params.ticker || defaultTicker, !1 !== params.interactiveLayer && this.initInteractiveLayer();
34696
+ })), params.autoRender && this.enableAutoRender(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this.ticker = params.ticker || defaultTicker, this.supportInteractiveLayer = !1 !== params.interactiveLayer;
34610
34697
  }
34611
34698
  get3dOptions(options) {
34612
34699
  const {
@@ -34742,8 +34829,8 @@
34742
34829
  removeLayer(ILayerId) {
34743
34830
  return this.removeChild(this.findChildByUid(ILayerId));
34744
34831
  }
34745
- initInteractiveLayer() {
34746
- this.interactiveLayer = this.createLayer(), this.interactiveLayer.name = "_builtin_interactive";
34832
+ tryInitInteractiveLayer() {
34833
+ this.supportInteractiveLayer && !this.interactiveLayer && (this.interactiveLayer = this.createLayer(), this.interactiveLayer.name = "_builtin_interactive");
34747
34834
  }
34748
34835
  clearViewBox(color) {
34749
34836
  this.window.clearViewBox(this._viewBox, color);
@@ -35995,7 +36082,7 @@
35995
36082
  }(LayoutState || (LayoutState = {}));
35996
36083
  var HOOK_EVENT;
35997
36084
  !function (HOOK_EVENT) {
35998
- HOOK_EVENT.BEFORE_PARSE_VIEW = "beforeParseView", HOOK_EVENT.AFTER_PARSE_VIEW = "afterParseView", HOOK_EVENT.BEFORE_TRANSFORM = "beforeTransform", HOOK_EVENT.AFTER_TRANSFORM = "afterTransform", HOOK_EVENT.BEFORE_CREATE_VRENDER_STAGE = "beforeCreateVRenderStage", HOOK_EVENT.AFTER_CREATE_VRENDER_STAGE = "afterCreateVRenderStage", HOOK_EVENT.BEFORE_CREATE_VRENDER_LAYER = "beforeCreateVRenderLayer", HOOK_EVENT.AFTER_CREATE_VRENDER_LAYER = "afterCreateVRenderLayer", HOOK_EVENT.BEFORE_VRENDER_DRAW = "beforeVRenderDraw", HOOK_EVENT.AFTER_VRENDER_DRAW = "afterVRenderDraw", HOOK_EVENT.BEFORE_MARK_JOIN = "beforeMarkJoin", HOOK_EVENT.AFTER_MARK_JOIN = "afterMarkJoin", HOOK_EVENT.BEFORE_MARK_UPDATE = "beforeMarkUpdate", HOOK_EVENT.AFTER_MARK_UPDATE = "afterMarkUpdate", HOOK_EVENT.BEFORE_MARK_STATE = "beforeMarkState", HOOK_EVENT.AFTER_MARK_STATE = "afterMarkState", HOOK_EVENT.BEFORE_MARK_ENCODE = "beforeMarkEncode", HOOK_EVENT.AFTER_MARK_ENCODE = "afterMarkEncode", HOOK_EVENT.BEFORE_DO_LAYOUT = "beforeDoLayout", HOOK_EVENT.AFTER_DO_LAYOUT = "afterDoLayout", HOOK_EVENT.BEFORE_MARK_LAYOUT_END = "beforeMarkLayoutEnd", HOOK_EVENT.AFTER_MARK_LAYOUT_END = "afterMarkLayoutEnd", HOOK_EVENT.BEFORE_DO_RENDER = "beforeDoRender", HOOK_EVENT.AFTER_DO_RENDER = "afterDoRender", HOOK_EVENT.BEFORE_MARK_RENDER_END = "beforeMarkRenderEnd", HOOK_EVENT.AFTER_MARK_RENDER_END = "afterMarkRenderEnd", HOOK_EVENT.BEFORE_CREATE_VRENDER_MARK = "beforeCreateVRenderMark", HOOK_EVENT.AFTER_CREATE_VRENDER_MARK = "afterCreateVRenderMark", HOOK_EVENT.BEFORE_ADD_VRENDER_MARK = "beforeAddVRenderMark", HOOK_EVENT.AFTER_ADD_VRENDER_MARK = "afterAddVRenderMark", HOOK_EVENT.AFTER_VRENDER_NEXT_RENDER = "afterVRenderNextRender", HOOK_EVENT.BEFORE_ELEMENT_UPDATE_DATA = "beforeElementUpdateData", HOOK_EVENT.AFTER_ELEMENT_UPDATE_DATA = "afterElementUpdateData", HOOK_EVENT.BEFORE_ELEMENT_STATE = "beforeElementState", HOOK_EVENT.AFTER_ELEMENT_STATE = "afterElementState", HOOK_EVENT.BEFORE_ELEMENT_ENCODE = "beforeElementEncode", HOOK_EVENT.AFTER_ELEMENT_ENCODE = "afterElementEncode", HOOK_EVENT.ANIMATION_START = "animationStart", HOOK_EVENT.ANIMATION_END = "animationEnd", HOOK_EVENT.ELEMENT_ANIMATION_START = "elementAnimationStart", HOOK_EVENT.ELEMENT_ANIMATION_END = "elementAnimationEnd";
36085
+ HOOK_EVENT.BEFORE_PARSE_VIEW = "beforeParseView", HOOK_EVENT.AFTER_PARSE_VIEW = "afterParseView", HOOK_EVENT.BEFORE_TRANSFORM = "beforeTransform", HOOK_EVENT.AFTER_TRANSFORM = "afterTransform", HOOK_EVENT.BEFORE_CREATE_VRENDER_STAGE = "beforeCreateVRenderStage", HOOK_EVENT.AFTER_CREATE_VRENDER_STAGE = "afterCreateVRenderStage", HOOK_EVENT.BEFORE_CREATE_VRENDER_LAYER = "beforeCreateVRenderLayer", HOOK_EVENT.AFTER_CREATE_VRENDER_LAYER = "afterCreateVRenderLayer", HOOK_EVENT.BEFORE_VRENDER_DRAW = "beforeVRenderDraw", HOOK_EVENT.AFTER_VRENDER_DRAW = "afterVRenderDraw", HOOK_EVENT.BEFORE_MARK_JOIN = "beforeMarkJoin", HOOK_EVENT.AFTER_MARK_JOIN = "afterMarkJoin", HOOK_EVENT.BEFORE_MARK_UPDATE = "beforeMarkUpdate", HOOK_EVENT.AFTER_MARK_UPDATE = "afterMarkUpdate", HOOK_EVENT.BEFORE_MARK_STATE = "beforeMarkState", HOOK_EVENT.AFTER_MARK_STATE = "afterMarkState", HOOK_EVENT.BEFORE_MARK_ENCODE = "beforeMarkEncode", HOOK_EVENT.AFTER_MARK_ENCODE = "afterMarkEncode", HOOK_EVENT.BEFORE_DO_LAYOUT = "beforeDoLayout", HOOK_EVENT.AFTER_DO_LAYOUT = "afterDoLayout", HOOK_EVENT.BEFORE_MARK_LAYOUT_END = "beforeMarkLayoutEnd", HOOK_EVENT.AFTER_MARK_LAYOUT_END = "afterMarkLayoutEnd", HOOK_EVENT.BEFORE_DO_RENDER = "beforeDoRender", HOOK_EVENT.AFTER_DO_RENDER = "afterDoRender", HOOK_EVENT.BEFORE_MARK_RENDER_END = "beforeMarkRenderEnd", HOOK_EVENT.AFTER_MARK_RENDER_END = "afterMarkRenderEnd", HOOK_EVENT.BEFORE_CREATE_VRENDER_MARK = "beforeCreateVRenderMark", HOOK_EVENT.AFTER_CREATE_VRENDER_MARK = "afterCreateVRenderMark", HOOK_EVENT.BEFORE_ADD_VRENDER_MARK = "beforeAddVRenderMark", HOOK_EVENT.AFTER_ADD_VRENDER_MARK = "afterAddVRenderMark", HOOK_EVENT.AFTER_VRENDER_NEXT_RENDER = "afterVRenderNextRender", HOOK_EVENT.BEFORE_ELEMENT_UPDATE_DATA = "beforeElementUpdateData", HOOK_EVENT.AFTER_ELEMENT_UPDATE_DATA = "afterElementUpdateData", HOOK_EVENT.BEFORE_ELEMENT_STATE = "beforeElementState", HOOK_EVENT.AFTER_ELEMENT_STATE = "afterElementState", HOOK_EVENT.BEFORE_ELEMENT_ENCODE = "beforeElementEncode", HOOK_EVENT.AFTER_ELEMENT_ENCODE = "afterElementEncode", HOOK_EVENT.ANIMATION_START = "animationStart", HOOK_EVENT.ANIMATION_END = "animationEnd", HOOK_EVENT.ELEMENT_ANIMATION_START = "elementAnimationStart", HOOK_EVENT.ELEMENT_ANIMATION_END = "elementAnimationEnd", HOOK_EVENT.ALL_ANIMATION_START = "allAnimationStart", HOOK_EVENT.ALL_ANIMATION_END = "allAnimationEnd";
35999
36086
  }(HOOK_EVENT || (HOOK_EVENT = {}));
36000
36087
  var GrammarTypeEnum;
36001
36088
  !function (GrammarTypeEnum) {
@@ -38831,6 +38918,12 @@
38831
38918
  recordEnd() {
38832
38919
  return this;
38833
38920
  }
38921
+ isAnimating() {
38922
+ let isAnimating = !1;
38923
+ return this.animators.forEach(animators => {
38924
+ isAnimating = isAnimating || animators.some(animator => animator.isAnimating);
38925
+ }), isAnimating;
38926
+ }
38834
38927
  isElementAnimating(element) {
38835
38928
  var _a;
38836
38929
  const stateAnimationCounts = null === (_a = this.elementRecorder.get(element)) || void 0 === _a ? void 0 : _a.count;
@@ -38888,7 +38981,7 @@
38888
38981
  },
38889
38982
  mergedParameters = Object.assign({
38890
38983
  [DefaultAnimationParameters]: animationParameters
38891
- }, animationParameters),
38984
+ }, parameters),
38892
38985
  animationUnit = this.getAnimationUnit(config.timeline, element, index, animatedElements.length, parameters);
38893
38986
  animators.push(this.animateElement(config, animationUnit, element, animationParameters, mergedParameters));
38894
38987
  })), animators;
@@ -39600,7 +39693,7 @@
39600
39693
  if (this.renderContext = this.parseRenderContext(data, parameters), this.init(stage, parameters), this.renderContext.progressive) this.differ.reset(), this.elementMap.clear(), this.evaluateProgressive();else {
39601
39694
  const transformData = this.evaluateTransformSync(this._getTransformsBeforeJoin(), null != data ? data : DefaultMarkData, parameters);
39602
39695
  let inputData = transformData;
39603
- transformData.progressive && (this.renderContext.parameters = parameters, this.renderContext.beforeTransformProgressive = transformData.progressive, inputData = transformData.progressive.output()), this.emit(HOOK_EVENT.BEFORE_MARK_JOIN), this.evaluateJoin(inputData), this.emit(HOOK_EVENT.AFTER_MARK_JOIN), this.emit(HOOK_EVENT.BEFORE_MARK_STATE), this.evaluateState(this.elements, this.spec.state, parameters), this.emit(HOOK_EVENT.AFTER_MARK_STATE), this.emit(HOOK_EVENT.BEFORE_MARK_ENCODE), this.evaluateEncode(this.elements, this._getEncoders(), parameters), this.emit(HOOK_EVENT.AFTER_MARK_ENCODE);
39696
+ (null == transformData ? void 0 : transformData.progressive) && (this.renderContext.parameters = parameters, this.renderContext.beforeTransformProgressive = transformData.progressive, inputData = transformData.progressive.output()), this.emit(HOOK_EVENT.BEFORE_MARK_JOIN), this.evaluateJoin(inputData), this.emit(HOOK_EVENT.AFTER_MARK_JOIN), this.emit(HOOK_EVENT.BEFORE_MARK_STATE), this.evaluateState(this.elements, this.spec.state, parameters), this.emit(HOOK_EVENT.AFTER_MARK_STATE), this.emit(HOOK_EVENT.BEFORE_MARK_ENCODE), this.evaluateEncode(this.elements, this._getEncoders(), parameters), this.emit(HOOK_EVENT.AFTER_MARK_ENCODE);
39604
39697
  }
39605
39698
  return this.emit(HOOK_EVENT.BEFORE_MARK_UPDATE), this.update(this.spec), this.emit(HOOK_EVENT.AFTER_MARK_UPDATE), this;
39606
39699
  }
@@ -40408,7 +40501,7 @@
40408
40501
  };
40409
40502
  }
40410
40503
 
40411
- var __rest$5 = undefined && undefined.__rest || function (s, e) {
40504
+ var __rest$6 = undefined && undefined.__rest || function (s, e) {
40412
40505
  var t = {};
40413
40506
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40414
40507
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -40449,7 +40542,7 @@
40449
40542
  const {
40450
40543
  visible: shapeVisible
40451
40544
  } = shape,
40452
- shapeStyle = __rest$5(shape, ["visible"]);
40545
+ shapeStyle = __rest$6(shape, ["visible"]);
40453
40546
  if (isBoolean(shapeVisible)) {
40454
40547
  const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
40455
40548
  maxSize = isNumber(size) ? size : Math.max(size[0], size[1]);
@@ -40493,7 +40586,7 @@
40493
40586
  const {
40494
40587
  visible: bgVisible
40495
40588
  } = panel,
40496
- backgroundStyle = __rest$5(panel, ["visible"]);
40589
+ backgroundStyle = __rest$6(panel, ["visible"]);
40497
40590
  if (visible && isBoolean(bgVisible)) {
40498
40591
  const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
40499
40592
  visible: bgVisible && !!text,
@@ -40521,6 +40614,392 @@
40521
40614
  }
40522
40615
  };
40523
40616
 
40617
+ var __rest$5 = undefined && undefined.__rest || function (s, e) {
40618
+ var t = {};
40619
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40620
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
40621
+ var i = 0;
40622
+ for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
40623
+ }
40624
+ return t;
40625
+ };
40626
+ class PopTip extends AbstractComponent {
40627
+ constructor(attributes) {
40628
+ super(merge$2({}, PopTip.defaultAttributes, attributes)), this.name = "poptip", this.positionList = ["top", "tl", "tr", "bottom", "bl", "br", "left", "lt", "lb", "right", "rt", "rb"];
40629
+ }
40630
+ render() {
40631
+ var _a, _b, _c, _d, _e;
40632
+ const {
40633
+ title = "",
40634
+ titleStyle = {},
40635
+ position: position,
40636
+ content = "",
40637
+ contentStyle = {},
40638
+ panel = {},
40639
+ space = 4,
40640
+ minWidth = 0,
40641
+ maxWidth = 1 / 0,
40642
+ padding = 4,
40643
+ visible: visible,
40644
+ state: state,
40645
+ dx = 0,
40646
+ dy = 0
40647
+ } = this.attribute,
40648
+ parsedPadding = normalizePadding$1(padding),
40649
+ group = this.createOrUpdateChild("poptip-content", {
40650
+ x: 0,
40651
+ y: 0,
40652
+ zIndex: 1
40653
+ }, "group"),
40654
+ maxLineWidth = maxWidth - parsedPadding[1] - parsedPadding[3],
40655
+ titleVisible = isValid(title) && !1 !== visible,
40656
+ titleAttrs = Object.assign(Object.assign({
40657
+ text: title,
40658
+ visible: titleVisible
40659
+ }, titleStyle), {
40660
+ x: parsedPadding[3],
40661
+ y: parsedPadding[0],
40662
+ maxLineWidth: maxLineWidth,
40663
+ textAlign: "left",
40664
+ textBaseline: "top"
40665
+ }),
40666
+ titleShape = group.createOrUpdateChild("poptip-title", titleAttrs, "text");
40667
+ isEmpty(null == state ? void 0 : state.title) || (titleShape.states = state.title);
40668
+ const titleBounds = titleShape.AABBBounds,
40669
+ titleHeight = titleBounds.height(),
40670
+ titleWidth = titleBounds.width();
40671
+ let height = titleHeight + space;
40672
+ titleVisible || (height = 0);
40673
+ const contentVisible = isValid(content) && !1 !== visible,
40674
+ contentAttrs = Object.assign(Object.assign({
40675
+ text: content,
40676
+ visible: contentVisible
40677
+ }, contentStyle), {
40678
+ x: parsedPadding[3],
40679
+ y: parsedPadding[0] + height,
40680
+ maxLineWidth: maxLineWidth,
40681
+ textAlign: "left",
40682
+ textBaseline: "top"
40683
+ }),
40684
+ contentShape = group.createOrUpdateChild("poptip-content", contentAttrs, "text");
40685
+ isEmpty(null == state ? void 0 : state.content) || (contentShape.states = state.content);
40686
+ const contentBounds = contentShape.AABBBounds,
40687
+ contentHeight = contentBounds.height(),
40688
+ contentWidth = contentBounds.width();
40689
+ contentVisible && (height += contentHeight);
40690
+ let popTipWidth = max$3(titleWidth + parsedPadding[1] + parsedPadding[3], contentWidth + parsedPadding[1] + parsedPadding[3]);
40691
+ popTipWidth > maxWidth ? popTipWidth = maxWidth : popTipWidth < minWidth && (popTipWidth = minWidth);
40692
+ const poptipHeight = parsedPadding[0] + parsedPadding[2] + height,
40693
+ {
40694
+ visible: bgVisible
40695
+ } = panel,
40696
+ backgroundStyle = __rest$5(panel, ["visible"]),
40697
+ symbolSize = null !== (_a = backgroundStyle.size) && void 0 !== _a ? _a : 12,
40698
+ spaceSize = isArray$3(symbolSize) ? [symbolSize[0] + (null !== (_b = backgroundStyle.space) && void 0 !== _b ? _b : 0), symbolSize[1] + (null !== (_c = backgroundStyle.space) && void 0 !== _c ? _c : 0)] : symbolSize + (null !== (_d = backgroundStyle.space) && void 0 !== _d ? _d : 0),
40699
+ lineWidth = null !== (_e = backgroundStyle.lineWidth) && void 0 !== _e ? _e : 1,
40700
+ range = this.stage ? [this.stage.width, this.stage.height] : void 0,
40701
+ layout = "auto" === position;
40702
+ let minifyBBoxI,
40703
+ minifyBBoxSize = 1 / 0;
40704
+ for (let i = 0; i < this.positionList.length + 1; i++) {
40705
+ const p = layout ? this.positionList[i === this.positionList.length ? minifyBBoxI : i] : position,
40706
+ {
40707
+ angle: angle,
40708
+ offset: offset,
40709
+ rectOffset: rectOffset
40710
+ } = this.getAngleAndOffset(p, popTipWidth, poptipHeight, isArray$3(spaceSize) ? spaceSize : [spaceSize, spaceSize - lineWidth]);
40711
+ if (isBoolean(bgVisible)) {
40712
+ const offsetX = (isArray$3(symbolSize) ? symbolSize[0] : symbolSize) / 4,
40713
+ bgSymbol = group.createOrUpdateChild("poptip-symbol-panel", Object.assign(Object.assign({}, backgroundStyle), {
40714
+ visible: bgVisible && (contentVisible || titleVisible),
40715
+ x: offsetX,
40716
+ y: 0,
40717
+ strokeBoundsBuffer: -1,
40718
+ boundsPadding: -2,
40719
+ anchor: [0, 0],
40720
+ symbolType: "arrow2Left",
40721
+ angle: angle,
40722
+ dx: offset[0],
40723
+ dy: offset[1],
40724
+ size: symbolSize,
40725
+ zIndex: -9
40726
+ }), "symbol");
40727
+ isEmpty(null == state ? void 0 : state.panel) || (bgSymbol.states = state.panel);
40728
+ const bgRect = group.createOrUpdateChild("poptip-rect-panel", Object.assign(Object.assign({}, backgroundStyle), {
40729
+ visible: bgVisible && (contentVisible || titleVisible),
40730
+ x: 0,
40731
+ y: 0,
40732
+ width: popTipWidth,
40733
+ height: poptipHeight,
40734
+ zIndex: -8
40735
+ }), "rect");
40736
+ isEmpty(null == state ? void 0 : state.panel) || (bgRect.states = state.panel);
40737
+ }
40738
+ if (group.setAttributes({
40739
+ x: -offset[0] + dx,
40740
+ y: -offset[1] + dy
40741
+ }), !layout || !range) break;
40742
+ {
40743
+ const b = this.AABBBounds,
40744
+ stageBounds = new Bounds().setValue(0, 0, range[0], range[1]);
40745
+ if (rectInsideAnotherRect(b, stageBounds, !1)) break;
40746
+ {
40747
+ const bbox = getRectIntersect(b, stageBounds, !1),
40748
+ size = (bbox.x2 - bbox.x1) * (bbox.y2 - bbox.y1);
40749
+ size < minifyBBoxSize && (minifyBBoxSize = size, minifyBBoxI = i);
40750
+ }
40751
+ }
40752
+ }
40753
+ }
40754
+ getAngleAndOffset(position, width, height, size) {
40755
+ const sizeH = size[1] / 2;
40756
+ switch (position) {
40757
+ case "tl":
40758
+ return {
40759
+ angle: pi$1 / 2 * 3,
40760
+ offset: [width / 4, height + sizeH],
40761
+ rectOffset: [-width / 4, -height - size[1]]
40762
+ };
40763
+ case "top":
40764
+ return {
40765
+ angle: pi$1 / 2 * 3,
40766
+ offset: [width / 2, height + sizeH],
40767
+ rectOffset: [0, -height - size[1]]
40768
+ };
40769
+ case "tr":
40770
+ return {
40771
+ angle: pi$1 / 2 * 3,
40772
+ offset: [width / 4 * 3, height + sizeH],
40773
+ rectOffset: [width / 4 * 3, -height - size[1]]
40774
+ };
40775
+ case "rt":
40776
+ return {
40777
+ angle: 0,
40778
+ offset: [-sizeH, height / 5],
40779
+ rectOffset: [width / 4 * 3, -height - size[1]]
40780
+ };
40781
+ case "right":
40782
+ return {
40783
+ angle: 0,
40784
+ offset: [-sizeH, height / 2],
40785
+ rectOffset: [width / 4 * 3, -height - size[1]]
40786
+ };
40787
+ case "rb":
40788
+ return {
40789
+ angle: 0,
40790
+ offset: [-sizeH, height / 5 * 4],
40791
+ rectOffset: [width / 4 * 3, -height - size[1]]
40792
+ };
40793
+ case "bl":
40794
+ return {
40795
+ angle: pi$1 / 2,
40796
+ offset: [width / 4, -sizeH],
40797
+ rectOffset: [-width / 4, -height - size[1]]
40798
+ };
40799
+ case "bottom":
40800
+ return {
40801
+ angle: pi$1 / 2,
40802
+ offset: [width / 2, -sizeH],
40803
+ rectOffset: [0, -height - size[1]]
40804
+ };
40805
+ case "br":
40806
+ return {
40807
+ angle: pi$1 / 2,
40808
+ offset: [width / 4 * 3, -sizeH],
40809
+ rectOffset: [width / 4 * 3, -height - size[1]]
40810
+ };
40811
+ case "lt":
40812
+ return {
40813
+ angle: pi$1,
40814
+ offset: [width + sizeH, height / 5],
40815
+ rectOffset: [-width / 4, -height - size[1]]
40816
+ };
40817
+ case "left":
40818
+ return {
40819
+ angle: pi$1,
40820
+ offset: [width + sizeH, height / 2],
40821
+ rectOffset: [0, -height - size[1]]
40822
+ };
40823
+ case "lb":
40824
+ return {
40825
+ angle: pi$1,
40826
+ offset: [width + sizeH, height / 5 * 4],
40827
+ rectOffset: [width / 4 * 3, -height - size[1]]
40828
+ };
40829
+ }
40830
+ }
40831
+ }
40832
+ PopTip.defaultAttributes = {
40833
+ position: "rt",
40834
+ visible: !0,
40835
+ title: null,
40836
+ content: null,
40837
+ titleStyle: {
40838
+ fontSize: 12,
40839
+ fill: "#000",
40840
+ textAlign: "left",
40841
+ textBaseline: "top"
40842
+ },
40843
+ contentStyle: {
40844
+ fontSize: 12,
40845
+ fill: "#000",
40846
+ textAlign: "left",
40847
+ textBaseline: "top"
40848
+ },
40849
+ space: 8,
40850
+ padding: 10
40851
+ };
40852
+
40853
+ const DEFAULT_THEME = {
40854
+ visible: !0,
40855
+ position: "auto",
40856
+ titleStyle: {
40857
+ fontSize: 16,
40858
+ fill: "#08979c"
40859
+ },
40860
+ contentStyle: {
40861
+ fontSize: 12,
40862
+ fill: "green"
40863
+ },
40864
+ panel: {
40865
+ visible: !0,
40866
+ fill: "#e6fffb",
40867
+ size: 12,
40868
+ space: 0,
40869
+ stroke: "#87e8de",
40870
+ lineWidth: 1,
40871
+ cornerRadius: 4
40872
+ }
40873
+ };
40874
+ const theme = {
40875
+ poptip: merge$2({}, DEFAULT_THEME)
40876
+ };
40877
+
40878
+ var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
40879
+ var d,
40880
+ c = arguments.length,
40881
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
40882
+ if ("object" == 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);
40883
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
40884
+ };
40885
+ function wrapPoptip(target, source) {
40886
+ return merge$2(target, theme.poptip, source), target;
40887
+ }
40888
+ let PopTipRenderContribution = class {
40889
+ render(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
40890
+ var _a;
40891
+ if (1 === graphic._showPoptip) {
40892
+ const {
40893
+ visible: visible,
40894
+ visibleCb: visibleCb
40895
+ } = graphic.attribute.poptip || {};
40896
+ if (!1 === visible || visibleCb && !1 === visibleCb(graphic)) return;
40897
+ this.poptipComponent || (this.poptipComponent = new PopTip(graphic.attribute.poptip));
40898
+ let poptip = graphic.attribute.poptip || {};
40899
+ if ("text" === graphic.type && null == poptip.title && null == poptip.content) {
40900
+ const out = {};
40901
+ wrapPoptip(out, poptip), poptip = out, poptip.content = null !== (_a = poptip.content) && void 0 !== _a ? _a : graphic.attribute.text;
40902
+ }
40903
+ const matrix = graphic.globalTransMatrix;
40904
+ this.poptipComponent.setAttributes(Object.assign(Object.assign({
40905
+ visibleAll: !0,
40906
+ pickable: !1,
40907
+ childrenPickable: !1
40908
+ }, poptip), {
40909
+ x: matrix.e,
40910
+ y: matrix.f
40911
+ })), drawContext.stage.tryInitInteractiveLayer();
40912
+ const interactiveLayer = drawContext.stage.getLayer("_builtin_interactive");
40913
+ interactiveLayer && interactiveLayer.add(this.poptipComponent);
40914
+ } else 2 === graphic._showPoptip && (graphic._showPoptip = 0, this.poptipComponent && this.poptipComponent.setAttributes({
40915
+ visibleAll: !1
40916
+ }));
40917
+ }
40918
+ };
40919
+ PopTipRenderContribution = __decorate$1([injectable()], PopTipRenderContribution);
40920
+
40921
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
40922
+ var d,
40923
+ c = arguments.length,
40924
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
40925
+ if ("object" == 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);
40926
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
40927
+ };
40928
+ let PopTipPlugin = class {
40929
+ constructor() {
40930
+ this.name = "poptip", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.poptip = e => {
40931
+ const graphic = e.target;
40932
+ if (graphic.isContainer || !graphic.attribute) return void this.unpoptip(e);
40933
+ if (graphic === this.activeGraphic) return;
40934
+ const {
40935
+ poptip: poptip
40936
+ } = graphic.attribute;
40937
+ poptip && (graphic.setAttributes({}), graphic._showPoptip = 1), this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2), this.setActiveGraphic(graphic, !0);
40938
+ }, this.unpoptip = e => {
40939
+ this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2, this.setActiveGraphic(null, !0));
40940
+ };
40941
+ }
40942
+ activate(context) {
40943
+ this.pluginService = context;
40944
+ const {
40945
+ stage: stage
40946
+ } = this.pluginService;
40947
+ stage.addEventListener("pointerover", this.poptip);
40948
+ }
40949
+ setActiveGraphic(graphic, rerender) {
40950
+ this.activeGraphic = graphic, this.pluginService.stage.renderNextFrame();
40951
+ }
40952
+ deactivate(context) {
40953
+ const {
40954
+ stage: stage
40955
+ } = this.pluginService;
40956
+ stage.removeEventListener("pointerover", this.poptip);
40957
+ }
40958
+ };
40959
+ PopTipPlugin = __decorate([injectable()], PopTipPlugin);
40960
+ let PopTipForClipedTextPlugin = class {
40961
+ constructor() {
40962
+ this.name = "poptipForText", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.poptip = e => {
40963
+ const graphic = e.target;
40964
+ if ("text" !== graphic.type || !graphic.cliped || graphic.isContainer || !graphic.attribute) return void this.unpoptip(e);
40965
+ if (graphic === this.activeGraphic) return;
40966
+ const {
40967
+ poptip = {}
40968
+ } = graphic.attribute;
40969
+ poptip && (graphic.setAttributes({}), graphic._showPoptip = 1), this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2), this.setActiveGraphic(graphic, !0);
40970
+ }, this.unpoptip = e => {
40971
+ this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2, this.setActiveGraphic(null, !0));
40972
+ };
40973
+ }
40974
+ activate(context) {
40975
+ this.pluginService = context;
40976
+ const {
40977
+ stage: stage
40978
+ } = this.pluginService;
40979
+ stage.addEventListener("pointerover", this.poptip);
40980
+ }
40981
+ setActiveGraphic(graphic, rerender) {
40982
+ this.activeGraphic = graphic, this.pluginService.stage.renderNextFrame();
40983
+ }
40984
+ deactivate(context) {
40985
+ const {
40986
+ stage: stage
40987
+ } = this.pluginService;
40988
+ stage.removeEventListener("pointerover", this.poptip);
40989
+ }
40990
+ };
40991
+ PopTipForClipedTextPlugin = __decorate([injectable()], PopTipForClipedTextPlugin);
40992
+
40993
+ const popTipModule = new ContainerModule(bind => {
40994
+ bind(PopTipRenderContribution).toSelf().inSingletonScope(), bind(InteractiveSubRenderContribution).toService(PopTipRenderContribution), bind(PopTipPlugin).toSelf().inSingletonScope(), bind(AutoEnablePlugins).toService(PopTipPlugin), bind(PopTipForClipedTextPlugin).toSelf().inSingletonScope(), bind(AutoEnablePlugins).toService(PopTipForClipedTextPlugin);
40995
+ });
40996
+ function loadPoptip(defaultPoptipTheme) {
40997
+ merge$2(theme.poptip, defaultPoptipTheme), container.load(popTipModule);
40998
+ }
40999
+ function setPoptipTheme(defaultPoptipTheme) {
41000
+ merge$2(theme.poptip, DEFAULT_THEME, defaultPoptipTheme);
41001
+ }
41002
+
40524
41003
  class CrosshairBase extends AbstractComponent {
40525
41004
  constructor() {
40526
41005
  super(...arguments), this.name = "crosshair";
@@ -40886,6 +41365,24 @@
40886
41365
  function defaultLabelPosition(type) {
40887
41366
  return "rect" === type ? DefaultRectPositions : DefaultPositions;
40888
41367
  }
41368
+ function clampText(text, width, height) {
41369
+ const {
41370
+ x1: x1,
41371
+ x2: x2,
41372
+ y1: y1,
41373
+ y2: y2
41374
+ } = text.AABBBounds,
41375
+ minX = Math.min(x1, x2),
41376
+ maxX = Math.max(x1, x2),
41377
+ minY = Math.min(y1, y2),
41378
+ maxY = Math.max(y1, y2);
41379
+ let dx = 0,
41380
+ dy = 0;
41381
+ return minX < 0 && maxX - minX <= width ? dx = -minX : maxX > width && minX - (maxX - width) >= 0 && (dx = width - maxX), minY < 0 && maxY - minY <= height ? dy = -minY : maxY > height && minY - (maxY - height) >= 0 && (dy = height - maxY), {
41382
+ dx: dx,
41383
+ dy: dy
41384
+ };
41385
+ }
40889
41386
 
40890
41387
  const fadeIn = function () {
40891
41388
  let textAttribute = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -40964,9 +41461,17 @@
40964
41461
  this._bmpTool = bmpTool;
40965
41462
  }
40966
41463
  render() {
40967
- const currentBaseMarks = this._checkMarks(),
40968
- labels = this.layout(currentBaseMarks);
40969
- this._smartInvert(labels), this._renderLabels(labels);
41464
+ this._prepare();
41465
+ const {
41466
+ overlap: overlap,
41467
+ smartInvert: smartInvert,
41468
+ dataFilter: dataFilter,
41469
+ customLayoutFunc: customLayoutFunc,
41470
+ customOverlapFunc: customOverlapFunc
41471
+ } = this.attribute;
41472
+ let labels,
41473
+ data = this.attribute.data;
41474
+ isFunction(dataFilter) && (data = dataFilter(data)), isFunction(customLayoutFunc) ? labels = customLayoutFunc(data, d => this._idToGraphic.get(d.id)) : (labels = this.layout(data), isFunction(customOverlapFunc) ? labels = customOverlapFunc(labels, d => this._idToGraphic.get(d.id)) : !1 !== overlap && (labels = this._overlapping(labels))), !1 !== smartInvert && this._smartInvert(labels), this._renderLabels(labels);
40970
41475
  }
40971
41476
  _bindEvent(target) {
40972
41477
  if (!target) return;
@@ -40985,52 +41490,53 @@
40985
41490
  const text = createText(attributes);
40986
41491
  return this._bindEvent(text), this._setStates(text), text;
40987
41492
  }
40988
- _checkMarks() {
41493
+ _prepare() {
40989
41494
  var _a;
40990
41495
  const baseMarks = this.getBaseMarks(),
40991
41496
  currentBaseMarks = [];
40992
- return baseMarks.forEach(mark => {
41497
+ if (baseMarks.forEach(mark => {
40993
41498
  "willRelease" !== mark.releaseStatus && currentBaseMarks.push(mark);
40994
- }), this._prevRelationMap = new Map(this._relationMap), null === (_a = this._relationMap) || void 0 === _a || _a.clear(), currentBaseMarks;
40995
- }
40996
- layout(currentMarks) {
41499
+ }), null === (_a = this._idToGraphic) || void 0 === _a || _a.clear(), this._baseMarks = currentBaseMarks, !currentBaseMarks || 0 === currentBaseMarks.length) return;
40997
41500
  const {
40998
- textStyle: textStyle,
40999
- position: position,
41000
- offset: offset
41001
- } = this.attribute;
41002
- let {
41003
41501
  data: data
41004
41502
  } = this.attribute;
41005
- if (isFunction(data) && (data = data({})), !data || 0 === data.length) return [];
41006
- let labels = [];
41007
- isFunction(this.attribute.sort) && currentMarks && currentMarks.length && (currentMarks = currentMarks.sort(this.attribute.sort)), this._relationMap || (this._relationMap = new Map());
41503
+ if (data && 0 !== data.length) {
41504
+ this._idToGraphic || (this._idToGraphic = new Map());
41505
+ for (let i = 0; i < currentBaseMarks.length; i++) {
41506
+ const textData = data[i],
41507
+ baseMark = currentBaseMarks[i];
41508
+ textData && baseMark && (isValid(textData.id) || (textData.id = `vrender-component-${this.name}-${i}`), this._idToGraphic.set(textData.id, baseMark));
41509
+ }
41510
+ }
41511
+ }
41512
+ layout() {
41513
+ let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
41514
+ const {
41515
+ textStyle = {},
41516
+ position: position,
41517
+ offset: offset
41518
+ } = this.attribute,
41519
+ labels = [];
41008
41520
  for (let i = 0; i < data.length; i++) {
41009
41521
  const textData = data[i],
41010
- baseMark = null == currentMarks ? void 0 : currentMarks[i],
41011
- labelAttribute = Object.assign(Object.assign(Object.assign({}, textStyle), textData), {
41012
- _relatedIndex: i
41013
- });
41014
- if (this._relationMap.set(i, baseMark), textData) {
41015
- const text = createText(labelAttribute);
41016
- text.update();
41017
- const textBounds = this.getGraphicBounds(text),
41018
- graphicBounds = this.getGraphicBounds(baseMark, {
41019
- x: textData.x,
41020
- y: textData.y
41021
- }),
41022
- textAttributes = this.labeling(textBounds, graphicBounds, isFunction(position) ? position(textData) : position, offset);
41023
- if (!textAttributes) continue;
41024
- labelAttribute.x = textAttributes.x, labelAttribute.y = textAttributes.y, labels.push(labelAttribute);
41025
- }
41522
+ baseMark = this._idToGraphic.get(textData.id),
41523
+ labelAttribute = Object.assign(Object.assign({}, textStyle), textData),
41524
+ text = this._createLabelText(labelAttribute),
41525
+ textBounds = this.getGraphicBounds(text),
41526
+ graphicBounds = this.getGraphicBounds(baseMark, {
41527
+ x: textData.x,
41528
+ y: textData.y
41529
+ }),
41530
+ textLocation = this.labeling(textBounds, graphicBounds, isFunction(position) ? position(textData) : position, offset);
41531
+ textLocation && (labelAttribute.x = textLocation.x, labelAttribute.y = textLocation.y, text.setAttributes(textLocation), labels.push(text));
41026
41532
  }
41027
- return this._baseMarks = currentMarks, !1 !== this.attribute.overlap && (labels = this.overlapping(labels, this.attribute.overlap)), labels;
41533
+ return labels;
41028
41534
  }
41029
- overlapping(labels) {
41030
- let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
41031
- var _a, _b, _c, _d, _e;
41535
+ _overlapping(labels) {
41536
+ var _a, _b, _c, _d;
41032
41537
  if (0 === labels.length) return [];
41033
- const result = [],
41538
+ const option = this.attribute.overlap,
41539
+ result = [],
41034
41540
  baseMarkGroup = this.getBaseMarkGroup(),
41035
41541
  size = null !== (_a = option.size) && void 0 !== _a ? _a : {
41036
41542
  width: null !== (_b = null == baseMarkGroup ? void 0 : baseMarkGroup.AABBBounds.width()) && void 0 !== _b ? _b : 0,
@@ -41051,27 +41557,45 @@
41051
41557
  }));
41052
41558
  for (let i = 0; i < labels.length; i++) {
41053
41559
  if (!1 === labels[i].visible) continue;
41054
- const text = createText(labels[i]),
41055
- baseMark = null === (_e = this._baseMarks) || void 0 === _e ? void 0 : _e[i];
41560
+ const text = labels[i],
41561
+ baseMark = this._idToGraphic.get(text.attribute.id);
41056
41562
  if (text.update(), canPlace(bmpTool, bitmap, text.AABBBounds, clampForce)) {
41057
41563
  if (!checkBounds) {
41058
- bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(Object.assign({}, text.attribute));
41564
+ bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(text);
41059
41565
  continue;
41060
41566
  }
41061
41567
  if (checkBounds && (null == baseMark ? void 0 : baseMark.AABBBounds) && canPlaceInside(text.AABBBounds, null == baseMark ? void 0 : baseMark.AABBBounds)) {
41062
- bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(Object.assign({}, text.attribute));
41568
+ bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(text);
41569
+ continue;
41570
+ }
41571
+ }
41572
+ if (clampForce) {
41573
+ const {
41574
+ dx = 0,
41575
+ dy = 0
41576
+ } = clampText(text, bmpTool.width, bmpTool.height);
41577
+ if ((0 !== dx || 0 !== dy) && canPlace(bmpTool, bitmap, {
41578
+ x1: text.AABBBounds.x1 + dx,
41579
+ x2: text.AABBBounds.x2 + dx,
41580
+ y1: text.AABBBounds.y1 + dy,
41581
+ y2: text.AABBBounds.y2 + dy
41582
+ })) {
41583
+ text.setAttributes({
41584
+ x: text.attribute.x + dx,
41585
+ y: text.attribute.y + dy
41586
+ }), result.push(text);
41063
41587
  continue;
41064
41588
  }
41065
41589
  }
41066
41590
  let hasPlace = !1;
41067
41591
  for (let j = 0; j < strategy.length; j++) if (hasPlace = place$2(bmpTool, bitmap, strategy[j], this.attribute, text, this.getGraphicBounds(baseMark, labels[i]), this.labeling), !1 !== hasPlace) {
41068
- result.push(Object.assign(Object.assign({}, text.attribute), {
41592
+ text.setAttributes({
41069
41593
  x: hasPlace.x,
41070
41594
  y: hasPlace.y
41071
- }));
41595
+ }), result.push(text);
41072
41596
  break;
41073
41597
  }
41074
- !hasPlace && !hideOnHit && result.push(Object.assign({}, text.attribute));
41598
+ !hasPlace && !hideOnHit && result.push(text);
41075
41599
  }
41076
41600
  return isFunction(this.onAfterLabelOverlap) && this.onAfterLabelOverlap(bitmap), result;
41077
41601
  }
@@ -41103,17 +41627,16 @@
41103
41627
  easing = null !== (_d = animationConfig.easing) && void 0 !== _d ? _d : DefaultLabelAnimation.easing,
41104
41628
  delay = null !== (_e = animationConfig.delay) && void 0 !== _e ? _e : 0,
41105
41629
  currentTextMap = new Map(),
41106
- prevTextMap = this._textMap || new Map(),
41630
+ prevTextMap = this._graphicToText || new Map(),
41107
41631
  texts = [];
41108
- labels.forEach((label, index) => {
41109
- const text = this._createLabelText(label),
41110
- relatedGraphic = this._relationMap.get(label._relatedIndex),
41632
+ labels.forEach((text, index) => {
41633
+ const relatedGraphic = this._idToGraphic.get(text.attribute.id),
41111
41634
  state = (null == prevTextMap ? void 0 : prevTextMap.get(relatedGraphic)) ? "update" : "enter";
41112
41635
  if ("enter" === state) if (texts.push(text), currentTextMap.set(relatedGraphic, text), !disableAnimation && relatedGraphic) {
41113
41636
  const {
41114
41637
  from: from,
41115
41638
  to: to
41116
- } = getAnimationAttributes(label, "fadeIn");
41639
+ } = getAnimationAttributes(text.attribute, "fadeIn");
41117
41640
  this.add(text), relatedGraphic.onAnimateBind = () => {
41118
41641
  text.setAttributes(from);
41119
41642
  const listener = this._afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, {
@@ -41138,7 +41661,7 @@
41138
41661
  disableAnimation ? this.removeChild(label) : null == label || label.animate().to(getAnimationAttributes(label.attribute, "fadeOut").to, duration, easing).onEnd(() => {
41139
41662
  this.removeChild(label);
41140
41663
  });
41141
- }), this._textMap = currentTextMap;
41664
+ }), this._graphicToText = currentTextMap;
41142
41665
  }
41143
41666
  _afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, _ref) {
41144
41667
  let {
@@ -41181,21 +41704,32 @@
41181
41704
  return listener;
41182
41705
  }
41183
41706
  _smartInvert(labels) {
41184
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
41185
- if (!1 !== this.attribute.smartInvert) for (let i = 0; i < labels.length; i++) {
41186
- const label = null == labels ? void 0 : labels[i];
41707
+ const option = this.attribute.smartInvert || {},
41708
+ {
41709
+ textType: textType,
41710
+ contrastRatiosThreshold: contrastRatiosThreshold,
41711
+ alternativeColors: alternativeColors
41712
+ } = option;
41713
+ for (let i = 0; i < labels.length; i++) {
41714
+ const label = labels[i];
41187
41715
  if (!label) continue;
41188
- const isInside = canPlaceInside(createText(label).AABBBounds, null === (_a = this._relationMap.get(label._relatedIndex)) || void 0 === _a ? void 0 : _a.AABBBounds);
41189
- if (label.stroke && label.lineWidth > 0) label.fill = labelSmartInvert(label.fill, label.stroke, null === (_b = this.attribute.smartInvert) || void 0 === _b ? void 0 : _b.textType, null === (_c = this.attribute.smartInvert) || void 0 === _c ? void 0 : _c.contrastRatiosThreshold, null === (_d = this.attribute.smartInvert) || void 0 === _d ? void 0 : _d.alternativeColors);else if (isInside) {
41190
- const backgroundColor = this._relationMap.get(label._relatedIndex).attribute.fill,
41191
- foregroundColor = label.fill;
41192
- label.fill = labelSmartInvert(foregroundColor, backgroundColor, null === (_e = this.attribute.smartInvert) || void 0 === _e ? void 0 : _e.textType, null === (_f = this.attribute.smartInvert) || void 0 === _f ? void 0 : _f.contrastRatiosThreshold, null === (_g = this.attribute.smartInvert) || void 0 === _g ? void 0 : _g.alternativeColors);
41193
- } else if (label.lineWidth > 0) {
41194
- const baseMark = this._relationMap.get(label._relatedIndex);
41195
- label.stroke = baseMark.attribute.fill;
41196
- const backgroundColor = label.stroke,
41197
- foregroundColor = label.fill;
41198
- label.fill = labelSmartInvert(foregroundColor, backgroundColor, null === (_h = this.attribute.smartInvert) || void 0 === _h ? void 0 : _h.textType, null === (_j = this.attribute.smartInvert) || void 0 === _j ? void 0 : _j.contrastRatiosThreshold, null === (_k = this.attribute.smartInvert) || void 0 === _k ? void 0 : _k.alternativeColors);
41716
+ const baseMark = this._idToGraphic.get(label.attribute.id),
41717
+ isInside = canPlaceInside(label.AABBBounds, null == baseMark ? void 0 : baseMark.AABBBounds);
41718
+ if (label.attribute.stroke && label.attribute.lineWidth > 0) label.setAttributes({
41719
+ fill: labelSmartInvert(label.attribute.fill, label.attribute.stroke, textType, contrastRatiosThreshold, alternativeColors)
41720
+ });else if (isInside) {
41721
+ const backgroundColor = baseMark.attribute.fill,
41722
+ foregroundColor = label.attribute.fill;
41723
+ label.setAttributes({
41724
+ fill: labelSmartInvert(foregroundColor, backgroundColor, textType, contrastRatiosThreshold, alternativeColors)
41725
+ });
41726
+ } else if (label.attribute.lineWidth > 0) {
41727
+ const backgroundColor = label.attribute.stroke,
41728
+ foregroundColor = label.attribute.fill;
41729
+ label.setAttributes({
41730
+ stroke: baseMark.attribute.fill,
41731
+ fill: labelSmartInvert(foregroundColor, backgroundColor, textType, contrastRatiosThreshold, alternativeColors)
41732
+ });
41199
41733
  }
41200
41734
  }
41201
41735
  }
@@ -41838,36 +42372,42 @@
41838
42372
  }
41839
42373
  }
41840
42374
  renderTicks(container) {
41841
- var _a;
41842
42375
  const tickLineItems = this.getTickLineItems(),
41843
42376
  tickLineGroup = createGroup({
41844
42377
  x: 0,
41845
42378
  y: 0,
41846
42379
  pickable: !1
41847
42380
  });
41848
- tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup);
41849
- const tickLineState = isEmpty(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.state) ? null : merge$2({}, DEFAULT_STATES$2, this.attribute.tick.state);
41850
- tickLineItems.forEach((item, index) => {
42381
+ tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup), tickLineItems.forEach((item, index) => {
42382
+ var _a;
41851
42383
  const line = createLine(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
41852
- line.name = AXIS_ELEMENT_NAME.tick, line.id = this._getNodeId(item.id), line.states = tickLineState, tickLineGroup.add(line);
42384
+ if (line.name = AXIS_ELEMENT_NAME.tick, line.id = this._getNodeId(item.id), isEmpty(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.state)) line.states = null;else {
42385
+ const data = this.data[index],
42386
+ tickLineState = merge$2({}, DEFAULT_STATES$2, this.attribute.tick.state);
42387
+ Object.keys(tickLineState).forEach(key => {
42388
+ isFunction(tickLineState[key]) && (tickLineState[key] = tickLineState[key](data.rawValue, index, data, this.data));
42389
+ }), line.states = tickLineState;
42390
+ }
42391
+ tickLineGroup.add(line);
41853
42392
  }), this.tickLineItems = tickLineItems;
41854
42393
  const {
41855
42394
  subTick: subTick
41856
42395
  } = this.attribute;
41857
42396
  if (null == subTick ? void 0 : subTick.visible) {
41858
42397
  const subTickLineItems = this.getSubTickLineItems();
41859
- if (subTickLineItems.length) {
41860
- const subTickLineState = isEmpty(subTick.state) ? null : merge$2({}, DEFAULT_STATES$2, subTick.state);
41861
- subTickLineItems.forEach((item, index) => {
41862
- const line = createLine(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
41863
- line.name = AXIS_ELEMENT_NAME.subTick, line.id = this._getNodeId(`${index}`), line.states = subTickLineState, tickLineGroup.add(line);
41864
- });
41865
- }
41866
- this.subTickLineItems = subTickLineItems;
42398
+ subTickLineItems.length && subTickLineItems.forEach((item, index) => {
42399
+ const line = createLine(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
42400
+ if (line.name = AXIS_ELEMENT_NAME.subTick, line.id = this._getNodeId(`${index}`), isEmpty(subTick.state)) line.states = null;else {
42401
+ const subTickLineState = merge$2({}, DEFAULT_STATES$2, subTick.state);
42402
+ Object.keys(subTickLineState).forEach(key => {
42403
+ isFunction(subTickLineState[key]) && (subTickLineState[key] = subTickLineState[key](item.value, index, item, tickLineItems));
42404
+ }), line.states = subTickLineState;
42405
+ }
42406
+ tickLineGroup.add(line);
42407
+ }), this.subTickLineItems = subTickLineItems;
41867
42408
  }
41868
42409
  }
41869
42410
  renderLabels(container, items, layer) {
41870
- var _a;
41871
42411
  const {
41872
42412
  dataFilter: dataFilter
41873
42413
  } = this.attribute.label;
@@ -41883,13 +42423,18 @@
41883
42423
  maxTextHeight = 0,
41884
42424
  textAlign = "center",
41885
42425
  textBaseline = "middle";
41886
- const labelState = isEmpty(null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.state) ? null : merge$2({}, DEFAULT_STATES$2, this.attribute.label.state);
41887
42426
  return data.forEach((item, index) => {
41888
- var _a;
42427
+ var _a, _b;
41889
42428
  const labelStyle = this._getLabelAttribute(item, index, data, layer),
41890
42429
  text = createText(labelStyle);
41891
- text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), text.states = labelState, labelGroup.add(text);
41892
- const angle = null !== (_a = labelStyle.angle) && void 0 !== _a ? _a : 0;
42430
+ if (text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), isEmpty(null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.state)) text.states = null;else {
42431
+ const labelState = merge$2({}, DEFAULT_STATES$2, this.attribute.label.state);
42432
+ Object.keys(labelState).forEach(key => {
42433
+ isFunction(labelState[key]) && (labelState[key] = labelState[key](item, index, data, layer));
42434
+ }), text.states = labelState;
42435
+ }
42436
+ labelGroup.add(text);
42437
+ const angle = null !== (_b = labelStyle.angle) && void 0 !== _b ? _b : 0;
41893
42438
  maxTextWidth = Math.max(maxTextWidth, text.AABBBounds.width()), maxTextHeight = Math.max(maxTextHeight, text.AABBBounds.height()), angle && (maxTextWidth = Math.abs(maxTextWidth * Math.cos(angle)), maxTextHeight = Math.abs(maxTextHeight * Math.sin(angle))), textAlign = labelStyle.textAlign, textBaseline = labelStyle.textBaseline;
41894
42439
  }), this.axisLabelLayerSize[layer] = {
41895
42440
  width: maxTextWidth,
@@ -42202,7 +42747,7 @@
42202
42747
  orient: orient
42203
42748
  } = config;
42204
42749
  !isEmpty(labels) && isValidNumber(limitLength) && labels.forEach(label => {
42205
- const limitLabelLength = 0 === label.attribute.angle || isNil(label.attribute.angle) ? "top" === orient || "bottom" === orient ? null : limitLength : limitLength / Math.sin(label.attribute.angle);
42750
+ const limitLabelLength = 0 === label.attribute.angle || isNil(label.attribute.angle) ? "top" === orient || "bottom" === orient ? null : limitLength : Math.abs(limitLength / Math.sin(label.attribute.angle));
42206
42751
  label.setAttributes({
42207
42752
  maxLineWidth: limitLabelLength,
42208
42753
  ellipsis: ellipsis
@@ -42912,7 +43457,7 @@
42912
43457
  }
42913
43458
  },
42914
43459
  middleHandlerStyle: {
42915
- visible: !1,
43460
+ visible: !0,
42916
43461
  background: {
42917
43462
  size: 8,
42918
43463
  style: {
@@ -42930,12 +43475,14 @@
42930
43475
  }
42931
43476
  },
42932
43477
  startHandlerStyle: {
43478
+ visible: !0,
42933
43479
  symbolType: "M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z",
42934
43480
  fill: "white",
42935
43481
  stroke: "#B0C8F9",
42936
43482
  lineWidth: .5
42937
43483
  },
42938
43484
  endHandlerStyle: {
43485
+ visible: !0,
42939
43486
  symbolType: "M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z",
42940
43487
  fill: "white",
42941
43488
  stroke: "#B0C8F9",
@@ -43179,13 +43726,15 @@
43179
43726
  }), `data-zoom-end-text-${position}`));
43180
43727
  }
43181
43728
  getLayoutAttrFromConfig() {
43182
- var _a, _b;
43729
+ var _a, _b, _c, _d;
43183
43730
  if (this._layoutAttrFromConfig) return this._layoutAttrFromConfig;
43184
43731
  const {
43185
43732
  position: positionConfig,
43186
43733
  size: size,
43187
43734
  orient: orient,
43188
- middleHandlerStyle: middleHandlerStyle
43735
+ middleHandlerStyle: middleHandlerStyle,
43736
+ startHandlerStyle: startHandlerStyle,
43737
+ endHandlerStyle: endHandlerStyle
43189
43738
  } = this.attribute,
43190
43739
  {
43191
43740
  width: widthConfig,
@@ -43193,13 +43742,22 @@
43193
43742
  } = size,
43194
43743
  middleHandlerSize = null !== (_b = null === (_a = null == middleHandlerStyle ? void 0 : middleHandlerStyle.background) || void 0 === _a ? void 0 : _a.size) && void 0 !== _b ? _b : 10;
43195
43744
  let width, height, position;
43196
- return (null == middleHandlerStyle ? void 0 : middleHandlerStyle.visible) ? this._isHorizontal ? (width = widthConfig, height = heightConfig - middleHandlerSize, position = {
43745
+ (null == middleHandlerStyle ? void 0 : middleHandlerStyle.visible) ? this._isHorizontal ? (width = widthConfig, height = heightConfig - middleHandlerSize, position = {
43197
43746
  x: positionConfig.x,
43198
43747
  y: positionConfig.y + middleHandlerSize
43199
43748
  }) : (width = widthConfig - middleHandlerSize, height = heightConfig, position = {
43200
43749
  x: positionConfig.x + ("left" === orient ? middleHandlerSize : 0),
43201
43750
  y: positionConfig.y
43202
- }) : (width = widthConfig, height = heightConfig, position = positionConfig), this._layoutAttrFromConfig = {
43751
+ }) : (width = widthConfig, height = heightConfig, position = positionConfig);
43752
+ const startHandlerSize = null !== (_c = null == startHandlerStyle ? void 0 : startHandlerStyle.size) && void 0 !== _c ? _c : this._isHorizontal ? height : width,
43753
+ endHandlerSize = null !== (_d = null == endHandlerStyle ? void 0 : endHandlerStyle.size) && void 0 !== _d ? _d : this._isHorizontal ? height : width;
43754
+ return (null == startHandlerStyle ? void 0 : startHandlerStyle.visible) && (this._isHorizontal ? (width -= (startHandlerSize + endHandlerSize) / 2, position = {
43755
+ x: position.x + startHandlerSize / 2,
43756
+ y: position.y
43757
+ }) : (height -= (startHandlerSize + endHandlerSize) / 2, position = {
43758
+ x: position.x,
43759
+ y: position.y + startHandlerSize
43760
+ })), this._layoutAttrFromConfig = {
43203
43761
  position: position,
43204
43762
  width: width,
43205
43763
  height: height
@@ -43396,19 +43954,17 @@
43396
43954
  curveType: "basis"
43397
43955
  }, "area");
43398
43956
  const {
43399
- position: position,
43400
- size: size,
43401
43957
  selectedBackgroundChartStyle: selectedBackgroundChartStyle
43402
43958
  } = this.attribute,
43403
- {
43404
- width: width,
43405
- height: height
43406
- } = size,
43407
43959
  {
43408
43960
  start: start,
43409
43961
  end: end
43410
- } = this.state;
43411
- this.computeBasePoints();
43962
+ } = this.state,
43963
+ {
43964
+ position: position,
43965
+ width: width,
43966
+ height: height
43967
+ } = this.getLayoutAttrFromConfig();
43412
43968
  this._selectedPreviewGroupClip.setAttributes({
43413
43969
  x: this._isHorizontal ? position.x + start * width : position.x,
43414
43970
  y: this._isHorizontal ? position.y : position.y + start * height,
@@ -44370,7 +44926,7 @@
44370
44926
  pages = 1;
44371
44927
  legendItems.forEach((item, index) => {
44372
44928
  item.id || (item.id = item.label), item.index = index;
44373
- const itemGroup = this._renderEachItem(item, !!isEmpty(defaultSelected) || (null == defaultSelected ? void 0 : defaultSelected.includes(item.label)), index),
44929
+ const itemGroup = this._renderEachItem(item, !!isEmpty(defaultSelected) || (null == defaultSelected ? void 0 : defaultSelected.includes(item.label)), index, legendItems),
44374
44930
  itemWidth = itemGroup.attribute.width,
44375
44931
  itemHeight = itemGroup.attribute.height;
44376
44932
  this._itemHeight = Math.max(this._itemHeight, itemHeight), maxWidthInCol = Math.max(itemWidth, maxWidthInCol), this._itemMaxWidth = Math.max(itemWidth, this._itemMaxWidth), isHorizontal ? (maxPages = maxRow, isValid(maxWidth) && (itemWidth >= maxWidth ? (doWrap = !0, index > 0 && (startX = 0, startY += itemHeight + spaceRow, pages += 1)) : maxWidth < startX + itemWidth && (doWrap = !0, startX = 0, startY += itemHeight + spaceRow, pages += 1)), index > 0 && itemGroup.setAttributes({
@@ -44392,7 +44948,7 @@
44392
44948
  } = this.attribute;
44393
44949
  hover && (this._itemsContainer.addEventListener("pointermove", this._onHover), this._itemsContainer.addEventListener("pointerout", this._onUnHover)), select && this._itemsContainer.addEventListener("pointerdown", this._onClick);
44394
44950
  }
44395
- _renderEachItem(item, isSelected, index) {
44951
+ _renderEachItem(item, isSelected, index, items) {
44396
44952
  const {
44397
44953
  id: id,
44398
44954
  label: label,
@@ -44400,20 +44956,23 @@
44400
44956
  shape: shape
44401
44957
  } = item,
44402
44958
  {
44403
- shape: shapeAttr = {},
44404
- label: labelAttr = {},
44405
- value: valueAttr = {},
44406
44959
  padding = 0,
44407
- background: background,
44408
44960
  focus: focus,
44409
44961
  focusIconStyle = {}
44410
- } = this.attribute.item,
44411
- parsedPadding = normalizePadding$1(padding);
44962
+ } = this.attribute.item;
44963
+ let {
44964
+ shape: shapeAttr = {},
44965
+ label: labelAttr = {},
44966
+ value: valueAttr = {},
44967
+ background = {}
44968
+ } = this.attribute.item;
44969
+ shapeAttr = this._handleStyle(shapeAttr, item, isSelected, index, items), labelAttr = this._handleStyle(labelAttr, item, isSelected, index, items), valueAttr = this._handleStyle(valueAttr, item, isSelected, index, items), background = this._handleStyle(background, item, isSelected, index, items);
44970
+ const parsedPadding = normalizePadding$1(padding);
44412
44971
  let itemGroup;
44413
44972
  !1 === background.visible ? (itemGroup = createGroup({
44414
44973
  x: 0,
44415
44974
  y: 0,
44416
- cursor: null == background ? void 0 : background.style.cursor
44975
+ cursor: (null == background ? void 0 : background.style).cursor
44417
44976
  }), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = createGroup(Object.assign({
44418
44977
  x: 0,
44419
44978
  y: 0
@@ -44456,7 +45015,7 @@
44456
45015
  y: 0,
44457
45016
  textAlign: "start",
44458
45017
  textBaseline: "middle",
44459
- lineHeight: null == labelAttr ? void 0 : labelAttr.style.fontSize
45018
+ lineHeight: (null == labelAttr ? void 0 : labelAttr.style).fontSize
44460
45019
  }, null == labelAttr ? void 0 : labelAttr.style), {
44461
45020
  text: labelAttr.formatMethod ? labelAttr.formatMethod(label, item, index) : label
44462
45021
  }));
@@ -44469,7 +45028,7 @@
44469
45028
  y: 0,
44470
45029
  textAlign: "start",
44471
45030
  textBaseline: "middle",
44472
- lineHeight: null == valueAttr ? void 0 : valueAttr.style.fontSize
45031
+ lineHeight: (null == valueAttr ? void 0 : valueAttr.style).fontSize
44473
45032
  }, null == valueAttr ? void 0 : valueAttr.style), {
44474
45033
  text: valueAttr.formatMethod ? valueAttr.formatMethod(value, item, index) : value
44475
45034
  }));
@@ -44619,6 +45178,12 @@
44619
45178
  });
44620
45179
  changeEvent.manager = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem.manager, this.dispatchEvent(changeEvent);
44621
45180
  }
45181
+ _handleStyle(config, item, isSelected, index, items) {
45182
+ const newConfig = merge$2({}, config);
45183
+ return config.style && isFunction(config.style) && (newConfig.style = config.style(item, isSelected, index, items)), config.state && Object.keys(config.state).forEach(key => {
45184
+ config.state[key] && isFunction(config.state[key]) && (newConfig.state[key] = config.state[key](item, isSelected, index, items));
45185
+ }), newConfig;
45186
+ }
44622
45187
  };
44623
45188
  DiscreteLegend$1.defaultAttributes = {
44624
45189
  layout: "horizontal",
@@ -50069,56 +50634,68 @@
50069
50634
 
50070
50635
  class ViewAnimate {
50071
50636
  constructor(view) {
50072
- this.view = view;
50637
+ this._animations = [], this._onAnimationStart = event => {
50638
+ 0 === this._animations.length && this._view.emit(HOOK_EVENT.ALL_ANIMATION_START, {}), this._animations = this._animations.concat({
50639
+ config: event.animationConfig,
50640
+ mark: event.mark
50641
+ });
50642
+ }, this._onAnimationEnd = event => {
50643
+ this._animations = this._animations.filter(animation => animation.config !== event.animationConfig || animation.mark !== event.mark), 0 === this._animations.length && this._view.emit(HOOK_EVENT.ALL_ANIMATION_END, {});
50644
+ }, this._view = view, this._view.addEventListener(HOOK_EVENT.ANIMATION_START, this._onAnimationStart), this._view.addEventListener(HOOK_EVENT.ANIMATION_END, this._onAnimationEnd);
50073
50645
  }
50074
50646
  stop() {
50075
- return this.view.traverseMarkTree(mark => {
50076
- var _a;
50077
- null === (_a = mark.animate) || void 0 === _a || _a.stop();
50647
+ return this._view.traverseMarkTree(mark => {
50648
+ var _a, _b;
50649
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.stop) || void 0 === _b || _b.call(_a);
50078
50650
  }), this;
50079
50651
  }
50080
50652
  pause() {
50081
- return this.view.traverseMarkTree(mark => {
50082
- var _a;
50083
- null === (_a = mark.animate) || void 0 === _a || _a.pause();
50653
+ return this._view.traverseMarkTree(mark => {
50654
+ var _a, _b;
50655
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.pause) || void 0 === _b || _b.call(_a);
50084
50656
  }), this;
50085
50657
  }
50086
50658
  resume() {
50087
- return this.view.traverseMarkTree(mark => {
50088
- var _a;
50089
- null === (_a = mark.animate) || void 0 === _a || _a.resume();
50659
+ return this._view.traverseMarkTree(mark => {
50660
+ var _a, _b;
50661
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.resume) || void 0 === _b || _b.call(_a);
50090
50662
  }), this;
50091
50663
  }
50092
50664
  enable() {
50093
- return this.view.traverseMarkTree(mark => {
50094
- var _a;
50095
- null === (_a = mark.animate) || void 0 === _a || _a.enable();
50665
+ return this._view.traverseMarkTree(mark => {
50666
+ var _a, _b;
50667
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.enable) || void 0 === _b || _b.call(_a);
50096
50668
  }), this;
50097
50669
  }
50098
50670
  disable() {
50099
- return this.view.traverseMarkTree(mark => {
50100
- var _a;
50101
- null === (_a = mark.animate) || void 0 === _a || _a.disable();
50671
+ return this._view.traverseMarkTree(mark => {
50672
+ var _a, _b;
50673
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.disable) || void 0 === _b || _b.call(_a);
50102
50674
  }), this;
50103
50675
  }
50104
50676
  enableAnimationState(state) {
50105
- return this.view.traverseMarkTree(mark => {
50106
- var _a;
50107
- null === (_a = mark.animate) || void 0 === _a || _a.enableAnimationState(state);
50677
+ return this._view.traverseMarkTree(mark => {
50678
+ var _a, _b;
50679
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.enableAnimationState) || void 0 === _b || _b.call(_a, state);
50108
50680
  }), this;
50109
50681
  }
50110
50682
  disableAnimationState(state) {
50111
- return this.view.traverseMarkTree(mark => {
50112
- var _a;
50113
- null === (_a = mark.animate) || void 0 === _a || _a.disableAnimationState(state);
50683
+ return this._view.traverseMarkTree(mark => {
50684
+ var _a, _b;
50685
+ null === (_b = null === (_a = mark.animate) || void 0 === _a ? void 0 : _a.disableAnimationState) || void 0 === _b || _b.call(_a, state);
50114
50686
  }), this;
50115
50687
  }
50688
+ isAnimating() {
50689
+ return 0 !== this._animations.length;
50690
+ }
50116
50691
  animate() {
50117
- return this.view.traverseMarkTree(mark => {
50692
+ return this._view.traverseMarkTree(mark => {
50118
50693
  mark.isUpdated && mark.animate && mark.animate.animate(), mark.cleanExitElements(), mark.isUpdated = !1;
50119
50694
  }, null, !0), this;
50120
50695
  }
50121
- release() {}
50696
+ release() {
50697
+ this._view.removeEventListener(HOOK_EVENT.ALL_ANIMATION_START, this._onAnimationStart), this._view.removeEventListener(HOOK_EVENT.ALL_ANIMATION_END, this._onAnimationEnd);
50698
+ }
50122
50699
  }
50123
50700
 
50124
50701
  class Interval extends Mark {
@@ -51640,9 +52217,9 @@
51640
52217
  const dataZoom = {
51641
52218
  showDetail: 'auto',
51642
52219
  middleHandler: {
51643
- visible: false,
52220
+ visible: true,
51644
52221
  background: {
51645
- size: 5,
52222
+ size: 6,
51646
52223
  style: {
51647
52224
  stroke: '#D1D5DA',
51648
52225
  cornerRadius: 2
@@ -51650,7 +52227,7 @@
51650
52227
  },
51651
52228
  icon: {
51652
52229
  style: {
51653
- size: 8,
52230
+ size: 4,
51654
52231
  fill: 'white',
51655
52232
  stroke: '#D1D5DA',
51656
52233
  symbolType: 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',
@@ -52206,6 +52783,34 @@
52206
52783
  }
52207
52784
  };
52208
52785
 
52786
+ const poptip = {
52787
+ visible: true,
52788
+ position: 'auto',
52789
+ padding: 8,
52790
+ titleStyle: {
52791
+ fontSize: 12,
52792
+ fontWeight: 'bold',
52793
+ fill: '#4E5969'
52794
+ },
52795
+ contentStyle: {
52796
+ fontSize: 12,
52797
+ fill: '#4E5969'
52798
+ },
52799
+ panel: {
52800
+ visible: true,
52801
+ fill: '#fff',
52802
+ stroke: '#ffffff',
52803
+ lineWidth: 0,
52804
+ cornerRadius: 3,
52805
+ shadowBlur: 12,
52806
+ shadowOffsetX: 0,
52807
+ shadowOffsetY: 4,
52808
+ shadowColor: 'rgba(0, 0, 0, 0.1)',
52809
+ size: 0,
52810
+ space: 12
52811
+ }
52812
+ };
52813
+
52209
52814
  const component = {
52210
52815
  discreteLegend,
52211
52816
  colorLegend,
@@ -52227,7 +52832,8 @@
52227
52832
  brush,
52228
52833
  indicator,
52229
52834
  title,
52230
- mapLabel
52835
+ mapLabel,
52836
+ poptip
52231
52837
  };
52232
52838
 
52233
52839
  const lightTheme = {
@@ -52415,28 +53021,60 @@
52415
53021
  };
52416
53022
 
52417
53023
  function transformComponentStyle(cfg = {}) {
52418
- if (!isEmpty(cfg.style)) {
52419
- cfg.style = transformToGraphic(cfg.style);
53024
+ const newConfig = {
53025
+ ...cfg
53026
+ };
53027
+ if (isFunction(cfg.style)) {
53028
+ newConfig.style = (item, isSelected, index, allItems) => transformToGraphic(cfg.style(item, isSelected, index, allItems));
53029
+ }
53030
+ else if (!isEmpty(cfg.style)) {
53031
+ newConfig.style = transformToGraphic(cfg.style);
52420
53032
  }
52421
53033
  if (!isEmpty(cfg.state)) {
53034
+ const newStateStyle = {};
52422
53035
  Object.keys(cfg.state).forEach(key => {
52423
- if (!isEmpty(cfg.state[key])) {
52424
- cfg.state[key] = transformToGraphic(cfg.state[key]);
53036
+ if (isFunction(cfg.state[key])) {
53037
+ newStateStyle[key] = (item, isSelected, index, allItems) => transformToGraphic(cfg.state[key](item, isSelected, index, allItems));
53038
+ }
53039
+ else if (!isEmpty(cfg.state[key])) {
53040
+ newStateStyle[key] = transformToGraphic(cfg.state[key]);
52425
53041
  }
52426
53042
  });
53043
+ newConfig.state = newStateStyle;
52427
53044
  }
52428
- return cfg;
53045
+ return newConfig;
52429
53046
  }
52430
53047
  function transformStateStyle(stateStyle) {
52431
53048
  if (isEmpty(stateStyle)) {
52432
53049
  return null;
52433
53050
  }
53051
+ const newStateStyle = {};
52434
53052
  Object.keys(stateStyle).forEach(key => {
52435
- if (!isEmpty(stateStyle[key])) {
52436
- stateStyle[key] = transformToGraphic(stateStyle[key]);
53053
+ if (isFunction(stateStyle[key])) {
53054
+ newStateStyle[key] = (value, index, datum, data) => transformToGraphic(stateStyle[key](value, index, datum, data));
53055
+ }
53056
+ else if (!isEmpty(stateStyle[key])) {
53057
+ newStateStyle[key] = transformToGraphic(stateStyle[key]);
52437
53058
  }
52438
53059
  });
52439
- return stateStyle;
53060
+ return newStateStyle;
53061
+ }
53062
+ function transformAxisLabelStateStyle(stateStyle) {
53063
+ if (isEmpty(stateStyle)) {
53064
+ return null;
53065
+ }
53066
+ const newStateStyle = {};
53067
+ Object.keys(stateStyle).forEach(key => {
53068
+ if (isFunction(stateStyle[key])) {
53069
+ newStateStyle[key] = (datum, index, data, layer) => {
53070
+ return transformToGraphic(stateStyle[key](datum.rawValue, index, datum, data, layer));
53071
+ };
53072
+ }
53073
+ else if (!isEmpty(stateStyle[key])) {
53074
+ newStateStyle[key] = transformToGraphic(stateStyle[key]);
53075
+ }
53076
+ });
53077
+ return newStateStyle;
52440
53078
  }
52441
53079
  function transformToGraphic(style) {
52442
53080
  if (isEmpty(style)) {
@@ -52457,6 +53095,7 @@
52457
53095
  MarkTypeEnum["text"] = "text";
52458
53096
  MarkTypeEnum["rect"] = "rect";
52459
53097
  MarkTypeEnum["rect3d"] = "rect3d";
53098
+ MarkTypeEnum["image"] = "image";
52460
53099
  MarkTypeEnum["path"] = "path";
52461
53100
  MarkTypeEnum["area"] = "area";
52462
53101
  MarkTypeEnum["arc"] = "arc";
@@ -53721,7 +54360,8 @@
53721
54360
  },
53722
54361
  doLayout: () => {
53723
54362
  this._compileChart?.onLayout(this._view);
53724
- }
54363
+ },
54364
+ logLevel: Logger.getInstance().level()
53725
54365
  });
53726
54366
  this._setCanvasStyle();
53727
54367
  const interactive = this._option.interactive;
@@ -54022,6 +54662,9 @@
54022
54662
  static hideTooltip(excludeId = []) {
54023
54663
  InstanceManager.forEach(instance => instance?.hideTooltip?.(), excludeId);
54024
54664
  }
54665
+ static getLogger() {
54666
+ return Logger.getInstance();
54667
+ }
54025
54668
  static InstanceManager = InstanceManager;
54026
54669
  static ThemeManager = ThemeManager;
54027
54670
  static globalConfig = {
@@ -54052,7 +54695,7 @@
54052
54695
  _context = {};
54053
54696
  constructor(spec, options) {
54054
54697
  this._option = merge$2(this._option, options);
54055
- const { dom, renderCanvas, mode, stage, ...restOptions } = this._option;
54698
+ const { dom, renderCanvas, mode, stage, poptip, ...restOptions } = this._option;
54056
54699
  if (dom) {
54057
54700
  this._container = isString(dom) ? document?.getElementById(dom) : dom;
54058
54701
  }
@@ -54076,6 +54719,7 @@
54076
54719
  }, {
54077
54720
  mode: this._option.mode,
54078
54721
  stage,
54722
+ pluginList: poptip !== false ? ['poptipForText'] : [],
54079
54723
  ...restOptions,
54080
54724
  background: spec.background || this._currentTheme.background || this._option.background
54081
54725
  });
@@ -54432,6 +55076,7 @@
54432
55076
  else {
54433
55077
  this._currentTheme = merge$2({}, ThemeManager.getTheme(this._currentThemeName), this._spec?.theme ?? {});
54434
55078
  }
55079
+ setPoptipTheme(merge$2({}, this._currentTheme.component?.poptip));
54435
55080
  }
54436
55081
  getCurrentTheme() {
54437
55082
  return this._currentTheme;
@@ -56097,6 +56742,7 @@
56097
56742
  this._rightCurrent = chartLayoutRect.x + chartLayoutRect.width;
56098
56743
  this._bottomCurrent = chartLayoutRect.height + chartLayoutRect.y;
56099
56744
  items.sort((a, b) => b.layoutLevel - a.layoutLevel);
56745
+ this.layoutNormalInlineItems(items.filter(x => x.layoutType === 'normal-inline'));
56100
56746
  this.layoutNormalItems(items.filter(x => x.layoutType === 'normal'));
56101
56747
  const layoutTemp = {
56102
56748
  _leftCurrent: this._leftCurrent,
@@ -56154,6 +56800,118 @@
56154
56800
  }
56155
56801
  });
56156
56802
  }
56803
+ layoutNormalInlineItems(normalItems) {
56804
+ const leftItems = normalItems.filter(item => item.layoutOrient === 'left');
56805
+ const rightItems = normalItems.filter(item => item.layoutOrient === 'right');
56806
+ const topItems = normalItems.filter(item => item.layoutOrient === 'top');
56807
+ const bottomItems = normalItems.filter(item => item.layoutOrient === 'bottom');
56808
+ const limitWidth = this._chartLayoutRect.width + this._chartLayoutRect.x;
56809
+ const limitHeight = this._chartLayoutRect.height + this._chartLayoutRect.y;
56810
+ let maxWidth = 0;
56811
+ let preLeft = this._leftCurrent;
56812
+ let preTop = this._topCurrent;
56813
+ leftItems.forEach((item, index) => {
56814
+ const layoutRect = this.getItemComputeLayoutRect(item);
56815
+ const rect = item.computeBoundsInRect(layoutRect);
56816
+ item.setLayoutRect(rect);
56817
+ const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
56818
+ const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
56819
+ item.setLayoutStartPosition({
56820
+ x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
56821
+ y: preTop + item.layoutOffsetY + item.layoutPaddingTop
56822
+ });
56823
+ maxWidth = Math.max(maxWidth, itemTotalWidth);
56824
+ preTop += itemTotalHeight;
56825
+ if (preTop > limitHeight) {
56826
+ preLeft += maxWidth;
56827
+ maxWidth = itemTotalWidth;
56828
+ preTop = this._topCurrent + itemTotalHeight;
56829
+ item.setLayoutStartPosition({
56830
+ x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
56831
+ y: this._topCurrent + item.layoutOffsetY + item.layoutPaddingTop
56832
+ });
56833
+ }
56834
+ });
56835
+ this._leftCurrent = preLeft + maxWidth;
56836
+ let maxHeight = 0;
56837
+ preLeft = this._leftCurrent;
56838
+ preTop = this._topCurrent;
56839
+ topItems.forEach((item, index) => {
56840
+ const layoutRect = this.getItemComputeLayoutRect(item);
56841
+ const rect = item.computeBoundsInRect(layoutRect);
56842
+ item.setLayoutRect(rect);
56843
+ const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
56844
+ const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
56845
+ item.setLayoutStartPosition({
56846
+ x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
56847
+ y: preTop + item.layoutOffsetY + item.layoutPaddingTop
56848
+ });
56849
+ maxHeight = Math.max(maxHeight, itemTotalHeight);
56850
+ preLeft += itemTotalWidth;
56851
+ if (preLeft > limitWidth) {
56852
+ preLeft = this._leftCurrent + itemTotalWidth;
56853
+ preTop += maxHeight;
56854
+ maxHeight = itemTotalHeight;
56855
+ item.setLayoutStartPosition({
56856
+ x: this._leftCurrent + item.layoutOffsetX + item.layoutPaddingLeft,
56857
+ y: preTop + item.layoutOffsetY + item.layoutPaddingTop
56858
+ });
56859
+ }
56860
+ });
56861
+ this._topCurrent = preTop + maxHeight;
56862
+ maxWidth = 0;
56863
+ let preRight = this._rightCurrent;
56864
+ preTop = this._topCurrent;
56865
+ rightItems.forEach((item, index) => {
56866
+ const layoutRect = this.getItemComputeLayoutRect(item);
56867
+ const rect = item.computeBoundsInRect(layoutRect);
56868
+ item.setLayoutRect(rect);
56869
+ const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
56870
+ const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
56871
+ item.setLayoutStartPosition({
56872
+ x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
56873
+ y: preTop + item.layoutOffsetY + item.layoutPaddingTop
56874
+ });
56875
+ maxWidth = Math.max(maxWidth, itemTotalWidth);
56876
+ preTop += itemTotalHeight;
56877
+ if (preTop > limitHeight) {
56878
+ preRight -= maxWidth;
56879
+ maxWidth = itemTotalWidth;
56880
+ preTop = this._topCurrent + itemTotalHeight;
56881
+ item.setLayoutStartPosition({
56882
+ x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
56883
+ y: this._topCurrent + item.layoutOffsetY + item.layoutPaddingTop
56884
+ });
56885
+ }
56886
+ });
56887
+ this._rightCurrent = preRight - maxWidth;
56888
+ maxHeight = 0;
56889
+ preLeft = this._leftCurrent;
56890
+ let preBottom = this._bottomCurrent;
56891
+ bottomItems.forEach((item, index) => {
56892
+ const layoutRect = this.getItemComputeLayoutRect(item);
56893
+ const rect = item.computeBoundsInRect(layoutRect);
56894
+ item.setLayoutRect(rect);
56895
+ const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
56896
+ const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
56897
+ item.setLayoutStartPosition({
56898
+ x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
56899
+ y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
56900
+ });
56901
+ maxHeight = Math.max(maxHeight, itemTotalHeight);
56902
+ preLeft += itemTotalWidth;
56903
+ if (preLeft > limitWidth) {
56904
+ preLeft = this._leftCurrent + itemTotalWidth;
56905
+ preBottom -= maxHeight;
56906
+ maxHeight = itemTotalHeight;
56907
+ item.setLayoutStartPosition({
56908
+ x: this._leftCurrent + item.layoutOffsetX + item.layoutPaddingLeft,
56909
+ y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
56910
+ });
56911
+ }
56912
+ });
56913
+ this._bottomCurrent = preBottom - maxHeight;
56914
+ }
56157
56915
  layoutRegionItems(regionItems, regionRelativeItems) {
56158
56916
  let regionRelativeTotalWidth = this._rightCurrent - this._leftCurrent;
56159
56917
  let regionRelativeTotalHeight = this._bottomCurrent - this._topCurrent;
@@ -57045,6 +57803,11 @@
57045
57803
  });
57046
57804
  });
57047
57805
  }
57806
+ setPostProcess(key, postProcessFunc, state = 'normal') {
57807
+ if (this.stateStyle[state]?.[key]) {
57808
+ this.stateStyle[state][key].postProcess = postProcessFunc;
57809
+ }
57810
+ }
57048
57811
  getAttribute(key, datum, state = 'normal', opt) {
57049
57812
  return this._computeAttribute(key, datum, state, opt);
57050
57813
  }
@@ -57100,12 +57863,16 @@
57100
57863
  return style;
57101
57864
  }
57102
57865
  _computeAttribute(key, datum, state, opt) {
57103
- let baseValue;
57866
+ let stateStyle;
57104
57867
  if (!this.stateStyle[state]?.[key]) {
57105
- baseValue = this._computeStateAttribute(this.stateStyle.normal[key], key, datum, state, opt);
57868
+ stateStyle = this.stateStyle.normal[key];
57106
57869
  }
57107
57870
  else {
57108
- baseValue = this._computeStateAttribute(this.stateStyle[state][key], key, datum, state, opt);
57871
+ stateStyle = this.stateStyle[state][key];
57872
+ }
57873
+ let baseValue = this._computeStateAttribute(stateStyle, key, datum, state, opt);
57874
+ if (isFunction(stateStyle?.postProcess)) {
57875
+ baseValue = stateStyle.postProcess(baseValue, datum, this._attributeContext, opt, this.getDataView());
57109
57876
  }
57110
57877
  if (key in this._computeExChannel) {
57111
57878
  return this._computeExChannel[key](key, datum, state, opt, baseValue);
@@ -57304,10 +58071,24 @@
57304
58071
  }
57305
58072
  }
57306
58073
 
57307
- VChart.useMark([ComponentMark, GroupMark]);
58074
+ class ImageMark extends BaseMark {
58075
+ static type = MarkTypeEnum.image;
58076
+ type = ImageMark.type;
58077
+ _getDefaultStyle() {
58078
+ const defaultStyle = {
58079
+ ...super._getDefaultStyle(),
58080
+ width: undefined,
58081
+ height: undefined,
58082
+ lineWidth: 0
58083
+ };
58084
+ return defaultStyle;
58085
+ }
58086
+ }
58087
+
58088
+ VChart.useMark([ComponentMark, GroupMark, ImageMark]);
57308
58089
  Factory.registerRegion('region', Region);
57309
58090
  Factory.registerLayout('base', Layout);
57310
- const version = "1.1.0-beta.9";
58091
+ const version = "1.1.1-beta.1";
57311
58092
  Logger.getInstance(LoggerLevel.Error);
57312
58093
 
57313
58094
  var SeriesMarkNameEnum;
@@ -60865,7 +61646,7 @@
60865
61646
  getStatisticFields() {
60866
61647
  const fields = [];
60867
61648
  if (this.getXAxisHelper()?.getScale) {
60868
- this._fieldX.forEach(f => {
61649
+ (this._fieldX2 ? [...this._fieldX, this._fieldX2] : this._fieldX).forEach(f => {
60869
61650
  const result = { key: f, operations: [] };
60870
61651
  if (isContinuous(this.getXAxisHelper().getScale(0).type)) {
60871
61652
  result.operations = ['max', 'min'];
@@ -60877,7 +61658,7 @@
60877
61658
  });
60878
61659
  }
60879
61660
  if (this.getYAxisHelper()?.getScale) {
60880
- this._fieldY.forEach(f => {
61661
+ (this._fieldY2 ? [...this._fieldY, this._fieldY2] : this._fieldY).forEach(f => {
60881
61662
  const result = { key: f, operations: [] };
60882
61663
  if (isContinuous(this.getYAxisHelper().getScale(0).type)) {
60883
61664
  result.operations = ['max', 'min'];
@@ -60972,14 +61753,8 @@
60972
61753
  if (isValid(this._spec.direction)) {
60973
61754
  this._direction = this._spec.direction;
60974
61755
  }
60975
- if (this._direction === Direction$2.vertical) {
60976
- this.setFieldY2('y1');
60977
- this.setFieldX2(this._spec?.x2Field);
60978
- }
60979
- else {
60980
- this.setFieldX2('x1');
60981
- this.setFieldY2(this._spec?.y2Field);
60982
- }
61756
+ this.setFieldX2(this._spec?.x2Field);
61757
+ this.setFieldY2(this._spec?.y2Field);
60983
61758
  if (this._stack) {
60984
61759
  this.setValueFieldToStack();
60985
61760
  }
@@ -62421,7 +63196,7 @@
62421
63196
  type: 'waterfallFillTotal',
62422
63197
  options: {
62423
63198
  indexField: this.getGroupFields()[0],
62424
- valueField: this.getStackValueField()[0],
63199
+ valueField: this.getStackValueField(),
62425
63200
  seriesField: this.getSeriesField(),
62426
63201
  seriesFieldName: this._theme.seriesFieldName,
62427
63202
  total: this._spec.total
@@ -62437,7 +63212,7 @@
62437
63212
  type: 'waterfall',
62438
63213
  options: {
62439
63214
  indexField: this.getGroupFields()[0],
62440
- valueField: this.getStackValueField()[0],
63215
+ valueField: this.getStackValueField(),
62441
63216
  seriesField: this.getSeriesField(),
62442
63217
  seriesFieldName: this._theme.seriesFieldName,
62443
63218
  startAs: STACK_FIELD_START,
@@ -62500,19 +63275,20 @@
62500
63275
  }
62501
63276
  }
62502
63277
  _totalPositionX(datum, field, pos = 0.5) {
62503
- const { dataToPosition } = this._xAxisHelper;
63278
+ const { dataToPosition, getBandwidth } = this._xAxisHelper;
62504
63279
  if (this._direction === Direction$2.vertical) {
62505
63280
  return (dataToPosition([datum[field]], {
62506
63281
  bandPosition: this._bandPosition
62507
63282
  }) +
62508
- this._rectMark.getAttribute('width', datum) * pos);
63283
+ getBandwidth(0) * 0.5 -
63284
+ this._rectMark.getAttribute('width', datum) * (0.5 - pos));
62509
63285
  }
62510
63286
  return valueInScaleRange(dataToPosition([datum[field]], {
62511
63287
  bandPosition: this._bandPosition
62512
63288
  }));
62513
63289
  }
62514
63290
  _totalPositionY(datum, field, pos = 0.5) {
62515
- const { dataToPosition } = this._yAxisHelper;
63291
+ const { dataToPosition, getBandwidth } = this._yAxisHelper;
62516
63292
  if (this._direction === Direction$2.vertical) {
62517
63293
  return valueInScaleRange(dataToPosition([datum[field]], {
62518
63294
  bandPosition: this._bandPosition
@@ -62521,7 +63297,8 @@
62521
63297
  return (dataToPosition([datum[field]], {
62522
63298
  bandPosition: this._bandPosition
62523
63299
  }) +
62524
- this._rectMark.getAttribute('height', datum) * pos);
63300
+ getBandwidth(0) * 0.5 -
63301
+ this._rectMark.getAttribute('height', datum) * (0.5 - pos));
62525
63302
  }
62526
63303
  initMarkStyle() {
62527
63304
  super.initMarkStyle();
@@ -64352,7 +65129,8 @@
64352
65129
 
64353
65130
  const map = (data, opt) => {
64354
65131
  if (data.features) {
64355
- data.features.forEach((f) => {
65132
+ data.features.forEach((f, index) => {
65133
+ f[DEFAULT_DATA_INDEX] = index;
64356
65134
  if (opt.nameMap) {
64357
65135
  f.name = opt.nameMap[f.properties?.[opt.nameProperty]];
64358
65136
  }
@@ -64466,6 +65244,7 @@
64466
65244
  });
64467
65245
  if (this._spec.label?.visible) {
64468
65246
  this._labelMark = this._createMark(MapSeries.mark.label, {
65247
+ parent: this.getRegion().getGroupMark(),
64469
65248
  skipBeforeLayouted: true,
64470
65249
  dataView: this._mapViewData.getDataView(),
64471
65250
  dataProductId: this._mapViewData.getProductId()
@@ -64480,10 +65259,16 @@
64480
65259
  if (isValid(datum[this._seriesField ?? DEFAULT_DATA_SERIES_FIELD])) {
64481
65260
  return (this._option.globalScale.getScale('color') ?? this.getDefaultColorScale()).scale(datum[this._seriesField ?? DEFAULT_DATA_SERIES_FIELD]);
64482
65261
  }
64483
- return this._theme?.defaultFillColor;
65262
+ return this._spec?.defaultFillColor;
64484
65263
  },
64485
65264
  path: this.getPath.bind(this)
64486
65265
  }, 'normal', AttributeLevel.Series);
65266
+ pathMark.setPostProcess('fill', result => {
65267
+ if (!isValid(result)) {
65268
+ return this._spec.defaultFillColor;
65269
+ }
65270
+ return result;
65271
+ });
64487
65272
  this.setMarkStyle(pathMark, {
64488
65273
  smoothScale: true
64489
65274
  }, 'normal', AttributeLevel.Built_In);
@@ -64496,9 +65281,7 @@
64496
65281
  text: (datum) => {
64497
65282
  return this._getDatumName(datum);
64498
65283
  },
64499
- x: (datum) => {
64500
- return this.dataToPosition(datum)?.x;
64501
- },
65284
+ x: (datum) => this.dataToPosition(datum)?.x,
64502
65285
  y: (datum) => this.dataToPosition(datum)?.y
64503
65286
  });
64504
65287
  }
@@ -64513,12 +65296,12 @@
64513
65296
  this._tooltipHelper = new MapSeriesTooltipHelper(this);
64514
65297
  }
64515
65298
  getPath(datum) {
64516
- const area = this._areaCache.get(datum?.properties?.[this._nameProperty]);
65299
+ const area = this._areaCache.get(datum[DEFAULT_DATA_INDEX]);
64517
65300
  if (area) {
64518
65301
  return area.shape;
64519
65302
  }
64520
65303
  const shape = this._coordinateHelper?.shape(datum);
64521
- this._areaCache.set(datum?.properties?.[this._nameProperty], {
65304
+ this._areaCache.set(datum[DEFAULT_DATA_INDEX], {
64522
65305
  shape
64523
65306
  });
64524
65307
  return shape;
@@ -64562,10 +65345,7 @@
64562
65345
  }
64563
65346
  const elements = vGrammarMark.elements;
64564
65347
  if (mark.type === MarkTypeEnum.path) {
64565
- elements.forEach((el) => {
64566
- const graphicItem = el.getGraphicItem();
64567
- graphicItem.scale(scale, scale, scaleCenter);
64568
- });
65348
+ vGrammarMark.group.getGroupGraphicItem().scale(scale, scale, scaleCenter);
64569
65349
  }
64570
65350
  else {
64571
65351
  elements.forEach((el) => {
@@ -64591,10 +65371,7 @@
64591
65371
  }
64592
65372
  const elements = vGrammarMark.elements;
64593
65373
  if (mark.type === MarkTypeEnum.path) {
64594
- elements.forEach((el) => {
64595
- const graphicItem = el.getGraphicItem();
64596
- graphicItem.translate(delta[0], delta[1]);
64597
- });
65374
+ vGrammarMark.group.getGroupGraphicItem().translate(delta[0], delta[1]);
64598
65375
  }
64599
65376
  else {
64600
65377
  elements.forEach((el, i) => {
@@ -64621,7 +65398,16 @@
64621
65398
  return [Number.NaN, Number.NaN];
64622
65399
  }
64623
65400
  _getDatumName(datum) {
64624
- return datum[this.nameField] ?? datum.properties?.[this.nameField] ?? '';
65401
+ if (datum[this.nameField]) {
65402
+ return datum[this.nameField];
65403
+ }
65404
+ if (datum.properties?.[this._nameProperty]) {
65405
+ if (this._spec.nameMap) {
65406
+ return this._spec.nameMap[datum.properties[this._nameProperty]] ?? '';
65407
+ }
65408
+ return datum.properties[this._nameProperty] ?? '';
65409
+ }
65410
+ return '';
64625
65411
  }
64626
65412
  dataToPositionX(data) {
64627
65413
  throw new Error('Method not implemented.');
@@ -64635,7 +65421,7 @@
64635
65421
  this._mapViewData?.updateData();
64636
65422
  }
64637
65423
  _getDataIdKey() {
64638
- return (datum) => datum?.properties?.[this._nameProperty];
65424
+ return DEFAULT_DATA_INDEX;
64639
65425
  }
64640
65426
  }
64641
65427
 
@@ -75238,9 +76024,9 @@
75238
76024
  angle: {}
75239
76025
  };
75240
76026
  function transformAxisLineStyle(lineCfg) {
75241
- transformComponentStyle(lineCfg);
75242
- transformComponentStyle(lineCfg.startSymbol);
75243
- transformComponentStyle(lineCfg.endSymbol);
76027
+ lineCfg = transformComponentStyle(lineCfg);
76028
+ lineCfg.startSymbol = transformComponentStyle(lineCfg.startSymbol);
76029
+ lineCfg.endSymbol = transformComponentStyle(lineCfg.endSymbol);
75244
76030
  return lineCfg;
75245
76031
  }
75246
76032
  function getAxisLabelOffset(axisSpec) {
@@ -75592,7 +76378,8 @@
75592
76378
  map: spec.map,
75593
76379
  nameProperty: spec.nameProperty,
75594
76380
  nameMap: spec.nameMap,
75595
- area: spec.area
76381
+ area: spec.area,
76382
+ defaultFillColor: spec.defaultFillColor
75596
76383
  };
75597
76384
  return series;
75598
76385
  }
@@ -76780,7 +77567,7 @@
76780
77567
  resultObj[d[state]] = 0;
76781
77568
  }
76782
77569
  if (!isNil(valueFields[i])) {
76783
- resultObj[d[state]] += parseFloat(d[valueFields[i]]);
77570
+ resultObj[d[state]] += isNaN(parseFloat(d[valueFields[i]])) ? 1 : parseFloat(d[valueFields[i]]);
76784
77571
  }
76785
77572
  }
76786
77573
  });
@@ -76945,7 +77732,6 @@
76945
77732
  const dataCollection = [];
76946
77733
  const stateFields = [];
76947
77734
  const valueFields = [];
76948
- let hasValidateValueField = false;
76949
77735
  if (this._relatedAxisComponent) {
76950
77736
  const originalStateFields = {};
76951
77737
  eachSeries(this._regions, s => {
@@ -76971,19 +77757,12 @@
76971
77757
  : yAxisHelper;
76972
77758
  const valueAxisHelper = stateAxisHelper === xAxisHelper ? yAxisHelper : xAxisHelper;
76973
77759
  const isValidateValueAxis = isContinuous(valueAxisHelper.getScale(0).type);
76974
- if (isValidateValueAxis) {
76975
- hasValidateValueField = true;
76976
- }
76977
77760
  dataCollection.push(s.getRawData());
76978
77761
  const seriesSpec = s.getSpec();
76979
77762
  const xFields = array(seriesSpec.xField);
76980
77763
  const yFields = array(seriesSpec.yField);
76981
- const xField = s.coordinate === 'cartesian'
76982
- ? xFields[xFields.length - 1]
76983
- : seriesSpec.angleField ?? seriesSpec.categoryField;
76984
- const yField = s.coordinate === 'cartesian'
76985
- ? yFields[yFields.length - 1]
76986
- : seriesSpec.radiusField ?? seriesSpec.valueField;
77764
+ const xField = s.coordinate === 'cartesian' ? xFields[0] : seriesSpec.angleField ?? seriesSpec.categoryField;
77765
+ const yField = s.coordinate === 'cartesian' ? yFields[0] : seriesSpec.radiusField ?? seriesSpec.valueField;
76987
77766
  originalStateFields[s.id] =
76988
77767
  s.type === 'link' ? 'from_xField' : stateAxisHelper === xAxisHelper ? xField : yField;
76989
77768
  stateFields.push(originalStateFields[s.id]);
@@ -76998,7 +77777,7 @@
76998
77777
  this._originalStateFields = originalStateFields;
76999
77778
  }
77000
77779
  else {
77001
- hasValidateValueField = isNil(this._spec.valueField);
77780
+ isNil(this._spec.valueField);
77002
77781
  eachSeries(this._regions, s => {
77003
77782
  dataCollection.push(s.getRawData());
77004
77783
  stateFields.push(this._field);
@@ -77024,7 +77803,7 @@
77024
77803
  },
77025
77804
  output: {
77026
77805
  stateField: this._stateField,
77027
- valueField: hasValidateValueField ? this._valueField : null
77806
+ valueField: this._valueField
77028
77807
  }
77029
77808
  }
77030
77809
  }, false);
@@ -77394,6 +78173,8 @@
77394
78173
  _valueScale;
77395
78174
  _backgroundSize;
77396
78175
  _middleHandlerSize;
78176
+ _startHandlerSize;
78177
+ _endHandlerSize;
77397
78178
  static createComponent(spec, options) {
77398
78179
  const compSpec = spec.dataZoom || options.defaultSpec;
77399
78180
  if (isNil(compSpec)) {
@@ -77434,6 +78215,10 @@
77434
78215
  ? this._height - this._middleHandlerSize
77435
78216
  : this._width - this._middleHandlerSize;
77436
78217
  }
78218
+ const startHandlerVisble = this._spec.startHandler.style.visible ?? true;
78219
+ const endHandlerVisble = this._spec.endHandler.style.visible ?? true;
78220
+ this._startHandlerSize = startHandlerVisble ? this._spec.startHandler.style.size : 0;
78221
+ this._endHandlerSize = endHandlerVisble ? this._spec.endHandler.style.size : 0;
77437
78222
  }
77438
78223
  onLayoutEnd(ctx) {
77439
78224
  this._updateScaleRange();
@@ -77448,19 +78233,20 @@
77448
78233
  }
77449
78234
  }
77450
78235
  _updateScaleRange() {
78236
+ const handlerSize = (this._startHandlerSize + this._endHandlerSize) / 2;
77451
78237
  if (!this._stateScale || !this._valueScale) {
77452
78238
  return;
77453
78239
  }
77454
78240
  if (this._isHorizontal) {
77455
- this._stateScale.range([0, this._computeWidth()]);
78241
+ this._stateScale.range([0, this._computeWidth() - handlerSize]);
77456
78242
  this._valueScale.range([this._computeHeight() - this._middleHandlerSize, 0]);
77457
78243
  }
77458
78244
  else if (this.layoutOrient === 'left') {
77459
- this._stateScale.range([0, this._computeHeight()]);
78245
+ this._stateScale.range([0, this._computeHeight() - handlerSize]);
77460
78246
  this._valueScale.range([this._computeWidth() - this._middleHandlerSize, 0]);
77461
78247
  }
77462
78248
  else {
77463
- this._stateScale.range([0, this._computeHeight()]);
78249
+ this._stateScale.range([0, this._computeHeight() - handlerSize]);
77464
78250
  this._valueScale.range([0, this._computeWidth() - this._middleHandlerSize]);
77465
78251
  }
77466
78252
  if (this._component) {
@@ -77501,29 +78287,33 @@
77501
78287
  if (this._isHorizontal) {
77502
78288
  return this._backgroundSize + this._middleHandlerSize;
77503
78289
  }
77504
- return this.getLayoutRect().height;
78290
+ return this.getLayoutRect().height - (this._startHandlerSize + this._endHandlerSize) / 2;
77505
78291
  }
77506
78292
  _dataToPositionX = (datum) => {
77507
78293
  const offsetLeft = this._orient === 'left' ? this._middleHandlerSize : 0;
78294
+ const offsetHandler = this._isHorizontal ? this._startHandlerSize / 2 : 0;
77508
78295
  const xScale = this._isHorizontal ? this._stateScale : this._valueScale;
77509
- return xScale.scale(datum[this._stateField]) + this.getLayoutStartPoint().x + offsetLeft;
78296
+ return xScale.scale(datum[this._stateField]) + this.getLayoutStartPoint().x + offsetLeft + offsetHandler;
77510
78297
  };
77511
78298
  _dataToPositionX2 = (datum) => {
77512
78299
  const offsetLeft = this._orient === 'left' ? this._middleHandlerSize : 0;
78300
+ const offsetHandler = this._isHorizontal ? this._startHandlerSize / 2 : 0;
77513
78301
  const xScale = this._isHorizontal ? this._stateScale : this._valueScale;
77514
78302
  const min = xScale.domain()[0];
77515
- return xScale.scale(min) + this.getLayoutStartPoint().x + offsetLeft;
78303
+ return xScale.scale(min) + this.getLayoutStartPoint().x + offsetLeft + offsetHandler;
77516
78304
  };
77517
78305
  _dataToPositionY = (datum) => {
77518
78306
  const offsetTop = this._isHorizontal ? this._middleHandlerSize : 0;
78307
+ const offsetHandler = this._isHorizontal ? 0 : this._startHandlerSize / 2;
77519
78308
  const yScale = this._isHorizontal ? this._valueScale : this._stateScale;
77520
- return yScale.scale(datum[this._valueField]) + this.getLayoutStartPoint().y + offsetTop;
78309
+ return yScale.scale(datum[this._valueField]) + this.getLayoutStartPoint().y + offsetTop + offsetHandler;
77521
78310
  };
77522
78311
  _dataToPositionY2 = (datum) => {
77523
78312
  const offsetTop = this._isHorizontal ? this._middleHandlerSize : 0;
78313
+ const offsetHandler = this._isHorizontal ? 0 : this._startHandlerSize / 2;
77524
78314
  const yScale = this._isHorizontal ? this._valueScale : this._stateScale;
77525
78315
  const min = yScale.domain()[0];
77526
- return yScale.scale(min) + this.getLayoutStartPoint().y + offsetTop;
78316
+ return yScale.scale(min) + this.getLayoutStartPoint().y + offsetTop + offsetHandler;
77527
78317
  };
77528
78318
  _createOrUpdateComponent() {
77529
78319
  if (!this._component) {
@@ -79569,8 +80359,8 @@
79569
80359
  space: spec.label.space,
79570
80360
  inside: spec.label.inside,
79571
80361
  style: isFunction(spec.label.style)
79572
- ? (datum, index) => {
79573
- const style = this._preprocessSpec(spec.label.style(datum.rawValue, index, datum));
80362
+ ? (datum, index, data, layer) => {
80363
+ const style = this._preprocessSpec(spec.label.style(datum.rawValue, index, datum, data, layer));
79574
80364
  return transformToGraphic(this._preprocessSpec(merge$2({}, this._theme.label?.style, style)));
79575
80365
  }
79576
80366
  : transformToGraphic(spec.label.style),
@@ -79579,7 +80369,7 @@
79579
80369
  return spec.label.formatMethod(datum.rawValue, datum);
79580
80370
  }
79581
80371
  : null,
79582
- state: transformStateStyle(spec.label.state),
80372
+ state: transformAxisLabelStateStyle(spec.label.state),
79583
80373
  autoRotate: !!spec.label.autoRotate,
79584
80374
  autoHide: !!spec.label.autoHide,
79585
80375
  autoLimit: !!spec.label.autoLimit,
@@ -79595,8 +80385,8 @@
79595
80385
  inside: spec.tick.inside,
79596
80386
  alignWithLabel: spec.tick.alignWithLabel,
79597
80387
  style: isFunction(spec.tick.style)
79598
- ? (datum, index) => {
79599
- const style = this._preprocessSpec(spec.tick.style(datum.rawValue, index, datum));
80388
+ ? (value, index, datum, data) => {
80389
+ const style = this._preprocessSpec(spec.tick.style(value, index, datum, data));
79600
80390
  return transformToGraphic(this._preprocessSpec(merge$2({}, this._theme.tick?.style, style)));
79601
80391
  }
79602
80392
  : transformToGraphic(spec.tick.style),
@@ -79607,7 +80397,12 @@
79607
80397
  length: spec.subTick.tickSize,
79608
80398
  inside: spec.subTick.inside,
79609
80399
  count: spec.subTick.tickCount,
79610
- style: transformToGraphic(spec.subTick.style),
80400
+ style: isFunction(spec.subTick.style)
80401
+ ? (value, index, datum, data) => {
80402
+ const style = spec.subTick.style(value, index, datum, data);
80403
+ return transformToGraphic(merge$2({}, this._theme.subTick?.style, style));
80404
+ }
80405
+ : transformToGraphic(spec.subTick.style),
79611
80406
  state: transformStateStyle(spec.subTick.state)
79612
80407
  },
79613
80408
  grid: {
@@ -79960,7 +80755,9 @@
79960
80755
  }
79961
80756
  else {
79962
80757
  if (isXAxis(this.orient)) {
79963
- field = s.fieldX;
80758
+ field = s.fieldX2
80759
+ ? [...s.fieldX, s.fieldX2]
80760
+ : s.fieldX;
79964
80761
  }
79965
80762
  else if (isZAxis(this.orient)) {
79966
80763
  field = s.fieldZ;
@@ -81191,10 +81988,10 @@
81191
81988
  if (!isEmpty(item.focusIconStyle)) {
81192
81989
  transformToGraphic(item.focusIconStyle);
81193
81990
  }
81194
- transformComponentStyle(item.shape);
81195
- transformComponentStyle(item.label);
81196
- transformComponentStyle(item.value);
81197
- transformComponentStyle(item.background);
81991
+ item.shape = transformComponentStyle(item.shape);
81992
+ item.label = transformComponentStyle(item.label);
81993
+ item.value = transformComponentStyle(item.value);
81994
+ item.background = transformComponentStyle(item.background);
81198
81995
  if (isPercent(item.maxWidth)) {
81199
81996
  item.maxWidth = (Number(item.maxWidth.substring(0, item.maxWidth.length - 1)) * rect.width) / 100;
81200
81997
  }
@@ -81893,6 +82690,7 @@
81893
82690
  };
81894
82691
 
81895
82692
  class Indicator extends BaseComponent {
82693
+ static speckey = 'indicator';
81896
82694
  static type = ComponentTypeEnum.indicator;
81897
82695
  type = ComponentTypeEnum.indicator;
81898
82696
  name = ComponentTypeEnum.indicator;
@@ -81913,7 +82711,7 @@
81913
82711
  const indicatorSpec = spec.indicator || options.defaultSpec;
81914
82712
  const indicators = array(indicatorSpec)
81915
82713
  .filter(s => s && s.visible !== false)
81916
- .map(s => new Indicator(s, options));
82714
+ .map((s, index) => new Indicator(s, { ...options, specIndex: index, specKey: Indicator.speckey }));
81917
82715
  return indicators;
81918
82716
  }
81919
82717
  created() {
@@ -82063,9 +82861,12 @@
82063
82861
  return eachSeries(this._regions, s => model === s) || this._regions.includes(model);
82064
82862
  }
82065
82863
  clear() {
82066
- super.clear();
82067
- this._indicatorComponent = null;
82864
+ if (this._indicatorComponent) {
82865
+ this._container.removeChild(this._indicatorComponent);
82866
+ this._indicatorComponent = null;
82867
+ }
82068
82868
  this._cacheAttrs = null;
82869
+ super.clear();
82069
82870
  }
82070
82871
  }
82071
82872
 
@@ -87950,6 +88751,7 @@
87950
88751
  }
87951
88752
  }
87952
88753
 
88754
+ loadPoptip({});
87953
88755
  VChart.useChart([
87954
88756
  AreaChart,
87955
88757
  LineChart,