@visactor/vrender 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1494,17 +1494,17 @@
1494
1494
  var EnvContribution = Symbol["for"]("EnvContribution");
1495
1495
  var VGlobal = Symbol["for"]("VGlobal");
1496
1496
 
1497
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
1497
+ var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
1498
1498
  var d,
1499
1499
  c = arguments.length,
1500
1500
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
1501
1501
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
1502
1502
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1503
1503
  },
1504
- __metadata$1e = undefined && undefined.__metadata || function (k, v) {
1504
+ __metadata$1h = undefined && undefined.__metadata || function (k, v) {
1505
1505
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
1506
1506
  },
1507
- __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
1507
+ __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
1508
1508
  return function (target, key) {
1509
1509
  decorator(target, key, paramIndex);
1510
1510
  };
@@ -1748,7 +1748,7 @@
1748
1748
  }
1749
1749
  }]);
1750
1750
  }();
1751
- exports.DefaultGlobal = __decorate$1D([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(EnvContribution)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultGlobal);
1751
+ exports.DefaultGlobal = __decorate$1H([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(EnvContribution)), __metadata$1h("design:paramtypes", [Object])], exports.DefaultGlobal);
1752
1752
 
1753
1753
  function getDefaultExportFromCjs (x) {
1754
1754
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -5324,7 +5324,7 @@
5324
5324
  textBaseline: "top",
5325
5325
  layoutDirection: "horizontal",
5326
5326
  textConfig: [],
5327
- forceBreakLine: !1,
5327
+ disableAutoWrapLine: !1,
5328
5328
  maxHeight: void 0,
5329
5329
  maxWidth: void 0,
5330
5330
  singleLine: !1
@@ -5481,7 +5481,7 @@
5481
5481
  return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
5482
5482
  }
5483
5483
 
5484
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5484
+ var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5485
5485
  var d,
5486
5486
  c = arguments.length,
5487
5487
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5790,9 +5790,9 @@
5790
5790
  }
5791
5791
  }]);
5792
5792
  }();
5793
- ATextMeasure = __decorate$1C([injectable()], ATextMeasure);
5793
+ ATextMeasure = __decorate$1G([injectable()], ATextMeasure);
5794
5794
 
5795
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5795
+ var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5796
5796
  var d,
5797
5797
  c = arguments.length,
5798
5798
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5808,7 +5808,7 @@
5808
5808
  _inherits(DefaultTextMeasureContribution, _ATextMeasure);
5809
5809
  return _createClass(DefaultTextMeasureContribution);
5810
5810
  }(ATextMeasure);
5811
- exports.DefaultTextMeasureContribution = __decorate$1B([injectable()], exports.DefaultTextMeasureContribution);
5811
+ exports.DefaultTextMeasureContribution = __decorate$1F([injectable()], exports.DefaultTextMeasureContribution);
5812
5812
 
5813
5813
  var container = new Container();
5814
5814
 
@@ -6247,14 +6247,14 @@
6247
6247
  }();
6248
6248
  var canvasAllocate = new DefaultCanvasAllocate();
6249
6249
 
6250
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6250
+ var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6251
6251
  var d,
6252
6252
  c = arguments.length,
6253
6253
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
6254
6254
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
6255
6255
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6256
6256
  },
6257
- __metadata$1d = undefined && undefined.__metadata || function (k, v) {
6257
+ __metadata$1g = undefined && undefined.__metadata || function (k, v) {
6258
6258
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
6259
6259
  };
6260
6260
  var VWindow = Symbol["for"]("VWindow");
@@ -6452,19 +6452,19 @@
6452
6452
  }
6453
6453
  }]);
6454
6454
  }();
6455
- exports.DefaultWindow = __decorate$1A([injectable(), __metadata$1d("design:paramtypes", [])], exports.DefaultWindow);
6455
+ exports.DefaultWindow = __decorate$1E([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultWindow);
6456
6456
 
6457
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6457
+ var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6458
6458
  var d,
6459
6459
  c = arguments.length,
6460
6460
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
6461
6461
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
6462
6462
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6463
6463
  },
6464
- __metadata$1c = undefined && undefined.__metadata || function (k, v) {
6464
+ __metadata$1f = undefined && undefined.__metadata || function (k, v) {
6465
6465
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
6466
6466
  },
6467
- __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
6467
+ __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
6468
6468
  return function (target, key) {
6469
6469
  decorator(target, key, paramIndex);
6470
6470
  };
@@ -6584,7 +6584,7 @@
6584
6584
  }
6585
6585
  }]);
6586
6586
  }();
6587
- exports.DefaultGraphicUtil = __decorate$1z([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(TextMeasureContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
6587
+ exports.DefaultGraphicUtil = __decorate$1D([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __metadata$1f("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
6588
6588
  var TransformMode;
6589
6589
  !function (TransformMode) {
6590
6590
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -6660,7 +6660,7 @@
6660
6660
  }
6661
6661
  }]);
6662
6662
  }();
6663
- exports.DefaultTransformUtil = __decorate$1z([injectable(), __metadata$1c("design:paramtypes", [])], exports.DefaultTransformUtil);
6663
+ exports.DefaultTransformUtil = __decorate$1D([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultTransformUtil);
6664
6664
 
6665
6665
  var defaultThemeObj = {
6666
6666
  arc: DefaultArcAttribute,
@@ -6794,7 +6794,7 @@
6794
6794
  return null;
6795
6795
  }
6796
6796
 
6797
- var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
6797
+ var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
6798
6798
  return new (P || (P = Promise))(function (resolve, reject) {
6799
6799
  function fulfilled(value) {
6800
6800
  try {
@@ -6886,7 +6886,7 @@
6886
6886
  key: "forEachChildrenAsync",
6887
6887
  value: function forEachChildrenAsync(cb) {
6888
6888
  var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
6889
- return __awaiter$4(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6889
+ return __awaiter$5(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6890
6890
  var child, i, breakTag, _child2, _i2, _breakTag;
6891
6891
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6892
6892
  while (1) switch (_context.prev = _context.next) {
@@ -7395,7 +7395,23 @@
7395
7395
  }, {
7396
7396
  key: "composedPath",
7397
7397
  value: function composedPath() {
7398
- return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.path;
7398
+ return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.composedDetailPath(), this.path;
7399
+ }
7400
+ }, {
7401
+ key: "composedDetailPath",
7402
+ value: function composedDetailPath() {
7403
+ this.pickParams && this.pickParams.graphic && (this.detailPath = this.path.slice(), this._composedDetailPath(this.pickParams));
7404
+ }
7405
+ }, {
7406
+ key: "_composedDetailPath",
7407
+ value: function _composedDetailPath(params) {
7408
+ if (params && params.graphic) {
7409
+ var g = this.pickParams.graphic;
7410
+ if (g.stage) {
7411
+ var path = g.stage.eventSystem.manager.propagationPath(g);
7412
+ this.detailPath.push(path), this._composedDetailPath(params.params);
7413
+ }
7414
+ }
7399
7415
  }
7400
7416
  }, {
7401
7417
  key: "preventDefault",
@@ -7581,7 +7597,7 @@
7581
7597
  function EventManager(root, config) {
7582
7598
  var _this = this;
7583
7599
  _classCallCheck(this, EventManager);
7584
- this.dispatch = new EventEmitter(), this.cursorTarget = null, this.mappingState = {
7600
+ this.dispatch = new EventEmitter(), this.cursorTarget = null, this.pauseNotify = !1, this.mappingState = {
7585
7601
  trackingData: {}
7586
7602
  }, this.eventPool = new Map(), this.onPointerDown = function (from, target) {
7587
7603
  if (!(from instanceof FederatedPointerEvent)) return void Logger.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
@@ -7753,6 +7769,7 @@
7753
7769
  }, {
7754
7770
  key: "notifyTarget",
7755
7771
  value: function notifyTarget(e, type) {
7772
+ if (this.pauseNotify) return;
7756
7773
  type = null != type ? type : e.type;
7757
7774
  var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? "".concat(type, "capture") : type;
7758
7775
  this.notifyListeners(e, key), e.eventPhase === e.AT_TARGET && this.notifyListeners(e, type);
@@ -7868,7 +7885,7 @@
7868
7885
  dispatchEvent: function dispatchEvent(e) {
7869
7886
  var _a;
7870
7887
  if (!(e instanceof FederatedEvent)) throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");
7871
- return e.defaultPrevented = !1, e.path = [], e.target = this, null === (_a = null == e ? void 0 : e.manager) || void 0 === _a || _a.dispatchEvent(e), !e.defaultPrevented;
7888
+ return e.defaultPrevented = !1, e.path = [], e.detailPath && (e.detailPath = []), e.target = this, null === (_a = null == e ? void 0 : e.manager) || void 0 === _a || _a.dispatchEvent(e), !e.defaultPrevented;
7872
7889
  },
7873
7890
  emit: function emit(eventName, object) {
7874
7891
  return this.dispatchEvent(new CustomEvent(eventName, object));
@@ -8074,6 +8091,16 @@
8074
8091
  nativeEvent.composedPath && nativeEvent.composedPath().length > 0 && (target = nativeEvent.composedPath()[0]);
8075
8092
  return target !== (this.domElement.getNativeHandler ? this.domElement.getNativeHandler().nativeCanvas : this.domElement);
8076
8093
  }
8094
+ }, {
8095
+ key: "pauseTriggerEvent",
8096
+ value: function pauseTriggerEvent() {
8097
+ this.manager.pauseNotify = !0;
8098
+ }
8099
+ }, {
8100
+ key: "resumeTriggerEvent",
8101
+ value: function resumeTriggerEvent() {
8102
+ this.manager.pauseNotify = !1;
8103
+ }
8077
8104
  }]);
8078
8105
  }();
8079
8106
 
@@ -12557,7 +12584,7 @@
12557
12584
  return str.startsWith("<");
12558
12585
  }
12559
12586
 
12560
- var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
12587
+ var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
12561
12588
  return new (P || (P = Promise))(function (resolve, reject) {
12562
12589
  function fulfilled(value) {
12563
12590
  try {
@@ -12586,7 +12613,7 @@
12586
12613
  group.incrementalAppendChild(graphic);
12587
12614
  }
12588
12615
  function waitForAllSubLayers(stage) {
12589
- return __awaiter$3(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12616
+ return __awaiter$4(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12590
12617
  var promiseList, layers;
12591
12618
  return _regeneratorRuntime().wrap(function _callee$(_context) {
12592
12619
  while (1) switch (_context.prev = _context.next) {
@@ -13189,14 +13216,14 @@
13189
13216
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
13190
13217
 
13191
13218
  var _DefaultLayerService_,
13192
- __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13219
+ __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13193
13220
  var d,
13194
13221
  c = arguments.length,
13195
13222
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13196
13223
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
13197
13224
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13198
13225
  },
13199
- __metadata$1b = undefined && undefined.__metadata || function (k, v) {
13226
+ __metadata$1e = undefined && undefined.__metadata || function (k, v) {
13200
13227
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13201
13228
  };
13202
13229
  exports.DefaultLayerService = _DefaultLayerService_ = /*#__PURE__*/function () {
@@ -13286,7 +13313,7 @@
13286
13313
  }
13287
13314
  }]);
13288
13315
  }();
13289
- exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = _DefaultLayerService_ = __decorate$1y([injectable(), __metadata$1b("design:paramtypes", [])], exports.DefaultLayerService);
13316
+ exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = _DefaultLayerService_ = __decorate$1C([injectable(), __metadata$1e("design:paramtypes", [])], exports.DefaultLayerService);
13290
13317
 
13291
13318
  var coreModule = new ContainerModule(function (bind) {
13292
13319
  bind(VGlobal).to(exports.DefaultGlobal).inSingletonScope(), bind(VWindow).to(exports.DefaultWindow), bind(GraphicUtil).to(exports.DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(exports.DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(exports.DefaultLayerService).inSingletonScope();
@@ -15946,7 +15973,8 @@
15946
15973
  top = _this$lines$i2.top,
15947
15974
  _height4 = _this$lines$i2.height;
15948
15975
  if (top + _height4 < this[this.directionKey.top] || top + _height4 > this[this.directionKey.top] + frameHeight) ;else if (this.ellipsis && this.lines[i + 1] && this.lines[i + 1].top + this.lines[i + 1].height > this[this.directionKey.top] + frameHeight) {
15949
- var lineWidth = this.lines[i].getWidthWithEllips();
15976
+ var ellipsis = !0 === this.ellipsis ? "..." : this.ellipsis || "",
15977
+ lineWidth = this.lines[i].getWidthWithEllips(ellipsis);
15950
15978
  lineWidth > widthBound && (widthBound = lineWidth), heightBound += this.lines[i].height;
15951
15979
  } else this.lines[i].actualWidth > widthBound && (widthBound = this.lines[i].actualWidth), heightBound += this.lines[i].height;
15952
15980
  } else {
@@ -15960,7 +15988,8 @@
15960
15988
  y = frameHeight - this.lines[_i5].top - this.lines[_i5].height;
15961
15989
  if (0 === frameHeight) this.lines[_i5].actualWidth > widthBound && (widthBound = this.lines[_i5].actualWidth), heightBound += this.lines[_i5].height;else if (y + _height5 > this[this.directionKey.top] + frameHeight || y < this[this.directionKey.top]) ;else {
15962
15990
  if (this.ellipsis && this.lines[_i5 + 1] && y - this.lines[_i5 + 1].height < this[this.directionKey.top]) {
15963
- var _lineWidth = this.lines[_i5].getWidthWithEllips();
15991
+ var _ellipsis = !0 === this.ellipsis ? "..." : this.ellipsis || "",
15992
+ _lineWidth = this.lines[_i5].getWidthWithEllips(_ellipsis);
15964
15993
  _lineWidth > widthBound && (widthBound = _lineWidth), heightBound += this.lines[_i5].height;
15965
15994
  } else this.lines[_i5].actualWidth > widthBound && (widthBound = this.lines[_i5].actualWidth), heightBound += this.lines[_i5].height;
15966
15995
  }
@@ -15970,7 +15999,8 @@
15970
15999
  _height6 = _this$lines$_i4.height;
15971
16000
  if (0 === frameHeight) this.lines[_i6].actualWidth > widthBound && (widthBound = this.lines[_i6].actualWidth), heightBound += this.lines[_i6].height;else if (_top4 + _height6 < this[this.directionKey.top] || _top4 + _height6 > this[this.directionKey.top] + frameHeight) ;else {
15972
16001
  if (this.ellipsis && this.lines[_i6 + 1] && this.lines[_i6 + 1].top + this.lines[_i6 + 1].height > this[this.directionKey.top] + frameHeight) {
15973
- var _lineWidth2 = this.lines[_i6].getWidthWithEllips();
16002
+ var _ellipsis2 = !0 === this.ellipsis ? "..." : this.ellipsis || "",
16003
+ _lineWidth2 = this.lines[_i6].getWidthWithEllips(_ellipsis2);
15974
16004
  _lineWidth2 > widthBound && (widthBound = _lineWidth2), heightBound += this.lines[_i6].height;
15975
16005
  } else this.lines[_i6].actualWidth > widthBound && (widthBound = this.lines[_i6].actualWidth), heightBound += this.lines[_i6].height;
15976
16006
  }
@@ -15997,7 +16027,7 @@
15997
16027
  var halfDetaHeight = 0,
15998
16028
  deltaAscent = 0,
15999
16029
  deltaDescent = 0;
16000
- this.height > height && (halfDetaHeight = (this.height - height) / 2, deltaAscent = Math.ceil(halfDetaHeight), deltaDescent = Math.floor(halfDetaHeight)), "top" === this.textBaseline ? (this.ascent = halfDetaHeight, this.descent = height - halfDetaHeight) : "bottom" === this.textBaseline ? (this.ascent = height - halfDetaHeight, this.descent = halfDetaHeight) : "middle" === this.textBaseline ? (this.ascent = this.height / 2, this.descent = this.height / 2) : (this.ascent = ascent + deltaAscent, this.descent = descent + deltaDescent), this.length = text.length, this.width = width || 0, this.text = text || "", this.newLine = newLine || !1, this.character = character, this.left = 0, this.top = 0, this.ellipsis = "normal", this.ellipsisWidth = 0, this.ellipsisOtherParagraphWidth = 0, "vertical" === character.direction && (this.direction = character.direction, this.widthOrigin = this.width, this.heightOrigin = this.height, this.width = this.heightOrigin, this.height = this.widthOrigin, this.lineHeight = this.height);
16030
+ this.height > height && (halfDetaHeight = (this.height - height) / 2, deltaAscent = Math.ceil(halfDetaHeight), deltaDescent = Math.floor(halfDetaHeight)), "top" === this.textBaseline ? (this.ascent = halfDetaHeight, this.descent = height - halfDetaHeight) : "bottom" === this.textBaseline ? (this.ascent = height - halfDetaHeight, this.descent = halfDetaHeight) : "middle" === this.textBaseline ? (this.ascent = this.height / 2, this.descent = this.height / 2) : (this.ascent = ascent + deltaAscent, this.descent = descent + deltaDescent), this.length = text.length, this.width = width || 0, this.text = text || "", this.newLine = newLine || !1, this.character = character, this.left = 0, this.top = 0, this.ellipsis = "normal", this.ellipsisWidth = 0, this.ellipsisOtherParagraphWidth = 0, "vertical" === character.direction && (this.direction = character.direction, this.widthOrigin = this.width, this.heightOrigin = this.height, this.width = this.heightOrigin, this.height = this.widthOrigin, this.lineHeight = this.height), this.ellipsisStr = "...";
16001
16031
  }
16002
16032
  return _createClass(Paragraph, [{
16003
16033
  key: "updateWidth",
@@ -16013,11 +16043,11 @@
16013
16043
  left = this.left + deltaLeft;
16014
16044
  baseline += this.top;
16015
16045
  var direction = this.direction;
16016
- if (this.verticalEllipsis) text = "...", direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
16046
+ if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
16017
16047
  if ("hide" === this.ellipsis) return;
16018
- if ("add" === this.ellipsis) text += "...", "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
16048
+ if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
16019
16049
  var index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
16020
- if (text = text.slice(0, index), text += "...", "right" === textAlign || "end" === textAlign) {
16050
+ if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
16021
16051
  var _measureTextCanvas3 = measureTextCanvas(this.text.slice(index), this.character),
16022
16052
  width = _measureTextCanvas3.width;
16023
16053
  "vertical" === direction || (left -= this.ellipsisWidth - width);
@@ -16042,7 +16072,7 @@
16042
16072
  if ("add" === this.ellipsis) return width + this.ellipsisWidth;
16043
16073
  if ("replace" === this.ellipsis) {
16044
16074
  var index = getStrByWithCanvas(text, width - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
16045
- text = text.slice(0, index), text += "...";
16075
+ text = text.slice(0, index), text += this.ellipsisStr;
16046
16076
  var _measureTextCanvas4 = measureTextCanvas(this.text.slice(index), this.character),
16047
16077
  measureWidth = _measureTextCanvas4.width;
16048
16078
  return width + this.ellipsisWidth - measureWidth;
@@ -16288,11 +16318,13 @@
16288
16318
  paragraph.verticalEllipsis = !0;
16289
16319
  break;
16290
16320
  }
16291
- var _measureTextCanvas = measureTextCanvas("...", paragraph.character),
16321
+ var ellipsis = !0 === drawEllipsis ? "..." : drawEllipsis || "";
16322
+ paragraph.ellipsisStr = ellipsis;
16323
+ var _measureTextCanvas = measureTextCanvas(ellipsis, paragraph.character),
16292
16324
  width = _measureTextCanvas.width,
16293
16325
  ellipsisWidth = width || 0;
16294
16326
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
16295
- paragraph.ellipsis = "add";
16327
+ lastLine && (paragraph.ellipsis = "add");
16296
16328
  break;
16297
16329
  }
16298
16330
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth + paragraph.width) {
@@ -16312,13 +16344,13 @@
16312
16344
  }
16313
16345
  }, {
16314
16346
  key: "getWidthWithEllips",
16315
- value: function getWidthWithEllips() {
16347
+ value: function getWidthWithEllips(ellipsis) {
16316
16348
  var _this3 = this;
16317
16349
  var otherParagraphWidth = 0;
16318
16350
  for (var i = this.paragraphs.length - 1; i >= 0; i--) {
16319
16351
  var paragraph = this.paragraphs[i];
16320
16352
  if (paragraph instanceof RichTextIcon) break;
16321
- var _measureTextCanvas2 = measureTextCanvas("...", paragraph.character),
16353
+ var _measureTextCanvas2 = measureTextCanvas(ellipsis, paragraph.character),
16322
16354
  _width = _measureTextCanvas2.width,
16323
16355
  ellipsisWidth = _width || 0;
16324
16356
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
@@ -16565,7 +16597,7 @@
16565
16597
  textBaseline = _this$attribute2.textBaseline,
16566
16598
  layoutDirection = _this$attribute2.layoutDirection,
16567
16599
  singleLine = _this$attribute2.singleLine,
16568
- forceBreakLine = _this$attribute2.forceBreakLine,
16600
+ disableAutoWrapLine = _this$attribute2.disableAutoWrapLine,
16569
16601
  paragraphs = [];
16570
16602
  for (var i = 0; i < textConfig.length; i++) if ("image" in textConfig[i]) {
16571
16603
  var config = this.combinedStyleToCharacter(textConfig[i]),
@@ -16590,12 +16622,12 @@
16590
16622
  richTextHeightEnable = "number" == typeof height && Number.isFinite(height) && height > 0 && (!maxHeightFinite || height <= maxHeight),
16591
16623
  frame = new Frame(0, 0, (richTextWidthEnable ? width : maxWidthFinite ? maxWidth : 0) || 0, (richTextHeightEnable ? height : maxHeightFinite ? maxHeight : 0) || 0, ellipsis, wordBreak, verticalDirection, textAlign, textBaseline, layoutDirection || "horizontal", !richTextWidthEnable && maxWidthFinite, !richTextHeightEnable && maxHeightFinite, singleLine || !1, null === (_a = this._frameCache) || void 0 === _a ? void 0 : _a.icons),
16592
16624
  wrapper = new Wrapper(frame);
16593
- if (forceBreakLine) {
16625
+ if (disableAutoWrapLine) {
16594
16626
  var lineCount = 0,
16595
16627
  skip = !1;
16596
16628
  for (var _i = 0; _i < paragraphs.length; _i++) {
16597
16629
  var p = paragraphs[_i];
16598
- skip ? (p.overflow = !0, p.left = 1 / 0, p.top = 1 / 0, !p.newLine && frame.lines[frame.lines.length - 1].paragraphs.push(p)) : wrapper.deal(p), frame.lines.length !== lineCount && (lineCount = frame.lines.length, wrapper.lineBuffer.length = 0, p.overflow = !0, p.left = 1e3, p.top = 1e3, frame.lines[frame.lines.length - 1].paragraphs.push(p), skip = !0), p.newLine && (skip = !1);
16630
+ skip ? (p.overflow = !0, p.left = 1 / 0, p.top = 1 / 0, !p.newLine && frame.lines[frame.lines.length - 1].paragraphs.push(p)) : wrapper.deal(p), frame.lines.length !== lineCount && (lineCount = frame.lines.length, wrapper.lineBuffer.length = 0, p.overflow = !0, p.left = 1e3, p.top = 1e3, frame.lines[frame.lines.length - 1].paragraphs.push(p), skip = !0), p.newLine && (skip = !1, wrapper.lineWidth = 0);
16599
16631
  }
16600
16632
  } else for (var _i2 = 0; _i2 < paragraphs.length; _i2++) wrapper.deal(paragraphs[_i2]);
16601
16633
  wrapper.send();
@@ -17491,17 +17523,17 @@
17491
17523
  var matrixAllocate = new DefaultMatrixAllocate();
17492
17524
  var mat4Allocate = new DefaultMat4Allocate();
17493
17525
 
17494
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17526
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17495
17527
  var d,
17496
17528
  c = arguments.length,
17497
17529
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17498
17530
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17499
17531
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17500
17532
  },
17501
- __metadata$1a = undefined && undefined.__metadata || function (k, v) {
17533
+ __metadata$1d = undefined && undefined.__metadata || function (k, v) {
17502
17534
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17503
17535
  },
17504
- __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
17536
+ __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
17505
17537
  return function (target, key) {
17506
17538
  decorator(target, key, paramIndex);
17507
17539
  };
@@ -18237,7 +18269,7 @@
18237
18269
  }
18238
18270
  }]);
18239
18271
  }();
18240
- exports.DefaultGraphicService = __decorate$1x([injectable(), __param$P(0, inject(GraphicCreator$1)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultGraphicService);
18272
+ exports.DefaultGraphicService = __decorate$1B([injectable(), __param$Q(0, inject(GraphicCreator$1)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultGraphicService);
18241
18273
 
18242
18274
  var GraphicCreator = /*#__PURE__*/function () {
18243
18275
  function GraphicCreator() {
@@ -18778,17 +18810,17 @@
18778
18810
  }), canvasGradient.GetPattern(w + x, h + y, undefined);
18779
18811
  }
18780
18812
 
18781
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18813
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18782
18814
  var d,
18783
18815
  c = arguments.length,
18784
18816
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18785
18817
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
18786
18818
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18787
18819
  },
18788
- __metadata$19 = undefined && undefined.__metadata || function (k, v) {
18820
+ __metadata$1c = undefined && undefined.__metadata || function (k, v) {
18789
18821
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18790
18822
  },
18791
- __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
18823
+ __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
18792
18824
  return function (target, key) {
18793
18825
  decorator(target, key, paramIndex);
18794
18826
  };
@@ -18876,7 +18908,7 @@
18876
18908
  }
18877
18909
  }]);
18878
18910
  }();
18879
- exports.DefaultBaseInteractiveRenderContribution = __decorate$1w([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(InteractiveSubRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
18911
+ exports.DefaultBaseInteractiveRenderContribution = __decorate$1A([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(InteractiveSubRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
18880
18912
 
18881
18913
  var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
18882
18914
  function DefaultBaseTextureRenderContribution() {
@@ -19328,7 +19360,7 @@
19328
19360
  }
19329
19361
  var defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
19330
19362
 
19331
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19363
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19332
19364
  var d,
19333
19365
  c = arguments.length,
19334
19366
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19417,7 +19449,7 @@
19417
19449
  }
19418
19450
  }]);
19419
19451
  }();
19420
- exports.SplitRectBeforeRenderContribution = __decorate$1v([injectable()], exports.SplitRectBeforeRenderContribution);
19452
+ exports.SplitRectBeforeRenderContribution = __decorate$1z([injectable()], exports.SplitRectBeforeRenderContribution);
19421
19453
  exports.SplitRectAfterRenderContribution = /*#__PURE__*/function () {
19422
19454
  function SplitRectAfterRenderContribution() {
19423
19455
  _classCallCheck(this, SplitRectAfterRenderContribution);
@@ -19450,7 +19482,7 @@
19450
19482
  }
19451
19483
  }]);
19452
19484
  }();
19453
- exports.SplitRectAfterRenderContribution = __decorate$1v([injectable()], exports.SplitRectAfterRenderContribution);
19485
+ exports.SplitRectAfterRenderContribution = __decorate$1z([injectable()], exports.SplitRectAfterRenderContribution);
19454
19486
  var defaultRectRenderContribution = new DefaultRectRenderContribution();
19455
19487
  var defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
19456
19488
  var defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -19540,17 +19572,17 @@
19540
19572
  }]);
19541
19573
  }(DefaultBaseTextureRenderContribution);
19542
19574
 
19543
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19575
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19544
19576
  var d,
19545
19577
  c = arguments.length,
19546
19578
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19547
19579
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19548
19580
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19549
19581
  },
19550
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
19582
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
19551
19583
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19552
19584
  },
19553
- __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
19585
+ __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
19554
19586
  return function (target, key) {
19555
19587
  decorator(target, key, paramIndex);
19556
19588
  };
@@ -19724,19 +19756,19 @@
19724
19756
  }
19725
19757
  }]);
19726
19758
  }(BaseRender);
19727
- exports.DefaultCanvasArcRender = __decorate$1u([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(ArcRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
19759
+ exports.DefaultCanvasArcRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
19728
19760
 
19729
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19761
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19730
19762
  var d,
19731
19763
  c = arguments.length,
19732
19764
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19733
19765
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19734
19766
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19735
19767
  },
19736
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
19768
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
19737
19769
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19738
19770
  },
19739
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
19771
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
19740
19772
  return function (target, key) {
19741
19773
  decorator(target, key, paramIndex);
19742
19774
  };
@@ -19780,7 +19812,7 @@
19780
19812
  }
19781
19813
  }]);
19782
19814
  }(BaseRender);
19783
- exports.DefaultCanvasCircleRender = __decorate$1t([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(CircleRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
19815
+ exports.DefaultCanvasCircleRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
19784
19816
 
19785
19817
  function drawSegItem(ctx, curve, endPercent, params) {
19786
19818
  if (!curve.p1) return;
@@ -19921,7 +19953,7 @@
19921
19953
  });
19922
19954
  }
19923
19955
 
19924
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19956
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19925
19957
  var d,
19926
19958
  c = arguments.length,
19927
19959
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -20103,7 +20135,7 @@
20103
20135
  }
20104
20136
  }]);
20105
20137
  }(BaseRender);
20106
- exports.DefaultCanvasLineRender = __decorate$1s([injectable()], exports.DefaultCanvasLineRender);
20138
+ exports.DefaultCanvasLineRender = __decorate$1w([injectable()], exports.DefaultCanvasLineRender);
20107
20139
 
20108
20140
  function drawAreaSegments(path, segPath, percent, params) {
20109
20141
  var _a;
@@ -20229,17 +20261,17 @@
20229
20261
  var defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
20230
20262
  var defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
20231
20263
 
20232
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20264
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20233
20265
  var d,
20234
20266
  c = arguments.length,
20235
20267
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20236
20268
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20237
20269
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20238
20270
  },
20239
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
20271
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
20240
20272
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20241
20273
  },
20242
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
20274
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
20243
20275
  return function (target, key) {
20244
20276
  decorator(target, key, paramIndex);
20245
20277
  };
@@ -20514,22 +20546,22 @@
20514
20546
  }
20515
20547
  }]);
20516
20548
  }(BaseRender);
20517
- exports.DefaultCanvasAreaRender = __decorate$1r([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(AreaRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
20549
+ exports.DefaultCanvasAreaRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(AreaRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
20518
20550
 
20519
20551
  var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
20520
20552
  var defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
20521
20553
 
20522
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20554
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20523
20555
  var d,
20524
20556
  c = arguments.length,
20525
20557
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20526
20558
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20527
20559
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20528
20560
  },
20529
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
20561
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
20530
20562
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20531
20563
  },
20532
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
20564
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
20533
20565
  return function (target, key) {
20534
20566
  decorator(target, key, paramIndex);
20535
20567
  };
@@ -20573,19 +20605,19 @@
20573
20605
  }
20574
20606
  }]);
20575
20607
  }(BaseRender);
20576
- exports.DefaultCanvasPathRender = __decorate$1q([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PathRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
20608
+ exports.DefaultCanvasPathRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(PathRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
20577
20609
 
20578
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20610
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20579
20611
  var d,
20580
20612
  c = arguments.length,
20581
20613
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20582
20614
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20583
20615
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20584
20616
  },
20585
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
20617
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
20586
20618
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20587
20619
  },
20588
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
20620
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
20589
20621
  return function (target, key) {
20590
20622
  decorator(target, key, paramIndex);
20591
20623
  };
@@ -20655,19 +20687,19 @@
20655
20687
  }
20656
20688
  }]);
20657
20689
  }(BaseRender);
20658
- exports.DefaultCanvasRectRender = __decorate$1p([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(RectRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
20690
+ exports.DefaultCanvasRectRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(RectRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
20659
20691
 
20660
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20692
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20661
20693
  var d,
20662
20694
  c = arguments.length,
20663
20695
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20664
20696
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20665
20697
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20666
20698
  },
20667
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
20699
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
20668
20700
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20669
20701
  },
20670
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
20702
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
20671
20703
  return function (target, key) {
20672
20704
  decorator(target, key, paramIndex);
20673
20705
  };
@@ -20736,7 +20768,7 @@
20736
20768
  }
20737
20769
  }]);
20738
20770
  }(BaseRender);
20739
- exports.DefaultCanvasSymbolRender = __decorate$1o([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(SymbolRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
20771
+ exports.DefaultCanvasSymbolRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(SymbolRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
20740
20772
 
20741
20773
  var DefaultBoundsAllocate = /*#__PURE__*/function () {
20742
20774
  function DefaultBoundsAllocate() {
@@ -20838,17 +20870,17 @@
20838
20870
  }(DefaultBaseBackgroundRenderContribution);
20839
20871
  var defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
20840
20872
 
20841
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20873
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20842
20874
  var d,
20843
20875
  c = arguments.length,
20844
20876
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20845
20877
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20846
20878
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20847
20879
  },
20848
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
20880
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
20849
20881
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20850
20882
  },
20851
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
20883
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
20852
20884
  return function (target, key) {
20853
20885
  decorator(target, key, paramIndex);
20854
20886
  };
@@ -21071,9 +21103,9 @@
21071
21103
  }
21072
21104
  }]);
21073
21105
  }(BaseRender);
21074
- exports.DefaultCanvasTextRender = __decorate$1n([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(TextRenderContribution)), __metadata$12("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
21106
+ exports.DefaultCanvasTextRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(TextRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
21075
21107
 
21076
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21108
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21077
21109
  var d,
21078
21110
  c = arguments.length,
21079
21111
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21083,7 +21115,7 @@
21083
21115
  exports.AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
21084
21116
  _classCallCheck(this, AbstractGraphicRender);
21085
21117
  });
21086
- exports.AbstractGraphicRender = __decorate$1m([injectable()], exports.AbstractGraphicRender);
21118
+ exports.AbstractGraphicRender = __decorate$1q([injectable()], exports.AbstractGraphicRender);
21087
21119
 
21088
21120
  function drawPolygon(path, points, x, y) {
21089
21121
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -21139,17 +21171,17 @@
21139
21171
  var defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
21140
21172
  var defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
21141
21173
 
21142
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21174
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21143
21175
  var d,
21144
21176
  c = arguments.length,
21145
21177
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21146
21178
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21147
21179
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21148
21180
  },
21149
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
21181
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
21150
21182
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21151
21183
  },
21152
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
21184
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
21153
21185
  return function (target, key) {
21154
21186
  decorator(target, key, paramIndex);
21155
21187
  };
@@ -21195,19 +21227,19 @@
21195
21227
  }
21196
21228
  }]);
21197
21229
  }(BaseRender);
21198
- exports.DefaultCanvasPolygonRender = __decorate$1l([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PolygonRenderContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
21230
+ exports.DefaultCanvasPolygonRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(PolygonRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
21199
21231
 
21200
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21232
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21201
21233
  var d,
21202
21234
  c = arguments.length,
21203
21235
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21204
21236
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21205
21237
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21206
21238
  },
21207
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
21239
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
21208
21240
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21209
21241
  },
21210
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
21242
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
21211
21243
  return function (target, key) {
21212
21244
  decorator(target, key, paramIndex);
21213
21245
  };
@@ -21275,7 +21307,7 @@
21275
21307
  }
21276
21308
  }]);
21277
21309
  }(BaseRender);
21278
- exports.DefaultCanvasImageRender = __decorate$1k([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(ImageRenderContribution)), __metadata$10("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
21310
+ exports.DefaultCanvasImageRender = __decorate$1o([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
21279
21311
 
21280
21312
  var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
21281
21313
  var ArcRender = Symbol["for"]("ArcRender");
@@ -21298,14 +21330,14 @@
21298
21330
  var RenderSelector = Symbol["for"]("RenderSelector");
21299
21331
  var DrawContribution = Symbol["for"]("DrawContribution");
21300
21332
 
21301
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21333
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21302
21334
  var d,
21303
21335
  c = arguments.length,
21304
21336
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21305
21337
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21306
21338
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21307
21339
  },
21308
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
21340
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
21309
21341
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21310
21342
  };
21311
21343
  var DrawItemInterceptor = Symbol["for"]("DrawItemInterceptor");
@@ -21380,7 +21412,7 @@
21380
21412
  }
21381
21413
  }]);
21382
21414
  }();
21383
- exports.CommonDrawItemInterceptorContribution = __decorate$1j([injectable(), __metadata$$("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
21415
+ exports.CommonDrawItemInterceptorContribution = __decorate$1n([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
21384
21416
  var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
21385
21417
  function InteractiveDrawItemInterceptorContribution() {
21386
21418
  _classCallCheck(this, InteractiveDrawItemInterceptorContribution);
@@ -21422,6 +21454,13 @@
21422
21454
  key: "beforeDrawInteractive",
21423
21455
  value: function beforeDrawInteractive(graphic, renderService, drawContext, drawContribution, params) {
21424
21456
  var baseGraphic = graphic.baseGraphic;
21457
+ if (!baseGraphic.stage) {
21458
+ var interactiveLayer = drawContext.stage.getLayer("_builtin_interactive");
21459
+ if (interactiveLayer) {
21460
+ this.getShadowRoot(interactiveLayer).removeChild(graphic);
21461
+ }
21462
+ return !0;
21463
+ }
21425
21464
  if (baseGraphic) {
21426
21465
  this.processing = !0;
21427
21466
  var context = drawContext.context;
@@ -21528,17 +21567,17 @@
21528
21567
  }]);
21529
21568
  }();
21530
21569
 
21531
- var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21570
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21532
21571
  var d,
21533
21572
  c = arguments.length,
21534
21573
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21535
21574
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21536
21575
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21537
21576
  },
21538
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
21577
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
21539
21578
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21540
21579
  },
21541
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
21580
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
21542
21581
  return function (target, key) {
21543
21582
  decorator(target, key, paramIndex);
21544
21583
  };
@@ -21594,7 +21633,7 @@
21594
21633
  }
21595
21634
  }]);
21596
21635
  }();
21597
- exports.DefaultRenderService = __decorate$1i([injectable(), __param$E(0, inject(DrawContribution)), __metadata$_("design:paramtypes", [Object])], exports.DefaultRenderService);
21636
+ exports.DefaultRenderService = __decorate$1m([injectable(), __param$F(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
21598
21637
 
21599
21638
  var renderModule$1 = new ContainerModule(function (bind) {
21600
21639
  bind(RenderService).to(exports.DefaultRenderService);
@@ -21605,7 +21644,7 @@
21605
21644
  var BoundsPicker = Symbol["for"]("BoundsPicker");
21606
21645
  var GlobalPickerService = Symbol["for"]("GlobalPickerService");
21607
21646
 
21608
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21647
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21609
21648
  var d,
21610
21649
  c = arguments.length,
21611
21650
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21645,7 +21684,7 @@
21645
21684
  }
21646
21685
  }]);
21647
21686
  }();
21648
- exports.ShadowRootPickItemInterceptorContribution = __decorate$1h([injectable()], exports.ShadowRootPickItemInterceptorContribution);
21687
+ exports.ShadowRootPickItemInterceptorContribution = __decorate$1l([injectable()], exports.ShadowRootPickItemInterceptorContribution);
21649
21688
  exports.InteractivePickItemInterceptorContribution = /*#__PURE__*/function () {
21650
21689
  function InteractivePickItemInterceptorContribution() {
21651
21690
  _classCallCheck(this, InteractivePickItemInterceptorContribution);
@@ -21668,7 +21707,7 @@
21668
21707
  }
21669
21708
  }]);
21670
21709
  }();
21671
- exports.InteractivePickItemInterceptorContribution = __decorate$1h([injectable()], exports.InteractivePickItemInterceptorContribution);
21710
+ exports.InteractivePickItemInterceptorContribution = __decorate$1l([injectable()], exports.InteractivePickItemInterceptorContribution);
21672
21711
  exports.Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
21673
21712
  function Canvas3DPickItemInterceptor() {
21674
21713
  _classCallCheck(this, Canvas3DPickItemInterceptor);
@@ -21744,7 +21783,7 @@
21744
21783
  }
21745
21784
  }]);
21746
21785
  }();
21747
- exports.Canvas3DPickItemInterceptor = __decorate$1h([injectable()], exports.Canvas3DPickItemInterceptor);
21786
+ exports.Canvas3DPickItemInterceptor = __decorate$1l([injectable()], exports.Canvas3DPickItemInterceptor);
21748
21787
 
21749
21788
  var pickModule = new ContainerModule(function (bind, unbind, isBound) {
21750
21789
  isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(exports.Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.Canvas3DPickItemInterceptor), bind(exports.ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.ShadowRootPickItemInterceptorContribution), bind(exports.InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
@@ -21757,17 +21796,17 @@
21757
21796
  var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
21758
21797
  var PluginService = Symbol["for"]("PluginService");
21759
21798
 
21760
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21799
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21761
21800
  var d,
21762
21801
  c = arguments.length,
21763
21802
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21764
21803
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21765
21804
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21766
21805
  },
21767
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
21806
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
21768
21807
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21769
21808
  },
21770
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
21809
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
21771
21810
  return function (target, key) {
21772
21811
  decorator(target, key, paramIndex);
21773
21812
  };
@@ -21819,7 +21858,7 @@
21819
21858
  }
21820
21859
  }]);
21821
21860
  }();
21822
- DefaultPluginService = __decorate$1g([injectable(), __param$D(0, inject(ContributionProvider)), __param$D(0, named(AutoEnablePlugins)), __metadata$Z("design:paramtypes", [Object])], DefaultPluginService);
21861
+ DefaultPluginService = __decorate$1k([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
21823
21862
 
21824
21863
  var pluginModule = new ContainerModule(function (bind) {
21825
21864
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -21833,14 +21872,14 @@
21833
21872
  bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
21834
21873
  });
21835
21874
 
21836
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21875
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21837
21876
  var d,
21838
21877
  c = arguments.length,
21839
21878
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21840
21879
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21841
21880
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21842
21881
  },
21843
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
21882
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
21844
21883
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21845
21884
  };
21846
21885
  var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
@@ -21933,16 +21972,16 @@
21933
21972
  }
21934
21973
  }]);
21935
21974
  }();
21936
- CanvasLayerHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], CanvasLayerHandlerContribution);
21975
+ CanvasLayerHandlerContribution = __decorate$1j([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
21937
21976
 
21938
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21977
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21939
21978
  var d,
21940
21979
  c = arguments.length,
21941
21980
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21942
21981
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21943
21982
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21944
21983
  },
21945
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
21984
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
21946
21985
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21947
21986
  };
21948
21987
  var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
@@ -21999,16 +22038,16 @@
21999
22038
  value: function release() {}
22000
22039
  }]);
22001
22040
  }();
22002
- EmptyLayerHandlerContribution = __decorate$1e([injectable(), __metadata$X("design:paramtypes", [])], EmptyLayerHandlerContribution);
22041
+ EmptyLayerHandlerContribution = __decorate$1i([injectable(), __metadata$_("design:paramtypes", [])], EmptyLayerHandlerContribution);
22003
22042
 
22004
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22043
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22005
22044
  var d,
22006
22045
  c = arguments.length,
22007
22046
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22008
22047
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22009
22048
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22010
22049
  },
22011
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
22050
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
22012
22051
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22013
22052
  };
22014
22053
  var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
@@ -22091,7 +22130,7 @@
22091
22130
  value: function merge(layerHandlers) {}
22092
22131
  }]);
22093
22132
  }();
22094
- OffscreenLayerHandlerContribution = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], OffscreenLayerHandlerContribution);
22133
+ OffscreenLayerHandlerContribution = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [])], OffscreenLayerHandlerContribution);
22095
22134
 
22096
22135
  var layerHandlerModules = new ContainerModule(function (bind) {
22097
22136
  bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
@@ -22101,7 +22140,7 @@
22101
22140
  container.load(envModules), container.load(textMeasureModules), container.load(layerHandlerModules);
22102
22141
  }
22103
22142
 
22104
- var __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22143
+ var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22105
22144
  return new (P || (P = Promise))(function (resolve, reject) {
22106
22145
  function fulfilled(value) {
22107
22146
  try {
@@ -22166,7 +22205,7 @@
22166
22205
  }
22167
22206
  function foreachAsync(graphic, defaultZIndex, cb) {
22168
22207
  var reverse = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
22169
- return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22208
+ return __awaiter$3(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22170
22209
  return _regeneratorRuntime().wrap(function _callee$(_context) {
22171
22210
  while (1) switch (_context.prev = _context.next) {
22172
22211
  case 0:
@@ -22218,17 +22257,17 @@
22218
22257
  return result;
22219
22258
  }
22220
22259
 
22221
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22260
+ var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22222
22261
  var d,
22223
22262
  c = arguments.length,
22224
22263
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22225
22264
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22226
22265
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22227
22266
  },
22228
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
22267
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
22229
22268
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22230
22269
  },
22231
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
22270
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
22232
22271
  return function (target, key) {
22233
22272
  decorator(target, key, paramIndex);
22234
22273
  };
@@ -22441,19 +22480,19 @@
22441
22480
  value: function afterDraw(renderService, drawParams) {}
22442
22481
  }]);
22443
22482
  }();
22444
- DefaultDrawContribution = __decorate$1c([injectable(), __param$C(0, multiInject(GraphicRender)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(DrawItemInterceptor)), __metadata$V("design:paramtypes", [Array, Object])], DefaultDrawContribution);
22483
+ DefaultDrawContribution = __decorate$1g([injectable(), __param$D(0, multiInject(GraphicRender)), __param$D(1, inject(ContributionProvider)), __param$D(1, named(DrawItemInterceptor)), __metadata$Y("design:paramtypes", [Array, Object])], DefaultDrawContribution);
22445
22484
 
22446
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22485
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22447
22486
  var d,
22448
22487
  c = arguments.length,
22449
22488
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22450
22489
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22451
22490
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22452
22491
  },
22453
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
22492
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
22454
22493
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22455
22494
  },
22456
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
22495
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
22457
22496
  return function (target, key) {
22458
22497
  decorator(target, key, paramIndex);
22459
22498
  };
@@ -22554,9 +22593,9 @@
22554
22593
  }
22555
22594
  }]);
22556
22595
  }();
22557
- DefaultCanvasGroupRender = __decorate$1b([injectable(), __param$B(0, inject(ContributionProvider)), __param$B(0, named(GroupRenderContribution)), __metadata$U("design:paramtypes", [Object])], DefaultCanvasGroupRender);
22596
+ DefaultCanvasGroupRender = __decorate$1f([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(GroupRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasGroupRender);
22558
22597
 
22559
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22598
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22560
22599
  var d,
22561
22600
  c = arguments.length,
22562
22601
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22618,9 +22657,9 @@
22618
22657
  }
22619
22658
  }]);
22620
22659
  }(exports.DefaultCanvasLineRender);
22621
- DefaultIncrementalCanvasLineRender = __decorate$1a([injectable()], DefaultIncrementalCanvasLineRender);
22660
+ DefaultIncrementalCanvasLineRender = __decorate$1e([injectable()], DefaultIncrementalCanvasLineRender);
22622
22661
 
22623
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22662
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22624
22663
  var d,
22625
22664
  c = arguments.length,
22626
22665
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22673,25 +22712,25 @@
22673
22712
  }
22674
22713
  }]);
22675
22714
  }(exports.DefaultCanvasAreaRender);
22676
- DefaultIncrementalCanvasAreaRender = __decorate$19([injectable()], DefaultIncrementalCanvasAreaRender);
22715
+ DefaultIncrementalCanvasAreaRender = __decorate$1d([injectable()], DefaultIncrementalCanvasAreaRender);
22677
22716
 
22678
22717
  var STATUS,
22679
- __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22718
+ __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22680
22719
  var d,
22681
22720
  c = arguments.length,
22682
22721
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22683
22722
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22684
22723
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22685
22724
  },
22686
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
22725
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
22687
22726
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22688
22727
  },
22689
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
22728
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
22690
22729
  return function (target, key) {
22691
22730
  decorator(target, key, paramIndex);
22692
22731
  };
22693
22732
  },
22694
- __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22733
+ __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22695
22734
  return new (P || (P = Promise))(function (resolve, reject) {
22696
22735
  function fulfilled(value) {
22697
22736
  try {
@@ -22732,7 +22771,7 @@
22732
22771
  return _createClass(DefaultIncrementalDrawContribution, [{
22733
22772
  key: "draw",
22734
22773
  value: function draw(renderService, drawContext) {
22735
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22774
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22736
22775
  var _this2 = this;
22737
22776
  var skipDraw, context, viewBox;
22738
22777
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -22775,7 +22814,7 @@
22775
22814
  }, {
22776
22815
  key: "_increaseRender",
22777
22816
  value: function _increaseRender(group, drawContext) {
22778
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
22817
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
22779
22818
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
22780
22819
  while (1) switch (_context2.prev = _context2.next) {
22781
22820
  case 0:
@@ -22792,7 +22831,7 @@
22792
22831
  }, {
22793
22832
  key: "_renderIncrementalGroup",
22794
22833
  value: function _renderIncrementalGroup(group, drawContext) {
22795
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
22834
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
22796
22835
  var _this3 = this;
22797
22836
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
22798
22837
  while (1) switch (_context4.prev = _context4.next) {
@@ -22802,7 +22841,7 @@
22802
22841
  return new Promise(function (resolve) {
22803
22842
  _this3.renderItem(group, drawContext, {
22804
22843
  drawingCb: function drawingCb() {
22805
- return __awaiter$1(_this3, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
22844
+ return __awaiter$2(_this3, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
22806
22845
  var _this4 = this;
22807
22846
  var graphic;
22808
22847
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -22875,7 +22914,7 @@
22875
22914
  }, {
22876
22915
  key: "waitToNextFrame",
22877
22916
  value: function waitToNextFrame() {
22878
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
22917
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
22879
22918
  var _this5 = this;
22880
22919
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
22881
22920
  while (1) switch (_context5.prev = _context5.next) {
@@ -22895,7 +22934,7 @@
22895
22934
  }, {
22896
22935
  key: "checkForDraw",
22897
22936
  value: function checkForDraw(drawContext) {
22898
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
22937
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
22899
22938
  var skip;
22900
22939
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
22901
22940
  while (1) switch (_context6.prev = _context6.next) {
@@ -22923,7 +22962,7 @@
22923
22962
  }, {
22924
22963
  key: "forceStop",
22925
22964
  value: function forceStop() {
22926
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
22965
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
22927
22966
  var _this6 = this;
22928
22967
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
22929
22968
  while (1) switch (_context7.prev = _context7.next) {
@@ -22957,7 +22996,7 @@
22957
22996
  }, {
22958
22997
  key: "renderGroup",
22959
22998
  value: function renderGroup(group, drawContext) {
22960
- return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
22999
+ return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
22961
23000
  var _this7 = this;
22962
23001
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
22963
23002
  while (1) switch (_context10.prev = _context10.next) {
@@ -22981,14 +23020,14 @@
22981
23020
  return new Promise(function (resolve) {
22982
23021
  _this7.renderItem(group, drawContext, {
22983
23022
  drawingCb: function drawingCb() {
22984
- return __awaiter$1(_this7, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
23023
+ return __awaiter$2(_this7, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
22985
23024
  var _this8 = this;
22986
23025
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
22987
23026
  while (1) switch (_context9.prev = _context9.next) {
22988
23027
  case 0:
22989
23028
  _context9.next = 2;
22990
23029
  return foreachAsync(group, DefaultAttribute.zIndex, function (item) {
22991
- return __awaiter$1(_this8, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
23030
+ return __awaiter$2(_this8, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
22992
23031
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
22993
23032
  while (1) switch (_context8.prev = _context8.next) {
22994
23033
  case 0:
@@ -23035,7 +23074,7 @@
23035
23074
  }
23036
23075
  }]);
23037
23076
  }(DefaultDrawContribution);
23038
- DefaultIncrementalDrawContribution = __decorate$18([injectable(), __param$A(0, multiInject(GraphicRender)), __param$A(1, inject(DefaultIncrementalCanvasLineRender)), __param$A(2, inject(DefaultIncrementalCanvasAreaRender)), __param$A(3, inject(ContributionProvider)), __param$A(3, named(DrawItemInterceptor)), __metadata$T("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
23077
+ DefaultIncrementalDrawContribution = __decorate$1c([injectable(), __param$B(0, multiInject(GraphicRender)), __param$B(1, inject(DefaultIncrementalCanvasLineRender)), __param$B(2, inject(DefaultIncrementalCanvasAreaRender)), __param$B(3, inject(ContributionProvider)), __param$B(3, named(DrawItemInterceptor)), __metadata$W("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
23039
23078
 
23040
23079
  var renderModule = new ContainerModule(function (bind) {
23041
23080
  bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(exports.CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(exports.CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
@@ -24567,6 +24606,16 @@
24567
24606
  var point = this.global.mapToCanvasPoint(e, this.window.getContext().canvas.nativeCanvas);
24568
24607
  return this.stage.window.pointTransform(point.x, point.y);
24569
24608
  }
24609
+ }, {
24610
+ key: "pauseTriggerEvent",
24611
+ value: function pauseTriggerEvent() {
24612
+ this._eventSystem && this._eventSystem.pauseTriggerEvent();
24613
+ }
24614
+ }, {
24615
+ key: "resumeTriggerEvent",
24616
+ value: function resumeTriggerEvent() {
24617
+ this._eventSystem && this._eventSystem.resumeTriggerEvent();
24618
+ }
24570
24619
  }]);
24571
24620
  }(Group);
24572
24621
 
@@ -24576,14 +24625,14 @@
24576
24625
 
24577
24626
  var strCommandMap = ["arc", "arcTo", "bezierCurveTo", "closePath", "ellipse", "lineTo", "moveTo", "quadraticCurveTo", "rect"];
24578
24627
 
24579
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24628
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24580
24629
  var d,
24581
24630
  c = arguments.length,
24582
24631
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24583
24632
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
24584
24633
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24585
24634
  },
24586
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
24635
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
24587
24636
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24588
24637
  };
24589
24638
  var initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -24929,16 +24978,16 @@
24929
24978
  }
24930
24979
  }]);
24931
24980
  }();
24932
- exports.EmptyContext2d = __decorate$17([injectable(), __metadata$S("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
24981
+ exports.EmptyContext2d = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
24933
24982
 
24934
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24983
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24935
24984
  var d,
24936
24985
  c = arguments.length,
24937
24986
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24938
24987
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
24939
24988
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24940
24989
  },
24941
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
24990
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
24942
24991
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24943
24992
  };
24944
24993
  var DefaultConfig = {
@@ -25084,9 +25133,9 @@
25084
25133
  }
25085
25134
  }]);
25086
25135
  }();
25087
- exports.BaseCanvas.env = "browser", exports.BaseCanvas = __decorate$16([injectable(), __metadata$R("design:paramtypes", [Object])], exports.BaseCanvas);
25136
+ exports.BaseCanvas.env = "browser", exports.BaseCanvas = __decorate$1a([injectable(), __metadata$U("design:paramtypes", [Object])], exports.BaseCanvas);
25088
25137
 
25089
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25138
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25090
25139
  var d,
25091
25140
  c = arguments.length,
25092
25141
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25214,16 +25263,16 @@
25214
25263
  }
25215
25264
  }]);
25216
25265
  }();
25217
- exports.BaseEnvContribution = __decorate$15([injectable()], exports.BaseEnvContribution);
25266
+ exports.BaseEnvContribution = __decorate$19([injectable()], exports.BaseEnvContribution);
25218
25267
 
25219
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25268
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25220
25269
  var d,
25221
25270
  c = arguments.length,
25222
25271
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25223
25272
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
25224
25273
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25225
25274
  },
25226
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
25275
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
25227
25276
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25228
25277
  };
25229
25278
  exports.BaseWindowHandlerContribution = /*#__PURE__*/function () {
@@ -25284,19 +25333,19 @@
25284
25333
  }
25285
25334
  }]);
25286
25335
  }();
25287
- exports.BaseWindowHandlerContribution = __decorate$14([injectable(), __metadata$Q("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
25336
+ exports.BaseWindowHandlerContribution = __decorate$18([injectable(), __metadata$T("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
25288
25337
 
25289
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25338
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25290
25339
  var d,
25291
25340
  c = arguments.length,
25292
25341
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25293
25342
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
25294
25343
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25295
25344
  },
25296
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
25345
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
25297
25346
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25298
25347
  },
25299
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
25348
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
25300
25349
  return function (target, key) {
25301
25350
  decorator(target, key, paramIndex);
25302
25351
  };
@@ -25419,16 +25468,16 @@
25419
25468
  }
25420
25469
  }]);
25421
25470
  }();
25422
- exports.DefaultPickService = __decorate$13([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(PickItemInterceptor)), __metadata$P("design:paramtypes", [Object])], exports.DefaultPickService);
25471
+ exports.DefaultPickService = __decorate$17([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(PickItemInterceptor)), __metadata$S("design:paramtypes", [Object])], exports.DefaultPickService);
25423
25472
 
25424
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25473
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25425
25474
  var d,
25426
25475
  c = arguments.length,
25427
25476
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25428
25477
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
25429
25478
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25430
25479
  },
25431
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
25480
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
25432
25481
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25433
25482
  };
25434
25483
  exports.DefaultGlobalPickerService = /*#__PURE__*/function () {
@@ -25507,7 +25556,7 @@
25507
25556
  }
25508
25557
  }]);
25509
25558
  }();
25510
- exports.DefaultGlobalPickerService = __decorate$12([injectable(), __metadata$O("design:paramtypes", [])], exports.DefaultGlobalPickerService);
25559
+ exports.DefaultGlobalPickerService = __decorate$16([injectable(), __metadata$R("design:paramtypes", [])], exports.DefaultGlobalPickerService);
25511
25560
 
25512
25561
  function simplifyRadialDist(points, sqTolerance) {
25513
25562
  var deltaX,
@@ -25818,7 +25867,7 @@
25818
25867
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
25819
25868
  });
25820
25869
 
25821
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25870
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25822
25871
  var d,
25823
25872
  c = arguments.length,
25824
25873
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25854,21 +25903,21 @@
25854
25903
  }
25855
25904
  }]);
25856
25905
  }();
25857
- DefaultCanvasGlyphRender = __decorate$11([injectable()], DefaultCanvasGlyphRender);
25906
+ DefaultCanvasGlyphRender = __decorate$15([injectable()], DefaultCanvasGlyphRender);
25858
25907
 
25859
25908
  var loadGlyphModule = !1;
25860
25909
  var glyphModule = new ContainerModule(function (bind) {
25861
25910
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
25862
25911
  });
25863
25912
 
25864
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25913
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25865
25914
  var d,
25866
25915
  c = arguments.length,
25867
25916
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25868
25917
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
25869
25918
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25870
25919
  },
25871
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
25920
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
25872
25921
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25873
25922
  };
25874
25923
  var DefaultCanvasRichTextRender = /*#__PURE__*/function (_BaseRender) {
@@ -25944,7 +25993,7 @@
25944
25993
  }
25945
25994
  }]);
25946
25995
  }(BaseRender);
25947
- DefaultCanvasRichTextRender = __decorate$10([injectable(), __metadata$N("design:paramtypes", [])], DefaultCanvasRichTextRender);
25996
+ DefaultCanvasRichTextRender = __decorate$14([injectable(), __metadata$Q("design:paramtypes", [])], DefaultCanvasRichTextRender);
25948
25997
 
25949
25998
  var loadRichtextModule = !1;
25950
25999
  var richtextModule = new ContainerModule(function (bind) {
@@ -25956,7 +26005,7 @@
25956
26005
  loadImageModule || (loadImageModule = !0, bind(ImageRender).to(exports.DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
25957
26006
  });
25958
26007
 
25959
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26008
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25960
26009
  var d,
25961
26010
  c = arguments.length,
25962
26011
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26100,14 +26149,14 @@
26100
26149
  }
26101
26150
  }]);
26102
26151
  }(BaseRender);
26103
- DefaultCanvasRect3dRender = __decorate$$([injectable()], DefaultCanvasRect3dRender);
26152
+ DefaultCanvasRect3dRender = __decorate$13([injectable()], DefaultCanvasRect3dRender);
26104
26153
 
26105
26154
  var loadRect3dModule = !1;
26106
26155
  var rect3dModule = new ContainerModule(function (bind) {
26107
26156
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
26108
26157
  });
26109
26158
 
26110
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26159
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26111
26160
  var d,
26112
26161
  c = arguments.length,
26113
26162
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26237,14 +26286,14 @@
26237
26286
  }
26238
26287
  }]);
26239
26288
  }(BaseRender);
26240
- DefaultCanvasArc3DRender = __decorate$_([injectable()], DefaultCanvasArc3DRender);
26289
+ DefaultCanvasArc3DRender = __decorate$12([injectable()], DefaultCanvasArc3DRender);
26241
26290
 
26242
26291
  var loadArc3dModule = !1;
26243
26292
  var arc3dModule = new ContainerModule(function (bind) {
26244
26293
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
26245
26294
  });
26246
26295
 
26247
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26296
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26248
26297
  var d,
26249
26298
  c = arguments.length,
26250
26299
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26367,7 +26416,7 @@
26367
26416
  }
26368
26417
  }]);
26369
26418
  }(BaseRender);
26370
- DefaultCanvasPyramid3dRender = __decorate$Z([injectable()], DefaultCanvasPyramid3dRender);
26419
+ DefaultCanvasPyramid3dRender = __decorate$11([injectable()], DefaultCanvasPyramid3dRender);
26371
26420
 
26372
26421
  var loadPyramid3dModule = !1;
26373
26422
  var pyramid3dModule = new ContainerModule(function (bind) {
@@ -28294,17 +28343,17 @@
28294
28343
  fixedDecimalPlaceDigits: void 0
28295
28344
  };
28296
28345
 
28297
- var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28346
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28298
28347
  var d,
28299
28348
  c = arguments.length,
28300
28349
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28301
28350
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28302
28351
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28303
28352
  },
28304
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
28353
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
28305
28354
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28306
28355
  },
28307
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
28356
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
28308
28357
  return function (target, key) {
28309
28358
  decorator(target, key, paramIndex);
28310
28359
  };
@@ -28424,9 +28473,9 @@
28424
28473
  }
28425
28474
  }]);
28426
28475
  }();
28427
- RoughCanvasArcRender = __decorate$Y([injectable(), __param$y(0, inject(exports.DefaultCanvasArcRender)), __metadata$M("design:paramtypes", [Object])], RoughCanvasArcRender);
28476
+ RoughCanvasArcRender = __decorate$10([injectable(), __param$z(0, inject(exports.DefaultCanvasArcRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasArcRender);
28428
28477
 
28429
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28478
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28430
28479
  var d,
28431
28480
  c = arguments.length,
28432
28481
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28528,19 +28577,19 @@
28528
28577
  }
28529
28578
  }]);
28530
28579
  }(exports.DefaultCanvasAreaRender);
28531
- RoughCanvasAreaRender = __decorate$X([injectable()], RoughCanvasAreaRender);
28580
+ RoughCanvasAreaRender = __decorate$$([injectable()], RoughCanvasAreaRender);
28532
28581
 
28533
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28582
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28534
28583
  var d,
28535
28584
  c = arguments.length,
28536
28585
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28537
28586
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28538
28587
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28539
28588
  },
28540
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
28589
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
28541
28590
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28542
28591
  },
28543
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
28592
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
28544
28593
  return function (target, key) {
28545
28594
  decorator(target, key, paramIndex);
28546
28595
  };
@@ -28588,9 +28637,9 @@
28588
28637
  }
28589
28638
  }]);
28590
28639
  }();
28591
- RoughCanvasCircleRender = __decorate$W([injectable(), __param$x(0, inject(exports.DefaultCanvasCircleRender)), __metadata$L("design:paramtypes", [Object])], RoughCanvasCircleRender);
28640
+ RoughCanvasCircleRender = __decorate$_([injectable(), __param$y(0, inject(exports.DefaultCanvasCircleRender)), __metadata$O("design:paramtypes", [Object])], RoughCanvasCircleRender);
28592
28641
 
28593
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28642
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28594
28643
  var d,
28595
28644
  c = arguments.length,
28596
28645
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28693,19 +28742,19 @@
28693
28742
  }
28694
28743
  }]);
28695
28744
  }(exports.DefaultCanvasLineRender);
28696
- RoughCanvasLineRender = __decorate$V([injectable()], RoughCanvasLineRender);
28745
+ RoughCanvasLineRender = __decorate$Z([injectable()], RoughCanvasLineRender);
28697
28746
 
28698
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28747
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28699
28748
  var d,
28700
28749
  c = arguments.length,
28701
28750
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28702
28751
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28703
28752
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28704
28753
  },
28705
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
28754
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
28706
28755
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28707
28756
  },
28708
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
28757
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
28709
28758
  return function (target, key) {
28710
28759
  decorator(target, key, paramIndex);
28711
28760
  };
@@ -28810,19 +28859,19 @@
28810
28859
  }
28811
28860
  }]);
28812
28861
  }();
28813
- RoughCanvasPathRender = __decorate$U([injectable(), __param$w(0, inject(exports.DefaultCanvasPathRender)), __metadata$K("design:paramtypes", [Object])], RoughCanvasPathRender);
28862
+ RoughCanvasPathRender = __decorate$Y([injectable(), __param$x(0, inject(exports.DefaultCanvasPathRender)), __metadata$N("design:paramtypes", [Object])], RoughCanvasPathRender);
28814
28863
 
28815
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28864
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28816
28865
  var d,
28817
28866
  c = arguments.length,
28818
28867
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28819
28868
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28820
28869
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28821
28870
  },
28822
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
28871
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
28823
28872
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28824
28873
  },
28825
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
28874
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
28826
28875
  return function (target, key) {
28827
28876
  decorator(target, key, paramIndex);
28828
28877
  };
@@ -28948,19 +28997,19 @@
28948
28997
  }
28949
28998
  }]);
28950
28999
  }();
28951
- RoughCanvasRectRender = __decorate$T([injectable(), __param$v(0, inject(exports.DefaultCanvasRectRender)), __metadata$J("design:paramtypes", [Object])], RoughCanvasRectRender);
29000
+ RoughCanvasRectRender = __decorate$X([injectable(), __param$w(0, inject(exports.DefaultCanvasRectRender)), __metadata$M("design:paramtypes", [Object])], RoughCanvasRectRender);
28952
29001
 
28953
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29002
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28954
29003
  var d,
28955
29004
  c = arguments.length,
28956
29005
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28957
29006
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28958
29007
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28959
29008
  },
28960
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
29009
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
28961
29010
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28962
29011
  },
28963
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
29012
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
28964
29013
  return function (target, key) {
28965
29014
  decorator(target, key, paramIndex);
28966
29015
  };
@@ -29083,12 +29132,42 @@
29083
29132
  }
29084
29133
  }]);
29085
29134
  }(BaseRender);
29086
- RoughCanvasSymbolRender = __decorate$S([injectable(), __param$u(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$I("design:paramtypes", [Object])], RoughCanvasSymbolRender);
29135
+ RoughCanvasSymbolRender = __decorate$W([injectable(), __param$v(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$L("design:paramtypes", [Object])], RoughCanvasSymbolRender);
29087
29136
 
29088
29137
  var _roughModule = new ContainerModule(function (bind) {
29089
29138
  bind(RoughCanvasCircleRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasCircleRender), bind(RoughCanvasRectRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasRectRender), bind(RoughCanvasPathRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasPathRender), bind(RoughCanvasSymbolRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasSymbolRender), bind(RoughCanvasLineRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasLineRender), bind(RoughCanvasAreaRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasAreaRender), bind(RoughCanvasArcRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasArcRender);
29090
29139
  });
29091
29140
 
29141
+ var MathPickerContribution = Symbol["for"]("MathPickerContribution");
29142
+ var MathArcPicker = Symbol["for"]("MathArcPicker");
29143
+ var MathAreaPicker = Symbol["for"]("MathAreaPicker");
29144
+ var MathCirclePicker = Symbol["for"]("MathCirclePicker");
29145
+ var MathImagePicker = Symbol["for"]("MathImagePicker");
29146
+ var MathLinePicker = Symbol["for"]("MathLinePicker");
29147
+ var MathPathPicker = Symbol["for"]("MathPathPicker");
29148
+ var MathRectPicker = Symbol["for"]("MathRectPicker");
29149
+ var MathSymbolPicker = Symbol["for"]("MathSymbolPicker");
29150
+ var MathTextPicker = Symbol["for"]("MathTextPicker");
29151
+ var MathPolygonPicker = Symbol["for"]("MathPolygonPicker");
29152
+ var MathGlyphPicker = Symbol["for"]("MathGlyphPicker");
29153
+ var CanvasArcPicker = Symbol["for"]("CanvasArcPicker");
29154
+ var CanvasArc3dPicker = Symbol["for"]("CanvasArc3dPicker");
29155
+ var CanvasAreaPicker = Symbol["for"]("CanvasAreaPicker");
29156
+ var CanvasCirclePicker = Symbol["for"]("CanvasCirclePicker");
29157
+ var CanvasImagePicker = Symbol["for"]("CanvasImagePicker");
29158
+ var CanvasLinePicker = Symbol["for"]("CanvasLinePicker");
29159
+ var CanvasPathPicker = Symbol["for"]("CanvasPathPicker");
29160
+ var CanvasRectPicker = Symbol["for"]("CanvasRectPicker");
29161
+ var CanvasRect3dPicker = Symbol["for"]("CanvasRect3dPicker");
29162
+ var CanvasSymbolPicker = Symbol["for"]("CanvasSymbolPicker");
29163
+ var CanvasTextPicker = Symbol["for"]("CanvasTextPicker");
29164
+ var CanvasPolygonPicker = Symbol["for"]("CanvasPolygonPicker");
29165
+ var CanvasPyramid3dPicker = Symbol["for"]("CanvasPyramid3dPicker");
29166
+ var CanvasRichTextPicker = Symbol["for"]("CanvasRichTextPicker");
29167
+ var CanvasGlyphPicker = Symbol["for"]("CanvasGlyphPicker");
29168
+ var CanvasGroupPicker = Symbol["for"]("CanvasGroupPicker");
29169
+ var CanvasPickerContribution = Symbol["for"]("CanvasPickerContribution");
29170
+
29092
29171
  var REACT_TO_CANOPUS_EVENTS = {
29093
29172
  onPointerDown: "pointerdown",
29094
29173
  onPointerUp: "pointerup",
@@ -29589,14 +29668,14 @@
29589
29668
  }]);
29590
29669
  }(EventEmitter);
29591
29670
 
29592
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29671
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29593
29672
  var d,
29594
29673
  c = arguments.length,
29595
29674
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29596
29675
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29597
29676
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29598
29677
  },
29599
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
29678
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
29600
29679
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29601
29680
  };
29602
29681
  var outP = [0, 0, 0],
@@ -30293,16 +30372,16 @@
30293
30372
  }
30294
30373
  }]);
30295
30374
  }();
30296
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$R([injectable(), __metadata$H("design:paramtypes", [Object, Number])], BrowserContext2d);
30375
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object, Number])], BrowserContext2d);
30297
30376
 
30298
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30377
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30299
30378
  var d,
30300
30379
  c = arguments.length,
30301
30380
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
30302
30381
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
30303
30382
  return c > 3 && r && Object.defineProperty(target, key, r), r;
30304
30383
  },
30305
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
30384
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
30306
30385
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
30307
30386
  };
30308
30387
  var BrowserCanvas = /*#__PURE__*/function (_BaseCanvas) {
@@ -30382,7 +30461,7 @@
30382
30461
  }
30383
30462
  }]);
30384
30463
  }(exports.BaseCanvas);
30385
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Q([injectable(), __metadata$G("design:paramtypes", [Object])], BrowserCanvas);
30464
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$U([injectable(), __metadata$J("design:paramtypes", [Object])], BrowserCanvas);
30386
30465
 
30387
30466
  function createModule(CanvasConstructor, ContextConstructor) {
30388
30467
  return new ContainerModule(function (bind) {
@@ -30400,47 +30479,17 @@
30400
30479
 
30401
30480
  var browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
30402
30481
 
30403
- var MathPickerContribution = Symbol["for"]("MathPickerContribution");
30404
- var MathArcPicker = Symbol["for"]("MathArcPicker");
30405
- var MathAreaPicker = Symbol["for"]("MathAreaPicker");
30406
- var MathCirclePicker = Symbol["for"]("MathCirclePicker");
30407
- var MathImagePicker = Symbol["for"]("MathImagePicker");
30408
- var MathLinePicker = Symbol["for"]("MathLinePicker");
30409
- var MathPathPicker = Symbol["for"]("MathPathPicker");
30410
- var MathRectPicker = Symbol["for"]("MathRectPicker");
30411
- var MathSymbolPicker = Symbol["for"]("MathSymbolPicker");
30412
- var MathTextPicker = Symbol["for"]("MathTextPicker");
30413
- var MathPolygonPicker = Symbol["for"]("MathPolygonPicker");
30414
- var MathGlyphPicker = Symbol["for"]("MathGlyphPicker");
30415
- var CanvasArcPicker = Symbol["for"]("CanvasArcPicker");
30416
- var CanvasArc3dPicker = Symbol["for"]("CanvasArc3dPicker");
30417
- var CanvasAreaPicker = Symbol["for"]("CanvasAreaPicker");
30418
- var CanvasCirclePicker = Symbol["for"]("CanvasCirclePicker");
30419
- var CanvasImagePicker = Symbol["for"]("CanvasImagePicker");
30420
- var CanvasLinePicker = Symbol["for"]("CanvasLinePicker");
30421
- var CanvasPathPicker = Symbol["for"]("CanvasPathPicker");
30422
- var CanvasRectPicker = Symbol["for"]("CanvasRectPicker");
30423
- var CanvasRect3dPicker = Symbol["for"]("CanvasRect3dPicker");
30424
- var CanvasSymbolPicker = Symbol["for"]("CanvasSymbolPicker");
30425
- var CanvasTextPicker = Symbol["for"]("CanvasTextPicker");
30426
- var CanvasPolygonPicker = Symbol["for"]("CanvasPolygonPicker");
30427
- var CanvasPyramid3dPicker = Symbol["for"]("CanvasPyramid3dPicker");
30428
- var CanvasRichTextPicker = Symbol["for"]("CanvasRichTextPicker");
30429
- var CanvasGlyphPicker = Symbol["for"]("CanvasGlyphPicker");
30430
- var CanvasGroupPicker = Symbol["for"]("CanvasGroupPicker");
30431
- var CanvasPickerContribution = Symbol["for"]("CanvasPickerContribution");
30432
-
30433
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30482
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30434
30483
  var d,
30435
30484
  c = arguments.length,
30436
30485
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
30437
30486
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
30438
30487
  return c > 3 && r && Object.defineProperty(target, key, r), r;
30439
30488
  },
30440
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
30489
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
30441
30490
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
30442
30491
  },
30443
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
30492
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
30444
30493
  return function (target, key) {
30445
30494
  decorator(target, key, paramIndex);
30446
30495
  };
@@ -30483,9 +30532,11 @@
30483
30532
  }
30484
30533
  var picker = this.pickerMap.get(graphic.numberType);
30485
30534
  if (!picker) return null;
30486
- var g = picker.contains(graphic, point, params) ? graphic : null,
30535
+ var pd = picker.contains(graphic, point, params),
30536
+ g = pd ? graphic : null,
30487
30537
  data = {
30488
- graphic: g
30538
+ graphic: g,
30539
+ params: pd
30489
30540
  };
30490
30541
  if (g) return data;
30491
30542
  if (this.InterceptorContributions.length) for (var _i = 0; _i < this.InterceptorContributions.length; _i++) {
@@ -30501,9 +30552,9 @@
30501
30552
  }
30502
30553
  }]);
30503
30554
  }(exports.DefaultPickService);
30504
- DefaultCanvasPickerService = __decorate$P([injectable(), __param$t(0, inject(ContributionProvider)), __param$t(0, named(CanvasPickerContribution)), __param$t(1, inject(DrawContribution)), __param$t(2, inject(ContributionProvider)), __param$t(2, named(PickItemInterceptor)), __metadata$F("design:paramtypes", [Object, Object, Object])], DefaultCanvasPickerService);
30555
+ DefaultCanvasPickerService = __decorate$T([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(CanvasPickerContribution)), __param$u(1, inject(DrawContribution)), __param$u(2, inject(ContributionProvider)), __param$u(2, named(PickItemInterceptor)), __metadata$I("design:paramtypes", [Object, Object, Object])], DefaultCanvasPickerService);
30505
30556
 
30506
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30557
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30507
30558
  var d,
30508
30559
  c = arguments.length,
30509
30560
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -30522,7 +30573,7 @@
30522
30573
  }
30523
30574
  }]);
30524
30575
  }();
30525
- DefaultCanvasGroupPicker = __decorate$O([injectable()], DefaultCanvasGroupPicker);
30576
+ DefaultCanvasGroupPicker = __decorate$S([injectable()], DefaultCanvasGroupPicker);
30526
30577
 
30527
30578
  var m$1 = new ContainerModule(function (bind, unbind, isBound, rebind) {
30528
30579
  m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -30538,14 +30589,14 @@
30538
30589
  }
30539
30590
 
30540
30591
  var _BrowserWindowHandlerContribution_,
30541
- __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30592
+ __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30542
30593
  var d,
30543
30594
  c = arguments.length,
30544
30595
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
30545
30596
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
30546
30597
  return c > 3 && r && Object.defineProperty(target, key, r), r;
30547
30598
  },
30548
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
30599
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
30549
30600
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
30550
30601
  };
30551
30602
  var BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = /*#__PURE__*/function (_BaseWindowHandlerCon) {
@@ -30763,21 +30814,21 @@
30763
30814
  }
30764
30815
  }]);
30765
30816
  }(exports.BaseWindowHandlerContribution);
30766
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = __decorate$N([injectable(), __metadata$E("design:paramtypes", [])], BrowserWindowHandlerContribution);
30817
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = __decorate$R([injectable(), __metadata$H("design:paramtypes", [])], BrowserWindowHandlerContribution);
30767
30818
  var browserWindowModule = new ContainerModule(function (bind) {
30768
30819
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
30769
30820
  return ctx.container.get(BrowserWindowHandlerContribution);
30770
30821
  }).whenTargetNamed(BrowserWindowHandlerContribution.env);
30771
30822
  });
30772
30823
 
30773
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30824
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30774
30825
  var d,
30775
30826
  c = arguments.length,
30776
30827
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
30777
30828
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
30778
30829
  return c > 3 && r && Object.defineProperty(target, key, r), r;
30779
30830
  },
30780
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
30831
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
30781
30832
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
30782
30833
  };
30783
30834
  var DynamicB = /*#__PURE__*/function () {
@@ -31045,7 +31096,7 @@
31045
31096
  }
31046
31097
  }]);
31047
31098
  }(exports.BaseEnvContribution);
31048
- BrowserEnvContribution = __decorate$M([injectable(), __metadata$D("design:paramtypes", [])], BrowserEnvContribution);
31099
+ BrowserEnvContribution = __decorate$Q([injectable(), __metadata$G("design:paramtypes", [])], BrowserEnvContribution);
31049
31100
 
31050
31101
  var browserEnvModule = new ContainerModule(function (bind) {
31051
31102
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
@@ -31060,7 +31111,7 @@
31060
31111
  loadBrowserEnv(container);
31061
31112
  }
31062
31113
 
31063
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31114
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31064
31115
  var d,
31065
31116
  c = arguments.length,
31066
31117
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31121,16 +31172,16 @@
31121
31172
  }
31122
31173
  }]);
31123
31174
  }(BrowserContext2d);
31124
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$L([injectable()], FeishuContext2d);
31175
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$P([injectable()], FeishuContext2d);
31125
31176
 
31126
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31177
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31127
31178
  var d,
31128
31179
  c = arguments.length,
31129
31180
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
31130
31181
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
31131
31182
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31132
31183
  },
31133
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
31184
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
31134
31185
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
31135
31186
  };
31136
31187
  var FeishuCanvas = /*#__PURE__*/function (_BaseCanvas) {
@@ -31149,26 +31200,26 @@
31149
31200
  value: function release() {}
31150
31201
  }]);
31151
31202
  }(exports.BaseCanvas);
31152
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$K([injectable(), __metadata$C("design:paramtypes", [Object])], FeishuCanvas);
31203
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$O([injectable(), __metadata$F("design:paramtypes", [Object])], FeishuCanvas);
31153
31204
 
31154
31205
  var feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
31155
31206
 
31156
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31207
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31157
31208
  var d,
31158
31209
  c = arguments.length,
31159
31210
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
31160
31211
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
31161
31212
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31162
31213
  },
31163
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
31214
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
31164
31215
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
31165
31216
  },
31166
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
31217
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
31167
31218
  return function (target, key) {
31168
31219
  decorator(target, key, paramIndex);
31169
31220
  };
31170
31221
  };
31171
- var MiniAppEventManager$3 = /*#__PURE__*/function () {
31222
+ var MiniAppEventManager$4 = /*#__PURE__*/function () {
31172
31223
  function MiniAppEventManager() {
31173
31224
  _classCallCheck(this, MiniAppEventManager);
31174
31225
  this.cache = {};
@@ -31201,7 +31252,7 @@
31201
31252
  function FeishuWindowHandlerContribution(global) {
31202
31253
  var _this;
31203
31254
  _classCallCheck(this, FeishuWindowHandlerContribution);
31204
- _this = _callSuper(this, FeishuWindowHandlerContribution), _this.global = global, _this.type = "feishu", _this.eventManager = new MiniAppEventManager$3();
31255
+ _this = _callSuper(this, FeishuWindowHandlerContribution), _this.global = global, _this.type = "feishu", _this.eventManager = new MiniAppEventManager$4();
31205
31256
  return _this;
31206
31257
  }
31207
31258
  _inherits(FeishuWindowHandlerContribution, _BaseWindowHandlerCon);
@@ -31352,24 +31403,24 @@
31352
31403
  }
31353
31404
  }]);
31354
31405
  }(exports.BaseWindowHandlerContribution);
31355
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$J([injectable(), __param$s(0, inject(VGlobal)), __metadata$B("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
31406
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$N([injectable(), __param$t(0, inject(VGlobal)), __metadata$E("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
31356
31407
  var feishuWindowModule = new ContainerModule(function (bind) {
31357
31408
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
31358
31409
  return ctx.container.get(FeishuWindowHandlerContribution);
31359
31410
  }).whenTargetNamed(FeishuWindowHandlerContribution.env);
31360
31411
  });
31361
31412
 
31362
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31413
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31363
31414
  var d,
31364
31415
  c = arguments.length,
31365
31416
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
31366
31417
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
31367
31418
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31368
31419
  },
31369
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
31420
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
31370
31421
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
31371
31422
  },
31372
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
31423
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
31373
31424
  return function (target, key) {
31374
31425
  decorator(target, key, paramIndex);
31375
31426
  };
@@ -31403,14 +31454,16 @@
31403
31454
  if (!1 === graphic.attribute.pickable) return null;
31404
31455
  var picker = this.pickerMap.get(graphic.numberType);
31405
31456
  if (!picker) return null;
31406
- var g = picker.contains(graphic, point, params) ? graphic : null;
31457
+ var pd = picker.contains(graphic, point, params),
31458
+ g = pd ? graphic : null;
31407
31459
  return g ? {
31408
- graphic: g
31460
+ graphic: g,
31461
+ params: pd
31409
31462
  } : null;
31410
31463
  }
31411
31464
  }]);
31412
31465
  }(exports.DefaultPickService);
31413
- DefaultMathPickerService = __decorate$I([injectable(), __param$r(0, inject(ContributionProvider)), __param$r(0, named(MathPickerContribution)), __param$r(1, inject(ContributionProvider)), __param$r(1, named(PickItemInterceptor)), __metadata$A("design:paramtypes", [Object, Object])], DefaultMathPickerService);
31466
+ DefaultMathPickerService = __decorate$M([injectable(), __param$s(0, inject(ContributionProvider)), __param$s(0, named(MathPickerContribution)), __param$s(1, inject(ContributionProvider)), __param$s(1, named(PickItemInterceptor)), __metadata$D("design:paramtypes", [Object, Object])], DefaultMathPickerService);
31414
31467
 
31415
31468
  var m = new ContainerModule(function (bind) {
31416
31469
  m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -31522,17 +31575,17 @@
31522
31575
  }]);
31523
31576
  }();
31524
31577
 
31525
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31578
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31526
31579
  var d,
31527
31580
  c = arguments.length,
31528
31581
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
31529
31582
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
31530
31583
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31531
31584
  },
31532
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
31585
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
31533
31586
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
31534
31587
  };
31535
- function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
31588
+ function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
31536
31589
  var dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
31537
31590
  canvasIdLists.forEach(function (id, i) {
31538
31591
  var ctx = tt.createCanvasContext(id),
@@ -31567,7 +31620,7 @@
31567
31620
  }, {
31568
31621
  key: "configure",
31569
31622
  value: function configure(service, params) {
31570
- service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.pixelRatio));
31623
+ service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$4(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.pixelRatio));
31571
31624
  }
31572
31625
  }, {
31573
31626
  key: "loadImage",
@@ -31654,7 +31707,7 @@
31654
31707
  }
31655
31708
  }]);
31656
31709
  }(exports.BaseEnvContribution);
31657
- FeishuEnvContribution = __decorate$H([injectable(), __metadata$z("design:paramtypes", [])], FeishuEnvContribution);
31710
+ FeishuEnvContribution = __decorate$L([injectable(), __metadata$C("design:paramtypes", [])], FeishuEnvContribution);
31658
31711
 
31659
31712
  var feishuEnvModule = new ContainerModule(function (bind) {
31660
31713
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -31669,7 +31722,7 @@
31669
31722
  loadFeishuEnv(container);
31670
31723
  }
31671
31724
 
31672
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31725
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31673
31726
  var d,
31674
31727
  c = arguments.length,
31675
31728
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -31751,16 +31804,16 @@
31751
31804
  }
31752
31805
  }]);
31753
31806
  }(BrowserContext2d);
31754
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
31807
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$K([injectable()], LynxContext2d);
31755
31808
 
31756
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31809
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31757
31810
  var d,
31758
31811
  c = arguments.length,
31759
31812
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
31760
31813
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
31761
31814
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31762
31815
  },
31763
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
31816
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
31764
31817
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
31765
31818
  };
31766
31819
  var LynxCanvas = /*#__PURE__*/function (_BaseCanvas) {
@@ -31785,24 +31838,24 @@
31785
31838
  value: function release() {}
31786
31839
  }]);
31787
31840
  }(exports.BaseCanvas);
31788
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$y("design:paramtypes", [Object])], LynxCanvas);
31841
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$J([injectable(), __metadata$B("design:paramtypes", [Object])], LynxCanvas);
31789
31842
 
31790
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31843
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
31791
31844
  var d,
31792
31845
  c = arguments.length,
31793
31846
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
31794
31847
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
31795
31848
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31796
31849
  },
31797
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
31850
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
31798
31851
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
31799
31852
  },
31800
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
31853
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
31801
31854
  return function (target, key) {
31802
31855
  decorator(target, key, paramIndex);
31803
31856
  };
31804
31857
  };
31805
- var MiniAppEventManager$2 = /*#__PURE__*/function () {
31858
+ var MiniAppEventManager$3 = /*#__PURE__*/function () {
31806
31859
  function MiniAppEventManager() {
31807
31860
  _classCallCheck(this, MiniAppEventManager);
31808
31861
  this.cache = {};
@@ -31835,7 +31888,7 @@
31835
31888
  function LynxWindowHandlerContribution(global) {
31836
31889
  var _this;
31837
31890
  _classCallCheck(this, LynxWindowHandlerContribution);
31838
- _this = _callSuper(this, LynxWindowHandlerContribution), _this.global = global, _this.type = "lynx", _this.eventManager = new MiniAppEventManager$2();
31891
+ _this = _callSuper(this, LynxWindowHandlerContribution), _this.global = global, _this.type = "lynx", _this.eventManager = new MiniAppEventManager$3();
31839
31892
  return _this;
31840
31893
  }
31841
31894
  _inherits(LynxWindowHandlerContribution, _BaseWindowHandlerCon);
@@ -31988,7 +32041,7 @@
31988
32041
  }
31989
32042
  }]);
31990
32043
  }(exports.BaseWindowHandlerContribution);
31991
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$q(0, inject(VGlobal)), __metadata$x("design:paramtypes", [Object])], LynxWindowHandlerContribution);
32044
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$I([injectable(), __param$r(0, inject(VGlobal)), __metadata$A("design:paramtypes", [Object])], LynxWindowHandlerContribution);
31992
32045
  var lynxWindowModule = new ContainerModule(function (bind) {
31993
32046
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
31994
32047
  return ctx.container.get(LynxWindowHandlerContribution);
@@ -31997,21 +32050,21 @@
31997
32050
 
31998
32051
  var lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
31999
32052
 
32000
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32053
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32001
32054
  var d,
32002
32055
  c = arguments.length,
32003
32056
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32004
32057
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32005
32058
  return c > 3 && r && Object.defineProperty(target, key, r), r;
32006
32059
  },
32007
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
32060
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
32008
32061
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32009
32062
  };
32010
32063
  var ng = !1;
32011
32064
  try {
32012
32065
  ng = !!lynx.createCanvasNG;
32013
32066
  } catch (err) {}
32014
- function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
32067
+ function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
32015
32068
  var dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
32016
32069
  canvasIdLists.forEach(function (id, i) {
32017
32070
  var _canvas;
@@ -32050,7 +32103,7 @@
32050
32103
  return _createClass(LynxEnvContribution, [{
32051
32104
  key: "configure",
32052
32105
  value: function configure(service, params) {
32053
- service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$2(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
32106
+ service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
32054
32107
  }
32055
32108
  }, {
32056
32109
  key: "getDynamicCanvasCount",
@@ -32154,7 +32207,7 @@
32154
32207
  value: function release() {}
32155
32208
  }]);
32156
32209
  }(exports.BaseEnvContribution);
32157
- LynxEnvContribution = __decorate$D([injectable(), __metadata$w("design:paramtypes", [])], LynxEnvContribution);
32210
+ LynxEnvContribution = __decorate$H([injectable(), __metadata$z("design:paramtypes", [])], LynxEnvContribution);
32158
32211
 
32159
32212
  var lynxEnvModule = new ContainerModule(function (bind) {
32160
32213
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -32169,14 +32222,14 @@
32169
32222
  loadLynxEnv(container);
32170
32223
  }
32171
32224
 
32172
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32225
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32173
32226
  var d,
32174
32227
  c = arguments.length,
32175
32228
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32176
32229
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32177
32230
  return c > 3 && r && Object.defineProperty(target, key, r), r;
32178
32231
  },
32179
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
32232
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
32180
32233
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32181
32234
  };
32182
32235
  var NodeContext2d = /*#__PURE__*/function (_BrowserContext2d) {
@@ -32195,16 +32248,16 @@
32195
32248
  value: function release() {}
32196
32249
  }]);
32197
32250
  }(BrowserContext2d);
32198
- NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$v("design:paramtypes", [Object, Number])], NodeContext2d);
32251
+ NodeContext2d.env = "node", NodeContext2d = __decorate$G([injectable(), __metadata$y("design:paramtypes", [Object, Number])], NodeContext2d);
32199
32252
 
32200
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32253
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32201
32254
  var d,
32202
32255
  c = arguments.length,
32203
32256
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32204
32257
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32205
32258
  return c > 3 && r && Object.defineProperty(target, key, r), r;
32206
32259
  },
32207
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
32260
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
32208
32261
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32209
32262
  };
32210
32263
  var NodeCanvas = /*#__PURE__*/function (_BaseCanvas) {
@@ -32225,21 +32278,21 @@
32225
32278
  }
32226
32279
  }]);
32227
32280
  }(exports.BaseCanvas);
32228
- NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$u("design:paramtypes", [Object])], NodeCanvas);
32281
+ NodeCanvas.env = "node", NodeCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], NodeCanvas);
32229
32282
 
32230
32283
  var nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
32231
32284
 
32232
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32285
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32233
32286
  var d,
32234
32287
  c = arguments.length,
32235
32288
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32236
32289
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32237
32290
  return c > 3 && r && Object.defineProperty(target, key, r), r;
32238
32291
  },
32239
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
32292
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
32240
32293
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32241
32294
  },
32242
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
32295
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
32243
32296
  return function (target, key) {
32244
32297
  decorator(target, key, paramIndex);
32245
32298
  };
@@ -32377,14 +32430,14 @@
32377
32430
  value: function clearViewBox(color) {}
32378
32431
  }]);
32379
32432
  }(exports.BaseWindowHandlerContribution);
32380
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$p(0, inject(VGlobal)), __metadata$t("design:paramtypes", [Object])], NodeWindowHandlerContribution);
32433
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$E([injectable(), __param$q(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], NodeWindowHandlerContribution);
32381
32434
  var nodeWindowModule = new ContainerModule(function (bind) {
32382
32435
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
32383
32436
  return ctx.container.get(NodeWindowHandlerContribution);
32384
32437
  }).whenTargetNamed(NodeWindowHandlerContribution.env);
32385
32438
  });
32386
32439
 
32387
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32440
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32388
32441
  var d,
32389
32442
  c = arguments.length,
32390
32443
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32527,7 +32580,7 @@
32527
32580
  value: function createOffscreenCanvas(params) {}
32528
32581
  }]);
32529
32582
  }(exports.BaseEnvContribution);
32530
- NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
32583
+ NodeEnvContribution = __decorate$D([injectable()], NodeEnvContribution);
32531
32584
 
32532
32585
  var nodeEnvModule = new ContainerModule(function (bind) {
32533
32586
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -32541,7 +32594,7 @@
32541
32594
  loadNodeEnv(container);
32542
32595
  }
32543
32596
 
32544
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32597
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32545
32598
  var d,
32546
32599
  c = arguments.length,
32547
32600
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -32662,16 +32715,16 @@
32662
32715
  }
32663
32716
  }]);
32664
32717
  }(BrowserContext2d);
32665
- TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
32718
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$C([injectable()], TaroContext2d);
32666
32719
 
32667
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32720
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32668
32721
  var d,
32669
32722
  c = arguments.length,
32670
32723
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32671
32724
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32672
32725
  return c > 3 && r && Object.defineProperty(target, key, r), r;
32673
32726
  },
32674
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
32727
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
32675
32728
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32676
32729
  };
32677
32730
  var TaroCanvas = /*#__PURE__*/function (_BaseCanvas) {
@@ -32690,26 +32743,26 @@
32690
32743
  value: function release() {}
32691
32744
  }]);
32692
32745
  }(exports.BaseCanvas);
32693
- TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$s("design:paramtypes", [Object])], TaroCanvas);
32746
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$B([injectable(), __metadata$v("design:paramtypes", [Object])], TaroCanvas);
32694
32747
 
32695
32748
  var taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
32696
32749
 
32697
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32750
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32698
32751
  var d,
32699
32752
  c = arguments.length,
32700
32753
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32701
32754
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32702
32755
  return c > 3 && r && Object.defineProperty(target, key, r), r;
32703
32756
  },
32704
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
32757
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
32705
32758
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32706
32759
  },
32707
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
32760
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
32708
32761
  return function (target, key) {
32709
32762
  decorator(target, key, paramIndex);
32710
32763
  };
32711
32764
  };
32712
- var MiniAppEventManager$1 = /*#__PURE__*/function () {
32765
+ var MiniAppEventManager$2 = /*#__PURE__*/function () {
32713
32766
  function MiniAppEventManager() {
32714
32767
  _classCallCheck(this, MiniAppEventManager);
32715
32768
  this.cache = {};
@@ -32742,7 +32795,7 @@
32742
32795
  function TaroWindowHandlerContribution(global) {
32743
32796
  var _this;
32744
32797
  _classCallCheck(this, TaroWindowHandlerContribution);
32745
- _this = _callSuper(this, TaroWindowHandlerContribution), _this.global = global, _this.type = "taro", _this.eventManager = new MiniAppEventManager$1();
32798
+ _this = _callSuper(this, TaroWindowHandlerContribution), _this.global = global, _this.type = "taro", _this.eventManager = new MiniAppEventManager$2();
32746
32799
  return _this;
32747
32800
  }
32748
32801
  _inherits(TaroWindowHandlerContribution, _BaseWindowHandlerCon);
@@ -32856,17 +32909,441 @@
32856
32909
  key: "dispatchEvent",
32857
32910
  value: function dispatchEvent(event) {
32858
32911
  var type = event.type;
32859
- return !!this.eventManager.cache[type] && (event.changedTouches.length > 0 && (event.changedTouches.forEach(function (d, i) {
32860
- event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), {
32861
- offsetX: d.x,
32862
- offsetY: d.y
32863
- });
32864
- }), event.offsetX = event.changedTouches[0].offsetX, event.offsetY = event.changedTouches[0].offsetY), event.touches.length > 0 && event.touches.forEach(function (d, i) {
32865
- event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), {
32866
- offsetX: d.x,
32867
- offsetY: d.y
32868
- });
32869
- }), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
32912
+ return !!this.eventManager.cache[type] && (event.changedTouches.length > 0 && (event.changedTouches.forEach(function (d, i) {
32913
+ event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), {
32914
+ offsetX: d.x,
32915
+ offsetY: d.y
32916
+ });
32917
+ }), event.offsetX = event.changedTouches[0].offsetX, event.offsetY = event.changedTouches[0].offsetY), event.touches.length > 0 && event.touches.forEach(function (d, i) {
32918
+ event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), {
32919
+ offsetX: d.x,
32920
+ offsetY: d.y
32921
+ });
32922
+ }), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
32923
+ f(event);
32924
+ }), !0);
32925
+ }
32926
+ }, {
32927
+ key: "getStyle",
32928
+ value: function getStyle() {
32929
+ return {};
32930
+ }
32931
+ }, {
32932
+ key: "setStyle",
32933
+ value: function setStyle(style) {}
32934
+ }, {
32935
+ key: "getBoundingClientRect",
32936
+ value: function getBoundingClientRect() {
32937
+ var wh = this.getWH();
32938
+ return {
32939
+ x: 0,
32940
+ y: 0,
32941
+ width: wh.width,
32942
+ height: wh.height,
32943
+ left: 0,
32944
+ top: 0,
32945
+ right: 0,
32946
+ bottom: 0
32947
+ };
32948
+ }
32949
+ }, {
32950
+ key: "clearViewBox",
32951
+ value: function clearViewBox(color) {
32952
+ var vb = this.viewBox,
32953
+ context = this.getContext(),
32954
+ dpr = this.getDpr();
32955
+ 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();
32956
+ }
32957
+ }]);
32958
+ }(exports.BaseWindowHandlerContribution);
32959
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$A([injectable(), __param$p(0, inject(VGlobal)), __metadata$u("design:paramtypes", [Object])], TaroWindowHandlerContribution);
32960
+ var taroWindowModule = new ContainerModule(function (bind) {
32961
+ bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
32962
+ return ctx.container.get(TaroWindowHandlerContribution);
32963
+ }).whenTargetNamed(TaroWindowHandlerContribution.env);
32964
+ });
32965
+
32966
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
32967
+ var d,
32968
+ c = arguments.length,
32969
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
32970
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
32971
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
32972
+ },
32973
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
32974
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
32975
+ };
32976
+ function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
32977
+ canvasIdLists.forEach(function (id, i) {
32978
+ var ctx = taro.createCanvasContext(id),
32979
+ canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
32980
+ return ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), canvas;
32981
+ });
32982
+ }
32983
+ var TaroEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
32984
+ function TaroEnvContribution() {
32985
+ var _this;
32986
+ _classCallCheck(this, TaroEnvContribution);
32987
+ _this = _callSuper(this, TaroEnvContribution), _this.type = "taro", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
32988
+ try {
32989
+ _this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
32990
+ } catch (err) {
32991
+ _this.supportsPointerEvents = !1, _this.supportsMouseEvents = !1;
32992
+ }
32993
+ _this.applyStyles = !0;
32994
+ return _this;
32995
+ }
32996
+ _inherits(TaroEnvContribution, _BaseEnvContribution);
32997
+ return _createClass(TaroEnvContribution, [{
32998
+ key: "getDynamicCanvasCount",
32999
+ value: function getDynamicCanvasCount() {
33000
+ return this.freeCanvasList.length;
33001
+ }
33002
+ }, {
33003
+ key: "getStaticCanvasCount",
33004
+ value: function getStaticCanvasCount() {
33005
+ return 9999;
33006
+ }
33007
+ }, {
33008
+ key: "mapToCanvasPoint",
33009
+ value: function mapToCanvasPoint(event) {
33010
+ var _a;
33011
+ return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
33012
+ }
33013
+ }, {
33014
+ key: "configure",
33015
+ value: function configure(service, params) {
33016
+ service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$2(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.taro, params.pixelRatio), this.taro = params.taro, this.pixelRatio = params.pixelRatio);
33017
+ }
33018
+ }, {
33019
+ key: "loadImage",
33020
+ value: function loadImage(url) {
33021
+ return Promise.resolve({
33022
+ data: url,
33023
+ loadState: "success"
33024
+ });
33025
+ }
33026
+ }, {
33027
+ key: "loadSvg",
33028
+ value: function loadSvg(svgStr) {
33029
+ var _window = window || globalThis;
33030
+ if (_window.DOMParser) {
33031
+ var svg = new _window.DOMParser().parseFromString(svgStr, "image/svg+xml").children[0],
33032
+ data = new XMLSerializer().serializeToString(svg),
33033
+ url = "data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(data));
33034
+ return Promise.resolve({
33035
+ data: url,
33036
+ loadState: "success"
33037
+ });
33038
+ }
33039
+ if (_window.Blob) {
33040
+ var _data = new _window.Blob([svgStr], {
33041
+ type: "image/svg+xml"
33042
+ }),
33043
+ _url = _window.URL.createObjectURL(_data);
33044
+ return Promise.resolve({
33045
+ data: _url,
33046
+ loadState: "success"
33047
+ });
33048
+ }
33049
+ return Promise.reject();
33050
+ }
33051
+ }, {
33052
+ key: "createCanvas",
33053
+ value: function createCanvas(params) {
33054
+ var result = this.freeCanvasList[this.canvasIdx] || this.freeCanvasList[this.freeCanvasList.length - 1];
33055
+ return this.canvasIdx++, result;
33056
+ }
33057
+ }, {
33058
+ key: "createOffscreenCanvas",
33059
+ value: function createOffscreenCanvas(params) {}
33060
+ }, {
33061
+ key: "releaseCanvas",
33062
+ value: function releaseCanvas(canvas) {}
33063
+ }, {
33064
+ key: "getDevicePixelRatio",
33065
+ value: function getDevicePixelRatio() {
33066
+ return this.pixelRatio;
33067
+ }
33068
+ }, {
33069
+ key: "getRequestAnimationFrame",
33070
+ value: function getRequestAnimationFrame() {
33071
+ return requestAnimationFrame;
33072
+ }
33073
+ }, {
33074
+ key: "getCancelAnimationFrame",
33075
+ value: function getCancelAnimationFrame() {
33076
+ return cancelAnimationFrame;
33077
+ }
33078
+ }, {
33079
+ key: "addEventListener",
33080
+ value: function addEventListener(type, listener, options) {
33081
+ return null;
33082
+ }
33083
+ }, {
33084
+ key: "removeEventListener",
33085
+ value: function removeEventListener(type, listener, options) {
33086
+ return null;
33087
+ }
33088
+ }, {
33089
+ key: "dispatchEvent",
33090
+ value: function dispatchEvent(event) {
33091
+ return null;
33092
+ }
33093
+ }, {
33094
+ key: "getElementById",
33095
+ value: function getElementById(str) {
33096
+ return this.canvasMap.get(str);
33097
+ }
33098
+ }, {
33099
+ key: "getRootElement",
33100
+ value: function getRootElement() {
33101
+ return null;
33102
+ }
33103
+ }, {
33104
+ key: "getDocument",
33105
+ value: function getDocument() {
33106
+ return null;
33107
+ }
33108
+ }, {
33109
+ key: "release",
33110
+ value: function release() {}
33111
+ }]);
33112
+ }(exports.BaseEnvContribution);
33113
+ TaroEnvContribution = __decorate$z([injectable(), __metadata$t("design:paramtypes", [])], TaroEnvContribution);
33114
+
33115
+ var taroEnvModule = new ContainerModule(function (bind) {
33116
+ taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
33117
+ });
33118
+ taroEnvModule.isTaroBound = !1;
33119
+ function loadTaroEnv(container) {
33120
+ var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
33121
+ loadTaroEnv.__loaded || (loadTaroEnv.__loaded = !0, container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container));
33122
+ }
33123
+ loadTaroEnv.__loaded = !1;
33124
+ function initTaroEnv() {
33125
+ loadTaroEnv(container);
33126
+ }
33127
+
33128
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33129
+ var d,
33130
+ c = arguments.length,
33131
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
33132
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
33133
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
33134
+ };
33135
+ var WxContext2d = /*#__PURE__*/function (_BrowserContext2d) {
33136
+ function WxContext2d() {
33137
+ _classCallCheck(this, WxContext2d);
33138
+ return _callSuper(this, WxContext2d, arguments);
33139
+ }
33140
+ _inherits(WxContext2d, _BrowserContext2d);
33141
+ return _createClass(WxContext2d, [{
33142
+ key: "draw",
33143
+ value: function draw() {}
33144
+ }, {
33145
+ key: "createPattern",
33146
+ value: function createPattern(image, repetition) {
33147
+ return null;
33148
+ }
33149
+ }]);
33150
+ }(BrowserContext2d);
33151
+ WxContext2d.env = "wx", WxContext2d = __decorate$y([injectable()], WxContext2d);
33152
+
33153
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33154
+ var d,
33155
+ c = arguments.length,
33156
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
33157
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
33158
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
33159
+ },
33160
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
33161
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
33162
+ };
33163
+ var WxCanvas = /*#__PURE__*/function (_BaseCanvas) {
33164
+ function WxCanvas(params) {
33165
+ _classCallCheck(this, WxCanvas);
33166
+ return _callSuper(this, WxCanvas, [params]);
33167
+ }
33168
+ _inherits(WxCanvas, _BaseCanvas);
33169
+ return _createClass(WxCanvas, [{
33170
+ key: "init",
33171
+ value: function init() {
33172
+ this._context = new WxContext2d(this, this._dpr);
33173
+ }
33174
+ }, {
33175
+ key: "release",
33176
+ value: function release() {}
33177
+ }]);
33178
+ }(exports.BaseCanvas);
33179
+ WxCanvas.env = "wx", WxCanvas = __decorate$x([injectable(), __metadata$s("design:paramtypes", [Object])], WxCanvas);
33180
+
33181
+ var wxCanvasModule = createModule(WxCanvas, WxContext2d);
33182
+
33183
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33184
+ var d,
33185
+ c = arguments.length,
33186
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
33187
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
33188
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
33189
+ },
33190
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
33191
+ if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
33192
+ },
33193
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
33194
+ return function (target, key) {
33195
+ decorator(target, key, paramIndex);
33196
+ };
33197
+ };
33198
+ var MiniAppEventManager$1 = /*#__PURE__*/function () {
33199
+ function MiniAppEventManager() {
33200
+ _classCallCheck(this, MiniAppEventManager);
33201
+ this.cache = {};
33202
+ }
33203
+ return _createClass(MiniAppEventManager, [{
33204
+ key: "addEventListener",
33205
+ value: function addEventListener(type, func) {
33206
+ type && func && (this.cache[type] = this.cache[type] || {
33207
+ listener: []
33208
+ }, this.cache[type].listener.push(func));
33209
+ }
33210
+ }, {
33211
+ key: "removeEventListener",
33212
+ value: function removeEventListener(type, func) {
33213
+ if (!type || !func) return;
33214
+ if (!this.cache[type]) return;
33215
+ var index = this.cache[type].listener.findIndex(function (f) {
33216
+ return f === func;
33217
+ });
33218
+ index >= 0 && this.cache[type].listener.splice(index, 1);
33219
+ }
33220
+ }, {
33221
+ key: "cleanEvent",
33222
+ value: function cleanEvent() {
33223
+ this.cache = {};
33224
+ }
33225
+ }]);
33226
+ }();
33227
+ var WxWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
33228
+ function WxWindowHandlerContribution(global) {
33229
+ var _this;
33230
+ _classCallCheck(this, WxWindowHandlerContribution);
33231
+ _this = _callSuper(this, WxWindowHandlerContribution), _this.global = global, _this.type = "wx", _this.eventManager = new MiniAppEventManager$1();
33232
+ return _this;
33233
+ }
33234
+ _inherits(WxWindowHandlerContribution, _BaseWindowHandlerCon);
33235
+ return _createClass(WxWindowHandlerContribution, [{
33236
+ key: "container",
33237
+ get: function get() {
33238
+ return null;
33239
+ }
33240
+ }, {
33241
+ key: "getTitle",
33242
+ value: function getTitle() {
33243
+ return this.canvas.id.toString();
33244
+ }
33245
+ }, {
33246
+ key: "getWH",
33247
+ value: function getWH() {
33248
+ return {
33249
+ width: this.canvas.width / (this.canvas.dpr || 1),
33250
+ height: this.canvas.height / (this.canvas.dpr || 1)
33251
+ };
33252
+ }
33253
+ }, {
33254
+ key: "getXY",
33255
+ value: function getXY() {
33256
+ return {
33257
+ x: 0,
33258
+ y: 0
33259
+ };
33260
+ }
33261
+ }, {
33262
+ key: "createWindow",
33263
+ value: function createWindow(params) {
33264
+ params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
33265
+ }
33266
+ }, {
33267
+ key: "createWindowByConfig",
33268
+ value: function createWindowByConfig(params) {
33269
+ var nativeCanvas = this.global.createCanvas({
33270
+ width: params.width,
33271
+ height: params.height
33272
+ }),
33273
+ options = {
33274
+ width: params.width,
33275
+ height: params.height,
33276
+ dpr: params.dpr,
33277
+ nativeCanvas: nativeCanvas,
33278
+ id: Generator.GenAutoIncrementId().toString(),
33279
+ canvasControled: !1
33280
+ };
33281
+ this.canvas = new WxCanvas(options);
33282
+ }
33283
+ }, {
33284
+ key: "createWindowByCanvas",
33285
+ value: function createWindowByCanvas(params) {
33286
+ var canvas;
33287
+ if ("string" == typeof params.canvas) {
33288
+ if (canvas = this.global.getElementById(params.canvas), !canvas) throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom");
33289
+ } else canvas = params.canvas;
33290
+ var width = params.width,
33291
+ height = params.height;
33292
+ if (null == width || null == height || !params.canvasControled) {
33293
+ var data = canvas.getBoundingClientRect();
33294
+ width = data.width, height = data.height;
33295
+ }
33296
+ var dpr = params.dpr;
33297
+ null == dpr && (dpr = canvas.width / width), this.canvas = new WxCanvas({
33298
+ width: width,
33299
+ height: height,
33300
+ dpr: dpr,
33301
+ nativeCanvas: canvas,
33302
+ canvasControled: params.canvasControled
33303
+ });
33304
+ }
33305
+ }, {
33306
+ key: "releaseWindow",
33307
+ value: function releaseWindow() {}
33308
+ }, {
33309
+ key: "resizeWindow",
33310
+ value: function resizeWindow(width, height) {}
33311
+ }, {
33312
+ key: "setDpr",
33313
+ value: function setDpr(dpr) {
33314
+ this.canvas.dpr = dpr;
33315
+ }
33316
+ }, {
33317
+ key: "getContext",
33318
+ value: function getContext() {
33319
+ return this.canvas.getContext();
33320
+ }
33321
+ }, {
33322
+ key: "getNativeHandler",
33323
+ value: function getNativeHandler() {
33324
+ return this.canvas;
33325
+ }
33326
+ }, {
33327
+ key: "getDpr",
33328
+ value: function getDpr() {
33329
+ return this.canvas.dpr;
33330
+ }
33331
+ }, {
33332
+ key: "addEventListener",
33333
+ value: function addEventListener(type, listener) {
33334
+ this.eventManager.addEventListener(type, listener);
33335
+ }
33336
+ }, {
33337
+ key: "removeEventListener",
33338
+ value: function removeEventListener(type, listener) {
33339
+ this.eventManager.removeEventListener(type, listener);
33340
+ }
33341
+ }, {
33342
+ key: "dispatchEvent",
33343
+ value: function dispatchEvent(event) {
33344
+ var _a, _b, _c, _d;
33345
+ var type = event.type;
33346
+ return !!this.eventManager.cache[type] && (event.changedTouches && event.changedTouches[0] && (event.offsetX = event.changedTouches[0].x, event.changedTouches[0].offsetX = null !== (_a = event.changedTouches[0].x) && void 0 !== _a ? _a : event.changedTouches[0].pageX, event.changedTouches[0].clientX = null !== (_b = event.changedTouches[0].x) && void 0 !== _b ? _b : event.changedTouches[0].pageX, event.offsetY = event.changedTouches[0].y, event.changedTouches[0].offsetY = null !== (_c = event.changedTouches[0].y) && void 0 !== _c ? _c : event.changedTouches[0].pageY, event.changedTouches[0].clientY = null !== (_d = event.changedTouches[0].y) && void 0 !== _d ? _d : event.changedTouches[0].pageY), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
32870
33347
  f(event);
32871
33348
  }), !0);
32872
33349
  }
@@ -32903,11 +33380,11 @@
32903
33380
  }
32904
33381
  }]);
32905
33382
  }(exports.BaseWindowHandlerContribution);
32906
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$o(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], TaroWindowHandlerContribution);
32907
- var taroWindowModule = new ContainerModule(function (bind) {
32908
- bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
32909
- return ctx.container.get(TaroWindowHandlerContribution);
32910
- }).whenTargetNamed(TaroWindowHandlerContribution.env);
33383
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$w([injectable(), __param$o(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], WxWindowHandlerContribution);
33384
+ var wxWindowModule = new ContainerModule(function (bind) {
33385
+ bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
33386
+ return ctx.container.get(WxWindowHandlerContribution);
33387
+ }).whenTargetNamed(WxWindowHandlerContribution.env);
32911
33388
  });
32912
33389
 
32913
33390
  var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -32919,19 +33396,88 @@
32919
33396
  },
32920
33397
  __metadata$q = undefined && undefined.__metadata || function (k, v) {
32921
33398
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
33399
+ },
33400
+ __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
33401
+ return new (P || (P = Promise))(function (resolve, reject) {
33402
+ function fulfilled(value) {
33403
+ try {
33404
+ step(generator.next(value));
33405
+ } catch (e) {
33406
+ reject(e);
33407
+ }
33408
+ }
33409
+ function rejected(value) {
33410
+ try {
33411
+ step(generator["throw"](value));
33412
+ } catch (e) {
33413
+ reject(e);
33414
+ }
33415
+ }
33416
+ function step(result) {
33417
+ var value;
33418
+ result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
33419
+ resolve(value);
33420
+ })).then(fulfilled, rejected);
33421
+ }
33422
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
33423
+ });
32922
33424
  };
32923
- function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
32924
- canvasIdLists.forEach(function (id, i) {
32925
- var ctx = taro.createCanvasContext(id),
32926
- canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
32927
- return ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), canvas;
32928
- });
33425
+ function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, component) {
33426
+ return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33427
+ var dpr, _loop, i;
33428
+ return _regeneratorRuntime().wrap(function _callee$(_context2) {
33429
+ while (1) switch (_context2.prev = _context2.next) {
33430
+ case 0:
33431
+ dpr = wx.getSystemInfoSync().pixelRatio;
33432
+ _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) {
33433
+ var id;
33434
+ return _regeneratorRuntime().wrap(function _loop$(_context) {
33435
+ while (1) switch (_context.prev = _context.next) {
33436
+ case 0:
33437
+ id = canvasIdLists[i];
33438
+ _context.next = 3;
33439
+ return new Promise(function (resolve) {
33440
+ var data = wx.createSelectorQuery();
33441
+ component && (data = data["in"](component)), data.select("#".concat(id)).fields({
33442
+ node: !0,
33443
+ size: !0
33444
+ }).exec(function (res) {
33445
+ if (!res[0]) return;
33446
+ var canvas = res[0].node,
33447
+ width = res[0].width,
33448
+ height = res[0].height;
33449
+ canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
33450
+ });
33451
+ });
33452
+ case 3:
33453
+ case "end":
33454
+ return _context.stop();
33455
+ }
33456
+ }, _loop);
33457
+ });
33458
+ i = 0;
33459
+ case 3:
33460
+ if (!(i < canvasIdLists.length)) {
33461
+ _context2.next = 8;
33462
+ break;
33463
+ }
33464
+ return _context2.delegateYield(_loop(i), "t0", 5);
33465
+ case 5:
33466
+ i++;
33467
+ _context2.next = 3;
33468
+ break;
33469
+ case 8:
33470
+ case "end":
33471
+ return _context2.stop();
33472
+ }
33473
+ }, _callee);
33474
+ }));
32929
33475
  }
32930
- var TaroEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
32931
- function TaroEnvContribution() {
33476
+ var WxEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
33477
+ function WxEnvContribution() {
32932
33478
  var _this;
32933
- _classCallCheck(this, TaroEnvContribution);
32934
- _this = _callSuper(this, TaroEnvContribution), _this.type = "taro", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
33479
+ _classCallCheck(this, WxEnvContribution);
33480
+ _this = _callSuper(this, WxEnvContribution), _this.type = "wx", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
32935
33481
  try {
32936
33482
  _this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
32937
33483
  } catch (err) {
@@ -32940,27 +33486,11 @@
32940
33486
  _this.applyStyles = !0;
32941
33487
  return _this;
32942
33488
  }
32943
- _inherits(TaroEnvContribution, _BaseEnvContribution);
32944
- return _createClass(TaroEnvContribution, [{
32945
- key: "getDynamicCanvasCount",
32946
- value: function getDynamicCanvasCount() {
32947
- return this.freeCanvasList.length;
32948
- }
32949
- }, {
32950
- key: "getStaticCanvasCount",
32951
- value: function getStaticCanvasCount() {
32952
- return 9999;
32953
- }
32954
- }, {
32955
- key: "mapToCanvasPoint",
32956
- value: function mapToCanvasPoint(event) {
32957
- var _a;
32958
- return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
32959
- }
32960
- }, {
33489
+ _inherits(WxEnvContribution, _BaseEnvContribution);
33490
+ return _createClass(WxEnvContribution, [{
32961
33491
  key: "configure",
32962
33492
  value: function configure(service, params) {
32963
- service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$1(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.taro, params.pixelRatio), this.taro = params.taro, this.pixelRatio = params.pixelRatio);
33493
+ if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas$1(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(function () {});
32964
33494
  }
32965
33495
  }, {
32966
33496
  key: "loadImage",
@@ -32972,27 +33502,7 @@
32972
33502
  }
32973
33503
  }, {
32974
33504
  key: "loadSvg",
32975
- value: function loadSvg(svgStr) {
32976
- var _window = window || globalThis;
32977
- if (_window.DOMParser) {
32978
- var svg = new _window.DOMParser().parseFromString(svgStr, "image/svg+xml").children[0],
32979
- data = new XMLSerializer().serializeToString(svg),
32980
- url = "data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(data));
32981
- return Promise.resolve({
32982
- data: url,
32983
- loadState: "success"
32984
- });
32985
- }
32986
- if (_window.Blob) {
32987
- var _data = new _window.Blob([svgStr], {
32988
- type: "image/svg+xml"
32989
- }),
32990
- _url = _window.URL.createObjectURL(_data);
32991
- return Promise.resolve({
32992
- data: _url,
32993
- loadState: "success"
32994
- });
32995
- }
33505
+ value: function loadSvg(url) {
32996
33506
  return Promise.reject();
32997
33507
  }
32998
33508
  }, {
@@ -33010,17 +33520,21 @@
33010
33520
  }, {
33011
33521
  key: "getDevicePixelRatio",
33012
33522
  value: function getDevicePixelRatio() {
33013
- return this.pixelRatio;
33523
+ return wx.getSystemInfoSync().pixelRatio;
33014
33524
  }
33015
33525
  }, {
33016
33526
  key: "getRequestAnimationFrame",
33017
33527
  value: function getRequestAnimationFrame() {
33018
- return requestAnimationFrame;
33528
+ return function (callback) {
33529
+ return rafBasedSto.call(callback);
33530
+ };
33019
33531
  }
33020
33532
  }, {
33021
33533
  key: "getCancelAnimationFrame",
33022
33534
  value: function getCancelAnimationFrame() {
33023
- return cancelAnimationFrame;
33535
+ return function (h) {
33536
+ rafBasedSto.clear(h);
33537
+ };
33024
33538
  }
33025
33539
  }, {
33026
33540
  key: "addEventListener",
@@ -33055,21 +33569,40 @@
33055
33569
  }, {
33056
33570
  key: "release",
33057
33571
  value: function release() {}
33572
+ }, {
33573
+ key: "mapToCanvasPoint",
33574
+ value: function mapToCanvasPoint(event) {
33575
+ var _a;
33576
+ return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
33577
+ }
33058
33578
  }]);
33059
33579
  }(exports.BaseEnvContribution);
33060
- TaroEnvContribution = __decorate$v([injectable(), __metadata$q("design:paramtypes", [])], TaroEnvContribution);
33580
+ WxEnvContribution = __decorate$v([injectable(), __metadata$q("design:paramtypes", [])], WxEnvContribution);
33061
33581
 
33062
- var taroEnvModule = new ContainerModule(function (bind) {
33063
- taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
33582
+ var wxEnvModule = new ContainerModule(function (bind) {
33583
+ wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
33064
33584
  });
33065
- taroEnvModule.isTaroBound = !1;
33066
- function loadTaroEnv(container) {
33585
+ wxEnvModule._isWxBound = !1;
33586
+ function loadWxEnv(container) {
33067
33587
  var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
33068
- loadTaroEnv.__loaded || (loadTaroEnv.__loaded = !0, container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container));
33588
+ loadWxEnv.__loaded || (loadWxEnv.__loaded = !0, container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container));
33069
33589
  }
33070
- loadTaroEnv.__loaded = !1;
33071
- function initTaroEnv() {
33072
- loadTaroEnv(container);
33590
+ loadWxEnv.__loaded = !1;
33591
+ function initWxEnv() {
33592
+ loadWxEnv(container);
33593
+ }
33594
+
33595
+ function loadAllEnv(container) {
33596
+ loadAllModule(container);
33597
+ }
33598
+ function loadAllModule(container) {
33599
+ loadAllModule.__loaded || (loadAllModule.__loaded = !0, loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", function (lastEnv, env) {
33600
+ "browser" !== env && loadMathPicker(container);
33601
+ }));
33602
+ }
33603
+ loadAllModule.__loaded = !1;
33604
+ function initAllEnv() {
33605
+ loadAllEnv(container);
33073
33606
  }
33074
33607
 
33075
33608
  var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -33079,23 +33612,15 @@
33079
33612
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
33080
33613
  return c > 3 && r && Object.defineProperty(target, key, r), r;
33081
33614
  };
33082
- var WxContext2d = /*#__PURE__*/function (_BrowserContext2d) {
33083
- function WxContext2d() {
33084
- _classCallCheck(this, WxContext2d);
33085
- return _callSuper(this, WxContext2d, arguments);
33615
+ var TTContext2d = /*#__PURE__*/function (_FeishuContext2d) {
33616
+ function TTContext2d() {
33617
+ _classCallCheck(this, TTContext2d);
33618
+ return _callSuper(this, TTContext2d, arguments);
33086
33619
  }
33087
- _inherits(WxContext2d, _BrowserContext2d);
33088
- return _createClass(WxContext2d, [{
33089
- key: "draw",
33090
- value: function draw() {}
33091
- }, {
33092
- key: "createPattern",
33093
- value: function createPattern(image, repetition) {
33094
- return null;
33095
- }
33096
- }]);
33097
- }(BrowserContext2d);
33098
- WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
33620
+ _inherits(TTContext2d, _FeishuContext2d);
33621
+ return _createClass(TTContext2d);
33622
+ }(FeishuContext2d);
33623
+ TTContext2d.env = "tt", TTContext2d = __decorate$u([injectable()], TTContext2d);
33099
33624
 
33100
33625
  var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33101
33626
  var d,
@@ -33107,25 +33632,25 @@
33107
33632
  __metadata$p = undefined && undefined.__metadata || function (k, v) {
33108
33633
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
33109
33634
  };
33110
- var WxCanvas = /*#__PURE__*/function (_BaseCanvas) {
33111
- function WxCanvas(params) {
33112
- _classCallCheck(this, WxCanvas);
33113
- return _callSuper(this, WxCanvas, [params]);
33635
+ var TTCanvas = /*#__PURE__*/function (_BaseCanvas) {
33636
+ function TTCanvas(params) {
33637
+ _classCallCheck(this, TTCanvas);
33638
+ return _callSuper(this, TTCanvas, [params]);
33114
33639
  }
33115
- _inherits(WxCanvas, _BaseCanvas);
33116
- return _createClass(WxCanvas, [{
33640
+ _inherits(TTCanvas, _BaseCanvas);
33641
+ return _createClass(TTCanvas, [{
33117
33642
  key: "init",
33118
33643
  value: function init() {
33119
- this._context = new WxContext2d(this, this._dpr);
33644
+ this._context = new TTContext2d(this, this._dpr);
33120
33645
  }
33121
33646
  }, {
33122
33647
  key: "release",
33123
33648
  value: function release() {}
33124
33649
  }]);
33125
33650
  }(exports.BaseCanvas);
33126
- WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$p("design:paramtypes", [Object])], WxCanvas);
33651
+ TTCanvas.env = "tt", TTCanvas = __decorate$t([injectable(), __metadata$p("design:paramtypes", [Object])], TTCanvas);
33127
33652
 
33128
- var wxCanvasModule = createModule(WxCanvas, WxContext2d);
33653
+ var ttCanvasModule = createModule(TTCanvas, TTContext2d);
33129
33654
 
33130
33655
  var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
33131
33656
  var d,
@@ -33171,15 +33696,15 @@
33171
33696
  }
33172
33697
  }]);
33173
33698
  }();
33174
- var WxWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
33175
- function WxWindowHandlerContribution(global) {
33699
+ var TTWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
33700
+ function TTWindowHandlerContribution(global) {
33176
33701
  var _this;
33177
- _classCallCheck(this, WxWindowHandlerContribution);
33178
- _this = _callSuper(this, WxWindowHandlerContribution), _this.global = global, _this.type = "wx", _this.eventManager = new MiniAppEventManager();
33702
+ _classCallCheck(this, TTWindowHandlerContribution);
33703
+ _this = _callSuper(this, TTWindowHandlerContribution), _this.global = global, _this.type = "tt", _this.eventManager = new MiniAppEventManager();
33179
33704
  return _this;
33180
33705
  }
33181
- _inherits(WxWindowHandlerContribution, _BaseWindowHandlerCon);
33182
- return _createClass(WxWindowHandlerContribution, [{
33706
+ _inherits(TTWindowHandlerContribution, _BaseWindowHandlerCon);
33707
+ return _createClass(TTWindowHandlerContribution, [{
33183
33708
  key: "container",
33184
33709
  get: function get() {
33185
33710
  return null;
@@ -33225,7 +33750,7 @@
33225
33750
  id: Generator.GenAutoIncrementId().toString(),
33226
33751
  canvasControled: !1
33227
33752
  };
33228
- this.canvas = new WxCanvas(options);
33753
+ this.canvas = new TTCanvas(options);
33229
33754
  }
33230
33755
  }, {
33231
33756
  key: "createWindowByCanvas",
@@ -33241,7 +33766,7 @@
33241
33766
  width = data.width, height = data.height;
33242
33767
  }
33243
33768
  var dpr = params.dpr;
33244
- null == dpr && (dpr = canvas.width / width), this.canvas = new WxCanvas({
33769
+ null == dpr && (dpr = canvas.width / width), this.canvas = new TTCanvas({
33245
33770
  width: width,
33246
33771
  height: height,
33247
33772
  dpr: dpr,
@@ -33288,9 +33813,8 @@
33288
33813
  }, {
33289
33814
  key: "dispatchEvent",
33290
33815
  value: function dispatchEvent(event) {
33291
- var _a, _b, _c, _d;
33292
33816
  var type = event.type;
33293
- return !!this.eventManager.cache[type] && (event.changedTouches && event.changedTouches[0] && (event.offsetX = event.changedTouches[0].x, event.changedTouches[0].offsetX = null !== (_a = event.changedTouches[0].x) && void 0 !== _a ? _a : event.changedTouches[0].pageX, event.changedTouches[0].clientX = null !== (_b = event.changedTouches[0].x) && void 0 !== _b ? _b : event.changedTouches[0].pageX, event.offsetY = event.changedTouches[0].y, event.changedTouches[0].offsetY = null !== (_c = event.changedTouches[0].y) && void 0 !== _c ? _c : event.changedTouches[0].pageY, event.changedTouches[0].clientY = null !== (_d = event.changedTouches[0].y) && void 0 !== _d ? _d : event.changedTouches[0].pageY), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
33817
+ return !!this.eventManager.cache[type] && (event.changedTouches && event.changedTouches[0] && (event.offsetX = event.changedTouches[0].x, event.changedTouches[0].offsetX = event.changedTouches[0].x, event.changedTouches[0].clientX = event.changedTouches[0].x, event.offsetY = event.changedTouches[0].y, event.changedTouches[0].offsetY = event.changedTouches[0].y, event.changedTouches[0].clientY = event.changedTouches[0].y), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
33294
33818
  f(event);
33295
33819
  }), !0);
33296
33820
  }
@@ -33327,11 +33851,11 @@
33327
33851
  }
33328
33852
  }]);
33329
33853
  }(exports.BaseWindowHandlerContribution);
33330
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$n(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], WxWindowHandlerContribution);
33331
- var wxWindowModule = new ContainerModule(function (bind) {
33332
- bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
33333
- return ctx.container.get(WxWindowHandlerContribution);
33334
- }).whenTargetNamed(WxWindowHandlerContribution.env);
33854
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$s([injectable(), __param$n(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], TTWindowHandlerContribution);
33855
+ var ttWindowModule = new ContainerModule(function (bind) {
33856
+ bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
33857
+ return ctx.container.get(TTWindowHandlerContribution);
33858
+ }).whenTargetNamed(TTWindowHandlerContribution.env);
33335
33859
  });
33336
33860
 
33337
33861
  var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -33375,7 +33899,7 @@
33375
33899
  return _regeneratorRuntime().wrap(function _callee$(_context2) {
33376
33900
  while (1) switch (_context2.prev = _context2.next) {
33377
33901
  case 0:
33378
- dpr = wx.getSystemInfoSync().pixelRatio;
33902
+ dpr = tt.getSystemInfoSync().pixelRatio;
33379
33903
  _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) {
33380
33904
  var id;
33381
33905
  return _regeneratorRuntime().wrap(function _loop$(_context) {
@@ -33384,15 +33908,11 @@
33384
33908
  id = canvasIdLists[i];
33385
33909
  _context.next = 3;
33386
33910
  return new Promise(function (resolve) {
33387
- var data = wx.createSelectorQuery();
33388
- component && (data = data["in"](component)), data.select("#".concat(id)).fields({
33389
- node: !0,
33390
- size: !0
33391
- }).exec(function (res) {
33392
- if (!res[0]) return;
33911
+ var data = tt.createSelectorQuery();
33912
+ component && (data = data["in"](component)), data.select("#".concat(id)).node().exec(function (res) {
33393
33913
  var canvas = res[0].node,
33394
- width = res[0].width,
33395
- height = res[0].height;
33914
+ width = canvas.width,
33915
+ height = canvas.height;
33396
33916
  canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
33397
33917
  });
33398
33918
  });
@@ -33420,11 +33940,11 @@
33420
33940
  }, _callee);
33421
33941
  }));
33422
33942
  }
33423
- var WxEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
33424
- function WxEnvContribution() {
33943
+ var TTEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
33944
+ function TTEnvContribution() {
33425
33945
  var _this;
33426
- _classCallCheck(this, WxEnvContribution);
33427
- _this = _callSuper(this, WxEnvContribution), _this.type = "wx", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
33946
+ _classCallCheck(this, TTEnvContribution);
33947
+ _this = _callSuper(this, TTEnvContribution), _this.type = "tt", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
33428
33948
  try {
33429
33949
  _this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
33430
33950
  } catch (err) {
@@ -33433,8 +33953,8 @@
33433
33953
  _this.applyStyles = !0;
33434
33954
  return _this;
33435
33955
  }
33436
- _inherits(WxEnvContribution, _BaseEnvContribution);
33437
- return _createClass(WxEnvContribution, [{
33956
+ _inherits(TTEnvContribution, _BaseEnvContribution);
33957
+ return _createClass(TTEnvContribution, [{
33438
33958
  key: "configure",
33439
33959
  value: function configure(service, params) {
33440
33960
  if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(function () {});
@@ -33467,7 +33987,7 @@
33467
33987
  }, {
33468
33988
  key: "getDevicePixelRatio",
33469
33989
  value: function getDevicePixelRatio() {
33470
- return wx.getSystemInfoSync().pixelRatio;
33990
+ return tt.getSystemInfoSync().pixelRatio;
33471
33991
  }
33472
33992
  }, {
33473
33993
  key: "getRequestAnimationFrame",
@@ -33524,32 +34044,19 @@
33524
34044
  }
33525
34045
  }]);
33526
34046
  }(exports.BaseEnvContribution);
33527
- WxEnvContribution = __decorate$r([injectable(), __metadata$n("design:paramtypes", [])], WxEnvContribution);
34047
+ TTEnvContribution = __decorate$r([injectable(), __metadata$n("design:paramtypes", [])], TTEnvContribution);
33528
34048
 
33529
- var wxEnvModule = new ContainerModule(function (bind) {
33530
- wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
34049
+ var ttEnvModule = new ContainerModule(function (bind) {
34050
+ ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
33531
34051
  });
33532
- wxEnvModule._isWxBound = !1;
33533
- function loadWxEnv(container) {
34052
+ ttEnvModule.isTTBound = !1;
34053
+ function loadTTEnv(container) {
33534
34054
  var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
33535
- loadWxEnv.__loaded || (loadWxEnv.__loaded = !0, container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container));
34055
+ loadTTEnv.__loaded || (loadTTEnv.__loaded = !0, container.load(ttEnvModule), container.load(ttCanvasModule), container.load(ttWindowModule), loadPicker && loadMathPicker(container));
33536
34056
  }
33537
- loadWxEnv.__loaded = !1;
33538
- function initWxEnv() {
33539
- loadWxEnv(container);
33540
- }
33541
-
33542
- function loadAllEnv(container) {
33543
- loadAllModule(container);
33544
- }
33545
- function loadAllModule(container) {
33546
- loadAllModule.__loaded || (loadAllModule.__loaded = !0, loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", function (lastEnv, env) {
33547
- "browser" !== env && loadMathPicker(container);
33548
- }));
33549
- }
33550
- loadAllModule.__loaded = !1;
33551
- function initAllEnv() {
33552
- loadAllEnv(container);
34057
+ loadTTEnv.__loaded = !1;
34058
+ function initTTEnv() {
34059
+ loadTTEnv(container);
33553
34060
  }
33554
34061
 
33555
34062
  var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -35125,7 +35632,7 @@
35125
35632
 
35126
35633
  var roughModule = _roughModule;
35127
35634
 
35128
- const version = "0.19.0";
35635
+ const version = "0.19.2";
35129
35636
  preLoadAllModule();
35130
35637
  if (isBrowserEnv()) {
35131
35638
  loadBrowserEnv(container);
@@ -35177,8 +35684,25 @@
35177
35684
  exports.BoundsPicker = BoundsPicker;
35178
35685
  exports.CIRCLE_NUMBER_TYPE = CIRCLE_NUMBER_TYPE;
35179
35686
  exports.Canvas3DDrawItemInterceptor = Canvas3DDrawItemInterceptor;
35687
+ exports.CanvasArc3dPicker = CanvasArc3dPicker;
35688
+ exports.CanvasArcPicker = CanvasArcPicker;
35689
+ exports.CanvasAreaPicker = CanvasAreaPicker;
35690
+ exports.CanvasCirclePicker = CanvasCirclePicker;
35180
35691
  exports.CanvasFactory = CanvasFactory;
35692
+ exports.CanvasGlyphPicker = CanvasGlyphPicker;
35693
+ exports.CanvasGroupPicker = CanvasGroupPicker;
35694
+ exports.CanvasImagePicker = CanvasImagePicker;
35695
+ exports.CanvasLinePicker = CanvasLinePicker;
35696
+ exports.CanvasPathPicker = CanvasPathPicker;
35697
+ exports.CanvasPickerContribution = CanvasPickerContribution;
35698
+ exports.CanvasPolygonPicker = CanvasPolygonPicker;
35699
+ exports.CanvasPyramid3dPicker = CanvasPyramid3dPicker;
35700
+ exports.CanvasRect3dPicker = CanvasRect3dPicker;
35701
+ exports.CanvasRectPicker = CanvasRectPicker;
35702
+ exports.CanvasRichTextPicker = CanvasRichTextPicker;
35703
+ exports.CanvasSymbolPicker = CanvasSymbolPicker;
35181
35704
  exports.CanvasTextLayout = CanvasTextLayout;
35705
+ exports.CanvasTextPicker = CanvasTextPicker;
35182
35706
  exports.CbAnimate = CbAnimate;
35183
35707
  exports.Circle = Circle;
35184
35708
  exports.CircleRender = CircleRender;
@@ -35303,6 +35827,18 @@
35303
35827
  exports.ManualTickHandler = ManualTickHandler;
35304
35828
  exports.ManualTicker = ManualTicker;
35305
35829
  exports.Mat4Allocate = Mat4Allocate;
35830
+ exports.MathArcPicker = MathArcPicker;
35831
+ exports.MathAreaPicker = MathAreaPicker;
35832
+ exports.MathCirclePicker = MathCirclePicker;
35833
+ exports.MathGlyphPicker = MathGlyphPicker;
35834
+ exports.MathImagePicker = MathImagePicker;
35835
+ exports.MathLinePicker = MathLinePicker;
35836
+ exports.MathPathPicker = MathPathPicker;
35837
+ exports.MathPickerContribution = MathPickerContribution;
35838
+ exports.MathPolygonPicker = MathPolygonPicker;
35839
+ exports.MathRectPicker = MathRectPicker;
35840
+ exports.MathSymbolPicker = MathSymbolPicker;
35841
+ exports.MathTextPicker = MathTextPicker;
35306
35842
  exports.MatrixAllocate = MatrixAllocate;
35307
35843
  exports.Meteor = Meteor;
35308
35844
  exports.MonotoneX = MonotoneX;
@@ -35543,6 +36079,7 @@
35543
36079
  exports.initFeishuEnv = initFeishuEnv;
35544
36080
  exports.initLynxEnv = initLynxEnv;
35545
36081
  exports.initNodeEnv = initNodeEnv;
36082
+ exports.initTTEnv = initTTEnv;
35546
36083
  exports.initTaroEnv = initTaroEnv;
35547
36084
  exports.initWxEnv = initWxEnv;
35548
36085
  exports.inject = inject;
@@ -35569,6 +36106,7 @@
35569
36106
  exports.loadFeishuEnv = loadFeishuEnv;
35570
36107
  exports.loadLynxEnv = loadLynxEnv;
35571
36108
  exports.loadNodeEnv = loadNodeEnv;
36109
+ exports.loadTTEnv = loadTTEnv;
35572
36110
  exports.loadTaroEnv = loadTaroEnv;
35573
36111
  exports.loadWxEnv = loadWxEnv;
35574
36112
  exports.lookAt = lookAt;
@@ -35690,6 +36228,7 @@
35690
36228
  exports.transformMat4 = transformMat4;
35691
36229
  exports.transformUtil = transformUtil;
35692
36230
  exports.translate = translate;
36231
+ exports.ttEnvModule = ttEnvModule;
35693
36232
  exports.version = version;
35694
36233
  exports.verticalLayout = verticalLayout;
35695
36234
  exports.vglobal = vglobal;