@visactor/vchart 1.11.1-alpha.2 → 1.11.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +739 -360
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/animation/config.js +2 -1
  6. package/cjs/chart/stack.js +1 -2
  7. package/cjs/compile/util.js +3 -0
  8. package/cjs/compile/util.js.map +1 -1
  9. package/cjs/component/marker/base-marker.d.ts +0 -7
  10. package/cjs/component/marker/base-marker.js +0 -5
  11. package/cjs/component/marker/base-marker.js.map +1 -1
  12. package/cjs/component/marker/mark-line/base-mark-line.d.ts +0 -1
  13. package/cjs/component/marker/mark-line/base-mark-line.js +4 -9
  14. package/cjs/component/marker/mark-line/base-mark-line.js.map +1 -1
  15. package/cjs/component/marker/mark-line/cartesian-mark-line.js +27 -10
  16. package/cjs/component/marker/mark-line/cartesian-mark-line.js.map +1 -1
  17. package/cjs/core/index.d.ts +1 -1
  18. package/cjs/core/index.js +1 -1
  19. package/cjs/core/index.js.map +1 -1
  20. package/cjs/core/vchart.d.ts +1 -1
  21. package/cjs/env/env.d.ts +1 -0
  22. package/cjs/env/env.js +7 -1
  23. package/cjs/env/env.js.map +1 -1
  24. package/cjs/event/event-dispatcher.js +1 -2
  25. package/cjs/event/index.js +2 -1
  26. package/cjs/plugin/components/tooltip-handler/base.d.ts +1 -1
  27. package/cjs/typings/spec/common.d.ts +1 -0
  28. package/cjs/typings/spec/common.js +1 -1
  29. package/cjs/typings/spec/common.js.map +1 -1
  30. package/esm/animation/config.js +2 -1
  31. package/esm/chart/stack.js +1 -2
  32. package/esm/compile/util.js +3 -0
  33. package/esm/compile/util.js.map +1 -1
  34. package/esm/component/marker/base-marker.d.ts +0 -7
  35. package/esm/component/marker/base-marker.js +1 -6
  36. package/esm/component/marker/base-marker.js.map +1 -1
  37. package/esm/component/marker/mark-line/base-mark-line.d.ts +0 -1
  38. package/esm/component/marker/mark-line/base-mark-line.js +4 -9
  39. package/esm/component/marker/mark-line/base-mark-line.js.map +1 -1
  40. package/esm/component/marker/mark-line/cartesian-mark-line.js +28 -10
  41. package/esm/component/marker/mark-line/cartesian-mark-line.js.map +1 -1
  42. package/esm/core/index.d.ts +1 -1
  43. package/esm/core/index.js +1 -1
  44. package/esm/core/index.js.map +1 -1
  45. package/esm/core/vchart.d.ts +1 -1
  46. package/esm/env/env.d.ts +1 -0
  47. package/esm/env/env.js +5 -1
  48. package/esm/env/env.js.map +1 -1
  49. package/esm/event/event-dispatcher.js +1 -2
  50. package/esm/event/index.js +2 -1
  51. package/esm/plugin/components/tooltip-handler/base.d.ts +1 -1
  52. package/esm/typings/spec/common.d.ts +1 -0
  53. package/esm/typings/spec/common.js +1 -1
  54. package/esm/typings/spec/common.js.map +1 -1
  55. package/package.json +15 -15
package/build/index.js CHANGED
@@ -26,7 +26,7 @@
26
26
  }
27
27
  return t;
28
28
  }
29
- function __awaiter$6(thisArg, _arguments, P, generator) {
29
+ function __awaiter$7(thisArg, _arguments, P, generator) {
30
30
  function adopt(value) {
31
31
  return value instanceof P ? value : new P(function (resolve) {
32
32
  resolve(value);
@@ -66,6 +66,7 @@
66
66
  RenderModeEnum["worker"] = "worker";
67
67
  RenderModeEnum["miniApp"] = "miniApp";
68
68
  RenderModeEnum["wx"] = "wx";
69
+ RenderModeEnum["tt"] = "tt";
69
70
  RenderModeEnum["desktop-miniApp"] = "desktop-miniApp";
70
71
  RenderModeEnum["lynx"] = "lynx";
71
72
  })(exports.RenderModeEnum || (exports.RenderModeEnum = {}));
@@ -7731,17 +7732,17 @@
7731
7732
  const EnvContribution = Symbol.for("EnvContribution");
7732
7733
  const VGlobal = Symbol.for("VGlobal");
7733
7734
 
7734
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
7735
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
7735
7736
  var d,
7736
7737
  c = arguments.length,
7737
7738
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
7738
7739
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
7739
7740
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7740
7741
  },
7741
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
7742
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
7742
7743
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
7743
7744
  },
7744
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
7745
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
7745
7746
  return function (target, key) {
7746
7747
  decorator(target, key, paramIndex);
7747
7748
  };
@@ -7901,7 +7902,7 @@
7901
7902
  return this._env || this.setEnv("browser"), this.envContribution.getElementTopLeft(dom, baseWindow);
7902
7903
  }
7903
7904
  };
7904
- DefaultGlobal = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(EnvContribution)), __metadata$18("design:paramtypes", [Object])], DefaultGlobal);
7905
+ DefaultGlobal = __decorate$1A([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(EnvContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultGlobal);
7905
7906
 
7906
7907
  const circleThreshold = tau$1 - 1e-8;
7907
7908
  class BoundsContext {
@@ -9112,7 +9113,8 @@
9112
9113
  flexWrap: "wrap",
9113
9114
  justifyContent: "flex-start",
9114
9115
  alignItems: "flex-start",
9115
- alignContent: "flex-start"
9116
+ alignContent: "flex-start",
9117
+ baseOpacity: 1
9116
9118
  });
9117
9119
  const DefaultGlyphAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
9118
9120
  path: "",
@@ -9175,7 +9177,7 @@
9175
9177
  textBaseline: "top",
9176
9178
  layoutDirection: "horizontal",
9177
9179
  textConfig: [],
9178
- forceBreakLine: !1,
9180
+ disableAutoWrapLine: !1,
9179
9181
  maxHeight: void 0,
9180
9182
  maxWidth: void 0,
9181
9183
  singleLine: !1
@@ -9330,7 +9332,7 @@
9330
9332
  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;
9331
9333
  }
9332
9334
 
9333
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9335
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9334
9336
  var d,
9335
9337
  c = arguments.length,
9336
9338
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -9604,9 +9606,9 @@
9604
9606
  return data.str = data.result, data.width += suffixWidth, data;
9605
9607
  }
9606
9608
  };
9607
- ATextMeasure = __decorate$1v([injectable()], ATextMeasure);
9609
+ ATextMeasure = __decorate$1z([injectable()], ATextMeasure);
9608
9610
 
9609
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9611
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
9610
9612
  var d,
9611
9613
  c = arguments.length,
9612
9614
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -9615,7 +9617,7 @@
9615
9617
  };
9616
9618
  const TextMeasureContribution = Symbol.for("TextMeasureContribution");
9617
9619
  let DefaultTextMeasureContribution = class extends ATextMeasure {};
9618
- DefaultTextMeasureContribution = __decorate$1u([injectable()], DefaultTextMeasureContribution);
9620
+ DefaultTextMeasureContribution = __decorate$1y([injectable()], DefaultTextMeasureContribution);
9619
9621
 
9620
9622
  const container = new Container();
9621
9623
 
@@ -10035,14 +10037,14 @@
10035
10037
  }
10036
10038
  const canvasAllocate = new DefaultCanvasAllocate();
10037
10039
 
10038
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10040
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10039
10041
  var d,
10040
10042
  c = arguments.length,
10041
10043
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
10042
10044
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
10043
10045
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10044
10046
  },
10045
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
10047
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
10046
10048
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
10047
10049
  };
10048
10050
  const VWindow = Symbol.for("VWindow");
@@ -10179,19 +10181,19 @@
10179
10181
  return this._handler.getTopLeft(baseWindow);
10180
10182
  }
10181
10183
  };
10182
- DefaultWindow = __decorate$1t([injectable(), __metadata$17("design:paramtypes", [])], DefaultWindow);
10184
+ DefaultWindow = __decorate$1x([injectable(), __metadata$1a("design:paramtypes", [])], DefaultWindow);
10183
10185
 
10184
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10186
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10185
10187
  var d,
10186
10188
  c = arguments.length,
10187
10189
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
10188
10190
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
10189
10191
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10190
10192
  },
10191
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
10193
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
10192
10194
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
10193
10195
  },
10194
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
10196
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
10195
10197
  return function (target, key) {
10196
10198
  decorator(target, key, paramIndex);
10197
10199
  };
@@ -10286,7 +10288,7 @@
10286
10288
  return c.nativeCanvas ? c.nativeCanvas : null;
10287
10289
  }
10288
10290
  };
10289
- DefaultGraphicUtil = __decorate$1s([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextMeasureContribution)), __metadata$16("design:paramtypes", [Object])], DefaultGraphicUtil);
10291
+ DefaultGraphicUtil = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(TextMeasureContribution)), __metadata$19("design:paramtypes", [Object])], DefaultGraphicUtil);
10290
10292
  var TransformMode;
10291
10293
  !function (TransformMode) {
10292
10294
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -10344,7 +10346,7 @@
10344
10346
  return this;
10345
10347
  }
10346
10348
  };
10347
- DefaultTransformUtil = __decorate$1s([injectable(), __metadata$16("design:paramtypes", [])], DefaultTransformUtil);
10349
+ DefaultTransformUtil = __decorate$1w([injectable(), __metadata$19("design:paramtypes", [])], DefaultTransformUtil);
10348
10350
 
10349
10351
  const defaultThemeObj = {
10350
10352
  arc: DefaultArcAttribute,
@@ -10457,7 +10459,7 @@
10457
10459
  return null;
10458
10460
  }
10459
10461
 
10460
- var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
10462
+ var __awaiter$6 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
10461
10463
  return new (P || (P = Promise))(function (resolve, reject) {
10462
10464
  function fulfilled(value) {
10463
10465
  try {
@@ -10527,7 +10529,7 @@
10527
10529
  }
10528
10530
  forEachChildrenAsync(cb) {
10529
10531
  let reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
10530
- return __awaiter$5(this, void 0, void 0, function* () {
10532
+ return __awaiter$6(this, void 0, void 0, function* () {
10531
10533
  if (reverse) {
10532
10534
  let child = this._lastChild,
10533
10535
  i = 0;
@@ -10845,7 +10847,19 @@
10845
10847
  }, this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.manager = manager;
10846
10848
  }
10847
10849
  composedPath() {
10848
- return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.path;
10850
+ 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;
10851
+ }
10852
+ composedDetailPath() {
10853
+ this.pickParams && this.pickParams.graphic && (this.detailPath = this.path.slice(), this._composedDetailPath(this.pickParams));
10854
+ }
10855
+ _composedDetailPath(params) {
10856
+ if (params && params.graphic) {
10857
+ const g = this.pickParams.graphic;
10858
+ if (g.stage) {
10859
+ const path = g.stage.eventSystem.manager.propagationPath(g);
10860
+ this.detailPath.push(path), this._composedDetailPath(params.params);
10861
+ }
10862
+ }
10849
10863
  }
10850
10864
  preventDefault() {
10851
10865
  this.nativeEvent instanceof Event && this.nativeEvent.cancelable && this.nativeEvent.preventDefault(), this.defaultPrevented = !0;
@@ -10964,7 +10978,7 @@
10964
10978
  }
10965
10979
  class EventManager {
10966
10980
  constructor(root, config) {
10967
- this.dispatch = new EventEmitter(), this.cursorTarget = null, this.mappingState = {
10981
+ this.dispatch = new EventEmitter(), this.cursorTarget = null, this.pauseNotify = !1, this.mappingState = {
10968
10982
  trackingData: {}
10969
10983
  }, this.eventPool = new Map(), this.onPointerDown = (from, target) => {
10970
10984
  if (!(from instanceof FederatedPointerEvent)) return void Logger.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
@@ -11125,6 +11139,7 @@
11125
11139
  return propagationPath.reverse(), propagationPath;
11126
11140
  }
11127
11141
  notifyTarget(e, type) {
11142
+ if (this.pauseNotify) return;
11128
11143
  type = null != type ? type : e.type;
11129
11144
  const key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? `${type}capture` : type;
11130
11145
  this.notifyListeners(e, key), e.eventPhase === e.AT_TARGET && this.notifyListeners(e, type);
@@ -11209,7 +11224,7 @@
11209
11224
  dispatchEvent(e) {
11210
11225
  var _a;
11211
11226
  if (!(e instanceof FederatedEvent)) throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");
11212
- 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;
11227
+ 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;
11213
11228
  },
11214
11229
  emit(eventName, object) {
11215
11230
  return this.dispatchEvent(new CustomEvent(eventName, object));
@@ -11396,6 +11411,12 @@
11396
11411
  nativeEvent.composedPath && nativeEvent.composedPath().length > 0 && (target = nativeEvent.composedPath()[0]);
11397
11412
  return target !== (this.domElement.getNativeHandler ? this.domElement.getNativeHandler().nativeCanvas : this.domElement);
11398
11413
  }
11414
+ pauseTriggerEvent() {
11415
+ this.manager.pauseNotify = !0;
11416
+ }
11417
+ resumeTriggerEvent() {
11418
+ this.manager.pauseNotify = !1;
11419
+ }
11399
11420
  }
11400
11421
 
11401
11422
  class ManualTickHandler {
@@ -14472,7 +14493,7 @@
14472
14493
  return str.startsWith("<svg") || str.startsWith("<?xml");
14473
14494
  }
14474
14495
 
14475
- var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
14496
+ var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
14476
14497
  return new (P || (P = Promise))(function (resolve, reject) {
14477
14498
  function fulfilled(value) {
14478
14499
  try {
@@ -14498,7 +14519,7 @@
14498
14519
  });
14499
14520
  };
14500
14521
  function waitForAllSubLayers(stage) {
14501
- return __awaiter$4(this, void 0, void 0, function* () {
14522
+ return __awaiter$5(this, void 0, void 0, function* () {
14502
14523
  const promiseList = [],
14503
14524
  layers = stage.getChildren();
14504
14525
  yield new Promise(resolve => {
@@ -14880,14 +14901,14 @@
14880
14901
  const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
14881
14902
 
14882
14903
  var DefaultLayerService_1,
14883
- __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14904
+ __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14884
14905
  var d,
14885
14906
  c = arguments.length,
14886
14907
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14887
14908
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14888
14909
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14889
14910
  },
14890
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
14911
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
14891
14912
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14892
14913
  };
14893
14914
  let DefaultLayerService = DefaultLayerService_1 = class {
@@ -14951,7 +14972,7 @@
14951
14972
  this.layerMap.delete(stage);
14952
14973
  }
14953
14974
  };
14954
- DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1r([injectable(), __metadata$15("design:paramtypes", [])], DefaultLayerService);
14975
+ DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1v([injectable(), __metadata$18("design:paramtypes", [])], DefaultLayerService);
14955
14976
 
14956
14977
  var coreModule = new ContainerModule(bind => {
14957
14978
  bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
@@ -16903,7 +16924,8 @@
16903
16924
  height: height
16904
16925
  } = this.lines[i];
16905
16926
  if (top + height < this[this.directionKey.top] || top + height > 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) {
16906
- const lineWidth = this.lines[i].getWidthWithEllips();
16927
+ const ellipsis = !0 === this.ellipsis ? "..." : this.ellipsis || "",
16928
+ lineWidth = this.lines[i].getWidthWithEllips(ellipsis);
16907
16929
  lineWidth > widthBound && (widthBound = lineWidth), heightBound += this.lines[i].height;
16908
16930
  } else this.lines[i].actualWidth > widthBound && (widthBound = this.lines[i].actualWidth), heightBound += this.lines[i].height;
16909
16931
  } else {
@@ -16918,7 +16940,8 @@
16918
16940
  y = frameHeight - this.lines[i].top - this.lines[i].height;
16919
16941
  if (0 === frameHeight) this.lines[i].actualWidth > widthBound && (widthBound = this.lines[i].actualWidth), heightBound += this.lines[i].height;else if (y + height > this[this.directionKey.top] + frameHeight || y < this[this.directionKey.top]) ;else {
16920
16942
  if (this.ellipsis && this.lines[i + 1] && y - this.lines[i + 1].height < this[this.directionKey.top]) {
16921
- const lineWidth = this.lines[i].getWidthWithEllips();
16943
+ const ellipsis = !0 === this.ellipsis ? "..." : this.ellipsis || "",
16944
+ lineWidth = this.lines[i].getWidthWithEllips(ellipsis);
16922
16945
  lineWidth > widthBound && (widthBound = lineWidth), heightBound += this.lines[i].height;
16923
16946
  } else this.lines[i].actualWidth > widthBound && (widthBound = this.lines[i].actualWidth), heightBound += this.lines[i].height;
16924
16947
  }
@@ -16929,7 +16952,8 @@
16929
16952
  } = this.lines[i];
16930
16953
  if (0 === frameHeight) this.lines[i].actualWidth > widthBound && (widthBound = this.lines[i].actualWidth), heightBound += this.lines[i].height;else if (top + height < this[this.directionKey.top] || top + height > this[this.directionKey.top] + frameHeight) ;else {
16931
16954
  if (this.ellipsis && this.lines[i + 1] && this.lines[i + 1].top + this.lines[i + 1].height > this[this.directionKey.top] + frameHeight) {
16932
- const lineWidth = this.lines[i].getWidthWithEllips();
16955
+ const ellipsis = !0 === this.ellipsis ? "..." : this.ellipsis || "",
16956
+ lineWidth = this.lines[i].getWidthWithEllips(ellipsis);
16933
16957
  lineWidth > widthBound && (widthBound = lineWidth), heightBound += this.lines[i].height;
16934
16958
  } else this.lines[i].actualWidth > widthBound && (widthBound = this.lines[i].actualWidth), heightBound += this.lines[i].height;
16935
16959
  }
@@ -16955,7 +16979,7 @@
16955
16979
  let halfDetaHeight = 0,
16956
16980
  deltaAscent = 0,
16957
16981
  deltaDescent = 0;
16958
- 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);
16982
+ 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 = "...";
16959
16983
  }
16960
16984
  updateWidth() {
16961
16985
  const {
@@ -16968,11 +16992,11 @@
16968
16992
  left = this.left + deltaLeft;
16969
16993
  baseline += this.top;
16970
16994
  let direction = this.direction;
16971
- if (this.verticalEllipsis) text = "...", direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
16995
+ if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
16972
16996
  if ("hide" === this.ellipsis) return;
16973
- if ("add" === this.ellipsis) text += "...", "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
16997
+ if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
16974
16998
  const index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
16975
- if (text = text.slice(0, index), text += "...", "right" === textAlign || "end" === textAlign) {
16999
+ if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
16976
17000
  const {
16977
17001
  width: width
16978
17002
  } = measureTextCanvas(this.text.slice(index), this.character);
@@ -16996,7 +17020,7 @@
16996
17020
  if ("add" === this.ellipsis) return width + this.ellipsisWidth;
16997
17021
  if ("replace" === this.ellipsis) {
16998
17022
  const index = getStrByWithCanvas(text, width - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
16999
- text = text.slice(0, index), text += "...";
17023
+ text = text.slice(0, index), text += this.ellipsisStr;
17000
17024
  const {
17001
17025
  width: measureWidth
17002
17026
  } = measureTextCanvas(this.text.slice(index), this.character);
@@ -17178,12 +17202,14 @@
17178
17202
  paragraph.verticalEllipsis = !0;
17179
17203
  break;
17180
17204
  }
17205
+ const ellipsis = !0 === drawEllipsis ? "..." : drawEllipsis || "";
17206
+ paragraph.ellipsisStr = ellipsis;
17181
17207
  const {
17182
17208
  width: width
17183
- } = measureTextCanvas("...", paragraph.character),
17209
+ } = measureTextCanvas(ellipsis, paragraph.character),
17184
17210
  ellipsisWidth = width || 0;
17185
17211
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
17186
- paragraph.ellipsis = "add";
17212
+ lastLine && (paragraph.ellipsis = "add");
17187
17213
  break;
17188
17214
  }
17189
17215
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth + paragraph.width) {
@@ -17201,14 +17227,14 @@
17201
17227
  paragraph.draw(ctx, y + this.ascent, x, 0 === index, this.textAlign);
17202
17228
  });
17203
17229
  }
17204
- getWidthWithEllips() {
17230
+ getWidthWithEllips(ellipsis) {
17205
17231
  let otherParagraphWidth = 0;
17206
17232
  for (let i = this.paragraphs.length - 1; i >= 0; i--) {
17207
17233
  const paragraph = this.paragraphs[i];
17208
17234
  if (paragraph instanceof RichTextIcon) break;
17209
17235
  const {
17210
17236
  width: width
17211
- } = measureTextCanvas("...", paragraph.character),
17237
+ } = measureTextCanvas(ellipsis, paragraph.character),
17212
17238
  ellipsisWidth = width || 0;
17213
17239
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
17214
17240
  paragraph.ellipsis = "add", paragraph.ellipsisWidth = ellipsisWidth;
@@ -17400,7 +17426,7 @@
17400
17426
  textBaseline: textBaseline,
17401
17427
  layoutDirection: layoutDirection,
17402
17428
  singleLine: singleLine,
17403
- forceBreakLine: forceBreakLine
17429
+ disableAutoWrapLine: disableAutoWrapLine
17404
17430
  } = this.attribute,
17405
17431
  paragraphs = [];
17406
17432
  for (let i = 0; i < textConfig.length; i++) if ("image" in textConfig[i]) {
@@ -17426,12 +17452,12 @@
17426
17452
  richTextHeightEnable = "number" == typeof height && Number.isFinite(height) && height > 0 && (!maxHeightFinite || height <= maxHeight),
17427
17453
  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),
17428
17454
  wrapper = new Wrapper(frame);
17429
- if (forceBreakLine) {
17455
+ if (disableAutoWrapLine) {
17430
17456
  let lineCount = 0,
17431
17457
  skip = !1;
17432
17458
  for (let i = 0; i < paragraphs.length; i++) {
17433
17459
  const p = paragraphs[i];
17434
- 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);
17460
+ 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);
17435
17461
  }
17436
17462
  } else for (let i = 0; i < paragraphs.length; i++) wrapper.deal(paragraphs[i]);
17437
17463
  wrapper.send();
@@ -18128,17 +18154,17 @@
18128
18154
  const matrixAllocate = new DefaultMatrixAllocate();
18129
18155
  const mat4Allocate = new DefaultMat4Allocate();
18130
18156
 
18131
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18157
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18132
18158
  var d,
18133
18159
  c = arguments.length,
18134
18160
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18135
18161
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
18136
18162
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18137
18163
  },
18138
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
18164
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
18139
18165
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18140
18166
  },
18141
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
18167
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
18142
18168
  return function (target, key) {
18143
18169
  decorator(target, key, paramIndex);
18144
18170
  };
@@ -18742,7 +18768,7 @@
18742
18768
  return !!visible || (aabbBounds.clear(), !1);
18743
18769
  }
18744
18770
  };
18745
- DefaultGraphicService = __decorate$1q([injectable(), __param$K(0, inject(GraphicCreator$1)), __metadata$14("design:paramtypes", [Object])], DefaultGraphicService);
18771
+ DefaultGraphicService = __decorate$1u([injectable(), __param$L(0, inject(GraphicCreator$1)), __metadata$17("design:paramtypes", [Object])], DefaultGraphicService);
18746
18772
 
18747
18773
  class GraphicCreator {
18748
18774
  constructor() {
@@ -19220,17 +19246,17 @@
19220
19246
  }), canvasGradient.GetPattern(w + x, h + y, undefined);
19221
19247
  }
19222
19248
 
19223
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19249
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19224
19250
  var d,
19225
19251
  c = arguments.length,
19226
19252
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19227
19253
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19228
19254
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19229
19255
  },
19230
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
19256
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
19231
19257
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19232
19258
  },
19233
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
19259
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
19234
19260
  return function (target, key) {
19235
19261
  decorator(target, key, paramIndex);
19236
19262
  };
@@ -19304,7 +19330,7 @@
19304
19330
  });
19305
19331
  }
19306
19332
  };
19307
- DefaultBaseInteractiveRenderContribution = __decorate$1p([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(InteractiveSubRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
19333
+ DefaultBaseInteractiveRenderContribution = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(InteractiveSubRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
19308
19334
 
19309
19335
  class DefaultBaseTextureRenderContribution {
19310
19336
  constructor() {
@@ -19688,7 +19714,7 @@
19688
19714
  }
19689
19715
  const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
19690
19716
 
19691
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19717
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19692
19718
  var d,
19693
19719
  c = arguments.length,
19694
19720
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19763,7 +19789,7 @@
19763
19789
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
19764
19790
  }
19765
19791
  };
19766
- SplitRectBeforeRenderContribution = __decorate$1o([injectable()], SplitRectBeforeRenderContribution);
19792
+ SplitRectBeforeRenderContribution = __decorate$1s([injectable()], SplitRectBeforeRenderContribution);
19767
19793
  let SplitRectAfterRenderContribution = class {
19768
19794
  constructor() {
19769
19795
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -19789,7 +19815,7 @@
19789
19815
  }
19790
19816
  }
19791
19817
  };
19792
- SplitRectAfterRenderContribution = __decorate$1o([injectable()], SplitRectAfterRenderContribution);
19818
+ SplitRectAfterRenderContribution = __decorate$1s([injectable()], SplitRectAfterRenderContribution);
19793
19819
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
19794
19820
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
19795
19821
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -19864,17 +19890,17 @@
19864
19890
  }
19865
19891
  }
19866
19892
 
19867
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19893
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19868
19894
  var d,
19869
19895
  c = arguments.length,
19870
19896
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19871
19897
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19872
19898
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19873
19899
  },
19874
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
19900
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
19875
19901
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19876
19902
  },
19877
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
19903
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
19878
19904
  return function (target, key) {
19879
19905
  decorator(target, key, paramIndex);
19880
19906
  };
@@ -20035,19 +20061,19 @@
20035
20061
  this._draw(arc, arcAttribute, !1, drawContext, params);
20036
20062
  }
20037
20063
  };
20038
- DefaultCanvasArcRender = __decorate$1n([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ArcRenderContribution)), __metadata$12("design:paramtypes", [Object])], DefaultCanvasArcRender);
20064
+ DefaultCanvasArcRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(ArcRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasArcRender);
20039
20065
 
20040
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20066
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20041
20067
  var d,
20042
20068
  c = arguments.length,
20043
20069
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20044
20070
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20045
20071
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20046
20072
  },
20047
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
20073
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
20048
20074
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20049
20075
  },
20050
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
20076
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
20051
20077
  return function (target, key) {
20052
20078
  decorator(target, key, paramIndex);
20053
20079
  };
@@ -20080,7 +20106,7 @@
20080
20106
  this._draw(circle, circleAttribute, !1, drawContext, params);
20081
20107
  }
20082
20108
  };
20083
- DefaultCanvasCircleRender = __decorate$1m([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(CircleRenderContribution)), __metadata$11("design:paramtypes", [Object])], DefaultCanvasCircleRender);
20109
+ DefaultCanvasCircleRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(CircleRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasCircleRender);
20084
20110
 
20085
20111
  function drawSegItem(ctx, curve, endPercent, params) {
20086
20112
  if (!curve.p1) return;
@@ -20219,7 +20245,7 @@
20219
20245
  });
20220
20246
  }
20221
20247
 
20222
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20248
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20223
20249
  var d,
20224
20250
  c = arguments.length,
20225
20251
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -20376,7 +20402,7 @@
20376
20402
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
20377
20403
  }
20378
20404
  };
20379
- DefaultCanvasLineRender = __decorate$1l([injectable()], DefaultCanvasLineRender);
20405
+ DefaultCanvasLineRender = __decorate$1p([injectable()], DefaultCanvasLineRender);
20380
20406
 
20381
20407
  function drawAreaSegments(path, segPath, percent, params) {
20382
20408
  var _a;
@@ -20505,17 +20531,17 @@
20505
20531
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
20506
20532
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
20507
20533
 
20508
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20534
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20509
20535
  var d,
20510
20536
  c = arguments.length,
20511
20537
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20512
20538
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20513
20539
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20514
20540
  },
20515
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
20541
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
20516
20542
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20517
20543
  },
20518
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
20544
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
20519
20545
  return function (target, key) {
20520
20546
  decorator(target, key, paramIndex);
20521
20547
  };
@@ -20767,22 +20793,22 @@
20767
20793
  return !1;
20768
20794
  }
20769
20795
  };
20770
- DefaultCanvasAreaRender = __decorate$1k([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AreaRenderContribution)), __metadata$10("design:paramtypes", [Object])], DefaultCanvasAreaRender);
20796
+ DefaultCanvasAreaRender = __decorate$1o([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(AreaRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultCanvasAreaRender);
20771
20797
 
20772
20798
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
20773
20799
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
20774
20800
 
20775
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20801
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20776
20802
  var d,
20777
20803
  c = arguments.length,
20778
20804
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20779
20805
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20780
20806
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20781
20807
  },
20782
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
20808
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
20783
20809
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20784
20810
  },
20785
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
20811
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
20786
20812
  return function (target, key) {
20787
20813
  decorator(target, key, paramIndex);
20788
20814
  };
@@ -20818,19 +20844,19 @@
20818
20844
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
20819
20845
  }
20820
20846
  };
20821
- DefaultCanvasPathRender = __decorate$1j([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(PathRenderContribution)), __metadata$$("design:paramtypes", [Object])], DefaultCanvasPathRender);
20847
+ DefaultCanvasPathRender = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PathRenderContribution)), __metadata$12("design:paramtypes", [Object])], DefaultCanvasPathRender);
20822
20848
 
20823
- var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20849
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20824
20850
  var d,
20825
20851
  c = arguments.length,
20826
20852
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20827
20853
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20828
20854
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20829
20855
  },
20830
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
20856
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
20831
20857
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20832
20858
  },
20833
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
20859
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
20834
20860
  return function (target, key) {
20835
20861
  decorator(target, key, paramIndex);
20836
20862
  };
@@ -20881,19 +20907,19 @@
20881
20907
  this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
20882
20908
  }
20883
20909
  };
20884
- DefaultCanvasRectRender = __decorate$1i([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(RectRenderContribution)), __metadata$_("design:paramtypes", [Object])], DefaultCanvasRectRender);
20910
+ DefaultCanvasRectRender = __decorate$1m([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(RectRenderContribution)), __metadata$11("design:paramtypes", [Object])], DefaultCanvasRectRender);
20885
20911
 
20886
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20912
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20887
20913
  var d,
20888
20914
  c = arguments.length,
20889
20915
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20890
20916
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20891
20917
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20892
20918
  },
20893
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
20919
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
20894
20920
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20895
20921
  },
20896
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
20922
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
20897
20923
  return function (target, key) {
20898
20924
  decorator(target, key, paramIndex);
20899
20925
  };
@@ -20952,7 +20978,7 @@
20952
20978
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
20953
20979
  }
20954
20980
  };
20955
- DefaultCanvasSymbolRender = __decorate$1h([injectable(), __param$D(0, inject(ContributionProvider)), __param$D(0, named(SymbolRenderContribution)), __metadata$Z("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
20981
+ DefaultCanvasSymbolRender = __decorate$1l([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(SymbolRenderContribution)), __metadata$10("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
20956
20982
 
20957
20983
  class DefaultBoundsAllocate {
20958
20984
  constructor() {
@@ -21038,17 +21064,17 @@
21038
21064
  }
21039
21065
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
21040
21066
 
21041
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21067
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21042
21068
  var d,
21043
21069
  c = arguments.length,
21044
21070
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21045
21071
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21046
21072
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21047
21073
  },
21048
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
21074
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
21049
21075
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21050
21076
  },
21051
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
21077
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
21052
21078
  return function (target, key) {
21053
21079
  decorator(target, key, paramIndex);
21054
21080
  };
@@ -21244,7 +21270,7 @@
21244
21270
  }
21245
21271
  }
21246
21272
  };
21247
- DefaultCanvasTextRender = __decorate$1g([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(TextRenderContribution)), __metadata$Y("design:paramtypes", [Object])], DefaultCanvasTextRender);
21273
+ DefaultCanvasTextRender = __decorate$1k([injectable(), __param$D(0, inject(ContributionProvider)), __param$D(0, named(TextRenderContribution)), __metadata$$("design:paramtypes", [Object])], DefaultCanvasTextRender);
21248
21274
 
21249
21275
  function drawPolygon(path, points, x, y) {
21250
21276
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -21300,17 +21326,17 @@
21300
21326
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
21301
21327
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
21302
21328
 
21303
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21329
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21304
21330
  var d,
21305
21331
  c = arguments.length,
21306
21332
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21307
21333
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21308
21334
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21309
21335
  },
21310
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
21336
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
21311
21337
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21312
21338
  },
21313
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
21339
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
21314
21340
  return function (target, key) {
21315
21341
  decorator(target, key, paramIndex);
21316
21342
  };
@@ -21343,19 +21369,19 @@
21343
21369
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
21344
21370
  }
21345
21371
  };
21346
- DefaultCanvasPolygonRender = __decorate$1f([injectable(), __param$B(0, inject(ContributionProvider)), __param$B(0, named(PolygonRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
21372
+ DefaultCanvasPolygonRender = __decorate$1j([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(PolygonRenderContribution)), __metadata$_("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
21347
21373
 
21348
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21374
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21349
21375
  var d,
21350
21376
  c = arguments.length,
21351
21377
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21352
21378
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21353
21379
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21354
21380
  },
21355
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
21381
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
21356
21382
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21357
21383
  },
21358
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
21384
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
21359
21385
  return function (target, key) {
21360
21386
  decorator(target, key, paramIndex);
21361
21387
  };
@@ -21414,7 +21440,7 @@
21414
21440
  this._draw(image, imageAttribute, !1, drawContext);
21415
21441
  }
21416
21442
  };
21417
- DefaultCanvasImageRender = __decorate$1e([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(ImageRenderContribution)), __metadata$W("design:paramtypes", [Object])], DefaultCanvasImageRender);
21443
+ DefaultCanvasImageRender = __decorate$1i([injectable(), __param$B(0, inject(ContributionProvider)), __param$B(0, named(ImageRenderContribution)), __metadata$Z("design:paramtypes", [Object])], DefaultCanvasImageRender);
21418
21444
 
21419
21445
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
21420
21446
  const ArcRender = Symbol.for("ArcRender");
@@ -21436,14 +21462,14 @@
21436
21462
  const ImageRender = Symbol.for("ImageRender");
21437
21463
  const DrawContribution = Symbol.for("DrawContribution");
21438
21464
 
21439
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21465
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21440
21466
  var d,
21441
21467
  c = arguments.length,
21442
21468
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21443
21469
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21444
21470
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21445
21471
  },
21446
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
21472
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
21447
21473
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21448
21474
  };
21449
21475
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -21502,7 +21528,7 @@
21502
21528
  return !1;
21503
21529
  }
21504
21530
  };
21505
- CommonDrawItemInterceptorContribution = __decorate$1d([injectable(), __metadata$V("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
21531
+ CommonDrawItemInterceptorContribution = __decorate$1h([injectable(), __metadata$Y("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
21506
21532
  class InteractiveDrawItemInterceptorContribution {
21507
21533
  constructor() {
21508
21534
  this.order = 1;
@@ -21537,6 +21563,13 @@
21537
21563
  }
21538
21564
  beforeDrawInteractive(graphic, renderService, drawContext, drawContribution, params) {
21539
21565
  const baseGraphic = graphic.baseGraphic;
21566
+ if (!baseGraphic.stage) {
21567
+ const interactiveLayer = drawContext.stage.getLayer("_builtin_interactive");
21568
+ if (interactiveLayer) {
21569
+ this.getShadowRoot(interactiveLayer).removeChild(graphic);
21570
+ }
21571
+ return !0;
21572
+ }
21540
21573
  if (baseGraphic) {
21541
21574
  this.processing = !0;
21542
21575
  const {
@@ -21627,17 +21660,17 @@
21627
21660
  }
21628
21661
  }
21629
21662
 
21630
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21663
+ var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21631
21664
  var d,
21632
21665
  c = arguments.length,
21633
21666
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21634
21667
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21635
21668
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21636
21669
  },
21637
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
21670
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
21638
21671
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21639
21672
  },
21640
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
21673
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
21641
21674
  return function (target, key) {
21642
21675
  decorator(target, key, paramIndex);
21643
21676
  };
@@ -21674,7 +21707,7 @@
21674
21707
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
21675
21708
  }
21676
21709
  };
21677
- DefaultRenderService = __decorate$1c([injectable(), __param$z(0, inject(DrawContribution)), __metadata$U("design:paramtypes", [Object])], DefaultRenderService);
21710
+ DefaultRenderService = __decorate$1g([injectable(), __param$A(0, inject(DrawContribution)), __metadata$X("design:paramtypes", [Object])], DefaultRenderService);
21678
21711
 
21679
21712
  var renderModule$1 = new ContainerModule(bind => {
21680
21713
  bind(RenderService).to(DefaultRenderService);
@@ -21683,7 +21716,7 @@
21683
21716
  const PickerService = Symbol.for("PickerService");
21684
21717
  const GlobalPickerService = Symbol.for("GlobalPickerService");
21685
21718
 
21686
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21719
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21687
21720
  var d,
21688
21721
  c = arguments.length,
21689
21722
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21716,7 +21749,7 @@
21716
21749
  return context.highPerformanceRestore(), result;
21717
21750
  }
21718
21751
  };
21719
- ShadowRootPickItemInterceptorContribution = __decorate$1b([injectable()], ShadowRootPickItemInterceptorContribution);
21752
+ ShadowRootPickItemInterceptorContribution = __decorate$1f([injectable()], ShadowRootPickItemInterceptorContribution);
21720
21753
  let InteractivePickItemInterceptorContribution = class {
21721
21754
  constructor() {
21722
21755
  this.order = 1;
@@ -21735,7 +21768,7 @@
21735
21768
  return null;
21736
21769
  }
21737
21770
  };
21738
- InteractivePickItemInterceptorContribution = __decorate$1b([injectable()], InteractivePickItemInterceptorContribution);
21771
+ InteractivePickItemInterceptorContribution = __decorate$1f([injectable()], InteractivePickItemInterceptorContribution);
21739
21772
  let Canvas3DPickItemInterceptor = class {
21740
21773
  constructor() {
21741
21774
  this.order = 1;
@@ -21795,7 +21828,7 @@
21795
21828
  context.setTransformForCurrent();
21796
21829
  }
21797
21830
  };
21798
- Canvas3DPickItemInterceptor = __decorate$1b([injectable()], Canvas3DPickItemInterceptor);
21831
+ Canvas3DPickItemInterceptor = __decorate$1f([injectable()], Canvas3DPickItemInterceptor);
21799
21832
 
21800
21833
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
21801
21834
  isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
@@ -21808,17 +21841,17 @@
21808
21841
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
21809
21842
  const PluginService = Symbol.for("PluginService");
21810
21843
 
21811
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21844
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21812
21845
  var d,
21813
21846
  c = arguments.length,
21814
21847
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21815
21848
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21816
21849
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21817
21850
  },
21818
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
21851
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
21819
21852
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21820
21853
  },
21821
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
21854
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
21822
21855
  return function (target, key) {
21823
21856
  decorator(target, key, paramIndex);
21824
21857
  };
@@ -21858,7 +21891,7 @@
21858
21891
  }), this.onRegisterPlugin = [];
21859
21892
  }
21860
21893
  };
21861
- DefaultPluginService = __decorate$1a([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(AutoEnablePlugins)), __metadata$T("design:paramtypes", [Object])], DefaultPluginService);
21894
+ DefaultPluginService = __decorate$1e([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(AutoEnablePlugins)), __metadata$W("design:paramtypes", [Object])], DefaultPluginService);
21862
21895
 
21863
21896
  var pluginModule = new ContainerModule(bind => {
21864
21897
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -21872,14 +21905,14 @@
21872
21905
  bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
21873
21906
  });
21874
21907
 
21875
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21908
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21876
21909
  var d,
21877
21910
  c = arguments.length,
21878
21911
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21879
21912
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21880
21913
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21881
21914
  },
21882
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
21915
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
21883
21916
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21884
21917
  };
21885
21918
  let CanvasLayerHandlerContribution = class {
@@ -21949,16 +21982,16 @@
21949
21982
  this.canvas.release();
21950
21983
  }
21951
21984
  };
21952
- CanvasLayerHandlerContribution = __decorate$19([injectable(), __metadata$S("design:paramtypes", [])], CanvasLayerHandlerContribution);
21985
+ CanvasLayerHandlerContribution = __decorate$1d([injectable(), __metadata$V("design:paramtypes", [])], CanvasLayerHandlerContribution);
21953
21986
 
21954
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21987
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21955
21988
  var d,
21956
21989
  c = arguments.length,
21957
21990
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21958
21991
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
21959
21992
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21960
21993
  },
21961
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
21994
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
21962
21995
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21963
21996
  };
21964
21997
  let EmptyLayerHandlerContribution = class {
@@ -21993,16 +22026,16 @@
21993
22026
  }
21994
22027
  release() {}
21995
22028
  };
21996
- EmptyLayerHandlerContribution = __decorate$18([injectable(), __metadata$R("design:paramtypes", [])], EmptyLayerHandlerContribution);
22029
+ EmptyLayerHandlerContribution = __decorate$1c([injectable(), __metadata$U("design:paramtypes", [])], EmptyLayerHandlerContribution);
21997
22030
 
21998
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22031
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21999
22032
  var d,
22000
22033
  c = arguments.length,
22001
22034
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22002
22035
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22003
22036
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22004
22037
  },
22005
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
22038
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
22006
22039
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22007
22040
  };
22008
22041
  let OffscreenLayerHandlerContribution = class {
@@ -22065,7 +22098,7 @@
22065
22098
  }
22066
22099
  merge(layerHandlers) {}
22067
22100
  };
22068
- OffscreenLayerHandlerContribution = __decorate$17([injectable(), __metadata$Q("design:paramtypes", [])], OffscreenLayerHandlerContribution);
22101
+ OffscreenLayerHandlerContribution = __decorate$1b([injectable(), __metadata$T("design:paramtypes", [])], OffscreenLayerHandlerContribution);
22069
22102
 
22070
22103
  var layerHandlerModules = new ContainerModule(bind => {
22071
22104
  bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
@@ -22075,7 +22108,7 @@
22075
22108
  container.load(envModules), container.load(textMeasureModules), container.load(layerHandlerModules);
22076
22109
  }
22077
22110
 
22078
- var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22111
+ var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22079
22112
  return new (P || (P = Promise))(function (resolve, reject) {
22080
22113
  function fulfilled(value) {
22081
22114
  try {
@@ -22140,7 +22173,7 @@
22140
22173
  }
22141
22174
  function foreachAsync(graphic, defaultZIndex, cb) {
22142
22175
  let reverse = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
22143
- return __awaiter$3(this, void 0, void 0, function* () {
22176
+ return __awaiter$4(this, void 0, void 0, function* () {
22144
22177
  yield graphic.forEachChildrenAsync(cb, reverse);
22145
22178
  });
22146
22179
  }
@@ -22181,17 +22214,17 @@
22181
22214
  return result;
22182
22215
  }
22183
22216
 
22184
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22217
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22185
22218
  var d,
22186
22219
  c = arguments.length,
22187
22220
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22188
22221
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22189
22222
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22190
22223
  },
22191
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
22224
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
22192
22225
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22193
22226
  },
22194
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
22227
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
22195
22228
  return function (target, key) {
22196
22229
  decorator(target, key, paramIndex);
22197
22230
  };
@@ -22378,19 +22411,19 @@
22378
22411
  }
22379
22412
  afterDraw(renderService, drawParams) {}
22380
22413
  };
22381
- DefaultDrawContribution = __decorate$16([injectable(), __param$x(0, multiInject(GraphicRender)), __param$x(1, inject(ContributionProvider)), __param$x(1, named(DrawItemInterceptor)), __metadata$P("design:paramtypes", [Array, Object])], DefaultDrawContribution);
22414
+ DefaultDrawContribution = __decorate$1a([injectable(), __param$y(0, multiInject(GraphicRender)), __param$y(1, inject(ContributionProvider)), __param$y(1, named(DrawItemInterceptor)), __metadata$S("design:paramtypes", [Array, Object])], DefaultDrawContribution);
22382
22415
 
22383
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22416
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22384
22417
  var d,
22385
22418
  c = arguments.length,
22386
22419
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22387
22420
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22388
22421
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22389
22422
  },
22390
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
22423
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
22391
22424
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22392
22425
  },
22393
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
22426
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
22394
22427
  return function (target, key) {
22395
22428
  decorator(target, key, paramIndex);
22396
22429
  };
@@ -22450,9 +22483,10 @@
22450
22483
  } = drawContext;
22451
22484
  if (!context) return;
22452
22485
  const {
22453
- clip: clip
22486
+ clip: clip,
22487
+ baseOpacity = 1
22454
22488
  } = group.attribute;
22455
- clip ? context.save() : context.highPerformanceSave();
22489
+ clip ? context.save() : context.highPerformanceSave(), context.baseGlobalAlpha *= baseOpacity;
22456
22490
  const groupAttribute = getTheme$1(group, null == params ? void 0 : params.theme).group,
22457
22491
  lastModelMatrix = context.modelMatrix;
22458
22492
  if (context.camera) {
@@ -22466,14 +22500,14 @@
22466
22500
  scrollY = groupAttribute.scrollY
22467
22501
  } = group.attribute;
22468
22502
  let p;
22469
- (scrollX || scrollY) && context.translate(scrollX, scrollY), params && params.drawingCb && (p = params.drawingCb()), context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, p && p.then ? p.then(() => {
22503
+ (scrollX || scrollY) && context.translate(scrollX, scrollY), params && params.drawingCb && (p = params.drawingCb()), context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.baseGlobalAlpha /= baseOpacity, p && p.then ? p.then(() => {
22470
22504
  clip ? context.restore() : context.highPerformanceRestore();
22471
22505
  }) : clip ? context.restore() : context.highPerformanceRestore();
22472
22506
  }
22473
22507
  };
22474
- DefaultCanvasGroupRender = __decorate$15([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(GroupRenderContribution)), __metadata$O("design:paramtypes", [Object])], DefaultCanvasGroupRender);
22508
+ DefaultCanvasGroupRender = __decorate$19([injectable(), __param$x(0, inject(ContributionProvider)), __param$x(0, named(GroupRenderContribution)), __metadata$R("design:paramtypes", [Object])], DefaultCanvasGroupRender);
22475
22509
 
22476
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22510
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22477
22511
  var d,
22478
22512
  c = arguments.length,
22479
22513
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22524,9 +22558,9 @@
22524
22558
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
22525
22559
  }
22526
22560
  };
22527
- DefaultIncrementalCanvasLineRender = __decorate$14([injectable()], DefaultIncrementalCanvasLineRender);
22561
+ DefaultIncrementalCanvasLineRender = __decorate$18([injectable()], DefaultIncrementalCanvasLineRender);
22528
22562
 
22529
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22563
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22530
22564
  var d,
22531
22565
  c = arguments.length,
22532
22566
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -22569,25 +22603,25 @@
22569
22603
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
22570
22604
  }
22571
22605
  };
22572
- DefaultIncrementalCanvasAreaRender = __decorate$13([injectable()], DefaultIncrementalCanvasAreaRender);
22606
+ DefaultIncrementalCanvasAreaRender = __decorate$17([injectable()], DefaultIncrementalCanvasAreaRender);
22573
22607
 
22574
22608
  var STATUS,
22575
- __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22609
+ __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
22576
22610
  var d,
22577
22611
  c = arguments.length,
22578
22612
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
22579
22613
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
22580
22614
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22581
22615
  },
22582
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
22616
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
22583
22617
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
22584
22618
  },
22585
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
22619
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
22586
22620
  return function (target, key) {
22587
22621
  decorator(target, key, paramIndex);
22588
22622
  };
22589
22623
  },
22590
- __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22624
+ __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22591
22625
  return new (P || (P = Promise))(function (resolve, reject) {
22592
22626
  function fulfilled(value) {
22593
22627
  try {
@@ -22622,7 +22656,7 @@
22622
22656
  }, this.defaultRenderMap.set(this.lineRender.numberType, this.lineRender), this.defaultRenderMap.set(this.areaRender.numberType, this.areaRender);
22623
22657
  }
22624
22658
  draw(renderService, drawContext) {
22625
- return __awaiter$2(this, void 0, void 0, function* () {
22659
+ return __awaiter$3(this, void 0, void 0, function* () {
22626
22660
  if (this.checkingForDrawPromise) return;
22627
22661
  this.lastRenderService = renderService, this.lastDrawContext = drawContext, this.checkingForDrawPromise = this.checkForDraw(drawContext);
22628
22662
  const skipDraw = yield this.checkingForDrawPromise;
@@ -22643,15 +22677,15 @@
22643
22677
  });
22644
22678
  }
22645
22679
  _increaseRender(group, drawContext) {
22646
- return __awaiter$2(this, void 0, void 0, function* () {
22680
+ return __awaiter$3(this, void 0, void 0, function* () {
22647
22681
  this.rendering = !0, yield this._renderIncrementalGroup(group, drawContext);
22648
22682
  });
22649
22683
  }
22650
22684
  _renderIncrementalGroup(group, drawContext) {
22651
- return __awaiter$2(this, void 0, void 0, function* () {
22685
+ return __awaiter$3(this, void 0, void 0, function* () {
22652
22686
  this.count = group.count, yield new Promise(resolve => {
22653
22687
  this.renderItem(group, drawContext, {
22654
- drawingCb: () => __awaiter$2(this, void 0, void 0, function* () {
22688
+ drawingCb: () => __awaiter$3(this, void 0, void 0, function* () {
22655
22689
  if (2 !== group.count) yield foreachAsync(group, DefaultAttribute.zIndex, (item, i) => {
22656
22690
  if (this.status === STATUS.STOP) return !0;
22657
22691
  if (item.isContainer) return !1;
@@ -22672,7 +22706,7 @@
22672
22706
  });
22673
22707
  }
22674
22708
  waitToNextFrame() {
22675
- return __awaiter$2(this, void 0, void 0, function* () {
22709
+ return __awaiter$3(this, void 0, void 0, function* () {
22676
22710
  return new Promise(resolve => {
22677
22711
  this.global.getRequestAnimationFrame()(() => {
22678
22712
  resolve(!1);
@@ -22681,13 +22715,13 @@
22681
22715
  });
22682
22716
  }
22683
22717
  checkForDraw(drawContext) {
22684
- return __awaiter$2(this, void 0, void 0, function* () {
22718
+ return __awaiter$3(this, void 0, void 0, function* () {
22685
22719
  let skip = this.rendering;
22686
22720
  return drawContext.restartIncremental && (skip = !1, yield this.forceStop(), this.resetToInit()), skip;
22687
22721
  });
22688
22722
  }
22689
22723
  forceStop() {
22690
- return __awaiter$2(this, void 0, void 0, function* () {
22724
+ return __awaiter$3(this, void 0, void 0, function* () {
22691
22725
  this.rendering && (this.status = STATUS.STOP, yield new Promise(resolve => {
22692
22726
  this.hooks.completeDraw.tap("stopCb", () => {
22693
22727
  this.status = STATUS.NORMAL, this.hooks.completeDraw.taps = this.hooks.completeDraw.taps.filter(item => "stopCb" !== item.name), resolve(!1);
@@ -22699,11 +22733,11 @@
22699
22733
  this.currFrameStartAt = 0, this.currentIdx = 0;
22700
22734
  }
22701
22735
  renderGroup(group, drawContext) {
22702
- return __awaiter$2(this, void 0, void 0, function* () {
22736
+ return __awaiter$3(this, void 0, void 0, function* () {
22703
22737
  if (!drawContext.break && !1 !== group.attribute.visibleAll) return group.incremental && drawContext.startAtId === group._uid ? (yield this._increaseRender(group, drawContext), void (drawContext.break = !0)) : void (yield new Promise(resolve => {
22704
22738
  this.renderItem(group, drawContext, {
22705
- drawingCb: () => __awaiter$2(this, void 0, void 0, function* () {
22706
- yield foreachAsync(group, DefaultAttribute.zIndex, item => __awaiter$2(this, void 0, void 0, function* () {
22739
+ drawingCb: () => __awaiter$3(this, void 0, void 0, function* () {
22740
+ yield foreachAsync(group, DefaultAttribute.zIndex, item => __awaiter$3(this, void 0, void 0, function* () {
22707
22741
  drawContext.break || item.isContainer && (yield this.renderGroup(item, drawContext));
22708
22742
  })), resolve(!1);
22709
22743
  })
@@ -22712,7 +22746,7 @@
22712
22746
  });
22713
22747
  }
22714
22748
  };
22715
- DefaultIncrementalDrawContribution = __decorate$12([injectable(), __param$v(0, multiInject(GraphicRender)), __param$v(1, inject(DefaultIncrementalCanvasLineRender)), __param$v(2, inject(DefaultIncrementalCanvasAreaRender)), __param$v(3, inject(ContributionProvider)), __param$v(3, named(DrawItemInterceptor)), __metadata$N("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
22749
+ DefaultIncrementalDrawContribution = __decorate$16([injectable(), __param$w(0, multiInject(GraphicRender)), __param$w(1, inject(DefaultIncrementalCanvasLineRender)), __param$w(2, inject(DefaultIncrementalCanvasAreaRender)), __param$w(3, inject(ContributionProvider)), __param$w(3, named(DrawItemInterceptor)), __metadata$Q("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
22716
22750
 
22717
22751
  var renderModule = new ContainerModule(bind => {
22718
22752
  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(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
@@ -23946,20 +23980,26 @@
23946
23980
  const point = this.global.mapToCanvasPoint(e, this.window.getContext().canvas.nativeCanvas);
23947
23981
  return this.stage.window.pointTransform(point.x, point.y);
23948
23982
  }
23983
+ pauseTriggerEvent() {
23984
+ this._eventSystem && this._eventSystem.pauseTriggerEvent();
23985
+ }
23986
+ resumeTriggerEvent() {
23987
+ this._eventSystem && this._eventSystem.resumeTriggerEvent();
23988
+ }
23949
23989
  }
23950
23990
 
23951
23991
  function createStage(params) {
23952
23992
  return new Stage(params);
23953
23993
  }
23954
23994
 
23955
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23995
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23956
23996
  var d,
23957
23997
  c = arguments.length,
23958
23998
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23959
23999
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
23960
24000
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23961
24001
  },
23962
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
24002
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
23963
24003
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23964
24004
  };
23965
24005
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -24169,16 +24209,16 @@
24169
24209
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
24170
24210
  }
24171
24211
  };
24172
- EmptyContext2d = __decorate$11([injectable(), __metadata$M("design:paramtypes", [Object, Number])], EmptyContext2d);
24212
+ EmptyContext2d = __decorate$15([injectable(), __metadata$P("design:paramtypes", [Object, Number])], EmptyContext2d);
24173
24213
 
24174
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24214
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24175
24215
  var d,
24176
24216
  c = arguments.length,
24177
24217
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24178
24218
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
24179
24219
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24180
24220
  },
24181
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
24221
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
24182
24222
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24183
24223
  };
24184
24224
  const DefaultConfig = {
@@ -24276,9 +24316,9 @@
24276
24316
  this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
24277
24317
  }
24278
24318
  };
24279
- BaseCanvas.env = "browser", BaseCanvas = __decorate$10([injectable(), __metadata$L("design:paramtypes", [Object])], BaseCanvas);
24319
+ BaseCanvas.env = "browser", BaseCanvas = __decorate$14([injectable(), __metadata$O("design:paramtypes", [Object])], BaseCanvas);
24280
24320
 
24281
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24321
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24282
24322
  var d,
24283
24323
  c = arguments.length,
24284
24324
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -24354,16 +24394,16 @@
24354
24394
  };
24355
24395
  }
24356
24396
  };
24357
- BaseEnvContribution = __decorate$$([injectable()], BaseEnvContribution);
24397
+ BaseEnvContribution = __decorate$13([injectable()], BaseEnvContribution);
24358
24398
 
24359
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24399
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24360
24400
  var d,
24361
24401
  c = arguments.length,
24362
24402
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24363
24403
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
24364
24404
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24365
24405
  },
24366
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
24406
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
24367
24407
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24368
24408
  };
24369
24409
  let BaseWindowHandlerContribution = class {
@@ -24402,19 +24442,19 @@
24402
24442
  return this.modelMatrix;
24403
24443
  }
24404
24444
  };
24405
- BaseWindowHandlerContribution = __decorate$_([injectable(), __metadata$K("design:paramtypes", [])], BaseWindowHandlerContribution);
24445
+ BaseWindowHandlerContribution = __decorate$12([injectable(), __metadata$N("design:paramtypes", [])], BaseWindowHandlerContribution);
24406
24446
 
24407
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24447
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24408
24448
  var d,
24409
24449
  c = arguments.length,
24410
24450
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24411
24451
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
24412
24452
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24413
24453
  },
24414
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
24454
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
24415
24455
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24416
24456
  },
24417
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
24457
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
24418
24458
  return function (target, key) {
24419
24459
  decorator(target, key, paramIndex);
24420
24460
  };
@@ -24520,7 +24560,7 @@
24520
24560
  return picker || null;
24521
24561
  }
24522
24562
  };
24523
- DefaultPickService = __decorate$Z([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(PickItemInterceptor)), __metadata$J("design:paramtypes", [Object])], DefaultPickService);
24563
+ DefaultPickService = __decorate$11([injectable(), __param$v(0, inject(ContributionProvider)), __param$v(0, named(PickItemInterceptor)), __metadata$M("design:paramtypes", [Object])], DefaultPickService);
24524
24564
 
24525
24565
  function simplifyRadialDist(points, sqTolerance) {
24526
24566
  let deltaX,
@@ -24599,7 +24639,7 @@
24599
24639
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
24600
24640
  });
24601
24641
 
24602
- var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24642
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24603
24643
  var d,
24604
24644
  c = arguments.length,
24605
24645
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -24631,21 +24671,21 @@
24631
24671
  }), context.highPerformanceRestore();
24632
24672
  }
24633
24673
  };
24634
- DefaultCanvasGlyphRender = __decorate$Y([injectable()], DefaultCanvasGlyphRender);
24674
+ DefaultCanvasGlyphRender = __decorate$10([injectable()], DefaultCanvasGlyphRender);
24635
24675
 
24636
24676
  let loadGlyphModule = !1;
24637
24677
  const glyphModule = new ContainerModule(bind => {
24638
24678
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
24639
24679
  });
24640
24680
 
24641
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24681
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24642
24682
  var d,
24643
24683
  c = arguments.length,
24644
24684
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24645
24685
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
24646
24686
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24647
24687
  },
24648
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
24688
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
24649
24689
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24650
24690
  };
24651
24691
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -24699,7 +24739,7 @@
24699
24739
  this._draw(richtext, richtextAttribute, !1, drawContext);
24700
24740
  }
24701
24741
  };
24702
- DefaultCanvasRichTextRender = __decorate$X([injectable(), __metadata$I("design:paramtypes", [])], DefaultCanvasRichTextRender);
24742
+ DefaultCanvasRichTextRender = __decorate$$([injectable(), __metadata$L("design:paramtypes", [])], DefaultCanvasRichTextRender);
24703
24743
 
24704
24744
  let loadRichtextModule = !1;
24705
24745
  const richtextModule = new ContainerModule(bind => {
@@ -24711,7 +24751,7 @@
24711
24751
  loadImageModule || (loadImageModule = !0, bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
24712
24752
  });
24713
24753
 
24714
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24754
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24715
24755
  var d,
24716
24756
  c = arguments.length,
24717
24757
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -24837,14 +24877,14 @@
24837
24877
  this._draw(rect, rectAttribute, !1, drawContext);
24838
24878
  }
24839
24879
  };
24840
- DefaultCanvasRect3dRender = __decorate$W([injectable()], DefaultCanvasRect3dRender);
24880
+ DefaultCanvasRect3dRender = __decorate$_([injectable()], DefaultCanvasRect3dRender);
24841
24881
 
24842
24882
  let loadRect3dModule = !1;
24843
24883
  const rect3dModule = new ContainerModule(bind => {
24844
24884
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
24845
24885
  });
24846
24886
 
24847
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24887
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24848
24888
  var d,
24849
24889
  c = arguments.length,
24850
24890
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -24971,14 +25011,14 @@
24971
25011
  this._draw(arc, arcAttribute, !1, drawContext, params);
24972
25012
  }
24973
25013
  };
24974
- DefaultCanvasArc3DRender = __decorate$V([injectable()], DefaultCanvasArc3DRender);
25014
+ DefaultCanvasArc3DRender = __decorate$Z([injectable()], DefaultCanvasArc3DRender);
24975
25015
 
24976
25016
  let loadArc3dModule = !1;
24977
25017
  const arc3dModule = new ContainerModule(bind => {
24978
25018
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
24979
25019
  });
24980
25020
 
24981
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25021
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24982
25022
  var d,
24983
25023
  c = arguments.length,
24984
25024
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25086,7 +25126,7 @@
25086
25126
  this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
25087
25127
  }
25088
25128
  };
25089
- DefaultCanvasPyramid3dRender = __decorate$U([injectable()], DefaultCanvasPyramid3dRender);
25129
+ DefaultCanvasPyramid3dRender = __decorate$Y([injectable()], DefaultCanvasPyramid3dRender);
25090
25130
 
25091
25131
  let loadPyramid3dModule = !1;
25092
25132
  const pyramid3dModule = new ContainerModule(bind => {
@@ -26439,6 +26479,36 @@
26439
26479
  }
26440
26480
  }
26441
26481
 
26482
+ const MathPickerContribution = Symbol.for("MathPickerContribution");
26483
+ const MathArcPicker = Symbol.for("MathArcPicker");
26484
+ const MathAreaPicker = Symbol.for("MathAreaPicker");
26485
+ const MathCirclePicker = Symbol.for("MathCirclePicker");
26486
+ const MathImagePicker = Symbol.for("MathImagePicker");
26487
+ const MathLinePicker = Symbol.for("MathLinePicker");
26488
+ const MathPathPicker = Symbol.for("MathPathPicker");
26489
+ const MathRectPicker = Symbol.for("MathRectPicker");
26490
+ const MathSymbolPicker = Symbol.for("MathSymbolPicker");
26491
+ const MathTextPicker = Symbol.for("MathTextPicker");
26492
+ const MathPolygonPicker = Symbol.for("MathPolygonPicker");
26493
+ const MathGlyphPicker = Symbol.for("MathGlyphPicker");
26494
+ const CanvasArcPicker = Symbol.for("CanvasArcPicker");
26495
+ const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
26496
+ const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
26497
+ const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
26498
+ const CanvasImagePicker = Symbol.for("CanvasImagePicker");
26499
+ const CanvasLinePicker = Symbol.for("CanvasLinePicker");
26500
+ const CanvasPathPicker = Symbol.for("CanvasPathPicker");
26501
+ const CanvasRectPicker = Symbol.for("CanvasRectPicker");
26502
+ const CanvasRect3dPicker = Symbol.for("CanvasRect3dPicker");
26503
+ const CanvasSymbolPicker = Symbol.for("CanvasSymbolPicker");
26504
+ const CanvasTextPicker = Symbol.for("CanvasTextPicker");
26505
+ const CanvasPolygonPicker = Symbol.for("CanvasPolygonPicker");
26506
+ const CanvasPyramid3dPicker = Symbol.for("CanvasPyramid3dPicker");
26507
+ const CanvasRichTextPicker = Symbol.for("CanvasRichTextPicker");
26508
+ const CanvasGlyphPicker = Symbol.for("CanvasGlyphPicker");
26509
+ const CanvasGroupPicker = Symbol.for("CanvasGroupPicker");
26510
+ const CanvasPickerContribution = Symbol.for("CanvasPickerContribution");
26511
+
26442
26512
  class DragNDrop {
26443
26513
  constructor(rootNode) {
26444
26514
  this.onPointerDown = event => {
@@ -26698,14 +26768,14 @@
26698
26768
  }
26699
26769
  }
26700
26770
 
26701
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26771
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26702
26772
  var d,
26703
26773
  c = arguments.length,
26704
26774
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26705
26775
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
26706
26776
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26707
26777
  },
26708
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
26778
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
26709
26779
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26710
26780
  };
26711
26781
  const outP = [0, 0, 0],
@@ -26746,7 +26816,7 @@
26746
26816
  return this.nativeContext.font;
26747
26817
  }
26748
26818
  set globalAlpha(d) {
26749
- this.nativeContext.globalAlpha = d;
26819
+ this.nativeContext.globalAlpha = d * this.baseGlobalAlpha;
26750
26820
  }
26751
26821
  get globalAlpha() {
26752
26822
  return this.nativeContext.globalAlpha;
@@ -26839,7 +26909,7 @@
26839
26909
  }), this._clearShadowStyle = !1, this._clearFilterStyle = !1, this._clearGlobalCompositeOperationStyle = !1;
26840
26910
  const context = canvas.nativeCanvas.getContext("2d");
26841
26911
  if (!context) throw new Error("发生错误,获取2d上下文失败");
26842
- this.nativeContext = context, this.canvas = canvas, this.matrix = new Matrix(1, 0, 0, 1, 0, 0), this.stack = [], this.dpr = dpr, this.applyedMatrix = new Matrix(1, 0, 0, 1, 0, 0), this._clearMatrix = new Matrix(1, 0, 0, 1, 0, 0);
26912
+ this.nativeContext = context, this.canvas = canvas, this.matrix = new Matrix(1, 0, 0, 1, 0, 0), this.stack = [], this.dpr = dpr, this.applyedMatrix = new Matrix(1, 0, 0, 1, 0, 0), this._clearMatrix = new Matrix(1, 0, 0, 1, 0, 0), this.baseGlobalAlpha = 1;
26843
26913
  }
26844
26914
  reset() {
26845
26915
  this.stack.length && Logger.getInstance().warn("可能存在bug,matrix没有清空"), this.matrix.setValue(1, 0, 0, 1, 0, 0), this.applyedMatrix = new Matrix(1, 0, 0, 1, 0, 0), this.stack.length = 0, this.nativeContext.setTransform(1, 0, 0, 1, 0, 0);
@@ -27119,7 +27189,7 @@
27119
27189
  opacity = defaultParams.opacity,
27120
27190
  fill = defaultParams.fill
27121
27191
  } = attribute;
27122
- fillOpacity > 1e-12 && opacity > 1e-12 ? (_context.globalAlpha = fillOpacity * opacity, _context.fillStyle = createColor(this, fill, params, offsetX, offsetY)) : _context.globalAlpha = fillOpacity * opacity;
27192
+ fillOpacity > 1e-12 && opacity > 1e-12 ? (_context.globalAlpha = fillOpacity * opacity * this.baseGlobalAlpha, _context.fillStyle = createColor(this, fill, params, offsetX, offsetY)) : _context.globalAlpha = fillOpacity * opacity * this.baseGlobalAlpha;
27123
27193
  }
27124
27194
  setShadowBlendStyle(params, attribute, defaultParams) {
27125
27195
  if (Array.isArray(defaultParams)) {
@@ -27171,7 +27241,7 @@
27171
27241
  lineCap = defaultParams.lineCap,
27172
27242
  miterLimit = defaultParams.miterLimit
27173
27243
  } = attribute;
27174
- _context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
27244
+ _context.globalAlpha = strokeOpacity * opacity * this.baseGlobalAlpha, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
27175
27245
  }
27176
27246
  }
27177
27247
  setTextStyleWithoutAlignBaseline(params, defaultParams, z) {
@@ -27214,16 +27284,16 @@
27214
27284
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
27215
27285
  }
27216
27286
  };
27217
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$T([injectable(), __metadata$H("design:paramtypes", [Object, Number])], BrowserContext2d);
27287
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$X([injectable(), __metadata$K("design:paramtypes", [Object, Number])], BrowserContext2d);
27218
27288
 
27219
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27289
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27220
27290
  var d,
27221
27291
  c = arguments.length,
27222
27292
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27223
27293
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27224
27294
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27225
27295
  },
27226
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
27296
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
27227
27297
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27228
27298
  };
27229
27299
  let BrowserCanvas = class extends BaseCanvas {
@@ -27285,7 +27355,7 @@
27285
27355
  this._context.dpr = this._dpr;
27286
27356
  }
27287
27357
  };
27288
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$S([injectable(), __metadata$G("design:paramtypes", [Object])], BrowserCanvas);
27358
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$W([injectable(), __metadata$J("design:paramtypes", [Object])], BrowserCanvas);
27289
27359
 
27290
27360
  function createModule(CanvasConstructor, ContextConstructor) {
27291
27361
  return new ContainerModule(bind => {
@@ -27295,47 +27365,17 @@
27295
27365
 
27296
27366
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
27297
27367
 
27298
- const MathPickerContribution = Symbol.for("MathPickerContribution");
27299
- const MathArcPicker = Symbol.for("MathArcPicker");
27300
- const MathAreaPicker = Symbol.for("MathAreaPicker");
27301
- const MathCirclePicker = Symbol.for("MathCirclePicker");
27302
- const MathImagePicker = Symbol.for("MathImagePicker");
27303
- const MathLinePicker = Symbol.for("MathLinePicker");
27304
- const MathPathPicker = Symbol.for("MathPathPicker");
27305
- const MathRectPicker = Symbol.for("MathRectPicker");
27306
- const MathSymbolPicker = Symbol.for("MathSymbolPicker");
27307
- const MathTextPicker = Symbol.for("MathTextPicker");
27308
- const MathPolygonPicker = Symbol.for("MathPolygonPicker");
27309
- const MathGlyphPicker = Symbol.for("MathGlyphPicker");
27310
- const CanvasArcPicker = Symbol.for("CanvasArcPicker");
27311
- const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
27312
- const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
27313
- const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
27314
- const CanvasImagePicker = Symbol.for("CanvasImagePicker");
27315
- const CanvasLinePicker = Symbol.for("CanvasLinePicker");
27316
- const CanvasPathPicker = Symbol.for("CanvasPathPicker");
27317
- const CanvasRectPicker = Symbol.for("CanvasRectPicker");
27318
- const CanvasRect3dPicker = Symbol.for("CanvasRect3dPicker");
27319
- const CanvasSymbolPicker = Symbol.for("CanvasSymbolPicker");
27320
- const CanvasTextPicker = Symbol.for("CanvasTextPicker");
27321
- const CanvasPolygonPicker = Symbol.for("CanvasPolygonPicker");
27322
- const CanvasPyramid3dPicker = Symbol.for("CanvasPyramid3dPicker");
27323
- const CanvasRichTextPicker = Symbol.for("CanvasRichTextPicker");
27324
- const CanvasGlyphPicker = Symbol.for("CanvasGlyphPicker");
27325
- const CanvasGroupPicker = Symbol.for("CanvasGroupPicker");
27326
- const CanvasPickerContribution = Symbol.for("CanvasPickerContribution");
27327
-
27328
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27368
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27329
27369
  var d,
27330
27370
  c = arguments.length,
27331
27371
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27332
27372
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27333
27373
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27334
27374
  },
27335
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
27375
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
27336
27376
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27337
27377
  },
27338
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
27378
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
27339
27379
  return function (target, key) {
27340
27380
  decorator(target, key, paramIndex);
27341
27381
  };
@@ -27367,9 +27407,11 @@
27367
27407
  }
27368
27408
  const picker = this.pickerMap.get(graphic.numberType);
27369
27409
  if (!picker) return null;
27370
- const g = picker.contains(graphic, point, params) ? graphic : null,
27410
+ const pd = picker.contains(graphic, point, params),
27411
+ g = pd ? graphic : null,
27371
27412
  data = {
27372
- graphic: g
27413
+ graphic: g,
27414
+ params: pd
27373
27415
  };
27374
27416
  if (g) return data;
27375
27417
  if (this.InterceptorContributions.length) for (let i = 0; i < this.InterceptorContributions.length; i++) {
@@ -27384,9 +27426,9 @@
27384
27426
  return data;
27385
27427
  }
27386
27428
  };
27387
- DefaultCanvasPickerService = __decorate$R([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);
27429
+ DefaultCanvasPickerService = __decorate$V([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);
27388
27430
 
27389
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27431
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27390
27432
  var d,
27391
27433
  c = arguments.length,
27392
27434
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27401,7 +27443,7 @@
27401
27443
  return !1;
27402
27444
  }
27403
27445
  };
27404
- DefaultCanvasGroupPicker = __decorate$Q([injectable()], DefaultCanvasGroupPicker);
27446
+ DefaultCanvasGroupPicker = __decorate$U([injectable()], DefaultCanvasGroupPicker);
27405
27447
 
27406
27448
  const m$2 = new ContainerModule((bind, unbind, isBound, rebind) => {
27407
27449
  m$2.__vloaded || (m$2.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -27417,14 +27459,14 @@
27417
27459
  }
27418
27460
 
27419
27461
  var BrowserWindowHandlerContribution_1,
27420
- __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27462
+ __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27421
27463
  var d,
27422
27464
  c = arguments.length,
27423
27465
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27424
27466
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27425
27467
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27426
27468
  },
27427
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
27469
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
27428
27470
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27429
27471
  };
27430
27472
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
@@ -27582,19 +27624,19 @@
27582
27624
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
27583
27625
  }
27584
27626
  };
27585
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$P([injectable(), __metadata$E("design:paramtypes", [])], BrowserWindowHandlerContribution);
27627
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$T([injectable(), __metadata$H("design:paramtypes", [])], BrowserWindowHandlerContribution);
27586
27628
  const browserWindowModule = new ContainerModule(bind => {
27587
27629
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
27588
27630
  });
27589
27631
 
27590
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27632
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27591
27633
  var d,
27592
27634
  c = arguments.length,
27593
27635
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27594
27636
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27595
27637
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27596
27638
  },
27597
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
27639
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
27598
27640
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27599
27641
  };
27600
27642
  class DynamicB {
@@ -27792,7 +27834,7 @@
27792
27834
  };
27793
27835
  }
27794
27836
  };
27795
- BrowserEnvContribution = __decorate$O([injectable(), __metadata$D("design:paramtypes", [])], BrowserEnvContribution);
27837
+ BrowserEnvContribution = __decorate$S([injectable(), __metadata$G("design:paramtypes", [])], BrowserEnvContribution);
27796
27838
 
27797
27839
  const browserEnvModule = new ContainerModule(bind => {
27798
27840
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
@@ -27804,7 +27846,7 @@
27804
27846
  }
27805
27847
  loadBrowserEnv.__loaded = !1;
27806
27848
 
27807
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27849
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27808
27850
  var d,
27809
27851
  c = arguments.length,
27810
27852
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27816,7 +27858,7 @@
27816
27858
  return this._globalAlpha;
27817
27859
  }
27818
27860
  set globalAlpha(ga) {
27819
- this.nativeContext.globalAlpha = ga, this._globalAlpha = ga;
27861
+ this.nativeContext.globalAlpha = ga * this.baseGlobalAlpha, this._globalAlpha = ga * this.baseGlobalAlpha;
27820
27862
  }
27821
27863
  getImageData(sx, sy, sw, sh) {
27822
27864
  return new Promise((resolve, reject) => {
@@ -27849,16 +27891,16 @@
27849
27891
  return null;
27850
27892
  }
27851
27893
  };
27852
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$N([injectable()], FeishuContext2d);
27894
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$R([injectable()], FeishuContext2d);
27853
27895
 
27854
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27896
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27855
27897
  var d,
27856
27898
  c = arguments.length,
27857
27899
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27858
27900
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27859
27901
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27860
27902
  },
27861
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
27903
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
27862
27904
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27863
27905
  };
27864
27906
  let FeishuCanvas = class extends BaseCanvas {
@@ -27870,26 +27912,26 @@
27870
27912
  }
27871
27913
  release() {}
27872
27914
  };
27873
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$M([injectable(), __metadata$C("design:paramtypes", [Object])], FeishuCanvas);
27915
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$Q([injectable(), __metadata$F("design:paramtypes", [Object])], FeishuCanvas);
27874
27916
 
27875
27917
  const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
27876
27918
 
27877
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27919
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27878
27920
  var d,
27879
27921
  c = arguments.length,
27880
27922
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27881
27923
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27882
27924
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27883
27925
  },
27884
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
27926
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
27885
27927
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27886
27928
  },
27887
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
27929
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
27888
27930
  return function (target, key) {
27889
27931
  decorator(target, key, paramIndex);
27890
27932
  };
27891
27933
  };
27892
- let MiniAppEventManager$3 = class MiniAppEventManager {
27934
+ let MiniAppEventManager$4 = class MiniAppEventManager {
27893
27935
  constructor() {
27894
27936
  this.cache = {};
27895
27937
  }
@@ -27913,7 +27955,7 @@
27913
27955
  return null;
27914
27956
  }
27915
27957
  constructor(global) {
27916
- super(), this.global = global, this.type = "feishu", this.eventManager = new MiniAppEventManager$3();
27958
+ super(), this.global = global, this.type = "feishu", this.eventManager = new MiniAppEventManager$4();
27917
27959
  }
27918
27960
  getTitle() {
27919
27961
  return this.canvas.id.toString();
@@ -28020,22 +28062,22 @@
28020
28062
  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();
28021
28063
  }
28022
28064
  };
28023
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$L([injectable(), __param$s(0, inject(VGlobal)), __metadata$B("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
28065
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$P([injectable(), __param$t(0, inject(VGlobal)), __metadata$E("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
28024
28066
  const feishuWindowModule = new ContainerModule(bind => {
28025
28067
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
28026
28068
  });
28027
28069
 
28028
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28070
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28029
28071
  var d,
28030
28072
  c = arguments.length,
28031
28073
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28032
28074
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28033
28075
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28034
28076
  },
28035
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
28077
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
28036
28078
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28037
28079
  },
28038
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
28080
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
28039
28081
  return function (target, key) {
28040
28082
  decorator(target, key, paramIndex);
28041
28083
  };
@@ -28058,13 +28100,15 @@
28058
28100
  if (!1 === graphic.attribute.pickable) return null;
28059
28101
  const picker = this.pickerMap.get(graphic.numberType);
28060
28102
  if (!picker) return null;
28061
- const g = picker.contains(graphic, point, params) ? graphic : null;
28103
+ const pd = picker.contains(graphic, point, params),
28104
+ g = pd ? graphic : null;
28062
28105
  return g ? {
28063
- graphic: g
28106
+ graphic: g,
28107
+ params: pd
28064
28108
  } : null;
28065
28109
  }
28066
28110
  };
28067
- DefaultMathPickerService = __decorate$K([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);
28111
+ DefaultMathPickerService = __decorate$O([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);
28068
28112
 
28069
28113
  const m$1 = new ContainerModule(bind => {
28070
28114
  m$1.__vloaded || (m$1.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -28148,17 +28192,17 @@
28148
28192
  }
28149
28193
  }
28150
28194
 
28151
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28195
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28152
28196
  var d,
28153
28197
  c = arguments.length,
28154
28198
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28155
28199
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28156
28200
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28157
28201
  },
28158
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
28202
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
28159
28203
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28160
28204
  };
28161
- function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
28205
+ function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
28162
28206
  const dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
28163
28207
  canvasIdLists.forEach((id, i) => {
28164
28208
  const ctx = tt.createCanvasContext(id),
@@ -28183,7 +28227,7 @@
28183
28227
  return 9999;
28184
28228
  }
28185
28229
  configure(service, params) {
28186
- service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.pixelRatio));
28230
+ service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$4(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.pixelRatio));
28187
28231
  }
28188
28232
  loadImage(url) {
28189
28233
  return Promise.resolve({
@@ -28237,7 +28281,7 @@
28237
28281
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28238
28282
  }
28239
28283
  };
28240
- FeishuEnvContribution = __decorate$J([injectable(), __metadata$z("design:paramtypes", [])], FeishuEnvContribution);
28284
+ FeishuEnvContribution = __decorate$N([injectable(), __metadata$C("design:paramtypes", [])], FeishuEnvContribution);
28241
28285
 
28242
28286
  const feishuEnvModule = new ContainerModule(bind => {
28243
28287
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -28249,7 +28293,7 @@
28249
28293
  }
28250
28294
  loadFeishuEnv.__loaded = !1;
28251
28295
 
28252
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28296
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28253
28297
  var d,
28254
28298
  c = arguments.length,
28255
28299
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28261,7 +28305,7 @@
28261
28305
  return this._globalAlpha;
28262
28306
  }
28263
28307
  set globalAlpha(ga) {
28264
- this.nativeContext.globalAlpha = ga, this._globalAlpha = ga;
28308
+ this.nativeContext.globalAlpha = ga * this.baseGlobalAlpha, this._globalAlpha = ga * this.baseGlobalAlpha;
28265
28309
  }
28266
28310
  setLineDash(segments) {
28267
28311
  const a = arguments,
@@ -28288,7 +28332,7 @@
28288
28332
  lineCap = defaultParams.lineCap,
28289
28333
  miterLimit = defaultParams.miterLimit
28290
28334
  } = attribute;
28291
- _context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, 0 === lineDash[0] && 0 === lineDash[1] || lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
28335
+ _context.globalAlpha = strokeOpacity * opacity * this.baseGlobalAlpha, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, 0 === lineDash[0] && 0 === lineDash[1] || lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
28292
28336
  }
28293
28337
  }
28294
28338
  measureText(text) {
@@ -28308,16 +28352,16 @@
28308
28352
  }));
28309
28353
  }
28310
28354
  };
28311
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$I([injectable()], LynxContext2d);
28355
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$M([injectable()], LynxContext2d);
28312
28356
 
28313
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28357
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28314
28358
  var d,
28315
28359
  c = arguments.length,
28316
28360
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28317
28361
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28318
28362
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28319
28363
  },
28320
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
28364
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
28321
28365
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28322
28366
  };
28323
28367
  let LynxCanvas = class extends BaseCanvas {
@@ -28333,24 +28377,24 @@
28333
28377
  }
28334
28378
  release() {}
28335
28379
  };
28336
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$H([injectable(), __metadata$y("design:paramtypes", [Object])], LynxCanvas);
28380
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$L([injectable(), __metadata$B("design:paramtypes", [Object])], LynxCanvas);
28337
28381
 
28338
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28382
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28339
28383
  var d,
28340
28384
  c = arguments.length,
28341
28385
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28342
28386
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28343
28387
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28344
28388
  },
28345
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
28389
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
28346
28390
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28347
28391
  },
28348
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
28392
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
28349
28393
  return function (target, key) {
28350
28394
  decorator(target, key, paramIndex);
28351
28395
  };
28352
28396
  };
28353
- let MiniAppEventManager$2 = class MiniAppEventManager {
28397
+ let MiniAppEventManager$3 = class MiniAppEventManager {
28354
28398
  constructor() {
28355
28399
  this.cache = {};
28356
28400
  }
@@ -28374,7 +28418,7 @@
28374
28418
  return null;
28375
28419
  }
28376
28420
  constructor(global) {
28377
- super(), this.global = global, this.type = "lynx", this.eventManager = new MiniAppEventManager$2();
28421
+ super(), this.global = global, this.type = "lynx", this.eventManager = new MiniAppEventManager$3();
28378
28422
  }
28379
28423
  getTitle() {
28380
28424
  return this.canvas.id && this.canvas.id.toString();
@@ -28483,28 +28527,28 @@
28483
28527
  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();
28484
28528
  }
28485
28529
  };
28486
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$G([injectable(), __param$q(0, inject(VGlobal)), __metadata$x("design:paramtypes", [Object])], LynxWindowHandlerContribution);
28530
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$K([injectable(), __param$r(0, inject(VGlobal)), __metadata$A("design:paramtypes", [Object])], LynxWindowHandlerContribution);
28487
28531
  const lynxWindowModule = new ContainerModule(bind => {
28488
28532
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
28489
28533
  });
28490
28534
 
28491
28535
  const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
28492
28536
 
28493
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28537
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28494
28538
  var d,
28495
28539
  c = arguments.length,
28496
28540
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28497
28541
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28498
28542
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28499
28543
  },
28500
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
28544
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
28501
28545
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28502
28546
  };
28503
28547
  let ng = !1;
28504
28548
  try {
28505
28549
  ng = !!lynx.createCanvasNG;
28506
28550
  } catch (err) {}
28507
- function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
28551
+ function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
28508
28552
  const dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
28509
28553
  canvasIdLists.forEach((id, i) => {
28510
28554
  let _canvas;
@@ -28537,7 +28581,7 @@
28537
28581
  this.applyStyles = !0;
28538
28582
  }
28539
28583
  configure(service, params) {
28540
- service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$2(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
28584
+ service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
28541
28585
  }
28542
28586
  getDynamicCanvasCount() {
28543
28587
  return this.freeCanvasList.length;
@@ -28600,7 +28644,7 @@
28600
28644
  }
28601
28645
  release() {}
28602
28646
  };
28603
- LynxEnvContribution = __decorate$F([injectable(), __metadata$w("design:paramtypes", [])], LynxEnvContribution);
28647
+ LynxEnvContribution = __decorate$J([injectable(), __metadata$z("design:paramtypes", [])], LynxEnvContribution);
28604
28648
 
28605
28649
  const lynxEnvModule = new ContainerModule(bind => {
28606
28650
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -28612,14 +28656,14 @@
28612
28656
  }
28613
28657
  loadLynxEnv.__loaded = !1;
28614
28658
 
28615
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28659
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28616
28660
  var d,
28617
28661
  c = arguments.length,
28618
28662
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28619
28663
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28620
28664
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28621
28665
  },
28622
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
28666
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
28623
28667
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28624
28668
  };
28625
28669
  let NodeContext2d = class extends BrowserContext2d {
@@ -28631,16 +28675,16 @@
28631
28675
  }
28632
28676
  release() {}
28633
28677
  };
28634
- NodeContext2d.env = "node", NodeContext2d = __decorate$E([injectable(), __metadata$v("design:paramtypes", [Object, Number])], NodeContext2d);
28678
+ NodeContext2d.env = "node", NodeContext2d = __decorate$I([injectable(), __metadata$y("design:paramtypes", [Object, Number])], NodeContext2d);
28635
28679
 
28636
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28680
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28637
28681
  var d,
28638
28682
  c = arguments.length,
28639
28683
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28640
28684
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28641
28685
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28642
28686
  },
28643
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
28687
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
28644
28688
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28645
28689
  };
28646
28690
  let NodeCanvas = class extends BaseCanvas {
@@ -28654,21 +28698,21 @@
28654
28698
  this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
28655
28699
  }
28656
28700
  };
28657
- NodeCanvas.env = "node", NodeCanvas = __decorate$D([injectable(), __metadata$u("design:paramtypes", [Object])], NodeCanvas);
28701
+ NodeCanvas.env = "node", NodeCanvas = __decorate$H([injectable(), __metadata$x("design:paramtypes", [Object])], NodeCanvas);
28658
28702
 
28659
28703
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
28660
28704
 
28661
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28705
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28662
28706
  var d,
28663
28707
  c = arguments.length,
28664
28708
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28665
28709
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28666
28710
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28667
28711
  },
28668
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
28712
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
28669
28713
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28670
28714
  },
28671
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
28715
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
28672
28716
  return function (target, key) {
28673
28717
  decorator(target, key, paramIndex);
28674
28718
  };
@@ -28759,12 +28803,12 @@
28759
28803
  }
28760
28804
  clearViewBox(color) {}
28761
28805
  };
28762
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$C([injectable(), __param$p(0, inject(VGlobal)), __metadata$t("design:paramtypes", [Object])], NodeWindowHandlerContribution);
28806
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$G([injectable(), __param$q(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], NodeWindowHandlerContribution);
28763
28807
  const nodeWindowModule = new ContainerModule(bind => {
28764
28808
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
28765
28809
  });
28766
28810
 
28767
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28811
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28768
28812
  var d,
28769
28813
  c = arguments.length,
28770
28814
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28850,7 +28894,7 @@
28850
28894
  release() {}
28851
28895
  createOffscreenCanvas(params) {}
28852
28896
  };
28853
- NodeEnvContribution = __decorate$B([injectable()], NodeEnvContribution);
28897
+ NodeEnvContribution = __decorate$F([injectable()], NodeEnvContribution);
28854
28898
 
28855
28899
  const nodeEnvModule = new ContainerModule(bind => {
28856
28900
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -28861,7 +28905,7 @@
28861
28905
  }
28862
28906
  loadNodeEnv.__loaded = !1;
28863
28907
 
28864
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28908
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28865
28909
  var d,
28866
28910
  c = arguments.length,
28867
28911
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28948,16 +28992,16 @@
28948
28992
  return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
28949
28993
  }
28950
28994
  };
28951
- TaroContext2d.env = "taro", TaroContext2d = __decorate$A([injectable()], TaroContext2d);
28995
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$E([injectable()], TaroContext2d);
28952
28996
 
28953
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28997
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28954
28998
  var d,
28955
28999
  c = arguments.length,
28956
29000
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28957
29001
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28958
29002
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28959
29003
  },
28960
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
29004
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
28961
29005
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28962
29006
  };
28963
29007
  let TaroCanvas = class extends BaseCanvas {
@@ -28969,26 +29013,26 @@
28969
29013
  }
28970
29014
  release() {}
28971
29015
  };
28972
- TaroCanvas.env = "taro", TaroCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], TaroCanvas);
29016
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$D([injectable(), __metadata$v("design:paramtypes", [Object])], TaroCanvas);
28973
29017
 
28974
29018
  const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
28975
29019
 
28976
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29020
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28977
29021
  var d,
28978
29022
  c = arguments.length,
28979
29023
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28980
29024
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28981
29025
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28982
29026
  },
28983
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
29027
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
28984
29028
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28985
29029
  },
28986
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
29030
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
28987
29031
  return function (target, key) {
28988
29032
  decorator(target, key, paramIndex);
28989
29033
  };
28990
29034
  };
28991
- let MiniAppEventManager$1 = class MiniAppEventManager {
29035
+ let MiniAppEventManager$2 = class MiniAppEventManager {
28992
29036
  constructor() {
28993
29037
  this.cache = {};
28994
29038
  }
@@ -29012,7 +29056,7 @@
29012
29056
  return null;
29013
29057
  }
29014
29058
  constructor(global) {
29015
- super(), this.global = global, this.type = "taro", this.eventManager = new MiniAppEventManager$1();
29059
+ super(), this.global = global, this.type = "taro", this.eventManager = new MiniAppEventManager$2();
29016
29060
  }
29017
29061
  getTitle() {
29018
29062
  return this.canvas.id.toString();
@@ -29129,22 +29173,22 @@
29129
29173
  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();
29130
29174
  }
29131
29175
  };
29132
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$y([injectable(), __param$o(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], TaroWindowHandlerContribution);
29176
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$C([injectable(), __param$p(0, inject(VGlobal)), __metadata$u("design:paramtypes", [Object])], TaroWindowHandlerContribution);
29133
29177
  const taroWindowModule = new ContainerModule(bind => {
29134
29178
  bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
29135
29179
  });
29136
29180
 
29137
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29181
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29138
29182
  var d,
29139
29183
  c = arguments.length,
29140
29184
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29141
29185
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29142
29186
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29143
29187
  },
29144
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
29188
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
29145
29189
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29146
29190
  };
29147
- function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
29191
+ function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
29148
29192
  canvasIdLists.forEach((id, i) => {
29149
29193
  const ctx = taro.createCanvasContext(id),
29150
29194
  canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
@@ -29172,7 +29216,7 @@
29172
29216
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
29173
29217
  }
29174
29218
  configure(service, params) {
29175
- 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);
29219
+ 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);
29176
29220
  }
29177
29221
  loadImage(url) {
29178
29222
  return Promise.resolve({
@@ -29238,7 +29282,7 @@
29238
29282
  }
29239
29283
  release() {}
29240
29284
  };
29241
- TaroEnvContribution = __decorate$x([injectable(), __metadata$q("design:paramtypes", [])], TaroEnvContribution);
29285
+ TaroEnvContribution = __decorate$B([injectable(), __metadata$t("design:paramtypes", [])], TaroEnvContribution);
29242
29286
 
29243
29287
  const taroEnvModule = new ContainerModule(bind => {
29244
29288
  taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
@@ -29250,7 +29294,7 @@
29250
29294
  }
29251
29295
  loadTaroEnv.__loaded = !1;
29252
29296
 
29253
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29297
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29254
29298
  var d,
29255
29299
  c = arguments.length,
29256
29300
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29263,16 +29307,16 @@
29263
29307
  return null;
29264
29308
  }
29265
29309
  };
29266
- WxContext2d.env = "wx", WxContext2d = __decorate$w([injectable()], WxContext2d);
29310
+ WxContext2d.env = "wx", WxContext2d = __decorate$A([injectable()], WxContext2d);
29267
29311
 
29268
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29312
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29269
29313
  var d,
29270
29314
  c = arguments.length,
29271
29315
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29272
29316
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29273
29317
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29274
29318
  },
29275
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
29319
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
29276
29320
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29277
29321
  };
29278
29322
  let WxCanvas = class extends BaseCanvas {
@@ -29284,26 +29328,26 @@
29284
29328
  }
29285
29329
  release() {}
29286
29330
  };
29287
- WxCanvas.env = "wx", WxCanvas = __decorate$v([injectable(), __metadata$p("design:paramtypes", [Object])], WxCanvas);
29331
+ WxCanvas.env = "wx", WxCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], WxCanvas);
29288
29332
 
29289
29333
  const wxCanvasModule = createModule(WxCanvas, WxContext2d);
29290
29334
 
29291
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29335
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29292
29336
  var d,
29293
29337
  c = arguments.length,
29294
29338
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29295
29339
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29296
29340
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29297
29341
  },
29298
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
29342
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
29299
29343
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29300
29344
  },
29301
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
29345
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
29302
29346
  return function (target, key) {
29303
29347
  decorator(target, key, paramIndex);
29304
29348
  };
29305
29349
  };
29306
- class MiniAppEventManager {
29350
+ let MiniAppEventManager$1 = class MiniAppEventManager {
29307
29351
  constructor() {
29308
29352
  this.cache = {};
29309
29353
  }
@@ -29321,13 +29365,13 @@
29321
29365
  cleanEvent() {
29322
29366
  this.cache = {};
29323
29367
  }
29324
- }
29368
+ };
29325
29369
  let WxWindowHandlerContribution = class extends BaseWindowHandlerContribution {
29326
29370
  get container() {
29327
29371
  return null;
29328
29372
  }
29329
29373
  constructor(global) {
29330
- super(), this.global = global, this.type = "wx", this.eventManager = new MiniAppEventManager();
29374
+ super(), this.global = global, this.type = "wx", this.eventManager = new MiniAppEventManager$1();
29331
29375
  }
29332
29376
  getTitle() {
29333
29377
  return this.canvas.id.toString();
@@ -29435,22 +29479,22 @@
29435
29479
  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();
29436
29480
  }
29437
29481
  };
29438
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$u([injectable(), __param$n(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], WxWindowHandlerContribution);
29482
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$y([injectable(), __param$o(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], WxWindowHandlerContribution);
29439
29483
  const wxWindowModule = new ContainerModule(bind => {
29440
29484
  bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
29441
29485
  });
29442
29486
 
29443
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29487
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29444
29488
  var d,
29445
29489
  c = arguments.length,
29446
29490
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29447
29491
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29448
29492
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29449
29493
  },
29450
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
29494
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
29451
29495
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29452
29496
  },
29453
- __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
29497
+ __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
29454
29498
  return new (P || (P = Promise))(function (resolve, reject) {
29455
29499
  function fulfilled(value) {
29456
29500
  try {
@@ -29475,8 +29519,8 @@
29475
29519
  step((generator = generator.apply(thisArg, _arguments || [])).next());
29476
29520
  });
29477
29521
  };
29478
- function makeUpCanvas(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, component) {
29479
- return __awaiter$1(this, void 0, void 0, function* () {
29522
+ function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, component) {
29523
+ return __awaiter$2(this, void 0, void 0, function* () {
29480
29524
  const dpr = wx.getSystemInfoSync().pixelRatio;
29481
29525
  for (let i = 0; i < canvasIdLists.length; i++) {
29482
29526
  const id = canvasIdLists[i];
@@ -29507,7 +29551,7 @@
29507
29551
  this.applyStyles = !0;
29508
29552
  }
29509
29553
  configure(service, params) {
29510
- if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(() => {});
29554
+ if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas$1(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(() => {});
29511
29555
  }
29512
29556
  loadImage(url) {
29513
29557
  return Promise.resolve({
@@ -29561,7 +29605,7 @@
29561
29605
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
29562
29606
  }
29563
29607
  };
29564
- WxEnvContribution = __decorate$t([injectable(), __metadata$n("design:paramtypes", [])], WxEnvContribution);
29608
+ WxEnvContribution = __decorate$x([injectable(), __metadata$q("design:paramtypes", [])], WxEnvContribution);
29565
29609
 
29566
29610
  const wxEnvModule = new ContainerModule(bind => {
29567
29611
  wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
@@ -29586,6 +29630,319 @@
29586
29630
  loadAllEnv(container);
29587
29631
  }
29588
29632
 
29633
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29634
+ var d,
29635
+ c = arguments.length,
29636
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29637
+ if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29638
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
29639
+ };
29640
+ let TTContext2d = class extends FeishuContext2d {};
29641
+ TTContext2d.env = "tt", TTContext2d = __decorate$w([injectable()], TTContext2d);
29642
+
29643
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29644
+ var d,
29645
+ c = arguments.length,
29646
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29647
+ if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29648
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
29649
+ },
29650
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
29651
+ if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29652
+ };
29653
+ let TTCanvas = class extends BaseCanvas {
29654
+ constructor(params) {
29655
+ super(params);
29656
+ }
29657
+ init() {
29658
+ this._context = new TTContext2d(this, this._dpr);
29659
+ }
29660
+ release() {}
29661
+ };
29662
+ TTCanvas.env = "tt", TTCanvas = __decorate$v([injectable(), __metadata$p("design:paramtypes", [Object])], TTCanvas);
29663
+
29664
+ const ttCanvasModule = createModule(TTCanvas, TTContext2d);
29665
+
29666
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29667
+ var d,
29668
+ c = arguments.length,
29669
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29670
+ if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29671
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
29672
+ },
29673
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
29674
+ if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29675
+ },
29676
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
29677
+ return function (target, key) {
29678
+ decorator(target, key, paramIndex);
29679
+ };
29680
+ };
29681
+ class MiniAppEventManager {
29682
+ constructor() {
29683
+ this.cache = {};
29684
+ }
29685
+ addEventListener(type, func) {
29686
+ type && func && (this.cache[type] = this.cache[type] || {
29687
+ listener: []
29688
+ }, this.cache[type].listener.push(func));
29689
+ }
29690
+ removeEventListener(type, func) {
29691
+ if (!type || !func) return;
29692
+ if (!this.cache[type]) return;
29693
+ const index = this.cache[type].listener.findIndex(f => f === func);
29694
+ index >= 0 && this.cache[type].listener.splice(index, 1);
29695
+ }
29696
+ cleanEvent() {
29697
+ this.cache = {};
29698
+ }
29699
+ }
29700
+ let TTWindowHandlerContribution = class extends BaseWindowHandlerContribution {
29701
+ get container() {
29702
+ return null;
29703
+ }
29704
+ constructor(global) {
29705
+ super(), this.global = global, this.type = "tt", this.eventManager = new MiniAppEventManager();
29706
+ }
29707
+ getTitle() {
29708
+ return this.canvas.id.toString();
29709
+ }
29710
+ getWH() {
29711
+ return {
29712
+ width: this.canvas.width / (this.canvas.dpr || 1),
29713
+ height: this.canvas.height / (this.canvas.dpr || 1)
29714
+ };
29715
+ }
29716
+ getXY() {
29717
+ return {
29718
+ x: 0,
29719
+ y: 0
29720
+ };
29721
+ }
29722
+ createWindow(params) {
29723
+ params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
29724
+ }
29725
+ createWindowByConfig(params) {
29726
+ const nativeCanvas = this.global.createCanvas({
29727
+ width: params.width,
29728
+ height: params.height
29729
+ }),
29730
+ options = {
29731
+ width: params.width,
29732
+ height: params.height,
29733
+ dpr: params.dpr,
29734
+ nativeCanvas: nativeCanvas,
29735
+ id: Generator.GenAutoIncrementId().toString(),
29736
+ canvasControled: !1
29737
+ };
29738
+ this.canvas = new TTCanvas(options);
29739
+ }
29740
+ createWindowByCanvas(params) {
29741
+ let canvas;
29742
+ if ("string" == typeof params.canvas) {
29743
+ if (canvas = this.global.getElementById(params.canvas), !canvas) throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom");
29744
+ } else canvas = params.canvas;
29745
+ let width = params.width,
29746
+ height = params.height;
29747
+ if (null == width || null == height || !params.canvasControled) {
29748
+ const data = canvas.getBoundingClientRect();
29749
+ width = data.width, height = data.height;
29750
+ }
29751
+ let dpr = params.dpr;
29752
+ null == dpr && (dpr = canvas.width / width), this.canvas = new TTCanvas({
29753
+ width: width,
29754
+ height: height,
29755
+ dpr: dpr,
29756
+ nativeCanvas: canvas,
29757
+ canvasControled: params.canvasControled
29758
+ });
29759
+ }
29760
+ releaseWindow() {}
29761
+ resizeWindow(width, height) {}
29762
+ setDpr(dpr) {
29763
+ this.canvas.dpr = dpr;
29764
+ }
29765
+ getContext() {
29766
+ return this.canvas.getContext();
29767
+ }
29768
+ getNativeHandler() {
29769
+ return this.canvas;
29770
+ }
29771
+ getDpr() {
29772
+ return this.canvas.dpr;
29773
+ }
29774
+ addEventListener(type, listener) {
29775
+ this.eventManager.addEventListener(type, listener);
29776
+ }
29777
+ removeEventListener(type, listener) {
29778
+ this.eventManager.removeEventListener(type, listener);
29779
+ }
29780
+ dispatchEvent(event) {
29781
+ const {
29782
+ type: type
29783
+ } = event;
29784
+ 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 = () => {}, event.stopPropagation = () => {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(f => {
29785
+ f(event);
29786
+ }), !0);
29787
+ }
29788
+ getStyle() {
29789
+ return {};
29790
+ }
29791
+ setStyle(style) {}
29792
+ getBoundingClientRect() {
29793
+ const wh = this.getWH();
29794
+ return {
29795
+ x: 0,
29796
+ y: 0,
29797
+ width: wh.width,
29798
+ height: wh.height,
29799
+ left: 0,
29800
+ top: 0,
29801
+ right: 0,
29802
+ bottom: 0
29803
+ };
29804
+ }
29805
+ clearViewBox(color) {
29806
+ const vb = this.viewBox,
29807
+ context = this.getContext(),
29808
+ dpr = this.getDpr();
29809
+ 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();
29810
+ }
29811
+ };
29812
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$u([injectable(), __param$n(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], TTWindowHandlerContribution);
29813
+ const ttWindowModule = new ContainerModule(bind => {
29814
+ bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
29815
+ });
29816
+
29817
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29818
+ var d,
29819
+ c = arguments.length,
29820
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29821
+ if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
29822
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
29823
+ },
29824
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
29825
+ if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29826
+ },
29827
+ __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
29828
+ return new (P || (P = Promise))(function (resolve, reject) {
29829
+ function fulfilled(value) {
29830
+ try {
29831
+ step(generator.next(value));
29832
+ } catch (e) {
29833
+ reject(e);
29834
+ }
29835
+ }
29836
+ function rejected(value) {
29837
+ try {
29838
+ step(generator.throw(value));
29839
+ } catch (e) {
29840
+ reject(e);
29841
+ }
29842
+ }
29843
+ function step(result) {
29844
+ var value;
29845
+ result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
29846
+ resolve(value);
29847
+ })).then(fulfilled, rejected);
29848
+ }
29849
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
29850
+ });
29851
+ };
29852
+ function makeUpCanvas(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, component) {
29853
+ return __awaiter$1(this, void 0, void 0, function* () {
29854
+ const dpr = tt.getSystemInfoSync().pixelRatio;
29855
+ for (let i = 0; i < canvasIdLists.length; i++) {
29856
+ const id = canvasIdLists[i];
29857
+ yield new Promise(resolve => {
29858
+ let data = tt.createSelectorQuery();
29859
+ component && (data = data.in(component)), data.select(`#${id}`).node().exec(res => {
29860
+ const canvas = res[0].node,
29861
+ width = canvas.width,
29862
+ height = canvas.height;
29863
+ canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
29864
+ });
29865
+ });
29866
+ }
29867
+ });
29868
+ }
29869
+ let TTEnvContribution = class extends BaseEnvContribution {
29870
+ constructor() {
29871
+ super(), this.type = "tt", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.supportsTouchEvents = !0;
29872
+ try {
29873
+ this.supportsPointerEvents = !!globalThis.PointerEvent, this.supportsMouseEvents = !!globalThis.MouseEvent;
29874
+ } catch (err) {
29875
+ this.supportsPointerEvents = !1, this.supportsMouseEvents = !1;
29876
+ }
29877
+ this.applyStyles = !0;
29878
+ }
29879
+ configure(service, params) {
29880
+ if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(() => {});
29881
+ }
29882
+ loadImage(url) {
29883
+ return Promise.resolve({
29884
+ data: url,
29885
+ loadState: "success"
29886
+ });
29887
+ }
29888
+ loadSvg(url) {
29889
+ return Promise.reject();
29890
+ }
29891
+ createCanvas(params) {
29892
+ const result = this.freeCanvasList[this.canvasIdx] || this.freeCanvasList[this.freeCanvasList.length - 1];
29893
+ return this.canvasIdx++, result;
29894
+ }
29895
+ createOffscreenCanvas(params) {}
29896
+ releaseCanvas(canvas) {}
29897
+ getDevicePixelRatio() {
29898
+ return tt.getSystemInfoSync().pixelRatio;
29899
+ }
29900
+ getRequestAnimationFrame() {
29901
+ return function (callback) {
29902
+ return rafBasedSto.call(callback);
29903
+ };
29904
+ }
29905
+ getCancelAnimationFrame() {
29906
+ return h => {
29907
+ rafBasedSto.clear(h);
29908
+ };
29909
+ }
29910
+ addEventListener(type, listener, options) {
29911
+ return null;
29912
+ }
29913
+ removeEventListener(type, listener, options) {
29914
+ return null;
29915
+ }
29916
+ dispatchEvent(event) {
29917
+ return null;
29918
+ }
29919
+ getElementById(str) {
29920
+ return this.canvasMap.get(str);
29921
+ }
29922
+ getRootElement() {
29923
+ return null;
29924
+ }
29925
+ getDocument() {
29926
+ return null;
29927
+ }
29928
+ release() {}
29929
+ mapToCanvasPoint(event) {
29930
+ var _a;
29931
+ return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
29932
+ }
29933
+ };
29934
+ TTEnvContribution = __decorate$t([injectable(), __metadata$n("design:paramtypes", [])], TTEnvContribution);
29935
+
29936
+ const ttEnvModule = new ContainerModule(bind => {
29937
+ ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
29938
+ });
29939
+ ttEnvModule.isTTBound = !1;
29940
+ function loadTTEnv(container) {
29941
+ let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
29942
+ loadTTEnv.__loaded || (loadTTEnv.__loaded = !0, container.load(ttEnvModule), container.load(ttCanvasModule), container.load(ttWindowModule), loadPicker && loadMathPicker(container));
29943
+ }
29944
+ loadTTEnv.__loaded = !1;
29945
+
29589
29946
  var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29590
29947
  var d,
29591
29948
  c = arguments.length,
@@ -38583,8 +38940,11 @@
38583
38940
  var _a, _b, _c, _d;
38584
38941
  const target = e.target;
38585
38942
  if (target && target.name && target.name.startsWith(LEGEND_ELEMENT_NAME.item)) {
38586
- const legendItem = target.delegate;
38587
- if (target.name === LEGEND_ELEMENT_NAME.focus) {
38943
+ const legendItem = target.delegate,
38944
+ {
38945
+ selectMode = "multiple"
38946
+ } = this.attribute;
38947
+ if (target.name === LEGEND_ELEMENT_NAME.focus || "focus" === selectMode) {
38588
38948
  const isFocusSelected = legendItem.hasState(LegendStateValue.focus);
38589
38949
  legendItem.toggleState(LegendStateValue.focus), isFocusSelected ? null === (_a = this._itemsContainer) || void 0 === _a || _a.getChildren().forEach(item => {
38590
38950
  this._removeLegendItemState(item, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover, LegendStateValue.focus], e), this._setLegendItemState(item, LegendStateValue.selected, e);
@@ -38596,7 +38956,6 @@
38596
38956
  item.removeState(LegendStateValue.focus);
38597
38957
  });
38598
38958
  const {
38599
- selectMode = "multiple",
38600
38959
  allowAllCanceled = !0
38601
38960
  } = this.attribute,
38602
38961
  isSelected = legendItem.hasState(LegendStateValue.selected),
@@ -46320,7 +46679,7 @@
46320
46679
 
46321
46680
  Animate$1.mode |= AnimateMode.SET_ATTR_IMMEDIATELY;
46322
46681
  let GlobalAnimatorId = 0;
46323
- const isCustomAnimateCtor = custom => !isNil$3(custom) && custom.prototype instanceof ACustomAnimate;
46682
+ const isCustomAnimateCtor = custom => !isNil$3(custom) && (custom.prototype instanceof ACustomAnimate || "onBind" in custom.prototype && "onStart" in custom.prototype && "onEnd" in custom.prototype && "onUpdate" in custom.prototype);
46324
46683
  class Animator {
46325
46684
  constructor(element, unit, animationOptions) {
46326
46685
  this.id = GlobalAnimatorId++, this.isAnimating = !1, this.runnings = [], this.element = element, this.animationOptions = animationOptions, this.unit = unit;
@@ -56309,6 +56668,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56309
56668
  return 'lynx';
56310
56669
  case exports.RenderModeEnum.wx:
56311
56670
  return 'wx';
56671
+ case exports.RenderModeEnum.tt:
56672
+ return 'tt';
56312
56673
  }
56313
56674
  return 'browser';
56314
56675
  }
@@ -56744,7 +57105,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56744
57105
  }
56745
57106
  function getCanvasDataURL(c, ctx) {
56746
57107
  var _a;
56747
- return __awaiter$6(this, void 0, void 0, function* () {
57108
+ return __awaiter$7(this, void 0, void 0, function* () {
56748
57109
  if (!c) {
56749
57110
  return '';
56750
57111
  }
@@ -60420,6 +60781,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60420
60781
  const registerWXEnv = () => {
60421
60782
  loadWxEnv(container);
60422
60783
  };
60784
+ const registerTTEnv = () => {
60785
+ loadTTEnv(container);
60786
+ };
60423
60787
 
60424
60788
  class BasePluginService {
60425
60789
  constructor() {
@@ -60901,7 +61265,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60901
61265
  });
60902
61266
  }
60903
61267
  renderAsync(morphConfig) {
60904
- return __awaiter$6(this, void 0, void 0, function* () {
61268
+ return __awaiter$7(this, void 0, void 0, function* () {
60905
61269
  return this._renderAsync({
60906
61270
  morphConfig,
60907
61271
  transformSpec: true,
@@ -60920,7 +61284,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60920
61284
  return self;
60921
61285
  }
60922
61286
  _renderAsync(option = {}) {
60923
- return __awaiter$6(this, void 0, void 0, function* () {
61287
+ return __awaiter$7(this, void 0, void 0, function* () {
60924
61288
  return this._renderSync(option);
60925
61289
  });
60926
61290
  }
@@ -60967,7 +61331,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60967
61331
  InstanceManager.unregisterInstance(this);
60968
61332
  }
60969
61333
  updateData(id, data, options) {
60970
- return __awaiter$6(this, void 0, void 0, function* () {
61334
+ return __awaiter$7(this, void 0, void 0, function* () {
60971
61335
  return this.updateDataSync(id, data, options);
60972
61336
  });
60973
61337
  }
@@ -60994,7 +61358,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60994
61358
  }
60995
61359
  }
60996
61360
  updateDataInBatches(list) {
60997
- return __awaiter$6(this, void 0, void 0, function* () {
61361
+ return __awaiter$7(this, void 0, void 0, function* () {
60998
61362
  if (this._chart) {
60999
61363
  this._chart.updateFullData(list.map(({ id, data, options }) => {
61000
61364
  return { id, values: data, parser: options };
@@ -61060,12 +61424,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61060
61424
  return this;
61061
61425
  }
61062
61426
  updateFullData(data, reRender = true) {
61063
- return __awaiter$6(this, void 0, void 0, function* () {
61427
+ return __awaiter$7(this, void 0, void 0, function* () {
61064
61428
  return this.updateFullDataSync(data, reRender);
61065
61429
  });
61066
61430
  }
61067
61431
  updateSpec(spec, forceMerge = false, morphConfig) {
61068
- return __awaiter$6(this, void 0, void 0, function* () {
61432
+ return __awaiter$7(this, void 0, void 0, function* () {
61069
61433
  const result = this._updateSpec(spec, forceMerge);
61070
61434
  if (!result) {
61071
61435
  return this;
@@ -61124,7 +61488,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61124
61488
  });
61125
61489
  }
61126
61490
  updateModelSpec(filter, spec, forceMerge = false, morphConfig) {
61127
- return __awaiter$6(this, void 0, void 0, function* () {
61491
+ return __awaiter$7(this, void 0, void 0, function* () {
61128
61492
  if (!spec || !this._spec) {
61129
61493
  return this;
61130
61494
  }
@@ -61177,7 +61541,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61177
61541
  });
61178
61542
  }
61179
61543
  resize(width, height) {
61180
- return __awaiter$6(this, void 0, void 0, function* () {
61544
+ return __awaiter$7(this, void 0, void 0, function* () {
61181
61545
  return this.resizeSync(width, height);
61182
61546
  });
61183
61547
  }
@@ -61350,7 +61714,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61350
61714
  return this._currentThemeName;
61351
61715
  }
61352
61716
  setCurrentTheme(name) {
61353
- return __awaiter$6(this, void 0, void 0, function* () {
61717
+ return __awaiter$7(this, void 0, void 0, function* () {
61354
61718
  if (!ThemeManager.themeExist(name)) {
61355
61719
  return this;
61356
61720
  }
@@ -61463,7 +61827,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61463
61827
  }
61464
61828
  getDataURL() {
61465
61829
  var _a;
61466
- return __awaiter$6(this, void 0, void 0, function* () {
61830
+ return __awaiter$7(this, void 0, void 0, function* () {
61467
61831
  const stage = this.getStage();
61468
61832
  if (this._chart && stage) {
61469
61833
  stage.render();
@@ -61479,7 +61843,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61479
61843
  }
61480
61844
  exportImg(name) {
61481
61845
  var _a, _b;
61482
- return __awaiter$6(this, void 0, void 0, function* () {
61846
+ return __awaiter$7(this, void 0, void 0, function* () {
61483
61847
  if (!isTrueBrowser(this._option.mode)) {
61484
61848
  (_a = this._option) === null || _a === void 0 ? void 0 : _a.onError(new TypeError(`non-browser environment can not export img`));
61485
61849
  return;
@@ -66019,7 +66383,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66019
66383
  registerComponentPlugin(CanvasTooltipHandler);
66020
66384
  };
66021
66385
 
66022
- const version = "1.11.1-alpha.2";
66386
+ const version = "1.11.1-alpha.4";
66023
66387
 
66024
66388
  const addVChartProperty = (data, op) => {
66025
66389
  const context = op.beforeCall();
@@ -97046,15 +97410,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97046
97410
  }
97047
97411
  super.onLayoutStart(layoutRect, chartViewRect, ctx);
97048
97412
  }
97049
- _compareSpec(spec, prevSpec) {
97050
- const result = super._compareSpec(spec, prevSpec);
97051
- if (!isEqual$1(prevSpec, spec)) {
97052
- result.reRender = true;
97053
- result.reMake = true;
97054
- result.change = true;
97055
- }
97056
- return result;
97057
- }
97058
97413
  }
97059
97414
 
97060
97415
  function markerRegression(_data, opt) {
@@ -97144,8 +97499,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97144
97499
  const markLine = this._newMarkLineComponent(markLineAttrs);
97145
97500
  return markLine;
97146
97501
  }
97147
- _getUpdateMarkerAttrs() {
97148
- var _a, _b, _c, _d;
97502
+ _markerLayout() {
97503
+ var _a, _b, _c, _d, _e;
97149
97504
  const spec = this._spec;
97150
97505
  const data = this._markerData;
97151
97506
  const startRelativeSeries = this._startRelativeSeries;
@@ -97172,12 +97527,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97172
97527
  const labelAttrs = Object.assign(Object.assign({}, markerComponentAttr.label), { text: this._spec.label.formatMethod
97173
97528
  ? this._spec.label.formatMethod(dataPoints, seriesData)
97174
97529
  : (_d = markerComponentAttr.label) === null || _d === void 0 ? void 0 : _d.text });
97175
- return Object.assign(Object.assign({}, pointsAttr), { label: labelAttrs, limitRect, dx: this._layoutOffsetX, dy: this._layoutOffsetY });
97176
- }
97177
- _markerLayout() {
97178
- var _a;
97179
- const updateAttrs = this._getUpdateMarkerAttrs();
97180
- (_a = this._markerComponent) === null || _a === void 0 ? void 0 : _a.setAttributes(updateAttrs);
97530
+ (_e = this._markerComponent) === null || _e === void 0 ? void 0 : _e.setAttributes(Object.assign(Object.assign({}, pointsAttr), { label: labelAttrs, limitRect, dx: this._layoutOffsetX, dy: this._layoutOffsetY }));
97181
97531
  }
97182
97532
  _initDataView() {
97183
97533
  const spec = this._spec;
@@ -97273,11 +97623,35 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97273
97623
  return { points };
97274
97624
  }
97275
97625
  _markerLayout() {
97276
- var _a, _b, _c, _d;
97277
- const updateAttrs = this._getUpdateMarkerAttrs();
97626
+ var _a, _b, _c, _d, _e, _f;
97627
+ super._markerLayout();
97628
+ const spec = this._spec;
97629
+ const data = this._markerData;
97630
+ const startRelativeSeries = this._startRelativeSeries;
97631
+ const endRelativeSeries = this._endRelativeSeries;
97632
+ const relativeSeries = this._relativeSeries;
97633
+ const { points } = this._computePointsAttr();
97634
+ const seriesData = this._relativeSeries.getViewData().latestData;
97635
+ const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
97636
+ let limitRect;
97637
+ if (spec.clip || ((_a = spec.label) === null || _a === void 0 ? void 0 : _a.confine)) {
97638
+ const { minX, maxX, minY, maxY } = computeClipRange([
97639
+ startRelativeSeries.getRegion(),
97640
+ endRelativeSeries.getRegion(),
97641
+ relativeSeries.getRegion()
97642
+ ]);
97643
+ limitRect = {
97644
+ x: minX,
97645
+ y: minY,
97646
+ width: maxX - minX,
97647
+ height: maxY - minY
97648
+ };
97649
+ }
97650
+ const markerComponentAttr = (_c = (_b = this._markerComponent) === null || _b === void 0 ? void 0 : _b.attribute) !== null && _c !== void 0 ? _c : {};
97651
+ const labelAttrs = Object.assign(Object.assign({}, markerComponentAttr.label), { text: this._spec.label.formatMethod
97652
+ ? this._spec.label.formatMethod(dataPoints, seriesData)
97653
+ : (_d = markerComponentAttr.label) === null || _d === void 0 ? void 0 : _d.text });
97278
97654
  if (this._spec.type === 'type-step') {
97279
- const startRelativeSeries = this._startRelativeSeries;
97280
- const endRelativeSeries = this._endRelativeSeries;
97281
97655
  const { multiSegment, mainSegmentIndex } = this._spec.line || {};
97282
97656
  const { connectDirection, expandDistance = 0 } = this._spec;
97283
97657
  let expandDistanceValue;
@@ -97300,7 +97674,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97300
97674
  else {
97301
97675
  expandDistanceValue = expandDistance;
97302
97676
  }
97303
- const { points, label, limitRect } = updateAttrs;
97304
97677
  const joinPoints = getInsertPoints(points[0], points[1], connectDirection, expandDistanceValue);
97305
97678
  let labelPositionAttrs;
97306
97679
  if (multiSegment && isValid$3(mainSegmentIndex)) {
@@ -97314,8 +97687,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97314
97687
  else {
97315
97688
  labelPositionAttrs = Object.assign(Object.assign({ position: 'start', autoRotate: false }, getTextOffset(points[0], points[1], connectDirection, expandDistanceValue)), { refX: 0, refY: 0 });
97316
97689
  }
97317
- const markerComponentAttr = (_b = (_a = this._markerComponent) === null || _a === void 0 ? void 0 : _a.attribute) !== null && _b !== void 0 ? _b : {};
97318
- (_c = this._markerComponent) === null || _c === void 0 ? void 0 : _c.setAttributes({
97690
+ (_e = this._markerComponent) === null || _e === void 0 ? void 0 : _e.setAttributes({
97319
97691
  points: multiSegment
97320
97692
  ? [
97321
97693
  [joinPoints[0], joinPoints[1]],
@@ -97323,7 +97695,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97323
97695
  [joinPoints[2], joinPoints[3]]
97324
97696
  ]
97325
97697
  : joinPoints,
97326
- label: Object.assign(Object.assign(Object.assign({}, label), labelPositionAttrs), { textStyle: Object.assign(Object.assign({}, markerComponentAttr.label.textStyle), { textAlign: 'center', textBaseline: 'middle' }) }),
97698
+ label: Object.assign(Object.assign(Object.assign({}, labelAttrs), labelPositionAttrs), { textStyle: Object.assign(Object.assign({}, markerComponentAttr.label.textStyle), { textAlign: 'center', textBaseline: 'middle' }) }),
97327
97699
  limitRect,
97328
97700
  multiSegment,
97329
97701
  mainSegmentIndex,
@@ -97332,7 +97704,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97332
97704
  });
97333
97705
  }
97334
97706
  else {
97335
- (_d = this._markerComponent) === null || _d === void 0 ? void 0 : _d.setAttributes(updateAttrs);
97707
+ (_f = this._markerComponent) === null || _f === void 0 ? void 0 : _f.setAttributes({
97708
+ points,
97709
+ label: labelAttrs,
97710
+ limitRect,
97711
+ dx: this._layoutOffsetX,
97712
+ dy: this._layoutOffsetY
97713
+ });
97336
97714
  }
97337
97715
  }
97338
97716
  _computeOptions() {
@@ -101285,6 +101663,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
101285
101663
  exports.registerSunBurstSeries = registerSunBurstSeries;
101286
101664
  exports.registerSunburstChart = registerSunburstChart;
101287
101665
  exports.registerSymbolMark = registerSymbolMark;
101666
+ exports.registerTTEnv = registerTTEnv;
101288
101667
  exports.registerTaroEnv = registerTaroEnv;
101289
101668
  exports.registerTextMark = registerTextMark;
101290
101669
  exports.registerTheme = registerTheme;