@visactor/vrender 0.22.0-vstory.11 → 0.22.0-vstory.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -577,17 +577,17 @@
577
577
  const VGlobal = Symbol.for("VGlobal");
578
578
  const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
579
579
 
580
- var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
580
+ var __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
581
581
  var d,
582
582
  c = arguments.length,
583
583
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
584
584
  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);
585
585
  return c > 3 && r && Object.defineProperty(target, key, r), r;
586
586
  },
587
- __metadata$1i = undefined && undefined.__metadata || function (k, v) {
587
+ __metadata$1j = undefined && undefined.__metadata || function (k, v) {
588
588
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
589
589
  },
590
- __param$U = undefined && undefined.__param || function (paramIndex, decorator) {
590
+ __param$V = undefined && undefined.__param || function (paramIndex, decorator) {
591
591
  return function (target, key) {
592
592
  decorator(target, key, paramIndex);
593
593
  };
@@ -621,6 +621,12 @@
621
621
  get env() {
622
622
  return this._env;
623
623
  }
624
+ get isImageAnonymous() {
625
+ return this._isImageAnonymous;
626
+ }
627
+ set isImageAnonymous(isImageAnonymous) {
628
+ this._isImageAnonymous = isImageAnonymous;
629
+ }
624
630
  get devicePixelRatio() {
625
631
  return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
626
632
  }
@@ -655,7 +661,7 @@
655
661
  this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
656
662
  }
657
663
  constructor(contributions) {
658
- this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
664
+ this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
659
665
  onSetEnv: new SyncHook(["lastEnv", "env", "global"])
660
666
  }, this.measureTextMethod = "native", this.optimizeVisible = !1;
661
667
  }
@@ -783,7 +789,7 @@
783
789
  return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
784
790
  }
785
791
  };
786
- exports.DefaultGlobal = __decorate$1J([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(EnvContribution)), __metadata$1i("design:paramtypes", [Object])], exports.DefaultGlobal);
792
+ exports.DefaultGlobal = __decorate$1L([injectable(), __param$V(0, inject(ContributionProvider)), __param$V(0, named(EnvContribution)), __metadata$1j("design:paramtypes", [Object])], exports.DefaultGlobal);
787
793
 
788
794
  exports.MeasureModeEnum = void 0;
789
795
  !function (MeasureModeEnum) {
@@ -3470,7 +3476,7 @@
3470
3476
  default:
3471
3477
  if (this._t <= 0) this.context.lineTo(this._x, y, !1 !== this._lastDefined && !1 !== p.defined, this.lastPoint), this.context.lineTo(x, y, !1 !== this._lastDefined && !1 !== p.defined, p);else {
3472
3478
  const x1 = this._x * (1 - this._t) + x * this._t;
3473
- this.context.lineTo(x1, this._y, !1 !== this._lastDefined && !1 !== p.defined, this.lastPoint), this.context.lineTo(x1, y, !1 !== this._lastDefined && !1 !== p.defined, p);
3479
+ .5 === this._t ? this.context.lineTo(x1, this._y, !1 !== this._lastDefined, this.lastPoint) : this.context.lineTo(x1, this._y, !1 !== this._lastDefined && !1 !== p.defined, this.lastPoint), this.context.lineTo(x1, y, !1 !== this._lastDefined && !1 !== p.defined, p);
3474
3480
  }
3475
3481
  }
3476
3482
  this._lastDefined = p.defined, this._x = x, this._y = y, this.lastPoint = p;
@@ -4300,6 +4306,7 @@
4300
4306
  const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
4301
4307
  editable: !1,
4302
4308
  editOptions: null,
4309
+ ascentDescentMode: "actual",
4303
4310
  width: 300,
4304
4311
  height: 300,
4305
4312
  ellipsis: !0,
@@ -4347,7 +4354,7 @@
4347
4354
  class Application {}
4348
4355
  const application = new Application();
4349
4356
 
4350
- const parse = function () {
4357
+ const parse$1 = function () {
4351
4358
  const tokens = {
4352
4359
  linearGradient: /^(linear\-gradient)/i,
4353
4360
  radialGradient: /^(radial\-gradient)/i,
@@ -4500,7 +4507,7 @@
4500
4507
  }
4501
4508
  static Parse(c) {
4502
4509
  if (GradientParser.IsGradientStr(c)) try {
4503
- const datum = parse(c)[0];
4510
+ const datum = parse$1(c)[0];
4504
4511
  if (datum) {
4505
4512
  if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
4506
4513
  if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
@@ -4747,17 +4754,20 @@
4747
4754
  return i + 1;
4748
4755
  }
4749
4756
  function measureTextCanvas(text, character) {
4757
+ let mode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "actual";
4750
4758
  const measurement = application.graphicUtil.textMeasure.measureText(text, character),
4751
4759
  result = {
4752
4760
  ascent: 0,
4753
4761
  height: 0,
4754
4762
  descent: 0,
4755
4763
  width: 0
4756
- };
4757
- return "number" != typeof measurement.fontBoundingBoxAscent || "number" != typeof measurement.fontBoundingBoxDescent ? (result.width = measurement.width, result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = measurement.width, result.height = Math.floor(measurement.fontBoundingBoxAscent + measurement.fontBoundingBoxDescent), result.ascent = Math.floor(measurement.fontBoundingBoxAscent), result.descent = result.height - result.ascent), result;
4764
+ },
4765
+ ascent = "actual" === mode ? measurement.actualBoundingBoxAscent : measurement.fontBoundingBoxAscent,
4766
+ descent = "actual" === mode ? measurement.actualBoundingBoxDescent : measurement.fontBoundingBoxDescent;
4767
+ return "number" != typeof ascent || "number" != typeof descent ? (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(ascent + descent), result.ascent = Math.floor(ascent), result.descent = result.height - result.ascent), result;
4758
4768
  }
4759
4769
 
4760
- var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4770
+ var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4761
4771
  var d,
4762
4772
  c = arguments.length,
4763
4773
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5139,9 +5149,9 @@
5139
5149
  return data.str = data.result, data.width += suffixWidth, data;
5140
5150
  }
5141
5151
  };
5142
- ATextMeasure = __decorate$1I([injectable()], ATextMeasure);
5152
+ ATextMeasure = __decorate$1K([injectable()], ATextMeasure);
5143
5153
 
5144
- var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5154
+ var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5145
5155
  var d,
5146
5156
  c = arguments.length,
5147
5157
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5150,7 +5160,7 @@
5150
5160
  };
5151
5161
  const TextMeasureContribution = Symbol.for("TextMeasureContribution");
5152
5162
  exports.DefaultTextMeasureContribution = class DefaultTextMeasureContribution extends ATextMeasure {};
5153
- exports.DefaultTextMeasureContribution = __decorate$1H([injectable()], exports.DefaultTextMeasureContribution);
5163
+ exports.DefaultTextMeasureContribution = __decorate$1J([injectable()], exports.DefaultTextMeasureContribution);
5154
5164
 
5155
5165
  const container = new Container();
5156
5166
 
@@ -5564,14 +5574,14 @@
5564
5574
  }
5565
5575
  const canvasAllocate = new DefaultCanvasAllocate();
5566
5576
 
5567
- var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5577
+ var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5568
5578
  var d,
5569
5579
  c = arguments.length,
5570
5580
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5571
5581
  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);
5572
5582
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5573
5583
  },
5574
- __metadata$1h = undefined && undefined.__metadata || function (k, v) {
5584
+ __metadata$1i = undefined && undefined.__metadata || function (k, v) {
5575
5585
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
5576
5586
  };
5577
5587
  const VWindow = Symbol.for("VWindow");
@@ -5708,19 +5718,19 @@
5708
5718
  return this._handler.getTopLeft(baseWindow);
5709
5719
  }
5710
5720
  };
5711
- exports.DefaultWindow = __decorate$1G([injectable(), __metadata$1h("design:paramtypes", [])], exports.DefaultWindow);
5721
+ exports.DefaultWindow = __decorate$1I([injectable(), __metadata$1i("design:paramtypes", [])], exports.DefaultWindow);
5712
5722
 
5713
- var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5723
+ var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5714
5724
  var d,
5715
5725
  c = arguments.length,
5716
5726
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5717
5727
  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);
5718
5728
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5719
5729
  },
5720
- __metadata$1g = undefined && undefined.__metadata || function (k, v) {
5730
+ __metadata$1h = undefined && undefined.__metadata || function (k, v) {
5721
5731
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
5722
5732
  },
5723
- __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
5733
+ __param$U = undefined && undefined.__param || function (paramIndex, decorator) {
5724
5734
  return function (target, key) {
5725
5735
  decorator(target, key, paramIndex);
5726
5736
  };
@@ -5815,7 +5825,7 @@
5815
5825
  return c.nativeCanvas ? c.nativeCanvas : null;
5816
5826
  }
5817
5827
  };
5818
- exports.DefaultGraphicUtil = __decorate$1F([injectable(), __param$T(0, inject(ContributionProvider)), __param$T(0, named(TextMeasureContribution)), __metadata$1g("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
5828
+ exports.DefaultGraphicUtil = __decorate$1H([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(TextMeasureContribution)), __metadata$1h("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
5819
5829
  var TransformMode;
5820
5830
  !function (TransformMode) {
5821
5831
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -5873,7 +5883,7 @@
5873
5883
  return this;
5874
5884
  }
5875
5885
  };
5876
- exports.DefaultTransformUtil = __decorate$1F([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultTransformUtil);
5886
+ exports.DefaultTransformUtil = __decorate$1H([injectable(), __metadata$1h("design:paramtypes", [])], exports.DefaultTransformUtil);
5877
5887
 
5878
5888
  const defaultThemeObj = {
5879
5889
  arc: DefaultArcAttribute,
@@ -7386,7 +7396,7 @@
7386
7396
  let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Generator.GenAutoIncrementId();
7387
7397
  let timeline = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTimeline;
7388
7398
  let slience = arguments.length > 2 ? arguments[2] : undefined;
7389
- this.id = id, this.timeline = timeline, this.status = exports.AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this), this.slience = slience;
7399
+ this.id = id, this.timeline = timeline || defaultTimeline, this.status = exports.AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this), this.slience = slience;
7390
7400
  }
7391
7401
  setTimeline(timeline) {
7392
7402
  timeline !== this.timeline && (this.timeline.removeAnimate(this, !1), timeline.addAnimate(this));
@@ -7876,7 +7886,8 @@
7876
7886
  }
7877
7887
  onEnd() {}
7878
7888
  onUpdate(end, ratio, out) {
7879
- !1 !== this.valid && (out.text = end ? this.toNumber : (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(this.decimalLength));
7889
+ var _a;
7890
+ !1 !== this.valid && (out.text = end ? null === (_a = this.to) || void 0 === _a ? void 0 : _a.text : (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(this.decimalLength));
7880
7891
  }
7881
7892
  }
7882
7893
  var Direction;
@@ -9722,7 +9733,7 @@
9722
9733
  }
9723
9734
  static GetFile(url, type) {
9724
9735
  let data = ResourceLoader.cache.get(url);
9725
- return data ? "init" === data.loadState || "fail" === data.loadState ? Promise.reject() : "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
9736
+ return data ? "fail" === data.loadState ? Promise.reject() : "init" === data.loadState || "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
9726
9737
  type: type,
9727
9738
  loadState: "init"
9728
9739
  }, ResourceLoader.cache.set(url, data), "arrayBuffer" === type ? data.dataPromise = application.global.loadArrayBuffer(url) : "blob" === type ? data.dataPromise = application.global.loadBlob(url) : "json" === type && (data.dataPromise = application.global.loadJson(url)), data.dataPromise.then(data => data.data));
@@ -10119,7 +10130,7 @@
10119
10130
  null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame), null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove), animate.interpolateFunc = params.interpolate;
10120
10131
  }
10121
10132
  return this.animates.set(animate.id, animate), animate.onRemove(() => {
10122
- animate.stop(), this.animates.delete(animate.id);
10133
+ this.animates.delete(animate.id);
10123
10134
  }), animate;
10124
10135
  }
10125
10136
  onAttributeUpdate(context) {
@@ -10323,7 +10334,7 @@
10323
10334
  if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
10324
10335
  const timeline = stage.getTimeline();
10325
10336
  this.animates.forEach(a => {
10326
- a.timeline === defaultTimeline && a.setTimeline(timeline);
10337
+ a.setTimeline(timeline);
10327
10338
  });
10328
10339
  }
10329
10340
  this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
@@ -10427,7 +10438,7 @@
10427
10438
  return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
10428
10439
  }
10429
10440
  detachShadow() {
10430
- this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
10441
+ this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
10431
10442
  }
10432
10443
  toJson() {
10433
10444
  return {
@@ -10479,7 +10490,7 @@
10479
10490
  });
10480
10491
  }
10481
10492
  release() {
10482
- this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
10493
+ this.releaseStatus = "released", application.graphicService.onRelease(this);
10483
10494
  }
10484
10495
  _emitCustomEvent(type, context) {
10485
10496
  var _a, _b;
@@ -11055,11 +11066,6 @@
11055
11066
  getNoWorkAnimateAttr() {
11056
11067
  return Group.NOWORK_ANIMATE_ATTR;
11057
11068
  }
11058
- release(all) {
11059
- all && this.forEachChildren(g => {
11060
- g.release(all);
11061
- }), super.release();
11062
- }
11063
11069
  }
11064
11070
  Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
11065
11071
  function createGroup(attributes) {
@@ -11181,14 +11187,14 @@
11181
11187
  const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
11182
11188
 
11183
11189
  var DefaultLayerService_1,
11184
- __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11190
+ __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11185
11191
  var d,
11186
11192
  c = arguments.length,
11187
11193
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11188
11194
  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);
11189
11195
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11190
11196
  },
11191
- __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11197
+ __metadata$1g = undefined && undefined.__metadata || function (k, v) {
11192
11198
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11193
11199
  };
11194
11200
  exports.DefaultLayerService = DefaultLayerService_1 = class {
@@ -11252,7 +11258,7 @@
11252
11258
  this.layerMap.delete(stage);
11253
11259
  }
11254
11260
  };
11255
- exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultLayerService);
11261
+ exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1G([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultLayerService);
11256
11262
 
11257
11263
  var coreModule = new ContainerModule(bind => {
11258
11264
  bind(VGlobal).to(exports.DefaultGlobal).inSingletonScope(), bind(VWindow).to(exports.DefaultWindow), bind(GraphicUtil).to(exports.DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(exports.DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(exports.DefaultLayerService).inSingletonScope();
@@ -11791,17 +11797,17 @@
11791
11797
  const matrixAllocate = new DefaultMatrixAllocate();
11792
11798
  const mat4Allocate = new DefaultMat4Allocate();
11793
11799
 
11794
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11800
+ var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11795
11801
  var d,
11796
11802
  c = arguments.length,
11797
11803
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11798
11804
  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);
11799
11805
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11800
11806
  },
11801
- __metadata$1e = undefined && undefined.__metadata || function (k, v) {
11807
+ __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11802
11808
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11803
11809
  },
11804
- __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
11810
+ __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
11805
11811
  return function (target, key) {
11806
11812
  decorator(target, key, paramIndex);
11807
11813
  };
@@ -12013,7 +12019,7 @@
12013
12019
  };
12014
12020
  }
12015
12021
  };
12016
- exports.DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultGraphicService);
12022
+ exports.DefaultGraphicService = __decorate$1F([injectable(), __param$T(0, inject(GraphicCreator$1)), __metadata$1f("design:paramtypes", [Object])], exports.DefaultGraphicService);
12017
12023
 
12018
12024
  const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
12019
12025
  const {
@@ -13451,7 +13457,7 @@
13451
13457
  } = attribute,
13452
13458
  b = aabbBounds;
13453
13459
  return points.forEach(p => {
13454
- !1 === p.defined && "zero" !== connectedType && "connect" !== connectedType || b.add(p.x, p.y);
13460
+ !1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
13455
13461
  }), b;
13456
13462
  }
13457
13463
  updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) {
@@ -13462,7 +13468,7 @@
13462
13468
  b = aabbBounds;
13463
13469
  return segments.forEach(s => {
13464
13470
  s.points.forEach(p => {
13465
- !1 === p.defined && "zero" !== connectedType && "connect" !== connectedType || b.add(p.x, p.y);
13471
+ !1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
13466
13472
  });
13467
13473
  }), b;
13468
13474
  }
@@ -13893,16 +13899,20 @@
13893
13899
  }
13894
13900
 
13895
13901
  function getFixedLRTB(left, right, top, bottom) {
13902
+ const leftInt = Math.round(left),
13903
+ topInt = Math.round(top),
13904
+ rightInt = Math.round(right),
13905
+ bottomInt = Math.round(bottom);
13896
13906
  return {
13897
- left: Math.round(left),
13898
- top: Math.round(top),
13899
- right: Math.round(right),
13900
- bottom: Math.round(bottom)
13907
+ left: left > leftInt ? leftInt : leftInt - .5,
13908
+ top: top > topInt ? topInt : topInt - .5,
13909
+ right: rightInt > right ? rightInt : rightInt + .5,
13910
+ bottom: bottomInt > bottom ? bottomInt : bottomInt + .5
13901
13911
  };
13902
13912
  }
13903
13913
  class Paragraph {
13904
- constructor(text, newLine, character) {
13905
- this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
13914
+ constructor(text, newLine, character, ascentDescentMode) {
13915
+ this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic", this.ascentDescentMode = ascentDescentMode;
13906
13916
  const lineHeight = calculateLineHeight(character.lineHeight, this.fontSize);
13907
13917
  this.lineHeight = "number" == typeof lineHeight ? lineHeight > this.fontSize ? lineHeight : this.fontSize : Math.floor(1.2 * this.fontSize), this.height = this.lineHeight;
13908
13918
  const {
@@ -13910,7 +13920,7 @@
13910
13920
  height: height,
13911
13921
  descent: descent,
13912
13922
  width: width
13913
- } = measureTextCanvas(text, character);
13923
+ } = measureTextCanvas(text, character, this.ascentDescentMode);
13914
13924
  let halfDetaHeight = 0,
13915
13925
  deltaAscent = 0,
13916
13926
  deltaDescent = 0;
@@ -13919,7 +13929,7 @@
13919
13929
  updateWidth() {
13920
13930
  const {
13921
13931
  width: width
13922
- } = measureTextCanvas(this.text, this.character);
13932
+ } = measureTextCanvas(this.text, this.character, this.ascentDescentMode);
13923
13933
  this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
13924
13934
  }
13925
13935
  drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
@@ -13936,16 +13946,24 @@
13936
13946
  if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
13937
13947
  const {
13938
13948
  width: width
13939
- } = measureTextCanvas(this.text.slice(index), this.character);
13949
+ } = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
13940
13950
  "vertical" === direction || (left -= this.ellipsisWidth - width);
13941
13951
  }
13942
13952
  }
13943
13953
  }
13954
+ switch (this.character.script) {
13955
+ case "super":
13956
+ baseline -= this.ascent * (1 / 3);
13957
+ break;
13958
+ case "sub":
13959
+ baseline += this.descent / 2;
13960
+ }
13961
+ "vertical" === direction && (ctx.save(), ctx.rotateAbout(Math.PI / 2, left, baseline), ctx.translate(-this.heightOrigin || -this.lineHeight / 2, -this.descent / 2), ctx.translate(left, baseline), left = 0, baseline = 0);
13962
+ const fillStyle = ctx.fillStyle,
13963
+ globalAlpha = ctx.globalAlpha;
13964
+ ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
13944
13965
  const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
13945
- return Object.assign(Object.assign({}, lrtb), {
13946
- fillStyle: this.character.background,
13947
- globalAlpha: this.character.backgroundOpacity
13948
- });
13966
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
13949
13967
  }
13950
13968
  draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13951
13969
  let baseline = top + ascent,
@@ -13960,7 +13978,7 @@
13960
13978
  if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
13961
13979
  const {
13962
13980
  width: width
13963
- } = measureTextCanvas(this.text.slice(index), this.character);
13981
+ } = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
13964
13982
  "vertical" === direction || (left -= this.ellipsisWidth - width);
13965
13983
  }
13966
13984
  }
@@ -13980,21 +13998,21 @@
13980
13998
  if (this.character.underline) {
13981
13999
  const top = 1 + baseline,
13982
14000
  lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13983
- ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
14001
+ ctx.fillRect(lrtb.left, 1 + baseline, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
13984
14002
  }
13985
14003
  if (this.character.lineThrough) {
13986
14004
  const top = 1 + baseline - this.ascent / 2,
13987
14005
  lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13988
- ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
14006
+ ctx.fillRect(lrtb.left, 1 + baseline - this.ascent / 2, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
13989
14007
  }
13990
14008
  } else if ("underline" === this.character.textDecoration) {
13991
14009
  const top = 1 + baseline,
13992
14010
  lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13993
- ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
14011
+ ctx.fillRect(lrtb.left, 1 + baseline, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
13994
14012
  } else if ("line-through" === this.character.textDecoration) {
13995
14013
  const top = 1 + baseline - this.ascent / 2,
13996
14014
  lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13997
- ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
14015
+ ctx.fillRect(lrtb.left, 1 + baseline - this.ascent / 2, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
13998
14016
  }
13999
14017
  "vertical" === direction && ctx.restore();
14000
14018
  }
@@ -14008,7 +14026,7 @@
14008
14026
  text = text.slice(0, index), text += this.ellipsisStr;
14009
14027
  const {
14010
14028
  width: measureWidth
14011
- } = measureTextCanvas(this.text.slice(index), this.character);
14029
+ } = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
14012
14030
  return width + this.ellipsisWidth - measureWidth;
14013
14031
  }
14014
14032
  return width;
@@ -14017,7 +14035,7 @@
14017
14035
  function seperateParagraph(paragraph, index) {
14018
14036
  const text1 = paragraph.text.slice(0, index),
14019
14037
  text2 = paragraph.text.slice(index);
14020
- return [new Paragraph(text1, paragraph.newLine, paragraph.character), new Paragraph(text2, !0, paragraph.character)];
14038
+ return [new Paragraph(text1, paragraph.newLine, paragraph.character, paragraph.ascentDescentMode), new Paragraph(text2, !0, paragraph.character, paragraph.ascentDescentMode)];
14021
14039
  }
14022
14040
 
14023
14041
  const IMAGE_UPDATE_TAG_KEY = ["width", "height", "image", ...GRAPHIC_UPDATE_TAG_KEY];
@@ -14206,7 +14224,7 @@
14206
14224
  paragraph.ellipsisStr = ellipsis;
14207
14225
  const {
14208
14226
  width: width
14209
- } = measureTextCanvas(ellipsis, paragraph.character),
14227
+ } = measureTextCanvas(ellipsis, paragraph.character, paragraph.ascentDescentMode),
14210
14228
  ellipsisWidth = width || 0;
14211
14229
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
14212
14230
  lastLine && (paragraph.ellipsis = "add");
@@ -14219,19 +14237,8 @@
14219
14237
  paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
14220
14238
  }
14221
14239
  }
14222
- let fillStyle = "",
14223
- globalAlpha = -1,
14224
- currBgList = [];
14225
- const bgList = [currBgList];
14226
14240
  this.paragraphs.forEach((paragraph, index) => {
14227
- if (paragraph instanceof RichTextIcon) return;
14228
- const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14229
- data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
14230
- }), bgList.forEach(bg => {
14231
- if (0 === bg.length) return;
14232
- const data = bg[0],
14233
- end = bg[bg.length - 1];
14234
- ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
14241
+ paragraph instanceof RichTextIcon || paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14235
14242
  }), this.paragraphs.forEach((paragraph, index) => {
14236
14243
  if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
14237
14244
  x: x + paragraph._x,
@@ -14253,7 +14260,7 @@
14253
14260
  if (paragraph instanceof RichTextIcon) break;
14254
14261
  const {
14255
14262
  width: width
14256
- } = measureTextCanvas(ellipsis, paragraph.character),
14263
+ } = measureTextCanvas(ellipsis, paragraph.character, paragraph.ascentDescentMode),
14257
14264
  ellipsisWidth = width || 0;
14258
14265
  if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
14259
14266
  paragraph.ellipsis = "add", paragraph.ellipsisWidth = ellipsisWidth;
@@ -14394,13 +14401,7 @@
14394
14401
  }
14395
14402
  return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
14396
14403
  }
14397
- static splitEmoji(text) {
14398
- return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
14399
- }
14400
14404
  static splitText(text) {
14401
- try {
14402
- return this.splitEmoji(text);
14403
- } catch (e) {}
14404
14405
  return Array.from(text);
14405
14406
  }
14406
14407
  static TransformTextConfig2SingleCharacter(textConfig) {
@@ -14526,7 +14527,8 @@
14526
14527
  layoutDirection: layoutDirection,
14527
14528
  singleLine: singleLine,
14528
14529
  disableAutoWrapLine: disableAutoWrapLine,
14529
- editable: editable
14530
+ editable: editable,
14531
+ ascentDescentMode: ascentDescentMode
14530
14532
  } = this.attribute;
14531
14533
  let {
14532
14534
  textConfig: _tc = []
@@ -14549,8 +14551,8 @@
14549
14551
  const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
14550
14552
  if (isNumber$1(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
14551
14553
  const textParts = richTextConfig.text.split("\n");
14552
- for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j], 0 !== j, richTextConfig));
14553
- } else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig));
14554
+ for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j], 0 !== j, richTextConfig, ascentDescentMode));
14555
+ } else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig, ascentDescentMode));
14554
14556
  }
14555
14557
  const maxWidthFinite = "number" == typeof maxWidth && Number.isFinite(maxWidth) && maxWidth > 0,
14556
14558
  maxHeightFinite = "number" == typeof maxHeight && Number.isFinite(maxHeight) && maxHeight > 0,
@@ -15414,17 +15416,17 @@
15414
15416
  }
15415
15417
  }
15416
15418
 
15417
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15419
+ var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15418
15420
  var d,
15419
15421
  c = arguments.length,
15420
15422
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15421
15423
  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);
15422
15424
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15423
15425
  },
15424
- __metadata$1d = undefined && undefined.__metadata || function (k, v) {
15426
+ __metadata$1e = undefined && undefined.__metadata || function (k, v) {
15425
15427
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15426
15428
  },
15427
- __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
15429
+ __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
15428
15430
  return function (target, key) {
15429
15431
  decorator(target, key, paramIndex);
15430
15432
  };
@@ -15521,7 +15523,7 @@
15521
15523
  });
15522
15524
  }
15523
15525
  };
15524
- exports.DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
15526
+ exports.DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
15525
15527
 
15526
15528
  function formatRatio(ratio) {
15527
15529
  return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
@@ -15869,7 +15871,7 @@
15869
15871
  return !edgeCb && path.closePath(), path;
15870
15872
  }
15871
15873
 
15872
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15874
+ var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15873
15875
  var d,
15874
15876
  c = arguments.length,
15875
15877
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15934,7 +15936,7 @@
15934
15936
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
15935
15937
  }
15936
15938
  };
15937
- exports.SplitRectBeforeRenderContribution = __decorate$1B([injectable()], exports.SplitRectBeforeRenderContribution);
15939
+ exports.SplitRectBeforeRenderContribution = __decorate$1D([injectable()], exports.SplitRectBeforeRenderContribution);
15938
15940
  exports.SplitRectAfterRenderContribution = class SplitRectAfterRenderContribution {
15939
15941
  constructor() {
15940
15942
  this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -15971,7 +15973,7 @@
15971
15973
  }
15972
15974
  }
15973
15975
  };
15974
- exports.SplitRectAfterRenderContribution = __decorate$1B([injectable()], exports.SplitRectAfterRenderContribution);
15976
+ exports.SplitRectAfterRenderContribution = __decorate$1D([injectable()], exports.SplitRectAfterRenderContribution);
15975
15977
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
15976
15978
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
15977
15979
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -15980,8 +15982,8 @@
15980
15982
  constructor() {
15981
15983
  super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
15982
15984
  }
15983
- drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15984
- return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15985
+ drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15986
+ return super.drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15985
15987
  }
15986
15988
  }
15987
15989
  const defaultImageRenderContribution = new DefaultImageRenderContribution();
@@ -16076,17 +16078,17 @@
16076
16078
  }
16077
16079
  }
16078
16080
 
16079
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16081
+ var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16080
16082
  var d,
16081
16083
  c = arguments.length,
16082
16084
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16083
16085
  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);
16084
16086
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16085
16087
  },
16086
- __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16088
+ __metadata$1d = undefined && undefined.__metadata || function (k, v) {
16087
16089
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16088
16090
  },
16089
- __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16091
+ __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
16090
16092
  return function (target, key) {
16091
16093
  decorator(target, key, paramIndex);
16092
16094
  };
@@ -16250,19 +16252,19 @@
16250
16252
  this._draw(arc, arcAttribute, !1, drawContext, params);
16251
16253
  }
16252
16254
  };
16253
- exports.DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
16255
+ exports.DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
16254
16256
 
16255
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16257
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16256
16258
  var d,
16257
16259
  c = arguments.length,
16258
16260
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16259
16261
  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);
16260
16262
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16261
16263
  },
16262
- __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16264
+ __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16263
16265
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16264
16266
  },
16265
- __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16267
+ __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16266
16268
  return function (target, key) {
16267
16269
  decorator(target, key, paramIndex);
16268
16270
  };
@@ -16303,7 +16305,7 @@
16303
16305
  this._draw(circle, circleAttribute, !1, drawContext, params);
16304
16306
  }
16305
16307
  };
16306
- exports.DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
16308
+ exports.DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
16307
16309
 
16308
16310
  function drawSegItem(ctx, curve, endPercent, params) {
16309
16311
  if (!curve.p1) return;
@@ -16427,7 +16429,7 @@
16427
16429
  });
16428
16430
  }
16429
16431
 
16430
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16432
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16431
16433
  var d,
16432
16434
  c = arguments.length,
16433
16435
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16443,7 +16445,7 @@
16443
16445
  this._draw(line, lineAttribute, !1, drawContext, params);
16444
16446
  }
16445
16447
  drawSegmentItem(context, cache, fill, stroke, fillOpacity, strokeOpacity, attribute, defaultAttribute, clipRange, clipRangeByDimension, offsetX, offsetY, line, fillCb, strokeCb) {
16446
- var _a, _b, _c, _d, _e;
16448
+ var _a;
16447
16449
  if (!cache) return;
16448
16450
  context.beginPath();
16449
16451
  const z = null !== (_a = this.z) && void 0 !== _a ? _a : 0;
@@ -16456,27 +16458,7 @@
16456
16458
  x: originX = 0,
16457
16459
  x: originY = 0
16458
16460
  } = attribute;
16459
- !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), !1 !== stroke && (strokeCb ? strokeCb(context, attribute, defaultAttribute) : strokeOpacity && (context.setStrokeStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke()));
16460
- let {
16461
- connectedType: connectedType,
16462
- connectedX: connectedX,
16463
- connectedY: connectedY,
16464
- connectedStyle: connectedStyle
16465
- } = attribute;
16466
- if (isArray$1(defaultAttribute) ? (connectedType = null !== (_b = null != connectedType ? connectedType : defaultAttribute[0].connectedType) && void 0 !== _b ? _b : defaultAttribute[1].connectedType, connectedX = null !== (_c = null != connectedX ? connectedX : defaultAttribute[0].connectedX) && void 0 !== _c ? _c : defaultAttribute[1].connectedX, connectedY = null !== (_d = null != connectedY ? connectedY : defaultAttribute[0].connectedY) && void 0 !== _d ? _d : defaultAttribute[1].connectedY, connectedStyle = null !== (_e = null != connectedStyle ? connectedStyle : defaultAttribute[0].connectedStyle) && void 0 !== _e ? _e : defaultAttribute[1].connectedStyle) : (connectedType = null != connectedType ? connectedType : defaultAttribute.connectedType, connectedX = null != connectedX ? connectedX : defaultAttribute.connectedX, connectedY = null != connectedY ? connectedY : defaultAttribute.connectedY, connectedStyle = null != connectedStyle ? connectedStyle : defaultAttribute.connectedStyle), "connect" !== connectedType && "zero" !== connectedType && (connectedType = "none"), "none" !== connectedType) {
16467
- context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, cache, clipRange, clipRangeByDimension, {
16468
- offsetX: offsetX,
16469
- offsetY: offsetY,
16470
- offsetZ: z,
16471
- drawConnect: !0,
16472
- mode: connectedType,
16473
- zeroX: connectedX,
16474
- zeroY: connectedY
16475
- });
16476
- const da = [];
16477
- isArray$1(defaultAttribute) ? defaultAttribute.forEach(i => da.push(i)) : da.push(defaultAttribute), da.push(attribute), !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(line, connectedStyle, originX - offsetX, originY - offsetY, da), context.fill())), !1 !== stroke && (strokeCb ? strokeCb(context, attribute, defaultAttribute) : strokeOpacity && (context.setStrokeStyle(line, connectedStyle, originX - offsetX, originY - offsetY, da), context.stroke()));
16478
- }
16479
- return !1;
16461
+ return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), !1 !== stroke && (strokeCb ? strokeCb(context, attribute, defaultAttribute) : strokeOpacity && (context.setStrokeStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke())), !1;
16480
16462
  }
16481
16463
  drawLinearLineHighPerformance(line, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, lineAttribute, drawContext, params, fillCb, strokeCb) {
16482
16464
  var _a;
@@ -16508,7 +16490,8 @@
16508
16490
  segments: segments,
16509
16491
  points: points,
16510
16492
  closePath: closePath,
16511
- curveTension = lineAttribute.curveTension
16493
+ curveTension = lineAttribute.curveTension,
16494
+ connectedType = lineAttribute.connectedType
16512
16495
  } = line.attribute;
16513
16496
  if (!this.valid(line, lineAttribute, fillCb, strokeCb)) return;
16514
16497
  let {
@@ -16520,6 +16503,9 @@
16520
16503
  clipRangeByDimension = lineAttribute.clipRangeByDimension
16521
16504
  } = line.attribute;
16522
16505
  if (1 === clipRange && !segments && !points.some(p => !1 === p.defined) && "linear" === curveType) return this.drawLinearLineHighPerformance(line, context, !!fill, !!stroke, fillOpacity, strokeOpacity, x, y, lineAttribute, drawContext, params, fillCb, strokeCb);
16506
+ function parsePoint(points, connectedType) {
16507
+ return "none" === connectedType ? points : points.filter(p => !1 !== p.defined);
16508
+ }
16523
16509
  if (line.shouldUpdateShape()) {
16524
16510
  const {
16525
16511
  points: points,
@@ -16541,7 +16527,7 @@
16541
16527
  y: lastSeg.endY,
16542
16528
  defined: lastSeg.curves[lastSeg.curves.length - 1].defined
16543
16529
  } : index > 1 && (startPoint.x = lastSeg.endX, startPoint.y = lastSeg.endY, startPoint.defined = lastSeg.curves[lastSeg.curves.length - 1].defined);
16544
- const data = calcLineCache(seg.points, curveType, {
16530
+ const data = calcLineCache(parsePoint(seg.points, connectedType), curveType, {
16545
16531
  startPoint: startPoint,
16546
16532
  curveTension: curveTension
16547
16533
  });
@@ -16560,7 +16546,7 @@
16560
16546
  }
16561
16547
  } else {
16562
16548
  if (!points || !points.length) return line.cache = null, void line.clearUpdateShapeTag();
16563
- line.cache = calcLineCache(_points, curveType, {
16549
+ line.cache = calcLineCache(parsePoint(_points, connectedType), curveType, {
16564
16550
  curveTension: curveTension
16565
16551
  });
16566
16552
  }
@@ -16588,15 +16574,10 @@
16588
16574
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
16589
16575
  }
16590
16576
  };
16591
- exports.DefaultCanvasLineRender = __decorate$1y([injectable()], exports.DefaultCanvasLineRender);
16577
+ exports.DefaultCanvasLineRender = __decorate$1A([injectable()], exports.DefaultCanvasLineRender);
16592
16578
 
16593
16579
  function drawAreaSegments(path, segPath, percent, params) {
16594
16580
  var _a;
16595
- const {
16596
- drawConnect = !1,
16597
- mode = "none"
16598
- } = params || {};
16599
- if (drawConnect && "none" === mode) return;
16600
16581
  const {
16601
16582
  top: top,
16602
16583
  bottom: bottom
@@ -16606,34 +16587,11 @@
16606
16587
  const topList = [],
16607
16588
  bottomList = [];
16608
16589
  let lastDefined = !0;
16609
- if (drawConnect) {
16610
- let lastCurve,
16611
- lastBottomCurve,
16612
- defined0 = !0;
16613
- const n = top.curves.length;
16614
- top.curves.forEach((curve, i) => {
16615
- const bototmCurve = bottom.curves[n - i - 1];
16616
- let currentTopCurve = curve,
16617
- currentBottomCurve = bototmCurve;
16618
- if (curve.originP1 === curve.originP2) return lastCurve = curve, void (lastBottomCurve = bototmCurve);
16619
- if (lastCurve && lastCurve.originP1 === lastCurve.originP2 && (currentTopCurve = lastCurve, currentBottomCurve = lastBottomCurve), curve.defined) defined0 || (topList.push(currentTopCurve), bottomList.push(currentBottomCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0, defined0 = !defined0);else {
16620
- const {
16621
- originP1: originP1,
16622
- originP2: originP2
16623
- } = curve;
16624
- let validTopCurve, validBottomCurve;
16625
- originP1 && !1 !== originP1.defined ? (validTopCurve = currentTopCurve, validBottomCurve = currentBottomCurve) : originP1 && !1 !== originP2.defined && (validTopCurve = curve, validBottomCurve = bototmCurve), defined0 ? (defined0 = !defined0, topList.push(validTopCurve || curve), bottomList.push(validBottomCurve || bototmCurve)) : validTopCurve && (defined0 = !defined0, topList.push(validTopCurve || curve), bottomList.push(validBottomCurve || bototmCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0);
16626
- }
16627
- lastCurve = curve;
16628
- }), drawAreaConnectBlock(path, topList, bottomList, params);
16629
- } else {
16630
- for (let i = 0, n = top.curves.length; i < n; i++) {
16631
- const topCurve = top.curves[i];
16632
- lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1])), lastDefined = !lastDefined) : lastDefined && (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1]));
16633
- }
16634
- drawAreaBlock(path, topList, bottomList, params);
16590
+ for (let i = 0, n = top.curves.length; i < n; i++) {
16591
+ const topCurve = top.curves[i];
16592
+ lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1])), lastDefined = !lastDefined) : lastDefined && (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1]));
16635
16593
  }
16636
- return;
16594
+ return void drawAreaBlock(path, topList, bottomList, params);
16637
16595
  }
16638
16596
  if (percent <= 0) return;
16639
16597
  let {
@@ -16651,51 +16609,17 @@
16651
16609
  lastDefined = !0;
16652
16610
  const topList = [],
16653
16611
  bottomList = [];
16654
- let lastTopCurve,
16655
- lastBottomCurve,
16656
- defined0 = !0;
16657
16612
  for (let i = 0, n = top.curves.length; i < n; i++) {
16658
16613
  const topCurve = top.curves[i],
16659
16614
  curCurveLength = topCurve.getLength(direction),
16660
16615
  percent = (totalDrawLength - drawedLengthUntilLast) / curCurveLength;
16661
16616
  if (percent < 0) break;
16662
- if (drawedLengthUntilLast += curCurveLength, drawConnect) {
16663
- const bototmCurve = bottom.curves[n - i - 1];
16664
- let currentTopCurve = topCurve,
16665
- currentBottomCurve = bototmCurve;
16666
- if (topCurve.originP1 === topCurve.originP2) {
16667
- lastTopCurve = topCurve, lastBottomCurve = bototmCurve;
16668
- continue;
16669
- }
16670
- if (lastTopCurve && lastTopCurve.originP1 === lastTopCurve.originP2 && (currentTopCurve = lastTopCurve, currentBottomCurve = lastBottomCurve), topCurve.defined) defined0 || (topList.push(currentTopCurve), bottomList.push(currentBottomCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0, defined0 = !defined0);else {
16671
- const {
16672
- originP1: originP1,
16673
- originP2: originP2
16674
- } = topCurve;
16675
- let validTopCurve, validBottomCurve;
16676
- originP1 && !1 !== originP1.defined ? (validTopCurve = currentTopCurve, validBottomCurve = currentBottomCurve) : originP1 && !1 !== originP2.defined && (validTopCurve = topCurve, validBottomCurve = bototmCurve), defined0 ? (defined0 = !defined0, topList.push(validTopCurve || topCurve), bottomList.push(validBottomCurve || bototmCurve)) : validTopCurve && (defined0 = !defined0, topList.push(validTopCurve || topCurve), bottomList.push(validBottomCurve || bototmCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0);
16677
- }
16678
- lastTopCurve = topCurve;
16679
- } else {
16680
- let tc = null,
16681
- bc = null;
16682
- lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (tc = topCurve, bc = bottom.curves[n - i - 1]), lastDefined = !lastDefined) : lastDefined && (tc = topCurve, bc = bottom.curves[n - i - 1]), tc && bc && (percent < 1 && (tc = tc.p2 && tc.p3 ? divideCubic(tc, percent)[0] : divideLinear(tc, percent)[0], bc = bc.p2 && bc.p3 ? divideCubic(bc, 1 - percent)[1] : divideLinear(bc, 1 - percent)[1]), tc.defined = lastDefined, bc.defined = lastDefined, topList.push(tc), bottomList.push(bc)), tc = null, bc = null;
16683
- }
16617
+ drawedLengthUntilLast += curCurveLength;
16618
+ let tc = null,
16619
+ bc = null;
16620
+ lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (tc = topCurve, bc = bottom.curves[n - i - 1]), lastDefined = !lastDefined) : lastDefined && (tc = topCurve, bc = bottom.curves[n - i - 1]), tc && bc && (percent < 1 && (tc = tc.p2 && tc.p3 ? divideCubic(tc, percent)[0] : divideLinear(tc, percent)[0], bc = bc.p2 && bc.p3 ? divideCubic(bc, 1 - percent)[1] : divideLinear(bc, 1 - percent)[1]), tc.defined = lastDefined, bc.defined = lastDefined, topList.push(tc), bottomList.push(bc)), tc = null, bc = null;
16684
16621
  }
16685
- drawConnect ? drawAreaConnectBlock(path, topList, bottomList, params) : drawAreaBlock(path, topList, bottomList, params);
16686
- }
16687
- function drawAreaConnectBlock(path, topList, bottomList, params) {
16688
- if (topList.length < 2) return;
16689
- const {
16690
- offsetX = 0,
16691
- offsetY = 0,
16692
- offsetZ = 0,
16693
- mode: mode
16694
- } = params || {};
16695
- let curve = topList[0];
16696
- path.moveTo(curve.p0.x + offsetX, curve.p0.y + offsetY, offsetZ), curve = topList[topList.length - 1];
16697
- let end = curve.p3 || curve.p1;
16698
- path.lineTo(end.x + offsetX, end.y + offsetY, offsetZ), curve = bottomList[bottomList.length - 1], path.lineTo(curve.p0.x + offsetX, curve.p0.y + offsetY, offsetZ), curve = bottomList[0], end = curve.p3 || curve.p1, path.lineTo(end.x + offsetX, end.y + offsetY, offsetZ), path.closePath();
16622
+ drawAreaBlock(path, topList, bottomList, params);
16699
16623
  }
16700
16624
  function drawAreaBlock(path, topList, bottomList, params) {
16701
16625
  const {
@@ -16717,17 +16641,17 @@
16717
16641
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
16718
16642
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16719
16643
 
16720
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16644
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16721
16645
  var d,
16722
16646
  c = arguments.length,
16723
16647
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16724
16648
  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);
16725
16649
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16726
16650
  },
16727
- __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16651
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16728
16652
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16729
16653
  },
16730
- __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16654
+ __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16731
16655
  return function (target, key) {
16732
16656
  decorator(target, key, paramIndex);
16733
16657
  };
@@ -16796,7 +16720,8 @@
16796
16720
  fillOpacity = areaAttribute.fillOpacity,
16797
16721
  z = areaAttribute.z,
16798
16722
  strokeOpacity = areaAttribute.strokeOpacity,
16799
- curveTension = areaAttribute.curveTension
16723
+ curveTension = areaAttribute.curveTension,
16724
+ connectedType = areaAttribute.connectedType
16800
16725
  } = area.attribute,
16801
16726
  data = this.valid(area, areaAttribute, fillCb, strokeCb);
16802
16727
  if (!data) return;
@@ -16813,6 +16738,9 @@
16813
16738
  let {
16814
16739
  curveType = areaAttribute.curveType
16815
16740
  } = area.attribute;
16741
+ function parsePoint(points, connectedType) {
16742
+ return "connect" !== connectedType ? points : points.filter(p => !1 !== p.defined);
16743
+ }
16816
16744
  if (closePath && "linear" === curveType && (curveType = "linearClosed"), 1 === clipRange && !segments && !points.some(p => !1 === p.defined) && "linear" === curveType) return this.drawLinearAreaHighPerformance(area, context, !!fill, doStroke, fillOpacity, strokeOpacity, x, y, areaAttribute, drawContext, params, fillCb, strokeCb);
16817
16745
  if (area.shouldUpdateShape()) {
16818
16746
  if (segments && segments.length) {
@@ -16826,7 +16754,7 @@
16826
16754
  x: lastTopSeg.endX,
16827
16755
  y: lastTopSeg.endY
16828
16756
  } : index > 1 && (startPoint.x = lastTopSeg.endX, startPoint.y = lastTopSeg.endY);
16829
- const data = calcLineCache(seg.points, curveType, {
16757
+ const data = calcLineCache(parsePoint(seg.points, connectedType), curveType, {
16830
16758
  startPoint: startPoint,
16831
16759
  curveTension: curveTension
16832
16760
  });
@@ -16849,7 +16777,7 @@
16849
16777
  y: null !== (_d = endPoint.y1) && void 0 !== _d ? _d : endPoint.y
16850
16778
  });
16851
16779
  }
16852
- bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType, {
16780
+ bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(parsePoint(bottomPoints, connectedType), "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType, {
16853
16781
  curveTension: curveTension
16854
16782
  }), bottomCaches.unshift(lastBottomSeg));
16855
16783
  }
@@ -16860,11 +16788,11 @@
16860
16788
  } else {
16861
16789
  if (!points || !points.length) return area.cacheArea = null, void area.clearUpdateShapeTag();
16862
16790
  {
16863
- const topPoints = points,
16791
+ const topPoints = parsePoint(points, connectedType),
16864
16792
  bottomPoints = [];
16865
- for (let i = points.length - 1; i >= 0; i--) bottomPoints.push({
16866
- x: null !== (_e = points[i].x1) && void 0 !== _e ? _e : points[i].x,
16867
- y: null !== (_f = points[i].y1) && void 0 !== _f ? _f : points[i].y
16793
+ for (let i = topPoints.length - 1; i >= 0; i--) bottomPoints.push({
16794
+ x: null !== (_e = topPoints[i].x1) && void 0 !== _e ? _e : topPoints[i].x,
16795
+ y: null !== (_f = topPoints[i].y1) && void 0 !== _f ? _f : topPoints[i].y
16868
16796
  });
16869
16797
  const topCache = calcLineCache(topPoints, curveType, {
16870
16798
  curveTension: curveTension
@@ -16906,20 +16834,10 @@
16906
16834
  this._draw(area, areaAttribute, !1, drawContext, params);
16907
16835
  }
16908
16836
  drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb) {
16909
- let ret = !1;
16910
- return ret = ret || this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, !1, fillCb, strokeCb), ret = ret || this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, !0, fillCb, strokeCb), ret;
16837
+ return this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb);
16911
16838
  }
16912
- _drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, connect, fillCb, strokeCb) {
16913
- var _a, _b, _c, _d;
16839
+ _drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb) {
16914
16840
  if (!(cache && cache.top && cache.bottom && cache.top.curves && cache.top.curves.length && cache.bottom.curves && cache.bottom.curves.length)) return;
16915
- let {
16916
- connectedType: connectedType,
16917
- connectedX: connectedX,
16918
- connectedY: connectedY,
16919
- connectedStyle: connectedStyle
16920
- } = attribute;
16921
- const da = [];
16922
- if (connect && (isArray$1(defaultAttribute) ? (connectedType = null !== (_a = null != connectedType ? connectedType : defaultAttribute[0].connectedType) && void 0 !== _a ? _a : defaultAttribute[1].connectedType, connectedX = null !== (_b = null != connectedX ? connectedX : defaultAttribute[0].connectedX) && void 0 !== _b ? _b : defaultAttribute[1].connectedX, connectedY = null !== (_c = null != connectedY ? connectedY : defaultAttribute[0].connectedY) && void 0 !== _c ? _c : defaultAttribute[1].connectedY, connectedStyle = null !== (_d = null != connectedStyle ? connectedStyle : defaultAttribute[0].connectedStyle) && void 0 !== _d ? _d : defaultAttribute[1].connectedStyle) : (connectedType = null != connectedType ? connectedType : defaultAttribute.connectedType, connectedX = null != connectedX ? connectedX : defaultAttribute.connectedX, connectedY = null != connectedY ? connectedY : defaultAttribute.connectedY, connectedStyle = null != connectedStyle ? connectedStyle : defaultAttribute.connectedStyle), "connect" !== connectedType && "zero" !== connectedType && (connectedType = "none"), isArray$1(defaultAttribute) ? defaultAttribute.forEach(i => da.push(i)) : da.push(defaultAttribute), da.push(attribute)), connect && "none" === connectedType) return !1;
16923
16841
  context.beginPath();
16924
16842
  const {
16925
16843
  points: points,
@@ -16938,11 +16856,7 @@
16938
16856
  offsetX: offsetX,
16939
16857
  offsetY: offsetY,
16940
16858
  offsetZ: offsetZ,
16941
- direction: direction,
16942
- drawConnect: connect,
16943
- mode: connectedType,
16944
- zeroX: connectedX,
16945
- zeroY: connectedY
16859
+ direction: direction
16946
16860
  }), this.beforeRenderStep(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
16947
16861
  attribute: attribute
16948
16862
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute);
@@ -16950,7 +16864,7 @@
16950
16864
  x: originX = 0,
16951
16865
  x: originY = 0
16952
16866
  } = attribute;
16953
- return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area, connect ? connectedStyle : attribute, originX - offsetX, originY - offsetY, connect ? da : defaultAttribute), context.fill())), this.afterRenderStep(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
16867
+ return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), this.afterRenderStep(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
16954
16868
  attribute: attribute
16955
16869
  }), (() => {
16956
16870
  if (!1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
@@ -16960,32 +16874,28 @@
16960
16874
  isArray$1(stroke) && (stroke[0] || stroke[2]) && !1 === stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, direction === exports.Direction.ROW ? "x" : "y", {
16961
16875
  offsetX: offsetX,
16962
16876
  offsetY: offsetY,
16963
- offsetZ: offsetZ,
16964
- drawConnect: connect,
16965
- mode: connectedType,
16966
- zeroX: connectedX,
16967
- zeroY: connectedY
16968
- })), context.setStrokeStyle(area, connect ? connectedStyle : attribute, originX - offsetX, originY - offsetY, connect ? da : defaultAttribute), context.stroke();
16877
+ offsetZ: offsetZ
16878
+ })), context.setStrokeStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke();
16969
16879
  }
16970
16880
  })(), !1;
16971
16881
  }
16972
16882
  };
16973
- exports.DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
16883
+ exports.DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
16974
16884
 
16975
16885
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
16976
16886
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16977
16887
 
16978
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16888
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16979
16889
  var d,
16980
16890
  c = arguments.length,
16981
16891
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16982
16892
  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);
16983
16893
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16984
16894
  },
16985
- __metadata$19 = undefined && undefined.__metadata || function (k, v) {
16895
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16986
16896
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16987
16897
  },
16988
- __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
16898
+ __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16989
16899
  return function (target, key) {
16990
16900
  decorator(target, key, paramIndex);
16991
16901
  };
@@ -17029,19 +16939,19 @@
17029
16939
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
17030
16940
  }
17031
16941
  };
17032
- exports.DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
16942
+ exports.DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
17033
16943
 
17034
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16944
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17035
16945
  var d,
17036
16946
  c = arguments.length,
17037
16947
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17038
16948
  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);
17039
16949
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17040
16950
  },
17041
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
16951
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
17042
16952
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17043
16953
  },
17044
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
16954
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
17045
16955
  return function (target, key) {
17046
16956
  decorator(target, key, paramIndex);
17047
16957
  };
@@ -17101,19 +17011,19 @@
17101
17011
  this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
17102
17012
  }
17103
17013
  };
17104
- exports.DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
17014
+ exports.DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
17105
17015
 
17106
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17016
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17107
17017
  var d,
17108
17018
  c = arguments.length,
17109
17019
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17110
17020
  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);
17111
17021
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17112
17022
  },
17113
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17023
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
17114
17024
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17115
17025
  },
17116
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17026
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
17117
17027
  return function (target, key) {
17118
17028
  decorator(target, key, paramIndex);
17119
17029
  };
@@ -17184,7 +17094,7 @@
17184
17094
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
17185
17095
  }
17186
17096
  };
17187
- exports.DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
17097
+ exports.DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
17188
17098
 
17189
17099
  class DefaultBoundsAllocate {
17190
17100
  constructor() {
@@ -17273,17 +17183,17 @@
17273
17183
  }
17274
17184
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
17275
17185
 
17276
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17186
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17277
17187
  var d,
17278
17188
  c = arguments.length,
17279
17189
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17280
17190
  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);
17281
17191
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17282
17192
  },
17283
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17193
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17284
17194
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17285
17195
  },
17286
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17196
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17287
17197
  return function (target, key) {
17288
17198
  decorator(target, key, paramIndex);
17289
17199
  };
@@ -17422,9 +17332,9 @@
17422
17332
  }
17423
17333
  }
17424
17334
  };
17425
- exports.DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
17335
+ exports.DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
17426
17336
 
17427
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17337
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17428
17338
  var d,
17429
17339
  c = arguments.length,
17430
17340
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17432,7 +17342,7 @@
17432
17342
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17433
17343
  };
17434
17344
  exports.AbstractGraphicRender = class AbstractGraphicRender {};
17435
- exports.AbstractGraphicRender = __decorate$1s([injectable()], exports.AbstractGraphicRender);
17345
+ exports.AbstractGraphicRender = __decorate$1u([injectable()], exports.AbstractGraphicRender);
17436
17346
 
17437
17347
  function drawPolygon(path, points, x, y) {
17438
17348
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -17488,17 +17398,17 @@
17488
17398
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
17489
17399
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
17490
17400
 
17491
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17401
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17492
17402
  var d,
17493
17403
  c = arguments.length,
17494
17404
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17495
17405
  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);
17496
17406
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17497
17407
  },
17498
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17408
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17499
17409
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17500
17410
  },
17501
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17411
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17502
17412
  return function (target, key) {
17503
17413
  decorator(target, key, paramIndex);
17504
17414
  };
@@ -17539,19 +17449,19 @@
17539
17449
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
17540
17450
  }
17541
17451
  };
17542
- exports.DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
17452
+ exports.DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
17543
17453
 
17544
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17454
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17545
17455
  var d,
17546
17456
  c = arguments.length,
17547
17457
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17548
17458
  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);
17549
17459
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17550
17460
  },
17551
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17461
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17552
17462
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17553
17463
  },
17554
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17464
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17555
17465
  return function (target, key) {
17556
17466
  decorator(target, key, paramIndex);
17557
17467
  };
@@ -17646,19 +17556,19 @@
17646
17556
  }) : clip ? context.restore() : context.highPerformanceRestore();
17647
17557
  }
17648
17558
  };
17649
- exports.DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
17559
+ exports.DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
17650
17560
 
17651
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17561
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17652
17562
  var d,
17653
17563
  c = arguments.length,
17654
17564
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17655
17565
  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);
17656
17566
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17657
17567
  },
17658
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17568
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17659
17569
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17660
17570
  },
17661
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17571
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17662
17572
  return function (target, key) {
17663
17573
  decorator(target, key, paramIndex);
17664
17574
  };
@@ -17726,7 +17636,7 @@
17726
17636
  this._draw(image, imageAttribute, !1, drawContext);
17727
17637
  }
17728
17638
  };
17729
- exports.DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
17639
+ exports.DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
17730
17640
 
17731
17641
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
17732
17642
  const ArcRender = Symbol.for("ArcRender");
@@ -17794,14 +17704,14 @@
17794
17704
  return result;
17795
17705
  };
17796
17706
 
17797
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17707
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17798
17708
  var d,
17799
17709
  c = arguments.length,
17800
17710
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17801
17711
  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);
17802
17712
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17803
17713
  },
17804
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17714
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17805
17715
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17806
17716
  };
17807
17717
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -17861,7 +17771,7 @@
17861
17771
  return !1;
17862
17772
  }
17863
17773
  };
17864
- exports.CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
17774
+ exports.CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
17865
17775
  class InteractiveDrawItemInterceptorContribution {
17866
17776
  constructor() {
17867
17777
  this.order = 1;
@@ -17952,17 +17862,17 @@
17952
17862
  }
17953
17863
  }
17954
17864
 
17955
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17865
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17956
17866
  var d,
17957
17867
  c = arguments.length,
17958
17868
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17959
17869
  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);
17960
17870
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17961
17871
  },
17962
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
17872
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17963
17873
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17964
17874
  },
17965
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
17875
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17966
17876
  return function (target, key) {
17967
17877
  decorator(target, key, paramIndex);
17968
17878
  };
@@ -18000,7 +17910,7 @@
18000
17910
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
18001
17911
  }
18002
17912
  };
18003
- exports.DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
17913
+ exports.DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], exports.DefaultRenderService);
18004
17914
 
18005
17915
  var renderModule$1 = new ContainerModule(bind => {
18006
17916
  bind(RenderService).to(exports.DefaultRenderService);
@@ -18013,7 +17923,7 @@
18013
17923
  const PickItemInterceptor = Symbol.for("PickItemInterceptor");
18014
17924
  const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
18015
17925
 
18016
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17926
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18017
17927
  var d,
18018
17928
  c = arguments.length,
18019
17929
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18035,7 +17945,7 @@
18035
17945
  return result;
18036
17946
  }
18037
17947
  };
18038
- exports.ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], exports.ShadowPickServiceInterceptorContribution);
17948
+ exports.ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], exports.ShadowPickServiceInterceptorContribution);
18039
17949
  exports.ShadowRootPickItemInterceptorContribution = class ShadowRootPickItemInterceptorContribution {
18040
17950
  constructor() {
18041
17951
  this.order = 1;
@@ -18066,7 +17976,7 @@
18066
17976
  return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
18067
17977
  }
18068
17978
  };
18069
- exports.ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], exports.ShadowRootPickItemInterceptorContribution);
17979
+ exports.ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], exports.ShadowRootPickItemInterceptorContribution);
18070
17980
  exports.InteractivePickItemInterceptorContribution = class InteractivePickItemInterceptorContribution {
18071
17981
  constructor() {
18072
17982
  this.order = 1;
@@ -18085,7 +17995,7 @@
18085
17995
  return null;
18086
17996
  }
18087
17997
  };
18088
- exports.InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], exports.InteractivePickItemInterceptorContribution);
17998
+ exports.InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], exports.InteractivePickItemInterceptorContribution);
18089
17999
  exports.Canvas3DPickItemInterceptor = class Canvas3DPickItemInterceptor {
18090
18000
  constructor() {
18091
18001
  this.order = 1;
@@ -18105,7 +18015,7 @@
18105
18015
  context.setTransformForCurrent();
18106
18016
  }
18107
18017
  };
18108
- exports.Canvas3DPickItemInterceptor = __decorate$1m([injectable()], exports.Canvas3DPickItemInterceptor);
18018
+ exports.Canvas3DPickItemInterceptor = __decorate$1o([injectable()], exports.Canvas3DPickItemInterceptor);
18109
18019
 
18110
18020
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
18111
18021
  isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(exports.Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.Canvas3DPickItemInterceptor), bind(exports.ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.ShadowRootPickItemInterceptorContribution), bind(exports.InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor), bind(exports.ShadowPickServiceInterceptorContribution).toSelf().inSingletonScope(), bind(PickServiceInterceptor).toService(exports.ShadowPickServiceInterceptorContribution), bindContributionProvider(bind, PickServiceInterceptor);
@@ -18118,17 +18028,17 @@
18118
18028
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
18119
18029
  const PluginService = Symbol.for("PluginService");
18120
18030
 
18121
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18031
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18122
18032
  var d,
18123
18033
  c = arguments.length,
18124
18034
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18125
18035
  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);
18126
18036
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18127
18037
  },
18128
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18038
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
18129
18039
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18130
18040
  },
18131
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18041
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
18132
18042
  return function (target, key) {
18133
18043
  decorator(target, key, paramIndex);
18134
18044
  };
@@ -18168,7 +18078,7 @@
18168
18078
  }), this.onRegisterPlugin = [];
18169
18079
  }
18170
18080
  };
18171
- DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
18081
+ DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
18172
18082
 
18173
18083
  var pluginModule = new ContainerModule(bind => {
18174
18084
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -18182,14 +18092,14 @@
18182
18092
  bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
18183
18093
  });
18184
18094
 
18185
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18095
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18186
18096
  var d,
18187
18097
  c = arguments.length,
18188
18098
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18189
18099
  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);
18190
18100
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18191
18101
  },
18192
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18102
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18193
18103
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18194
18104
  };
18195
18105
  let CanvasLayerHandlerContribution = class {
@@ -18259,7 +18169,7 @@
18259
18169
  this.canvas.release();
18260
18170
  }
18261
18171
  };
18262
- CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
18172
+ CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
18263
18173
 
18264
18174
  var layerHandlerModules = new ContainerModule(bind => {
18265
18175
  bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -18378,17 +18288,17 @@
18378
18288
  return result;
18379
18289
  }
18380
18290
 
18381
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18291
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18382
18292
  var d,
18383
18293
  c = arguments.length,
18384
18294
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18385
18295
  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);
18386
18296
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18387
18297
  },
18388
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18298
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18389
18299
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18390
18300
  },
18391
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18301
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18392
18302
  return function (target, key) {
18393
18303
  decorator(target, key, paramIndex);
18394
18304
  };
@@ -18587,9 +18497,9 @@
18587
18497
  }
18588
18498
  afterDraw(renderService, drawParams) {}
18589
18499
  };
18590
- DefaultDrawContribution = __decorate$1j([injectable(), __param$E(0, multiInject(GraphicRender)), __param$E(1, inject(ContributionProvider)), __param$E(1, named(DrawItemInterceptor)), __metadata$_("design:paramtypes", [Array, Object])], DefaultDrawContribution);
18500
+ DefaultDrawContribution = __decorate$1l([injectable(), __param$F(0, multiInject(GraphicRender)), __param$F(1, inject(ContributionProvider)), __param$F(1, named(DrawItemInterceptor)), __metadata$$("design:paramtypes", [Array, Object])], DefaultDrawContribution);
18591
18501
 
18592
- var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18502
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18593
18503
  var d,
18594
18504
  c = arguments.length,
18595
18505
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18640,9 +18550,9 @@
18640
18550
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
18641
18551
  }
18642
18552
  };
18643
- DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
18553
+ DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
18644
18554
 
18645
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18555
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18646
18556
  var d,
18647
18557
  c = arguments.length,
18648
18558
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18685,20 +18595,20 @@
18685
18595
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
18686
18596
  }
18687
18597
  };
18688
- DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
18598
+ DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
18689
18599
 
18690
18600
  var STATUS,
18691
- __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18601
+ __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18692
18602
  var d,
18693
18603
  c = arguments.length,
18694
18604
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18695
18605
  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);
18696
18606
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18697
18607
  },
18698
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
18608
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18699
18609
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18700
18610
  },
18701
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
18611
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18702
18612
  return function (target, key) {
18703
18613
  decorator(target, key, paramIndex);
18704
18614
  };
@@ -18828,7 +18738,7 @@
18828
18738
  });
18829
18739
  }
18830
18740
  };
18831
- DefaultIncrementalDrawContribution = __decorate$1g([injectable(), __param$D(0, multiInject(GraphicRender)), __param$D(1, inject(DefaultIncrementalCanvasLineRender)), __param$D(2, inject(DefaultIncrementalCanvasAreaRender)), __param$D(3, inject(ContributionProvider)), __param$D(3, named(DrawItemInterceptor)), __metadata$Z("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
18741
+ DefaultIncrementalDrawContribution = __decorate$1i([injectable(), __param$E(0, multiInject(GraphicRender)), __param$E(1, inject(DefaultIncrementalCanvasLineRender)), __param$E(2, inject(DefaultIncrementalCanvasAreaRender)), __param$E(3, inject(ContributionProvider)), __param$E(3, named(DrawItemInterceptor)), __metadata$_("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
18832
18742
 
18833
18743
  var renderModule = new ContainerModule(bind => {
18834
18744
  bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(GroupRender).to(exports.DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(exports.CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(exports.CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
@@ -19524,14 +19434,14 @@
19524
19434
  return new Stage(params);
19525
19435
  }
19526
19436
 
19527
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19437
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19528
19438
  var d,
19529
19439
  c = arguments.length,
19530
19440
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19531
19441
  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);
19532
19442
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19533
19443
  },
19534
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19444
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
19535
19445
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19536
19446
  };
19537
19447
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -19741,7 +19651,7 @@
19741
19651
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
19742
19652
  }
19743
19653
  };
19744
- exports.EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
19654
+ exports.EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
19745
19655
 
19746
19656
  const DefaultConfig = {
19747
19657
  WIDTH: 500,
@@ -19840,7 +19750,7 @@
19840
19750
  }
19841
19751
  BaseCanvas.env = "browser";
19842
19752
 
19843
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19753
+ var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19844
19754
  var d,
19845
19755
  c = arguments.length,
19846
19756
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19954,16 +19864,16 @@
19954
19864
  return Promise.resolve(null);
19955
19865
  }
19956
19866
  };
19957
- exports.BaseEnvContribution = __decorate$1e([injectable()], exports.BaseEnvContribution);
19867
+ exports.BaseEnvContribution = __decorate$1g([injectable()], exports.BaseEnvContribution);
19958
19868
 
19959
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19869
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19960
19870
  var d,
19961
19871
  c = arguments.length,
19962
19872
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19963
19873
  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);
19964
19874
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19965
19875
  },
19966
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
19876
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19967
19877
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19968
19878
  };
19969
19879
  exports.BaseWindowHandlerContribution = class BaseWindowHandlerContribution {
@@ -20002,7 +19912,7 @@
20002
19912
  return this.modelMatrix;
20003
19913
  }
20004
19914
  };
20005
- exports.BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
19915
+ exports.BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
20006
19916
 
20007
19917
  class DirectionalLight {
20008
19918
  constructor(dir, color) {
@@ -20093,17 +20003,17 @@
20093
20003
  Factory.registerPlugin("OrthoCamera", OrthoCamera);
20094
20004
  };
20095
20005
 
20096
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20006
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20097
20007
  var d,
20098
20008
  c = arguments.length,
20099
20009
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20100
20010
  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);
20101
20011
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20102
20012
  },
20103
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
20013
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
20104
20014
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20105
20015
  },
20106
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
20016
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
20107
20017
  return function (target, key) {
20108
20018
  decorator(target, key, paramIndex);
20109
20019
  };
@@ -20208,16 +20118,16 @@
20208
20118
  return picker || null;
20209
20119
  }
20210
20120
  };
20211
- exports.DefaultPickService = __decorate$1c([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(PickItemInterceptor)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickServiceInterceptor)), __metadata$W("design:paramtypes", [Object, Object])], exports.DefaultPickService);
20121
+ exports.DefaultPickService = __decorate$1e([injectable(), __param$D(0, inject(ContributionProvider)), __param$D(0, named(PickItemInterceptor)), __param$D(1, inject(ContributionProvider)), __param$D(1, named(PickServiceInterceptor)), __metadata$X("design:paramtypes", [Object, Object])], exports.DefaultPickService);
20212
20122
 
20213
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20123
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20214
20124
  var d,
20215
20125
  c = arguments.length,
20216
20126
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20217
20127
  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);
20218
20128
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20219
20129
  },
20220
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
20130
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
20221
20131
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20222
20132
  };
20223
20133
  exports.DefaultGlobalPickerService = class DefaultGlobalPickerService {
@@ -20282,7 +20192,7 @@
20282
20192
  } : null;
20283
20193
  }
20284
20194
  };
20285
- exports.DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], exports.DefaultGlobalPickerService);
20195
+ exports.DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], exports.DefaultGlobalPickerService);
20286
20196
 
20287
20197
  function simplifyRadialDist(points, sqTolerance) {
20288
20198
  let deltaX,
@@ -20363,13 +20273,17 @@
20363
20273
  } = this.currRt.attribute;
20364
20274
  if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
20365
20275
  const config = textConfig[0];
20366
- textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
20276
+ textConfig.unshift(Object.assign(Object.assign(Object.assign({
20277
+ fill: "black"
20278
+ }, getDefaultCharacterConfig(this.currRt.attribute)), config), {
20367
20279
  text: ""
20368
20280
  }));
20369
20281
  } else {
20370
20282
  const configIdx = this.composingConfigIdx,
20371
20283
  lastConfig = textConfig[configIdx] || textConfig[configIdx - 1];
20372
- textConfig.splice(configIdx, 0, Object.assign(Object.assign({}, lastConfig), {
20284
+ textConfig.splice(configIdx, 0, Object.assign(Object.assign({
20285
+ fill: "black"
20286
+ }, lastConfig), {
20373
20287
  text: ""
20374
20288
  }));
20375
20289
  }
@@ -20441,9 +20355,9 @@
20441
20355
  textConfig.splice(configIdx, 1);
20442
20356
  const text = lastConfig.text,
20443
20357
  textList = text ? Array.from(text.toString()) : [];
20444
- for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
20358
+ for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
20445
20359
  fill: "black"
20446
- }), lastConfig), {
20360
+ }, lastConfig), {
20447
20361
  isComposing: !1,
20448
20362
  text: textList[i]
20449
20363
  }));
@@ -20496,14 +20410,14 @@
20496
20410
  getFormat(key) {
20497
20411
  return this.getAllFormat(key)[0];
20498
20412
  }
20499
- getAllFormat(key, includeUndefined) {
20413
+ getAllFormat(key) {
20500
20414
  const valSet = new Set(),
20501
20415
  minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx),
20502
20416
  maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);
20503
20417
  if (minCursorIdx === maxCursorIdx) return [this._getFormat(key, minCursorIdx)];
20504
20418
  for (let i = Math.ceil(minCursorIdx); i <= Math.floor(maxCursorIdx); i++) {
20505
20419
  const val = this._getFormat(key, i);
20506
- (includeUndefined || void 0 !== val) && valSet.add(val);
20420
+ val && valSet.add(val);
20507
20421
  }
20508
20422
  return Array.from(valSet.values());
20509
20423
  }
@@ -20563,13 +20477,13 @@
20563
20477
  }, this.handleFocusOut = () => {
20564
20478
  throw new Error("不会走到这里 handleFocusOut");
20565
20479
  }, this.handleMove = e => {
20566
- this.currRt && !this.currRt.attribute.editable && this.deFocus(!0), this.isEditableRichtext(e) ? (this.handleEnter(), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1)) : this.handleLeave();
20567
- }, this.handleEnter = () => {
20480
+ this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
20481
+ }, this.handleEnter = e => {
20568
20482
  this.editing = !0, this.pluginService.stage.setCursor("text");
20569
- }, this.handleLeave = () => {
20483
+ }, this.handleLeave = e => {
20570
20484
  this.editing = !1, this.pluginService.stage.setCursor("default");
20571
20485
  }, this.handlePointerDown = e => {
20572
- this.editing && this.isEditableRichtext(e) ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20486
+ this.editing ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20573
20487
  }, this.handlePointerUp = e => {
20574
20488
  this.pointerDown = !1;
20575
20489
  }, this.handleDBLClick = e => {
@@ -20643,11 +20557,9 @@
20643
20557
  const cache = currRt.getFrameCache();
20644
20558
  if (!cache) return;
20645
20559
  const {
20646
- lines: lines
20647
- } = cache;
20648
- if (0 === lines.length) return;
20649
- if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
20650
- const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20560
+ lines: lines
20561
+ } = cache,
20562
+ totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20651
20563
  return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
20652
20564
  }
20653
20565
  return !1;
@@ -20668,7 +20580,7 @@
20668
20580
  } = cache,
20669
20581
  totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20670
20582
  if (x) {
20671
- x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1), this.selectionStartCursorIdx = this.curCursorIdx;
20583
+ x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1);
20672
20584
  const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);
20673
20585
  this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();
20674
20586
  }
@@ -20722,9 +20634,6 @@
20722
20634
  placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
20723
20635
  x: 0,
20724
20636
  y: 0,
20725
- pickable: !1,
20726
- editable: !1,
20727
- editOptions: null,
20728
20637
  angle: 0,
20729
20638
  _debug_bounds: !1,
20730
20639
  textConfig: [textConfigItem]
@@ -20740,15 +20649,15 @@
20740
20649
  } = editOptions;
20741
20650
  if (!editOptions || !boundsStrokeWhenInput) return;
20742
20651
  const {
20743
- attribute: attribute
20744
- } = this.currRt;
20745
- let b = this.currRt.AABBBounds,
20746
- h = b.height();
20652
+ attribute: attribute
20653
+ } = this.currRt,
20654
+ b = this.currRt.AABBBounds;
20655
+ let h = b.height();
20747
20656
  if (!attribute.textConfig.length && this.editLine) {
20748
20657
  const {
20749
20658
  points: points
20750
20659
  } = this.editLine.attribute;
20751
- h = points[1].y - points[0].y, b = getRichTextBounds(Object.assign({}, this.shadowPlaceHolder.attribute));
20660
+ h = points[1].y - points[0].y;
20752
20661
  }
20753
20662
  this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
20754
20663
  x: 0,
@@ -20769,7 +20678,7 @@
20769
20678
  editOptions: editOptions
20770
20679
  } = this.currRt.attribute;
20771
20680
  if (textConfig && textConfig.length) return;
20772
- if (!(editOptions && editOptions.placeholder && editOptions.syncPlaceHolderToTextConfig)) return;
20681
+ if (!editOptions || !editOptions.placeholder) return;
20773
20682
  const {
20774
20683
  placeholder: placeholder
20775
20684
  } = editOptions;
@@ -20860,23 +20769,24 @@
20860
20769
  }
20861
20770
  deFocus() {
20862
20771
  let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20863
- const currRt = this.currRt;
20864
- if (!currRt) return;
20865
20772
  this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
20866
20773
  trulyDeFocus: trulyDeFocus
20867
- })), trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), currRt.detachShadow()), this.currRt = null, this.editLine && (this.editLine.parent && this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent && this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null), trulyDeFocus && (this.shadowBounds && (this.shadowBounds.parent && this.shadowBounds.parent.removeChild(this.shadowBounds), this.shadowBounds.release(), this.shadowBounds = null), this.shadowPlaceHolder && (this.shadowPlaceHolder.parent && this.shadowPlaceHolder.parent.removeChild(this.shadowPlaceHolder), this.shadowPlaceHolder.release(), this.shadowPlaceHolder = null)), this.focusing = !1;
20774
+ }));
20775
+ const target = this.currRt;
20776
+ if (!target) return;
20777
+ trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), target.detachShadow());
20778
+ const currRt = this.currRt;
20779
+ this.currRt = null, this.editLine && (this.editLine.parent && this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent && this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null), trulyDeFocus && (this.shadowBounds && (this.shadowBounds.parent && this.shadowBounds.parent.removeChild(this.shadowBounds), this.shadowBounds.release(), this.shadowBounds = null), this.shadowPlaceHolder && (this.shadowPlaceHolder.parent && this.shadowPlaceHolder.parent.removeChild(this.shadowPlaceHolder), this.shadowPlaceHolder.release(), this.shadowPlaceHolder = null)), this.focusing = !1;
20868
20780
  const textConfig = currRt.attribute.textConfig;
20869
20781
  let lastConfig = textConfig[textConfig.length - 1],
20870
20782
  cleared = !1;
20871
20783
  for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
20872
20784
  cleared && currRt.setAttributes({
20873
20785
  textConfig: textConfig
20874
- }), currRt.removeEventListener("pointerleave", this.handleLeave);
20786
+ });
20875
20787
  }
20876
20788
  addAnimateToLine(line) {
20877
- line.setAttributes({
20878
- opacity: 1
20879
- }), line.animates && line.animates.forEach(animate => {
20789
+ line.animates && line.animates.forEach(animate => {
20880
20790
  animate.stop(), animate.release();
20881
20791
  });
20882
20792
  line.animate({
@@ -20921,63 +20831,61 @@
20921
20831
  },
20922
20832
  line0Info = this.getLineByPoint(cache, startCursorPos),
20923
20833
  line1Info = this.getLineByPoint(cache, endCursorPos);
20924
- if (line0Info && line1Info) {
20925
- if ((startCursorPos.y > endCursorPos.y || startCursorPos.y === endCursorPos.y && startCursorPos.x > endCursorPos.x) && ([startCursorPos, endCursorPos] = [endCursorPos, startCursorPos], [line1Info, line0Info] = [line0Info, line1Info]), this.hideSelection(), line0Info === line1Info) this.editBg.setAttributes({
20926
- x: startCursorPos.x,
20834
+ if ((startCursorPos.y > endCursorPos.y || startCursorPos.y === endCursorPos.y && startCursorPos.x > endCursorPos.x) && ([startCursorPos, endCursorPos] = [endCursorPos, startCursorPos], [line1Info, line0Info] = [line0Info, line1Info]), this.hideSelection(), line0Info === line1Info) this.editBg.setAttributes({
20835
+ x: startCursorPos.x,
20836
+ y: line0Info.top,
20837
+ width: endCursorPos.x - startCursorPos.x,
20838
+ height: line0Info.height,
20839
+ fill: "#336df4",
20840
+ fillOpacity: .2
20841
+ });else {
20842
+ this.editBg.setAttributes({
20843
+ x: 0,
20927
20844
  y: line0Info.top,
20928
- width: endCursorPos.x - startCursorPos.x,
20929
- height: line0Info.height,
20930
- fill: "#336df4",
20931
- fillOpacity: .2
20932
- });else {
20933
- this.editBg.setAttributes({
20934
- x: 0,
20935
- y: line0Info.top,
20936
- width: 0,
20937
- height: 0
20938
- });
20939
- const startIdx = cache.lines.findIndex(item => item === line0Info),
20940
- endIdx = cache.lines.findIndex(item => item === line1Info);
20941
- let y = 0;
20942
- for (let i = startIdx; i <= endIdx; i++) {
20943
- const line = cache.lines[i];
20944
- if (i === startIdx) {
20945
- const p = line.paragraphs[line.paragraphs.length - 1];
20946
- this.editBg.add(createRect({
20947
- x: startCursorPos.x,
20948
- y: y,
20949
- width: p.left + p.width - startCursorPos.x,
20950
- height: line.height,
20951
- fill: "#336df4",
20952
- fillOpacity: .2
20953
- }));
20954
- } else if (i === endIdx) {
20955
- const p = line.paragraphs[0];
20956
- this.editBg.add(createRect({
20957
- x: p.left,
20958
- y: y,
20959
- width: endCursorPos.x - p.left,
20960
- height: line.height,
20961
- fill: "#336df4",
20962
- fillOpacity: .2
20963
- }));
20964
- } else {
20965
- const p0 = line.paragraphs[0],
20966
- p1 = line.paragraphs[line.paragraphs.length - 1];
20967
- this.editBg.add(createRect({
20968
- x: p0.left,
20969
- y: y,
20970
- width: p1.left + p1.width - p0.left,
20971
- height: line.height,
20972
- fill: "#336df4",
20973
- fillOpacity: .2
20974
- }));
20975
- }
20976
- y += line.height;
20845
+ width: 0,
20846
+ height: 0
20847
+ });
20848
+ const startIdx = cache.lines.findIndex(item => item === line0Info),
20849
+ endIdx = cache.lines.findIndex(item => item === line1Info);
20850
+ let y = 0;
20851
+ for (let i = startIdx; i <= endIdx; i++) {
20852
+ const line = cache.lines[i];
20853
+ if (i === startIdx) {
20854
+ const p = line.paragraphs[line.paragraphs.length - 1];
20855
+ this.editBg.add(createRect({
20856
+ x: startCursorPos.x,
20857
+ y: y,
20858
+ width: p.left + p.width - startCursorPos.x,
20859
+ height: line.height,
20860
+ fill: "#336df4",
20861
+ fillOpacity: .2
20862
+ }));
20863
+ } else if (i === endIdx) {
20864
+ const p = line.paragraphs[0];
20865
+ this.editBg.add(createRect({
20866
+ x: p.left,
20867
+ y: y,
20868
+ width: endCursorPos.x - p.left,
20869
+ height: line.height,
20870
+ fill: "#336df4",
20871
+ fillOpacity: .2
20872
+ }));
20873
+ } else {
20874
+ const p0 = line.paragraphs[0],
20875
+ p1 = line.paragraphs[line.paragraphs.length - 1];
20876
+ this.editBg.add(createRect({
20877
+ x: p0.left,
20878
+ y: y,
20879
+ width: p1.left + p1.width - p0.left,
20880
+ height: line.height,
20881
+ fill: "#336df4",
20882
+ fillOpacity: .2
20883
+ }));
20977
20884
  }
20885
+ y += line.height;
20978
20886
  }
20979
- this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20980
20887
  }
20888
+ this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20981
20889
  }
20982
20890
  hideSelection() {
20983
20891
  this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
@@ -21021,10 +20929,7 @@
21021
20929
  return -1;
21022
20930
  }
21023
20931
  isRichtext(e) {
21024
- return !(!e.target || "richtext" !== e.target.type);
21025
- }
21026
- isEditableRichtext(e) {
21027
- return this.isRichtext(e) && !!e.target.attribute.editable;
20932
+ return !(!e.target || "richtext" !== e.target.type || !e.target.attribute.editable);
21028
20933
  }
21029
20934
  triggerRender() {
21030
20935
  this.pluginService.stage.renderNextFrame();
@@ -21170,7 +21075,7 @@
21170
21075
  target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
21171
21076
  }
21172
21077
  _forceFocusByEvent(e) {
21173
- this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
21078
+ this.handleEnter(e), this.handlePointerDown(e), this.handlePointerUp(e);
21174
21079
  }
21175
21080
  _forceFocusByCursorIndex(cursorIndex) {
21176
21081
  const richtext = this.currRt;
@@ -21374,7 +21279,7 @@
21374
21279
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21375
21280
  });
21376
21281
 
21377
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21282
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21378
21283
  var d,
21379
21284
  c = arguments.length,
21380
21285
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21406,21 +21311,21 @@
21406
21311
  }), context.highPerformanceRestore();
21407
21312
  }
21408
21313
  };
21409
- DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
21314
+ DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
21410
21315
 
21411
21316
  let loadGlyphModule = !1;
21412
21317
  const glyphModule = new ContainerModule(bind => {
21413
21318
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21414
21319
  });
21415
21320
 
21416
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21321
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21417
21322
  var d,
21418
21323
  c = arguments.length,
21419
21324
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21420
21325
  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);
21421
21326
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21422
21327
  },
21423
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
21328
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
21424
21329
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21425
21330
  };
21426
21331
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -21474,7 +21379,7 @@
21474
21379
  this._draw(richtext, richtextAttribute, !1, drawContext);
21475
21380
  }
21476
21381
  };
21477
- DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
21382
+ DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
21478
21383
 
21479
21384
  let loadRichtextModule = !1;
21480
21385
  const richtextModule = new ContainerModule(bind => {
@@ -21558,7 +21463,7 @@
21558
21463
  }
21559
21464
  }
21560
21465
 
21561
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21466
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21562
21467
  var d,
21563
21468
  c = arguments.length,
21564
21469
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21614,14 +21519,14 @@
21614
21519
  this._draw(rect, rectAttribute, !1, drawContext);
21615
21520
  }
21616
21521
  };
21617
- DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
21522
+ DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
21618
21523
 
21619
21524
  let loadRect3dModule = !1;
21620
21525
  const rect3dModule = new ContainerModule(bind => {
21621
21526
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21622
21527
  });
21623
21528
 
21624
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21529
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21625
21530
  var d,
21626
21531
  c = arguments.length,
21627
21532
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21748,14 +21653,14 @@
21748
21653
  this._draw(arc, arcAttribute, !1, drawContext, params);
21749
21654
  }
21750
21655
  };
21751
- DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
21656
+ DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
21752
21657
 
21753
21658
  let loadArc3dModule = !1;
21754
21659
  const arc3dModule = new ContainerModule(bind => {
21755
21660
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21756
21661
  });
21757
21662
 
21758
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21663
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21759
21664
  var d,
21760
21665
  c = arguments.length,
21761
21666
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21792,7 +21697,7 @@
21792
21697
  this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
21793
21698
  }
21794
21699
  };
21795
- DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
21700
+ DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
21796
21701
 
21797
21702
  let loadPyramid3dModule = !1;
21798
21703
  const pyramid3dModule = new ContainerModule(bind => {
@@ -23915,17 +23820,17 @@
23915
23820
  }
23916
23821
  }
23917
23822
 
23918
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23823
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23919
23824
  var d,
23920
23825
  c = arguments.length,
23921
23826
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23922
23827
  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);
23923
23828
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23924
23829
  },
23925
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
23830
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
23926
23831
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23927
23832
  },
23928
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
23833
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
23929
23834
  return function (target, key) {
23930
23835
  decorator(target, key, paramIndex);
23931
23836
  };
@@ -24011,9 +23916,9 @@
24011
23916
  }), context.highPerformanceRestore();
24012
23917
  }
24013
23918
  };
24014
- RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
23919
+ RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(exports.DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
24015
23920
 
24016
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23921
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24017
23922
  var d,
24018
23923
  c = arguments.length,
24019
23924
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -24091,19 +23996,19 @@
24091
23996
  }), context.highPerformanceRestore(), !1;
24092
23997
  }
24093
23998
  };
24094
- RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
23999
+ RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
24095
24000
 
24096
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24001
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24097
24002
  var d,
24098
24003
  c = arguments.length,
24099
24004
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24100
24005
  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);
24101
24006
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24102
24007
  },
24103
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
24008
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
24104
24009
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24105
24010
  },
24106
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
24011
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
24107
24012
  return function (target, key) {
24108
24013
  decorator(target, key, paramIndex);
24109
24014
  };
@@ -24140,9 +24045,9 @@
24140
24045
  });
24141
24046
  }
24142
24047
  };
24143
- RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
24048
+ RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
24144
24049
 
24145
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24050
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24146
24051
  var d,
24147
24052
  c = arguments.length,
24148
24053
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -24221,19 +24126,19 @@
24221
24126
  }), context.highPerformanceRestore(), !1;
24222
24127
  }
24223
24128
  };
24224
- RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
24129
+ RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
24225
24130
 
24226
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24131
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24227
24132
  var d,
24228
24133
  c = arguments.length,
24229
24134
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24230
24135
  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);
24231
24136
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24232
24137
  },
24233
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
24138
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
24234
24139
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24235
24140
  },
24236
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
24141
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
24237
24142
  return function (target, key) {
24238
24143
  decorator(target, key, paramIndex);
24239
24144
  };
@@ -24307,19 +24212,19 @@
24307
24212
  }), context.highPerformanceRestore();
24308
24213
  }
24309
24214
  };
24310
- RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(exports.DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
24215
+ RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
24311
24216
 
24312
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24217
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24313
24218
  var d,
24314
24219
  c = arguments.length,
24315
24220
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24316
24221
  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);
24317
24222
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24318
24223
  },
24319
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24224
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
24320
24225
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24321
24226
  },
24322
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24227
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
24323
24228
  return function (target, key) {
24324
24229
  decorator(target, key, paramIndex);
24325
24230
  };
@@ -24410,19 +24315,19 @@
24410
24315
  }), context.highPerformanceRestore();
24411
24316
  }
24412
24317
  };
24413
- RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(exports.DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
24318
+ RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(exports.DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
24414
24319
 
24415
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24320
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24416
24321
  var d,
24417
24322
  c = arguments.length,
24418
24323
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24419
24324
  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);
24420
24325
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24421
24326
  },
24422
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
24327
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24423
24328
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24424
24329
  },
24425
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
24330
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24426
24331
  return function (target, key) {
24427
24332
  decorator(target, key, paramIndex);
24428
24333
  };
@@ -24514,7 +24419,7 @@
24514
24419
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
24515
24420
  }
24516
24421
  };
24517
- RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24422
+ RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24518
24423
 
24519
24424
  var _roughModule = new ContainerModule(bind => {
24520
24425
  bind(RoughCanvasCircleRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasCircleRender), bind(RoughCanvasRectRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasRectRender), bind(RoughCanvasPathRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasPathRender), bind(RoughCanvasSymbolRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasSymbolRender), bind(RoughCanvasLineRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasLineRender), bind(RoughCanvasAreaRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasAreaRender), bind(RoughCanvasArcRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasArcRender);
@@ -24537,6 +24442,7 @@
24537
24442
  const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
24538
24443
  const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
24539
24444
  const CanvasImagePicker = Symbol.for("CanvasImagePicker");
24445
+ const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
24540
24446
  const CanvasLinePicker = Symbol.for("CanvasLinePicker");
24541
24447
  const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
24542
24448
  const CanvasPathPicker = Symbol.for("CanvasPathPicker");
@@ -24677,9 +24583,11 @@
24677
24583
  name: name,
24678
24584
  id: id,
24679
24585
  attribute: attribute,
24680
- stateProxy: stateProxy
24586
+ stateProxy: stateProxy,
24587
+ animation: animation,
24588
+ timeline: timeline
24681
24589
  } = _a,
24682
- props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
24590
+ props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
24683
24591
  let c = type;
24684
24592
  isString$1(type) && (c = graphicCreator[type]);
24685
24593
  const childrenList = [];
@@ -24688,7 +24596,13 @@
24688
24596
  }
24689
24597
  children.length && flatten(1 === children.length ? children[0] : children, childrenList);
24690
24598
  const g = "Group" === c.name ? new c(attribute) : c(config);
24691
- return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
24599
+ if (parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), name && (g.name = name), isArray$1(animation)) {
24600
+ const animate = g.animate();
24601
+ timeline && animate.setTimeline(timeline), animation.forEach(item => {
24602
+ animate[item[0]](...item.slice(1));
24603
+ });
24604
+ }
24605
+ return g;
24692
24606
  }
24693
24607
  function parseToGraphic$1(g, childrenList, props) {
24694
24608
  let out,
@@ -25018,14 +24932,14 @@
25018
24932
  }
25019
24933
  }
25020
24934
 
25021
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24935
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25022
24936
  var d,
25023
24937
  c = arguments.length,
25024
24938
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25025
24939
  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);
25026
24940
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25027
24941
  },
25028
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
24942
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
25029
24943
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25030
24944
  };
25031
24945
  const outP = [0, 0, 0],
@@ -25537,16 +25451,16 @@
25537
25451
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
25538
25452
  }
25539
25453
  };
25540
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
25454
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
25541
25455
 
25542
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25456
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25543
25457
  var d,
25544
25458
  c = arguments.length,
25545
25459
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25546
25460
  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);
25547
25461
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25548
25462
  },
25549
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
25463
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
25550
25464
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25551
25465
  };
25552
25466
  let BrowserCanvas = class extends BaseCanvas {
@@ -25608,7 +25522,7 @@
25608
25522
  this._context.dpr = this._dpr;
25609
25523
  }
25610
25524
  };
25611
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
25525
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
25612
25526
 
25613
25527
  function createModule(CanvasConstructor, ContextConstructor) {
25614
25528
  return new ContainerModule(bind => {
@@ -25618,17 +25532,17 @@
25618
25532
 
25619
25533
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
25620
25534
 
25621
- var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25535
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25622
25536
  var d,
25623
25537
  c = arguments.length,
25624
25538
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25625
25539
  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);
25626
25540
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25627
25541
  },
25628
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
25542
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
25629
25543
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25630
25544
  },
25631
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
25545
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
25632
25546
  return function (target, key) {
25633
25547
  decorator(target, key, paramIndex);
25634
25548
  };
@@ -25679,9 +25593,9 @@
25679
25593
  return data;
25680
25594
  }
25681
25595
  };
25682
- DefaultCanvasPickerService = __decorate$Y([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(CanvasPickerContribution)), __param$w(1, inject(DrawContribution)), __param$w(2, inject(ContributionProvider)), __param$w(2, named(PickItemInterceptor)), __param$w(3, inject(ContributionProvider)), __param$w(3, named(PickServiceInterceptor)), __metadata$M("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
25596
+ DefaultCanvasPickerService = __decorate$_([injectable(), __param$x(0, inject(ContributionProvider)), __param$x(0, named(CanvasPickerContribution)), __param$x(1, inject(DrawContribution)), __param$x(2, inject(ContributionProvider)), __param$x(2, named(PickItemInterceptor)), __param$x(3, inject(ContributionProvider)), __param$x(3, named(PickServiceInterceptor)), __metadata$N("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
25683
25597
 
25684
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25598
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25685
25599
  var d,
25686
25600
  c = arguments.length,
25687
25601
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25696,7 +25610,7 @@
25696
25610
  return !1;
25697
25611
  }
25698
25612
  };
25699
- DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
25613
+ DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
25700
25614
 
25701
25615
  const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
25702
25616
  m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -25712,14 +25626,14 @@
25712
25626
  }
25713
25627
 
25714
25628
  var BrowserWindowHandlerContribution_1,
25715
- __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25629
+ __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25716
25630
  var d,
25717
25631
  c = arguments.length,
25718
25632
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25719
25633
  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);
25720
25634
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25721
25635
  },
25722
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
25636
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
25723
25637
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25724
25638
  };
25725
25639
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends exports.BaseWindowHandlerContribution {
@@ -25877,19 +25791,19 @@
25877
25791
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
25878
25792
  }
25879
25793
  };
25880
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
25794
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
25881
25795
  const browserWindowModule = new ContainerModule(bind => {
25882
25796
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
25883
25797
  });
25884
25798
 
25885
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25799
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25886
25800
  var d,
25887
25801
  c = arguments.length,
25888
25802
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25889
25803
  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);
25890
25804
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25891
25805
  },
25892
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
25806
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
25893
25807
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25894
25808
  },
25895
25809
  __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -25943,7 +25857,7 @@
25943
25857
  function createImageElement$1(src) {
25944
25858
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
25945
25859
  const img = document.createElement("img");
25946
- if (img.crossOrigin = "anonymous", isSvg) {
25860
+ if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
25947
25861
  const data = new Blob([src], {
25948
25862
  type: "image/svg+xml"
25949
25863
  });
@@ -26136,7 +26050,7 @@
26136
26050
  return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
26137
26051
  }
26138
26052
  };
26139
- exports.BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], exports.BrowserEnvContribution);
26053
+ exports.BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], exports.BrowserEnvContribution);
26140
26054
 
26141
26055
  const browserEnvModule = new ContainerModule(bind => {
26142
26056
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(exports.BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(exports.BrowserEnvContribution));
@@ -26151,7 +26065,7 @@
26151
26065
  loadBrowserEnv(container);
26152
26066
  }
26153
26067
 
26154
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26068
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26155
26069
  var d,
26156
26070
  c = arguments.length,
26157
26071
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26196,16 +26110,16 @@
26196
26110
  return null;
26197
26111
  }
26198
26112
  };
26199
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
26113
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
26200
26114
 
26201
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26115
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26202
26116
  var d,
26203
26117
  c = arguments.length,
26204
26118
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26205
26119
  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);
26206
26120
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26207
26121
  },
26208
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
26122
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
26209
26123
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26210
26124
  };
26211
26125
  let FeishuCanvas = class extends BaseCanvas {
@@ -26217,21 +26131,21 @@
26217
26131
  }
26218
26132
  release() {}
26219
26133
  };
26220
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
26134
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
26221
26135
 
26222
26136
  const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
26223
26137
 
26224
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26138
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26225
26139
  var d,
26226
26140
  c = arguments.length,
26227
26141
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26228
26142
  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);
26229
26143
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26230
26144
  },
26231
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
26145
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
26232
26146
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26233
26147
  },
26234
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
26148
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
26235
26149
  return function (target, key) {
26236
26150
  decorator(target, key, paramIndex);
26237
26151
  };
@@ -26367,22 +26281,22 @@
26367
26281
  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();
26368
26282
  }
26369
26283
  };
26370
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26284
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26371
26285
  const feishuWindowModule = new ContainerModule(bind => {
26372
26286
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
26373
26287
  });
26374
26288
 
26375
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26289
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26376
26290
  var d,
26377
26291
  c = arguments.length,
26378
26292
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26379
26293
  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);
26380
26294
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26381
26295
  },
26382
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
26296
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
26383
26297
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26384
26298
  },
26385
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26299
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
26386
26300
  return function (target, key) {
26387
26301
  decorator(target, key, paramIndex);
26388
26302
  };
@@ -26413,7 +26327,7 @@
26413
26327
  } : null;
26414
26328
  }
26415
26329
  };
26416
- DefaultMathPickerService = __decorate$R([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(MathPickerContribution)), __param$u(1, inject(ContributionProvider)), __param$u(1, named(PickItemInterceptor)), __param$u(2, inject(ContributionProvider)), __param$u(2, named(PickServiceInterceptor)), __metadata$H("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
26330
+ DefaultMathPickerService = __decorate$T([injectable(), __param$v(0, inject(ContributionProvider)), __param$v(0, named(MathPickerContribution)), __param$v(1, inject(ContributionProvider)), __param$v(1, named(PickItemInterceptor)), __param$v(2, inject(ContributionProvider)), __param$v(2, named(PickServiceInterceptor)), __metadata$I("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
26417
26331
 
26418
26332
  const m = new ContainerModule(bind => {
26419
26333
  m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -26450,17 +26364,17 @@
26450
26364
  }
26451
26365
  }
26452
26366
 
26453
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26367
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26454
26368
  var d,
26455
26369
  c = arguments.length,
26456
26370
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26457
26371
  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);
26458
26372
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26459
26373
  },
26460
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
26374
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
26461
26375
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26462
26376
  },
26463
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26377
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26464
26378
  return function (target, key) {
26465
26379
  decorator(target, key, paramIndex);
26466
26380
  };
@@ -26470,24 +26384,24 @@
26470
26384
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
26471
26385
  }
26472
26386
  };
26473
- DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
26387
+ DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
26474
26388
 
26475
26389
  let loadArcPick$1 = !1;
26476
26390
  const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26477
26391
  loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
26478
26392
  });
26479
26393
 
26480
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26394
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26481
26395
  var d,
26482
26396
  c = arguments.length,
26483
26397
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26484
26398
  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);
26485
26399
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26486
26400
  },
26487
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
26401
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
26488
26402
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26489
26403
  },
26490
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26404
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26491
26405
  return function (target, key) {
26492
26406
  decorator(target, key, paramIndex);
26493
26407
  };
@@ -26497,24 +26411,24 @@
26497
26411
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
26498
26412
  }
26499
26413
  };
26500
- DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
26414
+ DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
26501
26415
 
26502
26416
  let loadAreaPick$1 = !1;
26503
26417
  const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26504
26418
  loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
26505
26419
  });
26506
26420
 
26507
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26421
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26508
26422
  var d,
26509
26423
  c = arguments.length,
26510
26424
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26511
26425
  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);
26512
26426
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26513
26427
  },
26514
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
26428
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
26515
26429
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26516
26430
  },
26517
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26431
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26518
26432
  return function (target, key) {
26519
26433
  decorator(target, key, paramIndex);
26520
26434
  };
@@ -26524,7 +26438,7 @@
26524
26438
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
26525
26439
  }
26526
26440
  };
26527
- DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
26441
+ DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
26528
26442
 
26529
26443
  let loadCirclePick$1 = !1;
26530
26444
  const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26555,17 +26469,17 @@
26555
26469
  }
26556
26470
  }
26557
26471
 
26558
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26472
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26559
26473
  var d,
26560
26474
  c = arguments.length,
26561
26475
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26562
26476
  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);
26563
26477
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26564
26478
  },
26565
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
26479
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
26566
26480
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26567
26481
  },
26568
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26482
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26569
26483
  return function (target, key) {
26570
26484
  decorator(target, key, paramIndex);
26571
26485
  };
@@ -26575,14 +26489,14 @@
26575
26489
  super(), this.canvasRenderer = canvasRenderer;
26576
26490
  }
26577
26491
  };
26578
- DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26492
+ DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26579
26493
 
26580
26494
  let loadGlyphPick$1 = !1;
26581
26495
  const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26582
26496
  loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
26583
26497
  });
26584
26498
 
26585
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26499
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26586
26500
  var d,
26587
26501
  c = arguments.length,
26588
26502
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26600,24 +26514,24 @@
26600
26514
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
26601
26515
  }
26602
26516
  };
26603
- DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
26517
+ DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
26604
26518
 
26605
26519
  let loadImagePick$1 = !1;
26606
26520
  const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26607
26521
  loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26608
26522
  });
26609
26523
 
26610
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26524
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26611
26525
  var d,
26612
26526
  c = arguments.length,
26613
26527
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26614
26528
  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);
26615
26529
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26616
26530
  },
26617
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
26531
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
26618
26532
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26619
26533
  },
26620
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26534
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26621
26535
  return function (target, key) {
26622
26536
  decorator(target, key, paramIndex);
26623
26537
  };
@@ -26627,24 +26541,24 @@
26627
26541
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
26628
26542
  }
26629
26543
  };
26630
- DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
26544
+ DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
26631
26545
 
26632
26546
  let loadLinePick$1 = !1;
26633
26547
  const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26634
26548
  loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
26635
26549
  });
26636
26550
 
26637
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26551
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26638
26552
  var d,
26639
26553
  c = arguments.length,
26640
26554
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26641
26555
  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);
26642
26556
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26643
26557
  },
26644
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
26558
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
26645
26559
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26646
26560
  },
26647
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26561
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26648
26562
  return function (target, key) {
26649
26563
  decorator(target, key, paramIndex);
26650
26564
  };
@@ -26654,24 +26568,24 @@
26654
26568
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
26655
26569
  }
26656
26570
  };
26657
- DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26571
+ DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26658
26572
 
26659
26573
  let loadPolygonPick$1 = !1;
26660
26574
  const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26661
26575
  loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
26662
26576
  });
26663
26577
 
26664
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26578
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26665
26579
  var d,
26666
26580
  c = arguments.length,
26667
26581
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26668
26582
  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);
26669
26583
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26670
26584
  },
26671
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
26585
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
26672
26586
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26673
26587
  },
26674
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26588
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26675
26589
  return function (target, key) {
26676
26590
  decorator(target, key, paramIndex);
26677
26591
  };
@@ -26681,7 +26595,7 @@
26681
26595
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
26682
26596
  }
26683
26597
  };
26684
- DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
26598
+ DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
26685
26599
 
26686
26600
  let loadPathPick$1 = !1;
26687
26601
  const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26736,17 +26650,17 @@
26736
26650
  }
26737
26651
  }
26738
26652
 
26739
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26653
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26740
26654
  var d,
26741
26655
  c = arguments.length,
26742
26656
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26743
26657
  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);
26744
26658
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26745
26659
  },
26746
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
26660
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
26747
26661
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26748
26662
  },
26749
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26663
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26750
26664
  return function (target, key) {
26751
26665
  decorator(target, key, paramIndex);
26752
26666
  };
@@ -26756,7 +26670,7 @@
26756
26670
  super(), this.canvasRenderer = canvasRenderer;
26757
26671
  }
26758
26672
  };
26759
- DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
26673
+ DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
26760
26674
 
26761
26675
  let loadRectPick$1 = !1;
26762
26676
  const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26768,17 +26682,17 @@
26768
26682
  loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26769
26683
  });
26770
26684
 
26771
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26685
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26772
26686
  var d,
26773
26687
  c = arguments.length,
26774
26688
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26775
26689
  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);
26776
26690
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26777
26691
  },
26778
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
26692
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
26779
26693
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26780
26694
  },
26781
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
26695
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26782
26696
  return function (target, key) {
26783
26697
  decorator(target, key, paramIndex);
26784
26698
  };
@@ -26788,14 +26702,14 @@
26788
26702
  super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
26789
26703
  }
26790
26704
  };
26791
- DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26705
+ DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26792
26706
 
26793
26707
  let loadSymbolPick$1 = !1;
26794
26708
  const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26795
26709
  loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
26796
26710
  });
26797
26711
 
26798
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26712
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26799
26713
  var d,
26800
26714
  c = arguments.length,
26801
26715
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26810,7 +26724,7 @@
26810
26724
  return !!text.AABBBounds.containsPoint(point);
26811
26725
  }
26812
26726
  };
26813
- DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
26727
+ DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
26814
26728
 
26815
26729
  let loadTextPick$1 = !1;
26816
26730
  const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26893,19 +26807,20 @@
26893
26807
  }
26894
26808
  }
26895
26809
 
26896
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26810
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26897
26811
  var d,
26898
26812
  c = arguments.length,
26899
26813
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26900
26814
  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);
26901
26815
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26902
26816
  },
26903
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
26817
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
26904
26818
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26905
26819
  };
26906
26820
  function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
26907
26821
  const dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
26908
26822
  canvasIdLists.forEach((id, i) => {
26823
+ if (canvasMap.has(id)) return;
26909
26824
  const ctx = tt.createCanvasContext(id),
26910
26825
  canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
26911
26826
  ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
@@ -26982,7 +26897,7 @@
26982
26897
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
26983
26898
  }
26984
26899
  };
26985
- FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
26900
+ FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
26986
26901
 
26987
26902
  const feishuEnvModule = new ContainerModule(bind => {
26988
26903
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -26997,7 +26912,7 @@
26997
26912
  loadFeishuEnv(container);
26998
26913
  }
26999
26914
 
27000
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26915
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27001
26916
  var d,
27002
26917
  c = arguments.length,
27003
26918
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27044,7 +26959,13 @@
27044
26959
  measureText(text) {
27045
26960
  let method = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : application.global.measureTextMethod;
27046
26961
  this.setTransform(1, 0, 0, 1, 0, 0, !0, application.global.devicePixelRatio);
27047
- return super.measureText(text, method);
26962
+ return {
26963
+ width: super.measureText(text, method).width,
26964
+ fontBoundingBoxDescent: void 0,
26965
+ fontBoundingBoxAscent: void 0,
26966
+ actualBoundingBoxAscent: void 0,
26967
+ actualBoundingBoxDescent: void 0
26968
+ };
27048
26969
  }
27049
26970
  createPattern(image, repetition) {
27050
26971
  return null;
@@ -27058,16 +26979,16 @@
27058
26979
  }));
27059
26980
  }
27060
26981
  };
27061
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
26982
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
27062
26983
 
27063
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26984
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27064
26985
  var d,
27065
26986
  c = arguments.length,
27066
26987
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27067
26988
  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);
27068
26989
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27069
26990
  },
27070
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
26991
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
27071
26992
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27072
26993
  };
27073
26994
  let LynxCanvas = class extends BaseCanvas {
@@ -27083,19 +27004,19 @@
27083
27004
  }
27084
27005
  release() {}
27085
27006
  };
27086
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
27007
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
27087
27008
 
27088
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27009
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27089
27010
  var d,
27090
27011
  c = arguments.length,
27091
27012
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27092
27013
  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);
27093
27014
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27094
27015
  },
27095
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
27016
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
27096
27017
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27097
27018
  },
27098
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
27019
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
27099
27020
  return function (target, key) {
27100
27021
  decorator(target, key, paramIndex);
27101
27022
  };
@@ -27233,21 +27154,21 @@
27233
27154
  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();
27234
27155
  }
27235
27156
  };
27236
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
27157
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
27237
27158
  const lynxWindowModule = new ContainerModule(bind => {
27238
27159
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
27239
27160
  });
27240
27161
 
27241
27162
  const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
27242
27163
 
27243
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27164
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27244
27165
  var d,
27245
27166
  c = arguments.length,
27246
27167
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27247
27168
  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);
27248
27169
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27249
27170
  },
27250
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
27171
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
27251
27172
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27252
27173
  };
27253
27174
  let ng = !1;
@@ -27357,7 +27278,7 @@
27357
27278
  }
27358
27279
  release() {}
27359
27280
  };
27360
- LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
27281
+ LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
27361
27282
 
27362
27283
  const lynxEnvModule = new ContainerModule(bind => {
27363
27284
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -27372,14 +27293,14 @@
27372
27293
  loadLynxEnv(container);
27373
27294
  }
27374
27295
 
27375
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27296
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27376
27297
  var d,
27377
27298
  c = arguments.length,
27378
27299
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27379
27300
  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);
27380
27301
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27381
27302
  },
27382
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
27303
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
27383
27304
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27384
27305
  };
27385
27306
  let NodeContext2d = class extends BrowserContext2d {
@@ -27391,16 +27312,16 @@
27391
27312
  }
27392
27313
  release() {}
27393
27314
  };
27394
- NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
27315
+ NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
27395
27316
 
27396
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27317
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27397
27318
  var d,
27398
27319
  c = arguments.length,
27399
27320
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27400
27321
  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);
27401
27322
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27402
27323
  },
27403
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
27324
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
27404
27325
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27405
27326
  };
27406
27327
  let NodeCanvas = class extends BaseCanvas {
@@ -27414,21 +27335,21 @@
27414
27335
  this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
27415
27336
  }
27416
27337
  };
27417
- NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
27338
+ NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
27418
27339
 
27419
27340
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
27420
27341
 
27421
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27342
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27422
27343
  var d,
27423
27344
  c = arguments.length,
27424
27345
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27425
27346
  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);
27426
27347
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27427
27348
  },
27428
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
27349
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
27429
27350
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27430
27351
  },
27431
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27352
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
27432
27353
  return function (target, key) {
27433
27354
  decorator(target, key, paramIndex);
27434
27355
  };
@@ -27519,12 +27440,12 @@
27519
27440
  }
27520
27441
  clearViewBox(color) {}
27521
27442
  };
27522
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27443
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27523
27444
  const nodeWindowModule = new ContainerModule(bind => {
27524
27445
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
27525
27446
  });
27526
27447
 
27527
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27448
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27528
27449
  var d,
27529
27450
  c = arguments.length,
27530
27451
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27610,7 +27531,7 @@
27610
27531
  release() {}
27611
27532
  createOffscreenCanvas(params) {}
27612
27533
  };
27613
- NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
27534
+ NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
27614
27535
 
27615
27536
  const nodeEnvModule = new ContainerModule(bind => {
27616
27537
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -27624,7 +27545,7 @@
27624
27545
  loadNodeEnv(container);
27625
27546
  }
27626
27547
 
27627
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27548
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27628
27549
  var d,
27629
27550
  c = arguments.length,
27630
27551
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27713,16 +27634,16 @@
27713
27634
  return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
27714
27635
  }
27715
27636
  };
27716
- TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
27637
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
27717
27638
 
27718
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27639
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27719
27640
  var d,
27720
27641
  c = arguments.length,
27721
27642
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27722
27643
  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);
27723
27644
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27724
27645
  },
27725
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
27646
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
27726
27647
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27727
27648
  };
27728
27649
  let TaroCanvas = class extends BaseCanvas {
@@ -27734,21 +27655,21 @@
27734
27655
  }
27735
27656
  release() {}
27736
27657
  };
27737
- TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
27658
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
27738
27659
 
27739
27660
  const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
27740
27661
 
27741
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27662
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27742
27663
  var d,
27743
27664
  c = arguments.length,
27744
27665
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27745
27666
  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);
27746
27667
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27747
27668
  },
27748
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
27669
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
27749
27670
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27750
27671
  },
27751
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
27672
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27752
27673
  return function (target, key) {
27753
27674
  decorator(target, key, paramIndex);
27754
27675
  };
@@ -27894,19 +27815,19 @@
27894
27815
  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();
27895
27816
  }
27896
27817
  };
27897
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27818
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27898
27819
  const taroWindowModule = new ContainerModule(bind => {
27899
27820
  bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
27900
27821
  });
27901
27822
 
27902
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27823
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27903
27824
  var d,
27904
27825
  c = arguments.length,
27905
27826
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27906
27827
  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);
27907
27828
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27908
27829
  },
27909
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
27830
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
27910
27831
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27911
27832
  };
27912
27833
  function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
@@ -28003,7 +27924,7 @@
28003
27924
  }
28004
27925
  release() {}
28005
27926
  };
28006
- TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
27927
+ TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
28007
27928
 
28008
27929
  const taroEnvModule = new ContainerModule(bind => {
28009
27930
  taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
@@ -28018,7 +27939,7 @@
28018
27939
  loadTaroEnv(container);
28019
27940
  }
28020
27941
 
28021
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27942
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28022
27943
  var d,
28023
27944
  c = arguments.length,
28024
27945
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28031,16 +27952,16 @@
28031
27952
  return null;
28032
27953
  }
28033
27954
  };
28034
- WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
27955
+ WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
28035
27956
 
28036
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27957
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28037
27958
  var d,
28038
27959
  c = arguments.length,
28039
27960
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28040
27961
  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);
28041
27962
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28042
27963
  },
28043
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
27964
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
28044
27965
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28045
27966
  };
28046
27967
  let WxCanvas = class extends BaseCanvas {
@@ -28052,21 +27973,21 @@
28052
27973
  }
28053
27974
  release() {}
28054
27975
  };
28055
- WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
27976
+ WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
28056
27977
 
28057
27978
  const wxCanvasModule = createModule(WxCanvas, WxContext2d);
28058
27979
 
28059
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27980
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28060
27981
  var d,
28061
27982
  c = arguments.length,
28062
27983
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28063
27984
  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);
28064
27985
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28065
27986
  },
28066
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
27987
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
28067
27988
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28068
27989
  },
28069
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
27990
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
28070
27991
  return function (target, key) {
28071
27992
  decorator(target, key, paramIndex);
28072
27993
  };
@@ -28203,19 +28124,19 @@
28203
28124
  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();
28204
28125
  }
28205
28126
  };
28206
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
28127
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
28207
28128
  const wxWindowModule = new ContainerModule(bind => {
28208
28129
  bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
28209
28130
  });
28210
28131
 
28211
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28132
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28212
28133
  var d,
28213
28134
  c = arguments.length,
28214
28135
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28215
28136
  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);
28216
28137
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28217
28138
  },
28218
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
28139
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
28219
28140
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28220
28141
  },
28221
28142
  __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28248,7 +28169,7 @@
28248
28169
  const dpr = wx.getSystemInfoSync().pixelRatio;
28249
28170
  for (let i = 0; i < canvasIdLists.length; i++) {
28250
28171
  const id = canvasIdLists[i];
28251
- yield new Promise(resolve => {
28172
+ canvasMap.has(id) || (yield new Promise(resolve => {
28252
28173
  let data = wx.createSelectorQuery();
28253
28174
  component && (data = data.in(component)), data.select(`#${id}`).fields({
28254
28175
  node: !0,
@@ -28260,7 +28181,7 @@
28260
28181
  height = res[0].height;
28261
28182
  canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
28262
28183
  });
28263
- });
28184
+ }));
28264
28185
  }
28265
28186
  });
28266
28187
  }
@@ -28329,7 +28250,7 @@
28329
28250
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28330
28251
  }
28331
28252
  };
28332
- WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
28253
+ WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
28333
28254
 
28334
28255
  const wxEnvModule = new ContainerModule(bind => {
28335
28256
  wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
@@ -28357,7 +28278,7 @@
28357
28278
  loadAllEnv(container);
28358
28279
  }
28359
28280
 
28360
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28281
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28361
28282
  var d,
28362
28283
  c = arguments.length,
28363
28284
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28365,16 +28286,16 @@
28365
28286
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28366
28287
  };
28367
28288
  let TTContext2d = class extends FeishuContext2d {};
28368
- TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
28289
+ TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
28369
28290
 
28370
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28291
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28371
28292
  var d,
28372
28293
  c = arguments.length,
28373
28294
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28374
28295
  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);
28375
28296
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28376
28297
  },
28377
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
28298
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
28378
28299
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28379
28300
  };
28380
28301
  let TTCanvas = class extends BaseCanvas {
@@ -28386,21 +28307,21 @@
28386
28307
  }
28387
28308
  release() {}
28388
28309
  };
28389
- TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
28310
+ TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
28390
28311
 
28391
28312
  const ttCanvasModule = createModule(TTCanvas, TTContext2d);
28392
28313
 
28393
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28314
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28394
28315
  var d,
28395
28316
  c = arguments.length,
28396
28317
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28397
28318
  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);
28398
28319
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28399
28320
  },
28400
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
28321
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
28401
28322
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28402
28323
  },
28403
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28324
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
28404
28325
  return function (target, key) {
28405
28326
  decorator(target, key, paramIndex);
28406
28327
  };
@@ -28536,19 +28457,19 @@
28536
28457
  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();
28537
28458
  }
28538
28459
  };
28539
- TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
28460
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
28540
28461
  const ttWindowModule = new ContainerModule(bind => {
28541
28462
  bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
28542
28463
  });
28543
28464
 
28544
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28465
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28545
28466
  var d,
28546
28467
  c = arguments.length,
28547
28468
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28548
28469
  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);
28549
28470
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28550
28471
  },
28551
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
28472
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
28552
28473
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28553
28474
  },
28554
28475
  __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28581,7 +28502,7 @@
28581
28502
  const dpr = tt.getSystemInfoSync().pixelRatio;
28582
28503
  for (let i = 0; i < canvasIdLists.length; i++) {
28583
28504
  const id = canvasIdLists[i];
28584
- yield new Promise(resolve => {
28505
+ canvasMap.has(id) || (yield new Promise(resolve => {
28585
28506
  let data = tt.createSelectorQuery();
28586
28507
  component && (data = data.in(component)), data.select(`#${id}`).node().exec(res => {
28587
28508
  const canvas = res[0].node,
@@ -28589,7 +28510,7 @@
28589
28510
  height = canvas.height;
28590
28511
  canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
28591
28512
  });
28592
- });
28513
+ }));
28593
28514
  }
28594
28515
  });
28595
28516
  }
@@ -28658,7 +28579,7 @@
28658
28579
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28659
28580
  }
28660
28581
  };
28661
- TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
28582
+ TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
28662
28583
 
28663
28584
  const ttEnvModule = new ContainerModule(bind => {
28664
28585
  ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
@@ -28673,7 +28594,7 @@
28673
28594
  loadTTEnv(container);
28674
28595
  }
28675
28596
 
28676
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28597
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28677
28598
  var d,
28678
28599
  c = arguments.length,
28679
28600
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28758,16 +28679,16 @@
28758
28679
  }
28759
28680
  draw() {}
28760
28681
  };
28761
- HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
28682
+ HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
28762
28683
 
28763
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28684
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28764
28685
  var d,
28765
28686
  c = arguments.length,
28766
28687
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28767
28688
  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);
28768
28689
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28769
28690
  },
28770
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
28691
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
28771
28692
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28772
28693
  };
28773
28694
  let HarmonyCanvas = class extends BaseCanvas {
@@ -28780,19 +28701,19 @@
28780
28701
  resize(width, height) {}
28781
28702
  release() {}
28782
28703
  };
28783
- HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
28704
+ HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
28784
28705
 
28785
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28706
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28786
28707
  var d,
28787
28708
  c = arguments.length,
28788
28709
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28789
28710
  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);
28790
28711
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28791
28712
  },
28792
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
28713
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
28793
28714
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28794
28715
  },
28795
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
28716
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28796
28717
  return function (target, key) {
28797
28718
  decorator(target, key, paramIndex);
28798
28719
  };
@@ -28929,21 +28850,21 @@
28929
28850
  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();
28930
28851
  }
28931
28852
  };
28932
- HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28853
+ HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28933
28854
  const harmonyWindowModule = new ContainerModule(bind => {
28934
28855
  bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
28935
28856
  });
28936
28857
 
28937
28858
  const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
28938
28859
 
28939
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28860
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28940
28861
  var d,
28941
28862
  c = arguments.length,
28942
28863
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28943
28864
  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);
28944
28865
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28945
28866
  },
28946
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
28867
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
28947
28868
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28948
28869
  };
28949
28870
  function createCanvas(width, height, id) {
@@ -29024,7 +28945,7 @@
29024
28945
  }
29025
28946
  release() {}
29026
28947
  };
29027
- HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
28948
+ HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
29028
28949
 
29029
28950
  const harmonyEnvModule = new ContainerModule(bind => {
29030
28951
  harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
@@ -29039,17 +28960,17 @@
29039
28960
  loadHarmonyEnv(container);
29040
28961
  }
29041
28962
 
29042
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28963
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29043
28964
  var d,
29044
28965
  c = arguments.length,
29045
28966
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29046
28967
  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);
29047
28968
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29048
28969
  },
29049
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
28970
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
29050
28971
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29051
28972
  },
29052
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
28973
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
29053
28974
  return function (target, key) {
29054
28975
  decorator(target, key, paramIndex);
29055
28976
  };
@@ -29059,24 +28980,24 @@
29059
28980
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
29060
28981
  }
29061
28982
  };
29062
- DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
28983
+ DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
29063
28984
 
29064
28985
  let loadArcPick = !1;
29065
28986
  const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29066
28987
  loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
29067
28988
  });
29068
28989
 
29069
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28990
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29070
28991
  var d,
29071
28992
  c = arguments.length,
29072
28993
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29073
28994
  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);
29074
28995
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29075
28996
  },
29076
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
28997
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
29077
28998
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29078
28999
  },
29079
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
29000
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
29080
29001
  return function (target, key) {
29081
29002
  decorator(target, key, paramIndex);
29082
29003
  };
@@ -29086,7 +29007,7 @@
29086
29007
  super(), this.canvasRenderer = canvasRenderer;
29087
29008
  }
29088
29009
  };
29089
- DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
29010
+ DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
29090
29011
 
29091
29012
  let loadRectPick = !1;
29092
29013
  const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -29128,17 +29049,17 @@
29128
29049
  }
29129
29050
  }
29130
29051
 
29131
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29052
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29132
29053
  var d,
29133
29054
  c = arguments.length,
29134
29055
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29135
29056
  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);
29136
29057
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29137
29058
  },
29138
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
29059
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
29139
29060
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29140
29061
  },
29141
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
29062
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
29142
29063
  return function (target, key) {
29143
29064
  decorator(target, key, paramIndex);
29144
29065
  };
@@ -29148,24 +29069,24 @@
29148
29069
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
29149
29070
  }
29150
29071
  };
29151
- DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
29072
+ DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
29152
29073
 
29153
29074
  let loadLinePick = !1;
29154
29075
  const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29155
29076
  loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
29156
29077
  });
29157
29078
 
29158
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29079
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29159
29080
  var d,
29160
29081
  c = arguments.length,
29161
29082
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29162
29083
  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);
29163
29084
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29164
29085
  },
29165
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
29086
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
29166
29087
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29167
29088
  },
29168
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
29089
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
29169
29090
  return function (target, key) {
29170
29091
  decorator(target, key, paramIndex);
29171
29092
  };
@@ -29175,7 +29096,7 @@
29175
29096
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
29176
29097
  }
29177
29098
  };
29178
- DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
29099
+ DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
29179
29100
 
29180
29101
  let loadAreaPick = !1;
29181
29102
  const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -29209,17 +29130,17 @@
29209
29130
  }
29210
29131
  }
29211
29132
 
29212
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29133
+ var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29213
29134
  var d,
29214
29135
  c = arguments.length,
29215
29136
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29216
29137
  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);
29217
29138
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29218
29139
  },
29219
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
29140
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
29220
29141
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29221
29142
  },
29222
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
29143
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
29223
29144
  return function (target, key) {
29224
29145
  decorator(target, key, paramIndex);
29225
29146
  };
@@ -29264,24 +29185,24 @@
29264
29185
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
29265
29186
  }
29266
29187
  };
29267
- DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
29188
+ DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
29268
29189
 
29269
29190
  let loadSymbolPick = !1;
29270
29191
  const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29271
29192
  loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
29272
29193
  });
29273
29194
 
29274
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29195
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29275
29196
  var d,
29276
29197
  c = arguments.length,
29277
29198
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29278
29199
  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);
29279
29200
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29280
29201
  },
29281
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
29202
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
29282
29203
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29283
29204
  },
29284
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
29205
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
29285
29206
  return function (target, key) {
29286
29207
  decorator(target, key, paramIndex);
29287
29208
  };
@@ -29291,24 +29212,24 @@
29291
29212
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
29292
29213
  }
29293
29214
  };
29294
- DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
29215
+ DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
29295
29216
 
29296
29217
  let loadCirclePick = !1;
29297
29218
  const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29298
29219
  loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
29299
29220
  });
29300
29221
 
29301
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29222
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29302
29223
  var d,
29303
29224
  c = arguments.length,
29304
29225
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29305
29226
  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);
29306
29227
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29307
29228
  },
29308
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29229
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
29309
29230
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29310
29231
  },
29311
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29232
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
29312
29233
  return function (target, key) {
29313
29234
  decorator(target, key, paramIndex);
29314
29235
  };
@@ -29361,24 +29282,24 @@
29361
29282
  }, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
29362
29283
  }
29363
29284
  };
29364
- DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29285
+ DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29365
29286
 
29366
29287
  let loadTextPick = !1;
29367
29288
  const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29368
29289
  loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
29369
29290
  });
29370
29291
 
29371
- var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29292
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29372
29293
  var d,
29373
29294
  c = arguments.length,
29374
29295
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29375
29296
  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);
29376
29297
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29377
29298
  },
29378
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29299
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29379
29300
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29380
29301
  },
29381
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29302
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29382
29303
  return function (target, key) {
29383
29304
  decorator(target, key, paramIndex);
29384
29305
  };
@@ -29388,24 +29309,24 @@
29388
29309
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
29389
29310
  }
29390
29311
  };
29391
- DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29312
+ DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29392
29313
 
29393
29314
  let loadPathPick = !1;
29394
29315
  const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29395
29316
  loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
29396
29317
  });
29397
29318
 
29398
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29319
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29399
29320
  var d,
29400
29321
  c = arguments.length,
29401
29322
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29402
29323
  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);
29403
29324
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29404
29325
  },
29405
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29326
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29406
29327
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29407
29328
  },
29408
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29329
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29409
29330
  return function (target, key) {
29410
29331
  decorator(target, key, paramIndex);
29411
29332
  };
@@ -29415,24 +29336,24 @@
29415
29336
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
29416
29337
  }
29417
29338
  };
29418
- DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29339
+ DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29419
29340
 
29420
29341
  let loadPolygonPick = !1;
29421
29342
  const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29422
29343
  loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
29423
29344
  });
29424
29345
 
29425
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29346
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29426
29347
  var d,
29427
29348
  c = arguments.length,
29428
29349
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29429
29350
  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);
29430
29351
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29431
29352
  },
29432
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29353
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29433
29354
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29434
29355
  },
29435
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29356
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29436
29357
  return function (target, key) {
29437
29358
  decorator(target, key, paramIndex);
29438
29359
  };
@@ -29442,24 +29363,24 @@
29442
29363
  super(), this.canvasRenderer = canvasRenderer;
29443
29364
  }
29444
29365
  };
29445
- DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29366
+ DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29446
29367
 
29447
29368
  let loadGlyphPick = !1;
29448
29369
  const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29449
29370
  loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
29450
29371
  });
29451
29372
 
29452
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29373
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29453
29374
  var d,
29454
29375
  c = arguments.length,
29455
29376
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29456
29377
  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);
29457
29378
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29458
29379
  },
29459
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29380
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29460
29381
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29461
29382
  },
29462
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29383
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29463
29384
  return function (target, key) {
29464
29385
  decorator(target, key, paramIndex);
29465
29386
  };
@@ -29472,14 +29393,14 @@
29472
29393
  return !!richtext.AABBBounds.containsPoint(point);
29473
29394
  }
29474
29395
  };
29475
- DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29396
+ DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29476
29397
 
29477
29398
  let loadRichtextPick = !1;
29478
29399
  const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29479
29400
  loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
29480
29401
  });
29481
29402
 
29482
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29403
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29483
29404
  var d,
29484
29405
  c = arguments.length,
29485
29406
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29497,24 +29418,24 @@
29497
29418
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
29498
29419
  }
29499
29420
  };
29500
- DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
29421
+ DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
29501
29422
 
29502
29423
  let loadImagePick = !1;
29503
29424
  const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29504
29425
  loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
29505
29426
  });
29506
29427
 
29507
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29428
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29508
29429
  var d,
29509
29430
  c = arguments.length,
29510
29431
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29511
29432
  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);
29512
29433
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29513
29434
  },
29514
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29435
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29515
29436
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29516
29437
  },
29517
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29438
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29518
29439
  return function (target, key) {
29519
29440
  decorator(target, key, paramIndex);
29520
29441
  };
@@ -29524,24 +29445,24 @@
29524
29445
  super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
29525
29446
  }
29526
29447
  };
29527
- DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29448
+ DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29528
29449
 
29529
29450
  let loadRect3dPick = !1;
29530
29451
  const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29531
29452
  loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
29532
29453
  });
29533
29454
 
29534
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29455
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29535
29456
  var d,
29536
29457
  c = arguments.length,
29537
29458
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29538
29459
  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);
29539
29460
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29540
29461
  },
29541
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29462
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29542
29463
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29543
29464
  },
29544
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29465
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29545
29466
  return function (target, key) {
29546
29467
  decorator(target, key, paramIndex);
29547
29468
  };
@@ -29551,24 +29472,24 @@
29551
29472
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
29552
29473
  }
29553
29474
  };
29554
- DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29475
+ DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29555
29476
 
29556
29477
  let loadArc3dPick = !1;
29557
29478
  const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29558
29479
  loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
29559
29480
  });
29560
29481
 
29561
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29482
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29562
29483
  var d,
29563
29484
  c = arguments.length,
29564
29485
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29565
29486
  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);
29566
29487
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29567
29488
  },
29568
- __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29489
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29569
29490
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29570
29491
  },
29571
- __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29492
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29572
29493
  return function (target, key) {
29573
29494
  decorator(target, key, paramIndex);
29574
29495
  };
@@ -29578,15 +29499,747 @@
29578
29499
  super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
29579
29500
  }
29580
29501
  };
29581
- DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29502
+ DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29582
29503
 
29583
29504
  let loadPyramid3dPick = !1;
29584
29505
  const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29585
29506
  loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
29586
29507
  });
29587
29508
 
29509
+ var lib$1 = {};
29510
+
29511
+ var gif = {};
29512
+
29513
+ var lib = {};
29514
+
29515
+ Object.defineProperty(lib, "__esModule", {
29516
+ value: true
29517
+ });
29518
+ lib.loop = lib.conditional = lib.parse = void 0;
29519
+ var parse = function parse(stream, schema) {
29520
+ var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
29521
+ var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
29522
+ if (Array.isArray(schema)) {
29523
+ schema.forEach(function (partSchema) {
29524
+ return parse(stream, partSchema, result, parent);
29525
+ });
29526
+ } else if (typeof schema === 'function') {
29527
+ schema(stream, result, parent, parse);
29528
+ } else {
29529
+ var key = Object.keys(schema)[0];
29530
+ if (Array.isArray(schema[key])) {
29531
+ parent[key] = {};
29532
+ parse(stream, schema[key], result, parent[key]);
29533
+ } else {
29534
+ parent[key] = schema[key](stream, result, parent, parse);
29535
+ }
29536
+ }
29537
+ return result;
29538
+ };
29539
+ lib.parse = parse;
29540
+ var conditional = function conditional(schema, conditionFunc) {
29541
+ return function (stream, result, parent, parse) {
29542
+ if (conditionFunc(stream, result, parent)) {
29543
+ parse(stream, schema, result, parent);
29544
+ }
29545
+ };
29546
+ };
29547
+ lib.conditional = conditional;
29548
+ var loop = function loop(schema, continueFunc) {
29549
+ return function (stream, result, parent, parse) {
29550
+ var arr = [];
29551
+ var lastStreamPos = stream.pos;
29552
+ while (continueFunc(stream, result, parent)) {
29553
+ var newParent = {};
29554
+ parse(stream, schema, result, newParent); // cases when whole file is parsed but no termination is there and stream position is not getting updated as well
29555
+ // it falls into infinite recursion, null check to avoid the same
29556
+
29557
+ if (stream.pos === lastStreamPos) {
29558
+ break;
29559
+ }
29560
+ lastStreamPos = stream.pos;
29561
+ arr.push(newParent);
29562
+ }
29563
+ return arr;
29564
+ };
29565
+ };
29566
+ lib.loop = loop;
29567
+
29568
+ var uint8 = {};
29569
+
29570
+ Object.defineProperty(uint8, "__esModule", {
29571
+ value: true
29572
+ });
29573
+ uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
29574
+
29575
+ // Default stream and parsers for Uint8TypedArray data type
29576
+ var buildStream = function buildStream(uint8Data) {
29577
+ return {
29578
+ data: uint8Data,
29579
+ pos: 0
29580
+ };
29581
+ };
29582
+ uint8.buildStream = buildStream;
29583
+ var readByte = function readByte() {
29584
+ return function (stream) {
29585
+ return stream.data[stream.pos++];
29586
+ };
29587
+ };
29588
+ uint8.readByte = readByte;
29589
+ var peekByte = function peekByte() {
29590
+ var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
29591
+ return function (stream) {
29592
+ return stream.data[stream.pos + offset];
29593
+ };
29594
+ };
29595
+ uint8.peekByte = peekByte;
29596
+ var readBytes = function readBytes(length) {
29597
+ return function (stream) {
29598
+ return stream.data.subarray(stream.pos, stream.pos += length);
29599
+ };
29600
+ };
29601
+ uint8.readBytes = readBytes;
29602
+ var peekBytes = function peekBytes(length) {
29603
+ return function (stream) {
29604
+ return stream.data.subarray(stream.pos, stream.pos + length);
29605
+ };
29606
+ };
29607
+ uint8.peekBytes = peekBytes;
29608
+ var readString = function readString(length) {
29609
+ return function (stream) {
29610
+ return Array.from(readBytes(length)(stream)).map(function (value) {
29611
+ return String.fromCharCode(value);
29612
+ }).join('');
29613
+ };
29614
+ };
29615
+ uint8.readString = readString;
29616
+ var readUnsigned = function readUnsigned(littleEndian) {
29617
+ return function (stream) {
29618
+ var bytes = readBytes(2)(stream);
29619
+ return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
29620
+ };
29621
+ };
29622
+ uint8.readUnsigned = readUnsigned;
29623
+ var readArray = function readArray(byteSize, totalOrFunc) {
29624
+ return function (stream, result, parent) {
29625
+ var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
29626
+ var parser = readBytes(byteSize);
29627
+ var arr = new Array(total);
29628
+ for (var i = 0; i < total; i++) {
29629
+ arr[i] = parser(stream);
29630
+ }
29631
+ return arr;
29632
+ };
29633
+ };
29634
+ uint8.readArray = readArray;
29635
+ var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
29636
+ var result = 0;
29637
+ for (var i = 0; i < length; i++) {
29638
+ result += bits[startIndex + i] && Math.pow(2, length - i - 1);
29639
+ }
29640
+ return result;
29641
+ };
29642
+ var readBits = function readBits(schema) {
29643
+ return function (stream) {
29644
+ var _byte = readByte()(stream); // convert the byte to bit array
29645
+
29646
+ var bits = new Array(8);
29647
+ for (var i = 0; i < 8; i++) {
29648
+ bits[7 - i] = !!(_byte & 1 << i);
29649
+ } // convert the bit array to values based on the schema
29650
+
29651
+ return Object.keys(schema).reduce(function (res, key) {
29652
+ var def = schema[key];
29653
+ if (def.length) {
29654
+ res[key] = subBitsTotal(bits, def.index, def.length);
29655
+ } else {
29656
+ res[key] = bits[def.index];
29657
+ }
29658
+ return res;
29659
+ }, {});
29660
+ };
29661
+ };
29662
+ uint8.readBits = readBits;
29663
+
29664
+ (function (exports) {
29665
+
29666
+ Object.defineProperty(exports, "__esModule", {
29667
+ value: true
29668
+ });
29669
+ exports["default"] = void 0;
29670
+ var _ = lib;
29671
+ var _uint = uint8;
29672
+
29673
+ // a set of 0x00 terminated subblocks
29674
+ var subBlocksSchema = {
29675
+ blocks: function blocks(stream) {
29676
+ var terminator = 0x00;
29677
+ var chunks = [];
29678
+ var streamSize = stream.data.length;
29679
+ var total = 0;
29680
+ for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
29681
+ // size becomes undefined for some case when file is corrupted and terminator is not proper
29682
+ // null check to avoid recursion
29683
+ if (!size) break; // catch corrupted files with no terminator
29684
+
29685
+ if (stream.pos + size >= streamSize) {
29686
+ var availableSize = streamSize - stream.pos;
29687
+ chunks.push((0, _uint.readBytes)(availableSize)(stream));
29688
+ total += availableSize;
29689
+ break;
29690
+ }
29691
+ chunks.push((0, _uint.readBytes)(size)(stream));
29692
+ total += size;
29693
+ }
29694
+ var result = new Uint8Array(total);
29695
+ var offset = 0;
29696
+ for (var i = 0; i < chunks.length; i++) {
29697
+ result.set(chunks[i], offset);
29698
+ offset += chunks[i].length;
29699
+ }
29700
+ return result;
29701
+ }
29702
+ }; // global control extension
29703
+
29704
+ var gceSchema = (0, _.conditional)({
29705
+ gce: [{
29706
+ codes: (0, _uint.readBytes)(2)
29707
+ }, {
29708
+ byteSize: (0, _uint.readByte)()
29709
+ }, {
29710
+ extras: (0, _uint.readBits)({
29711
+ future: {
29712
+ index: 0,
29713
+ length: 3
29714
+ },
29715
+ disposal: {
29716
+ index: 3,
29717
+ length: 3
29718
+ },
29719
+ userInput: {
29720
+ index: 6
29721
+ },
29722
+ transparentColorGiven: {
29723
+ index: 7
29724
+ }
29725
+ })
29726
+ }, {
29727
+ delay: (0, _uint.readUnsigned)(true)
29728
+ }, {
29729
+ transparentColorIndex: (0, _uint.readByte)()
29730
+ }, {
29731
+ terminator: (0, _uint.readByte)()
29732
+ }]
29733
+ }, function (stream) {
29734
+ var codes = (0, _uint.peekBytes)(2)(stream);
29735
+ return codes[0] === 0x21 && codes[1] === 0xf9;
29736
+ }); // image pipeline block
29737
+
29738
+ var imageSchema = (0, _.conditional)({
29739
+ image: [{
29740
+ code: (0, _uint.readByte)()
29741
+ }, {
29742
+ descriptor: [{
29743
+ left: (0, _uint.readUnsigned)(true)
29744
+ }, {
29745
+ top: (0, _uint.readUnsigned)(true)
29746
+ }, {
29747
+ width: (0, _uint.readUnsigned)(true)
29748
+ }, {
29749
+ height: (0, _uint.readUnsigned)(true)
29750
+ }, {
29751
+ lct: (0, _uint.readBits)({
29752
+ exists: {
29753
+ index: 0
29754
+ },
29755
+ interlaced: {
29756
+ index: 1
29757
+ },
29758
+ sort: {
29759
+ index: 2
29760
+ },
29761
+ future: {
29762
+ index: 3,
29763
+ length: 2
29764
+ },
29765
+ size: {
29766
+ index: 5,
29767
+ length: 3
29768
+ }
29769
+ })
29770
+ }]
29771
+ }, (0, _.conditional)({
29772
+ lct: (0, _uint.readArray)(3, function (stream, result, parent) {
29773
+ return Math.pow(2, parent.descriptor.lct.size + 1);
29774
+ })
29775
+ }, function (stream, result, parent) {
29776
+ return parent.descriptor.lct.exists;
29777
+ }), {
29778
+ data: [{
29779
+ minCodeSize: (0, _uint.readByte)()
29780
+ }, subBlocksSchema]
29781
+ }]
29782
+ }, function (stream) {
29783
+ return (0, _uint.peekByte)()(stream) === 0x2c;
29784
+ }); // plain text block
29785
+
29786
+ var textSchema = (0, _.conditional)({
29787
+ text: [{
29788
+ codes: (0, _uint.readBytes)(2)
29789
+ }, {
29790
+ blockSize: (0, _uint.readByte)()
29791
+ }, {
29792
+ preData: function preData(stream, result, parent) {
29793
+ return (0, _uint.readBytes)(parent.text.blockSize)(stream);
29794
+ }
29795
+ }, subBlocksSchema]
29796
+ }, function (stream) {
29797
+ var codes = (0, _uint.peekBytes)(2)(stream);
29798
+ return codes[0] === 0x21 && codes[1] === 0x01;
29799
+ }); // application block
29800
+
29801
+ var applicationSchema = (0, _.conditional)({
29802
+ application: [{
29803
+ codes: (0, _uint.readBytes)(2)
29804
+ }, {
29805
+ blockSize: (0, _uint.readByte)()
29806
+ }, {
29807
+ id: function id(stream, result, parent) {
29808
+ return (0, _uint.readString)(parent.blockSize)(stream);
29809
+ }
29810
+ }, subBlocksSchema]
29811
+ }, function (stream) {
29812
+ var codes = (0, _uint.peekBytes)(2)(stream);
29813
+ return codes[0] === 0x21 && codes[1] === 0xff;
29814
+ }); // comment block
29815
+
29816
+ var commentSchema = (0, _.conditional)({
29817
+ comment: [{
29818
+ codes: (0, _uint.readBytes)(2)
29819
+ }, subBlocksSchema]
29820
+ }, function (stream) {
29821
+ var codes = (0, _uint.peekBytes)(2)(stream);
29822
+ return codes[0] === 0x21 && codes[1] === 0xfe;
29823
+ });
29824
+ var schema = [{
29825
+ header: [{
29826
+ signature: (0, _uint.readString)(3)
29827
+ }, {
29828
+ version: (0, _uint.readString)(3)
29829
+ }]
29830
+ }, {
29831
+ lsd: [{
29832
+ width: (0, _uint.readUnsigned)(true)
29833
+ }, {
29834
+ height: (0, _uint.readUnsigned)(true)
29835
+ }, {
29836
+ gct: (0, _uint.readBits)({
29837
+ exists: {
29838
+ index: 0
29839
+ },
29840
+ resolution: {
29841
+ index: 1,
29842
+ length: 3
29843
+ },
29844
+ sort: {
29845
+ index: 4
29846
+ },
29847
+ size: {
29848
+ index: 5,
29849
+ length: 3
29850
+ }
29851
+ })
29852
+ }, {
29853
+ backgroundColorIndex: (0, _uint.readByte)()
29854
+ }, {
29855
+ pixelAspectRatio: (0, _uint.readByte)()
29856
+ }]
29857
+ }, (0, _.conditional)({
29858
+ gct: (0, _uint.readArray)(3, function (stream, result) {
29859
+ return Math.pow(2, result.lsd.gct.size + 1);
29860
+ })
29861
+ }, function (stream, result) {
29862
+ return result.lsd.gct.exists;
29863
+ }),
29864
+ // content frames
29865
+ {
29866
+ frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
29867
+ var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
29868
+ // of an ext or image block to avoid infinite loops
29869
+ //var terminator = 0x3B;
29870
+ //return nextCode !== terminator;
29871
+
29872
+ return nextCode === 0x21 || nextCode === 0x2c;
29873
+ })
29874
+ }];
29875
+ var _default = schema;
29876
+ exports["default"] = _default;
29877
+ })(gif);
29878
+
29879
+ var deinterlace$1 = {};
29880
+
29881
+ Object.defineProperty(deinterlace$1, "__esModule", {
29882
+ value: true
29883
+ });
29884
+ deinterlace$1.deinterlace = void 0;
29885
+
29886
+ /**
29887
+ * Deinterlace function from https://github.com/shachaf/jsgif
29888
+ */
29889
+ var deinterlace = function deinterlace(pixels, width) {
29890
+ var newPixels = new Array(pixels.length);
29891
+ var rows = pixels.length / width;
29892
+ var cpRow = function cpRow(toRow, fromRow) {
29893
+ var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
29894
+ newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
29895
+ }; // See appendix E.
29896
+
29897
+ var offsets = [0, 4, 2, 1];
29898
+ var steps = [8, 8, 4, 2];
29899
+ var fromRow = 0;
29900
+ for (var pass = 0; pass < 4; pass++) {
29901
+ for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
29902
+ cpRow(toRow, fromRow);
29903
+ fromRow++;
29904
+ }
29905
+ }
29906
+ return newPixels;
29907
+ };
29908
+ deinterlace$1.deinterlace = deinterlace;
29909
+
29910
+ var lzw$1 = {};
29911
+
29912
+ Object.defineProperty(lzw$1, "__esModule", {
29913
+ value: true
29914
+ });
29915
+ lzw$1.lzw = void 0;
29916
+
29917
+ /**
29918
+ * javascript port of java LZW decompression
29919
+ * Original java author url: https://gist.github.com/devunwired/4479231
29920
+ */
29921
+ var lzw = function lzw(minCodeSize, data, pixelCount) {
29922
+ var MAX_STACK_SIZE = 4096;
29923
+ var nullCode = -1;
29924
+ var npix = pixelCount;
29925
+ var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
29926
+ var dstPixels = new Array(pixelCount);
29927
+ var prefix = new Array(MAX_STACK_SIZE);
29928
+ var suffix = new Array(MAX_STACK_SIZE);
29929
+ var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
29930
+
29931
+ data_size = minCodeSize;
29932
+ clear = 1 << data_size;
29933
+ end_of_information = clear + 1;
29934
+ available = clear + 2;
29935
+ old_code = nullCode;
29936
+ code_size = data_size + 1;
29937
+ code_mask = (1 << code_size) - 1;
29938
+ for (code = 0; code < clear; code++) {
29939
+ prefix[code] = 0;
29940
+ suffix[code] = code;
29941
+ } // Decode GIF pixel stream.
29942
+
29943
+ var datum, bits, first, top, pi, bi;
29944
+ datum = bits = first = top = pi = bi = 0;
29945
+ for (i = 0; i < npix;) {
29946
+ if (top === 0) {
29947
+ if (bits < code_size) {
29948
+ // get the next byte
29949
+ datum += data[bi] << bits;
29950
+ bits += 8;
29951
+ bi++;
29952
+ continue;
29953
+ } // Get the next code.
29954
+
29955
+ code = datum & code_mask;
29956
+ datum >>= code_size;
29957
+ bits -= code_size; // Interpret the code
29958
+
29959
+ if (code > available || code == end_of_information) {
29960
+ break;
29961
+ }
29962
+ if (code == clear) {
29963
+ // Reset decoder.
29964
+ code_size = data_size + 1;
29965
+ code_mask = (1 << code_size) - 1;
29966
+ available = clear + 2;
29967
+ old_code = nullCode;
29968
+ continue;
29969
+ }
29970
+ if (old_code == nullCode) {
29971
+ pixelStack[top++] = suffix[code];
29972
+ old_code = code;
29973
+ first = code;
29974
+ continue;
29975
+ }
29976
+ in_code = code;
29977
+ if (code == available) {
29978
+ pixelStack[top++] = first;
29979
+ code = old_code;
29980
+ }
29981
+ while (code > clear) {
29982
+ pixelStack[top++] = suffix[code];
29983
+ code = prefix[code];
29984
+ }
29985
+ first = suffix[code] & 0xff;
29986
+ pixelStack[top++] = first; // add a new string to the table, but only if space is available
29987
+ // if not, just continue with current table until a clear code is found
29988
+ // (deferred clear code implementation as per GIF spec)
29989
+
29990
+ if (available < MAX_STACK_SIZE) {
29991
+ prefix[available] = old_code;
29992
+ suffix[available] = first;
29993
+ available++;
29994
+ if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
29995
+ code_size++;
29996
+ code_mask += available;
29997
+ }
29998
+ }
29999
+ old_code = in_code;
30000
+ } // Pop a pixel off the pixel stack.
30001
+
30002
+ top--;
30003
+ dstPixels[pi++] = pixelStack[top];
30004
+ i++;
30005
+ }
30006
+ for (i = pi; i < npix; i++) {
30007
+ dstPixels[i] = 0; // clear missing pixels
30008
+ }
30009
+
30010
+ return dstPixels;
30011
+ };
30012
+ lzw$1.lzw = lzw;
30013
+
30014
+ Object.defineProperty(lib$1, "__esModule", {
30015
+ value: true
30016
+ });
30017
+ var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
30018
+ var _gif = _interopRequireDefault(gif);
30019
+ var _jsBinarySchemaParser = lib;
30020
+ var _uint = uint8;
30021
+ var _deinterlace = deinterlace$1;
30022
+ var _lzw = lzw$1;
30023
+ function _interopRequireDefault(obj) {
30024
+ return obj && obj.__esModule ? obj : {
30025
+ "default": obj
30026
+ };
30027
+ }
30028
+ var parseGIF = function parseGIF(arrayBuffer) {
30029
+ var byteData = new Uint8Array(arrayBuffer);
30030
+ return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
30031
+ };
30032
+ var parseGIF_1 = lib$1.parseGIF = parseGIF;
30033
+ var generatePatch = function generatePatch(image) {
30034
+ var totalPixels = image.pixels.length;
30035
+ var patchData = new Uint8ClampedArray(totalPixels * 4);
30036
+ for (var i = 0; i < totalPixels; i++) {
30037
+ var pos = i * 4;
30038
+ var colorIndex = image.pixels[i];
30039
+ var color = image.colorTable[colorIndex] || [0, 0, 0];
30040
+ patchData[pos] = color[0];
30041
+ patchData[pos + 1] = color[1];
30042
+ patchData[pos + 2] = color[2];
30043
+ patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
30044
+ }
30045
+ return patchData;
30046
+ };
30047
+ var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
30048
+ if (!frame.image) {
30049
+ console.warn('gif frame does not have associated image.');
30050
+ return;
30051
+ }
30052
+ var image = frame.image; // get the number of pixels
30053
+
30054
+ var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
30055
+
30056
+ var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
30057
+
30058
+ if (image.descriptor.lct.interlaced) {
30059
+ pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
30060
+ }
30061
+ var resultImage = {
30062
+ pixels: pixels,
30063
+ dims: {
30064
+ top: frame.image.descriptor.top,
30065
+ left: frame.image.descriptor.left,
30066
+ width: frame.image.descriptor.width,
30067
+ height: frame.image.descriptor.height
30068
+ }
30069
+ }; // color table
30070
+
30071
+ if (image.descriptor.lct && image.descriptor.lct.exists) {
30072
+ resultImage.colorTable = image.lct;
30073
+ } else {
30074
+ resultImage.colorTable = gct;
30075
+ } // add per frame relevant gce information
30076
+
30077
+ if (frame.gce) {
30078
+ resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
30079
+
30080
+ resultImage.disposalType = frame.gce.extras.disposal; // transparency
30081
+
30082
+ if (frame.gce.extras.transparentColorGiven) {
30083
+ resultImage.transparentIndex = frame.gce.transparentColorIndex;
30084
+ }
30085
+ } // create canvas usable imagedata if desired
30086
+
30087
+ if (buildImagePatch) {
30088
+ resultImage.patch = generatePatch(resultImage);
30089
+ }
30090
+ return resultImage;
30091
+ };
30092
+ lib$1.decompressFrame = decompressFrame;
30093
+ var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
30094
+ return parsedGif.frames.filter(function (f) {
30095
+ return f.image;
30096
+ }).map(function (f) {
30097
+ return decompressFrame(f, parsedGif.gct, buildImagePatches);
30098
+ });
30099
+ };
30100
+ decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
30101
+
30102
+ const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29588
30103
  const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29589
30104
 
30105
+ class GifImage extends Image$1 {
30106
+ constructor(params) {
30107
+ super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
30108
+ }
30109
+ loadGif() {
30110
+ if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
30111
+ const gif = parseGIF_1(res),
30112
+ frames = decompressFrames_1(gif, !0);
30113
+ this.renderGIF(frames);
30114
+ }).catch(e => {
30115
+ console.error("Gif load error: ", e);
30116
+ });else if (this.attribute.gifImage instanceof ArrayBuffer) {
30117
+ const gif = parseGIF_1(this.attribute.gifImage),
30118
+ frames = decompressFrames_1(gif, !0);
30119
+ this.renderGIF(frames);
30120
+ }
30121
+ }
30122
+ renderGIF(frames) {
30123
+ this.loadedFrames = frames, this.frameIndex = 0, this.tempCanvas || (this.tempCanvas = application.global.createCanvas({}), this.tempCtx = this.tempCanvas.getContext("2d")), this.gifCanvas || (this.gifCanvas = application.global.createCanvas({}), this.gifCtx = this.gifCanvas.getContext("2d")), this.gifCanvas.width = frames[0].dims.width, this.gifCanvas.height = frames[0].dims.height, this.playing = !0, this.lastTime = new Date().getTime();
30124
+ const animation = this.animate();
30125
+ this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
30126
+ }
30127
+ renderFrame(context, x, y) {
30128
+ const frame = this.loadedFrames[this.frameIndex || 0];
30129
+ 2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
30130
+ const diff = new Date().getTime() - this.lastTime;
30131
+ frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
30132
+ }
30133
+ drawPatch(frame) {
30134
+ const dims = frame.dims;
30135
+ this.frameImageData && dims.width === this.frameImageData.width && dims.height === this.frameImageData.height || (this.tempCanvas.width = dims.width, this.tempCanvas.height = dims.height, this.frameImageData = this.tempCtx.createImageData(dims.width, dims.height)), this.frameImageData.data.set(frame.patch), this.tempCtx.putImageData(this.frameImageData, 0, 0), this.gifCtx.drawImage(this.tempCanvas, dims.left, dims.top);
30136
+ }
30137
+ manipulate(context, x, y) {
30138
+ context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
30139
+ }
30140
+ setAttribute(key, value, forceUpdateTag, context) {
30141
+ super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
30142
+ }
30143
+ setAttributes(params, forceUpdateTag, context) {
30144
+ super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
30145
+ }
30146
+ }
30147
+ function createGifImage(attributes) {
30148
+ return new GifImage(attributes);
30149
+ }
30150
+
30151
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30152
+ var d,
30153
+ c = arguments.length,
30154
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
30155
+ 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);
30156
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
30157
+ };
30158
+ let DefaultCanvasGifImagePicker = class {
30159
+ constructor() {
30160
+ this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
30161
+ }
30162
+ contains(gifImage, point, params) {
30163
+ const {
30164
+ pickContext: pickContext
30165
+ } = null != params ? params : {};
30166
+ return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
30167
+ }
30168
+ };
30169
+ DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
30170
+
30171
+ let loadGifImagePick = !1;
30172
+ const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
30173
+ loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
30174
+ });
30175
+
30176
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
30177
+ var d,
30178
+ c = arguments.length,
30179
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
30180
+ 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);
30181
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
30182
+ },
30183
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
30184
+ if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
30185
+ },
30186
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
30187
+ return function (target, key) {
30188
+ decorator(target, key, paramIndex);
30189
+ };
30190
+ };
30191
+ let DefaultCanvasGifImageRender = class extends exports.DefaultCanvasImageRender {
30192
+ constructor(imageRenderContribitions) {
30193
+ super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
30194
+ }
30195
+ drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
30196
+ const imageAttribute = getTheme(image).image,
30197
+ {
30198
+ x: originX = imageAttribute.x,
30199
+ y: originY = imageAttribute.y,
30200
+ fillStrokeOrder = imageAttribute.fillStrokeOrder
30201
+ } = image.attribute,
30202
+ data = this.valid(image, imageAttribute, fillCb);
30203
+ if (!data) return;
30204
+ const {
30205
+ fVisible: fVisible,
30206
+ sVisible: sVisible,
30207
+ doFill: doFill,
30208
+ doStroke: doStroke
30209
+ } = data,
30210
+ _runFill = () => {
30211
+ doFill && fillCb && fillCb(context, image.attribute, imageAttribute);
30212
+ },
30213
+ _runStroke = () => {
30214
+ doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke()));
30215
+ };
30216
+ fillStrokeOrder ? (_runStroke(), context.save(), context.clip(), this.beforeRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb), _runFill(), context.restore()) : (context.save(), context.clip(), this.beforeRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb), _runFill(), context.restore(), _runStroke()), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
30217
+ }
30218
+ draw(image, renderService, drawContext) {
30219
+ const {
30220
+ context: context
30221
+ } = renderService.drawParams;
30222
+ if (!context) return;
30223
+ const imageAttribute = getTheme(image).image;
30224
+ this._draw(image, imageAttribute, !1, drawContext);
30225
+ }
30226
+ };
30227
+ DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
30228
+ class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
30229
+ constructor() {
30230
+ super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
30231
+ }
30232
+ drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
30233
+ image.renderFrame && image.playing && image.renderFrame(context, x, y);
30234
+ }
30235
+ }
30236
+ const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
30237
+
30238
+ let loadGifImageModule = !1;
30239
+ const gifImageModule = new ContainerModule(bind => {
30240
+ loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
30241
+ });
30242
+
29590
30243
  var lottie = {exports: {}};
29591
30244
 
29592
30245
  (function(module,exports){typeof navigator!=="undefined"&&function(global,factory){module.exports=factory();}(commonjsGlobal,function(){var svgNS='http://www.w3.org/2000/svg';var locationHref='';var _useWebWorker=false;var initialDefaultFrame=-999999;var setWebWorker=function setWebWorker(flag){_useWebWorker=!!flag;};var getWebWorker=function getWebWorker(){return _useWebWorker;};var setLocationHref=function setLocationHref(value){locationHref=value;};var getLocationHref=function getLocationHref(){return locationHref;};function createTag(type){// return {appendChild:function(){},setAttribute:function(){},style:{}}
@@ -30488,7 +31141,7 @@
30488
31141
 
30489
31142
  const roughModule = _roughModule;
30490
31143
 
30491
- const version = "0.22.0-vstory.11";
31144
+ const version = "0.22.0-vstory.12";
30492
31145
  preLoadAllModule();
30493
31146
  if (isBrowserEnv()) {
30494
31147
  loadBrowserEnv(container);
@@ -30552,6 +31205,7 @@
30552
31205
  exports.CanvasAreaPicker = CanvasAreaPicker;
30553
31206
  exports.CanvasCirclePicker = CanvasCirclePicker;
30554
31207
  exports.CanvasFactory = CanvasFactory;
31208
+ exports.CanvasGifImagePicker = CanvasGifImagePicker;
30555
31209
  exports.CanvasGlyphPicker = CanvasGlyphPicker;
30556
31210
  exports.CanvasGroupPicker = CanvasGroupPicker;
30557
31211
  exports.CanvasImagePicker = CanvasImagePicker;
@@ -30667,6 +31321,7 @@
30667
31321
  exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
30668
31322
  exports.Generator = Generator;
30669
31323
  exports.Gesture = Gesture;
31324
+ exports.GifImage = GifImage;
30670
31325
  exports.GlobalPickerService = GlobalPickerService;
30671
31326
  exports.Glyph = Glyph;
30672
31327
  exports.GlyphRender = GlyphRender;
@@ -30859,6 +31514,7 @@
30859
31514
  exports.createCircle = createCircle;
30860
31515
  exports.createColor = createColor;
30861
31516
  exports.createConicalGradient = createConicalGradient;
31517
+ exports.createGifImage = createGifImage;
30862
31518
  exports.createGlyph = createGlyph;
30863
31519
  exports.createGroup = createGroup;
30864
31520
  exports.createImage = createImage;
@@ -30953,6 +31609,8 @@
30953
31609
  exports.getTextBounds = getTextBounds;
30954
31610
  exports.getTheme = getTheme;
30955
31611
  exports.getThemeFromGroup = getThemeFromGroup;
31612
+ exports.gifImageCanvasPickModule = gifImageCanvasPickModule;
31613
+ exports.gifImageModule = gifImageModule;
30956
31614
  exports.globalTheme = globalTheme;
30957
31615
  exports.glyphCanvasPickModule = glyphCanvasPickModule;
30958
31616
  exports.glyphMathPickModule = glyphMathPickModule;