@visactor/vrender 0.22.0-vstory.1 → 0.22.0-vstory.10

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$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
580
+ var __decorate$1J = 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$1j = undefined && undefined.__metadata || function (k, v) {
587
+ __metadata$1i = 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$V = undefined && undefined.__param || function (paramIndex, decorator) {
590
+ __param$U = undefined && undefined.__param || function (paramIndex, decorator) {
591
591
  return function (target, key) {
592
592
  decorator(target, key, paramIndex);
593
593
  };
@@ -621,12 +621,6 @@
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
- }
630
624
  get devicePixelRatio() {
631
625
  return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
632
626
  }
@@ -661,7 +655,7 @@
661
655
  this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
662
656
  }
663
657
  constructor(contributions) {
664
- this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
658
+ this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
665
659
  onSetEnv: new SyncHook(["lastEnv", "env", "global"])
666
660
  }, this.measureTextMethod = "native", this.optimizeVisible = !1;
667
661
  }
@@ -789,7 +783,7 @@
789
783
  return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
790
784
  }
791
785
  };
792
- exports.DefaultGlobal = __decorate$1L([injectable(), __param$V(0, inject(ContributionProvider)), __param$V(0, named(EnvContribution)), __metadata$1j("design:paramtypes", [Object])], exports.DefaultGlobal);
786
+ exports.DefaultGlobal = __decorate$1J([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(EnvContribution)), __metadata$1i("design:paramtypes", [Object])], exports.DefaultGlobal);
793
787
 
794
788
  exports.MeasureModeEnum = void 0;
795
789
  !function (MeasureModeEnum) {
@@ -4305,6 +4299,7 @@
4305
4299
  });
4306
4300
  const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
4307
4301
  editable: !1,
4302
+ editOptions: null,
4308
4303
  width: 300,
4309
4304
  height: 300,
4310
4305
  ellipsis: !0,
@@ -4352,7 +4347,7 @@
4352
4347
  class Application {}
4353
4348
  const application = new Application();
4354
4349
 
4355
- const parse$1 = function () {
4350
+ const parse = function () {
4356
4351
  const tokens = {
4357
4352
  linearGradient: /^(linear\-gradient)/i,
4358
4353
  radialGradient: /^(radial\-gradient)/i,
@@ -4505,7 +4500,7 @@
4505
4500
  }
4506
4501
  static Parse(c) {
4507
4502
  if (GradientParser.IsGradientStr(c)) try {
4508
- const datum = parse$1(c)[0];
4503
+ const datum = parse(c)[0];
4509
4504
  if (datum) {
4510
4505
  if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
4511
4506
  if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
@@ -4759,10 +4754,10 @@
4759
4754
  descent: 0,
4760
4755
  width: 0
4761
4756
  };
4762
- return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
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;
4763
4758
  }
4764
4759
 
4765
- var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4760
+ var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4766
4761
  var d,
4767
4762
  c = arguments.length,
4768
4763
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5144,9 +5139,9 @@
5144
5139
  return data.str = data.result, data.width += suffixWidth, data;
5145
5140
  }
5146
5141
  };
5147
- ATextMeasure = __decorate$1K([injectable()], ATextMeasure);
5142
+ ATextMeasure = __decorate$1I([injectable()], ATextMeasure);
5148
5143
 
5149
- var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5144
+ var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5150
5145
  var d,
5151
5146
  c = arguments.length,
5152
5147
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5155,7 +5150,7 @@
5155
5150
  };
5156
5151
  const TextMeasureContribution = Symbol.for("TextMeasureContribution");
5157
5152
  exports.DefaultTextMeasureContribution = class DefaultTextMeasureContribution extends ATextMeasure {};
5158
- exports.DefaultTextMeasureContribution = __decorate$1J([injectable()], exports.DefaultTextMeasureContribution);
5153
+ exports.DefaultTextMeasureContribution = __decorate$1H([injectable()], exports.DefaultTextMeasureContribution);
5159
5154
 
5160
5155
  const container = new Container();
5161
5156
 
@@ -5569,14 +5564,14 @@
5569
5564
  }
5570
5565
  const canvasAllocate = new DefaultCanvasAllocate();
5571
5566
 
5572
- var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5567
+ var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5573
5568
  var d,
5574
5569
  c = arguments.length,
5575
5570
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5576
5571
  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);
5577
5572
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5578
5573
  },
5579
- __metadata$1i = undefined && undefined.__metadata || function (k, v) {
5574
+ __metadata$1h = undefined && undefined.__metadata || function (k, v) {
5580
5575
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
5581
5576
  };
5582
5577
  const VWindow = Symbol.for("VWindow");
@@ -5713,19 +5708,19 @@
5713
5708
  return this._handler.getTopLeft(baseWindow);
5714
5709
  }
5715
5710
  };
5716
- exports.DefaultWindow = __decorate$1I([injectable(), __metadata$1i("design:paramtypes", [])], exports.DefaultWindow);
5711
+ exports.DefaultWindow = __decorate$1G([injectable(), __metadata$1h("design:paramtypes", [])], exports.DefaultWindow);
5717
5712
 
5718
- var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5713
+ var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5719
5714
  var d,
5720
5715
  c = arguments.length,
5721
5716
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5722
5717
  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);
5723
5718
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5724
5719
  },
5725
- __metadata$1h = undefined && undefined.__metadata || function (k, v) {
5720
+ __metadata$1g = undefined && undefined.__metadata || function (k, v) {
5726
5721
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
5727
5722
  },
5728
- __param$U = undefined && undefined.__param || function (paramIndex, decorator) {
5723
+ __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
5729
5724
  return function (target, key) {
5730
5725
  decorator(target, key, paramIndex);
5731
5726
  };
@@ -5820,7 +5815,7 @@
5820
5815
  return c.nativeCanvas ? c.nativeCanvas : null;
5821
5816
  }
5822
5817
  };
5823
- exports.DefaultGraphicUtil = __decorate$1H([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(TextMeasureContribution)), __metadata$1h("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
5818
+ exports.DefaultGraphicUtil = __decorate$1F([injectable(), __param$T(0, inject(ContributionProvider)), __param$T(0, named(TextMeasureContribution)), __metadata$1g("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
5824
5819
  var TransformMode;
5825
5820
  !function (TransformMode) {
5826
5821
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -5878,7 +5873,7 @@
5878
5873
  return this;
5879
5874
  }
5880
5875
  };
5881
- exports.DefaultTransformUtil = __decorate$1H([injectable(), __metadata$1h("design:paramtypes", [])], exports.DefaultTransformUtil);
5876
+ exports.DefaultTransformUtil = __decorate$1F([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultTransformUtil);
5882
5877
 
5883
5878
  const defaultThemeObj = {
5884
5879
  arc: DefaultArcAttribute,
@@ -9727,7 +9722,7 @@
9727
9722
  }
9728
9723
  static GetFile(url, type) {
9729
9724
  let data = ResourceLoader.cache.get(url);
9730
- return data ? "fail" === data.loadState ? Promise.reject() : "init" === data.loadState || "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
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 = {
9731
9726
  type: type,
9732
9727
  loadState: "init"
9733
9728
  }, 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));
@@ -9837,7 +9832,7 @@
9837
9832
  }
9838
9833
  }
9839
9834
  get AABBBounds() {
9840
- return this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode);
9835
+ return this.tryUpdateAABBBounds();
9841
9836
  }
9842
9837
  get OBBBounds() {
9843
9838
  return this.tryUpdateOBBBounds();
@@ -9881,12 +9876,13 @@
9881
9876
  onAnimateBind(animate) {
9882
9877
  this._emitCustomEvent("animate-bind", animate);
9883
9878
  }
9884
- tryUpdateAABBBounds(full) {
9879
+ tryUpdateAABBBounds() {
9880
+ const full = "imprecise" === this.attribute.boundsMode;
9885
9881
  if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
9886
9882
  if (!this.valid) return this._AABBBounds.clear(), this._AABBBounds;
9887
9883
  application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
9888
9884
  const bounds = this.doUpdateAABBBounds(full);
9889
- return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), bounds;
9885
+ return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
9890
9886
  }
9891
9887
  tryUpdateOBBBounds() {
9892
9888
  if (this._OBBBounds || (this._OBBBounds = new OBBBounds()), this.tryUpdateAABBBounds(), this.updateOBBBoundsStamp === this.updateAABBBoundsStamp) return this._OBBBounds;
@@ -10130,7 +10126,7 @@
10130
10126
  context && context.skipUpdateCallback || (application.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
10131
10127
  }
10132
10128
  update(d) {
10133
- d ? (d.bounds && this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode), this.tryUpdateLocalTransMatrix());
10129
+ d ? (d.bounds && this.tryUpdateAABBBounds(), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds(), this.tryUpdateLocalTransMatrix());
10134
10130
  }
10135
10131
  hasState(stateName) {
10136
10132
  return !(!this.currentStates || !this.currentStates.length) && (!!isNil$1(stateName) || this.currentStates.includes(stateName));
@@ -10922,7 +10918,7 @@
10922
10918
  application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
10923
10919
  const selfChange = this.shouldSelfChangeUpdateAABBBounds(),
10924
10920
  bounds = this.doUpdateAABBBounds();
10925
- return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), bounds;
10921
+ return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
10926
10922
  }
10927
10923
  doUpdateLocalMatrix() {
10928
10924
  const {
@@ -11180,14 +11176,14 @@
11180
11176
  const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
11181
11177
 
11182
11178
  var DefaultLayerService_1,
11183
- __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11179
+ __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11184
11180
  var d,
11185
11181
  c = arguments.length,
11186
11182
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11187
11183
  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);
11188
11184
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11189
11185
  },
11190
- __metadata$1g = undefined && undefined.__metadata || function (k, v) {
11186
+ __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11191
11187
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11192
11188
  };
11193
11189
  exports.DefaultLayerService = DefaultLayerService_1 = class {
@@ -11251,7 +11247,7 @@
11251
11247
  this.layerMap.delete(stage);
11252
11248
  }
11253
11249
  };
11254
- exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1G([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultLayerService);
11250
+ exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultLayerService);
11255
11251
 
11256
11252
  var coreModule = new ContainerModule(bind => {
11257
11253
  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();
@@ -11790,17 +11786,17 @@
11790
11786
  const matrixAllocate = new DefaultMatrixAllocate();
11791
11787
  const mat4Allocate = new DefaultMat4Allocate();
11792
11788
 
11793
- var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11789
+ var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11794
11790
  var d,
11795
11791
  c = arguments.length,
11796
11792
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11797
11793
  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);
11798
11794
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11799
11795
  },
11800
- __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11796
+ __metadata$1e = undefined && undefined.__metadata || function (k, v) {
11801
11797
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11802
11798
  },
11803
- __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
11799
+ __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
11804
11800
  return function (target, key) {
11805
11801
  decorator(target, key, paramIndex);
11806
11802
  };
@@ -12012,7 +12008,7 @@
12012
12008
  };
12013
12009
  }
12014
12010
  };
12015
- exports.DefaultGraphicService = __decorate$1F([injectable(), __param$T(0, inject(GraphicCreator$1)), __metadata$1f("design:paramtypes", [Object])], exports.DefaultGraphicService);
12011
+ exports.DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultGraphicService);
12016
12012
 
12017
12013
  const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
12018
12014
  const {
@@ -13249,7 +13245,7 @@
13249
13245
  return isNumber$1(size) ? size : Math.min(size[0], size[1]);
13250
13246
  }
13251
13247
  drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
13252
- return this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
13248
+ return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
13253
13249
  item.path.drawWithClipRange(ctx, size, x, y, clipRange), cb && cb(item.path, item.attribute);
13254
13250
  }), !1) : (this.path.drawWithClipRange(ctx, size, x, y, clipRange), !1);
13255
13251
  }
@@ -13891,6 +13887,14 @@
13891
13887
  }
13892
13888
  }
13893
13889
 
13890
+ function getFixedLRTB(left, right, top, bottom) {
13891
+ return {
13892
+ left: Math.round(left),
13893
+ top: Math.round(top),
13894
+ right: Math.round(right),
13895
+ bottom: Math.round(bottom)
13896
+ };
13897
+ }
13894
13898
  class Paragraph {
13895
13899
  constructor(text, newLine, character) {
13896
13900
  this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
@@ -13913,7 +13917,32 @@
13913
13917
  } = measureTextCanvas(this.text, this.character);
13914
13918
  this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
13915
13919
  }
13916
- draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign) {
13920
+ drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13921
+ if (!this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
13922
+ let baseline = top + ascent,
13923
+ text = this.text,
13924
+ left = this.left + deltaLeft;
13925
+ baseline += this.top;
13926
+ let direction = this.direction;
13927
+ if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
13928
+ if ("hide" === this.ellipsis) return;
13929
+ if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
13930
+ const index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
13931
+ if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
13932
+ const {
13933
+ width: width
13934
+ } = measureTextCanvas(this.text.slice(index), this.character);
13935
+ "vertical" === direction || (left -= this.ellipsisWidth - width);
13936
+ }
13937
+ }
13938
+ }
13939
+ const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
13940
+ return Object.assign(Object.assign({}, lrtb), {
13941
+ fillStyle: this.character.background,
13942
+ globalAlpha: this.character.backgroundOpacity
13943
+ });
13944
+ }
13945
+ draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13917
13946
  let baseline = top + ascent,
13918
13947
  text = this.text,
13919
13948
  left = this.left + deltaLeft;
@@ -13938,15 +13967,31 @@
13938
13967
  case "sub":
13939
13968
  baseline += this.descent / 2;
13940
13969
  }
13941
- if ("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), this.character.fill && this.character.background && (!this.character.backgroundOpacity || this.character.backgroundOpacity > 0)) {
13942
- const fillStyle = ctx.fillStyle,
13943
- globalAlpha = ctx.globalAlpha;
13944
- ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity), ctx.fillRect(left, top, this.widthOrigin || this.width, this.lineHeight), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
13945
- }
13970
+ "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);
13946
13971
  const {
13947
13972
  lineWidth = 1
13948
13973
  } = this.character;
13949
- this.character.stroke && lineWidth && ctx.strokeText(text, left, baseline), this.character.fill && ctx.fillText(text, left, baseline), this.character.fill && ("boolean" == typeof this.character.lineThrough || "boolean" == typeof this.character.underline ? (this.character.underline && ctx.fillRect(left, 1 + baseline, this.widthOrigin || this.width, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1), this.character.lineThrough && ctx.fillRect(left, 1 + baseline - this.ascent / 2, this.widthOrigin || this.width, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1)) : "underline" === this.character.textDecoration ? ctx.fillRect(left, 1 + baseline, this.widthOrigin || this.width, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1) : "line-through" === this.character.textDecoration && ctx.fillRect(left, 1 + baseline - this.ascent / 2, this.widthOrigin || this.width, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1)), "vertical" === direction && ctx.restore();
13974
+ if (this.character.stroke && lineWidth && ctx.strokeText(text, left, baseline), this.character.fill && ctx.fillText(text, left, baseline), this.character.fill) if (this.character.lineThrough || this.character.underline) {
13975
+ if (this.character.underline) {
13976
+ const top = 1 + baseline,
13977
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13978
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13979
+ }
13980
+ if (this.character.lineThrough) {
13981
+ const top = 1 + baseline - this.ascent / 2,
13982
+ 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);
13984
+ }
13985
+ } else if ("underline" === this.character.textDecoration) {
13986
+ const top = 1 + baseline,
13987
+ 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);
13989
+ } else if ("line-through" === this.character.textDecoration) {
13990
+ const top = 1 + baseline - this.ascent / 2,
13991
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13992
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13993
+ }
13994
+ "vertical" === direction && ctx.restore();
13950
13995
  }
13951
13996
  getWidthWithEllips(direction) {
13952
13997
  let text = this.text;
@@ -14169,7 +14214,20 @@
14169
14214
  paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
14170
14215
  }
14171
14216
  }
14217
+ let fillStyle = "",
14218
+ globalAlpha = -1,
14219
+ currBgList = [];
14220
+ const bgList = [currBgList];
14172
14221
  this.paragraphs.forEach((paragraph, index) => {
14222
+ if (paragraph instanceof RichTextIcon) return;
14223
+ const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14224
+ data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
14225
+ }), bgList.forEach(bg => {
14226
+ if (0 === bg.length) return;
14227
+ const data = bg[0],
14228
+ end = bg[bg.length - 1];
14229
+ ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
14230
+ }), this.paragraphs.forEach((paragraph, index) => {
14173
14231
  if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
14174
14232
  x: x + paragraph._x,
14175
14233
  y: y + paragraph._y
@@ -14180,7 +14238,7 @@
14180
14238
  x2: this.left + this.actualWidth,
14181
14239
  y2: this.top + this.height
14182
14240
  };
14183
- applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
14241
+ applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14184
14242
  });
14185
14243
  }
14186
14244
  getWidthWithEllips(ellipsis) {
@@ -14331,7 +14389,13 @@
14331
14389
  }
14332
14390
  return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
14333
14391
  }
14392
+ static splitEmoji(text) {
14393
+ return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
14394
+ }
14334
14395
  static splitText(text) {
14396
+ try {
14397
+ return this.splitEmoji(text);
14398
+ } catch (e) {}
14335
14399
  return Array.from(text);
14336
14400
  }
14337
14401
  static TransformTextConfig2SingleCharacter(textConfig) {
@@ -14347,13 +14411,15 @@
14347
14411
  }), tc;
14348
14412
  }
14349
14413
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
14414
+ var _a, _b;
14350
14415
  const {
14351
14416
  width = richtextTheme.width,
14352
14417
  height = richtextTheme.height,
14353
14418
  maxWidth = richtextTheme.maxWidth,
14354
14419
  maxHeight = richtextTheme.maxHeight,
14355
14420
  textAlign = richtextTheme.textAlign,
14356
- textBaseline = richtextTheme.textBaseline
14421
+ textBaseline = richtextTheme.textBaseline,
14422
+ editOptions: editOptions
14357
14423
  } = attribute;
14358
14424
  if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
14359
14425
  const frameCache = this.getFrameCache(),
@@ -14365,6 +14431,7 @@
14365
14431
  contentHeight = height || actualHeight || 0;
14366
14432
  contentHeight = "number" == typeof maxHeight && contentHeight > maxHeight ? maxHeight : contentHeight || 0, contentWidth = "number" == typeof maxWidth && contentWidth > maxWidth ? maxWidth : contentWidth || 0, aabbBounds.set(0, 0, contentWidth, contentHeight);
14367
14433
  }
14434
+ editOptions && editOptions.keepHeightWhileEmpty && !aabbBounds.height() && !(null === (_a = attribute.textConfig) || void 0 === _a ? void 0 : _a.length) && (aabbBounds.y2 = aabbBounds.y1 + (null !== (_b = attribute.fontSize) && void 0 !== _b ? _b : 12), aabbBounds.x2 = aabbBounds.x1 + 2);
14368
14435
  let deltaY = 0;
14369
14436
  switch (textBaseline) {
14370
14437
  case "top":
@@ -15342,17 +15409,17 @@
15342
15409
  }
15343
15410
  }
15344
15411
 
15345
- var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15412
+ var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15346
15413
  var d,
15347
15414
  c = arguments.length,
15348
15415
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15349
15416
  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);
15350
15417
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15351
15418
  },
15352
- __metadata$1e = undefined && undefined.__metadata || function (k, v) {
15419
+ __metadata$1d = undefined && undefined.__metadata || function (k, v) {
15353
15420
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15354
15421
  },
15355
- __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
15422
+ __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
15356
15423
  return function (target, key) {
15357
15424
  decorator(target, key, paramIndex);
15358
15425
  };
@@ -15449,7 +15516,7 @@
15449
15516
  });
15450
15517
  }
15451
15518
  };
15452
- exports.DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
15519
+ exports.DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
15453
15520
 
15454
15521
  function formatRatio(ratio) {
15455
15522
  return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
@@ -15797,7 +15864,7 @@
15797
15864
  return !edgeCb && path.closePath(), path;
15798
15865
  }
15799
15866
 
15800
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15867
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15801
15868
  var d,
15802
15869
  c = arguments.length,
15803
15870
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15862,7 +15929,7 @@
15862
15929
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
15863
15930
  }
15864
15931
  };
15865
- exports.SplitRectBeforeRenderContribution = __decorate$1D([injectable()], exports.SplitRectBeforeRenderContribution);
15932
+ exports.SplitRectBeforeRenderContribution = __decorate$1B([injectable()], exports.SplitRectBeforeRenderContribution);
15866
15933
  exports.SplitRectAfterRenderContribution = class SplitRectAfterRenderContribution {
15867
15934
  constructor() {
15868
15935
  this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -15899,7 +15966,7 @@
15899
15966
  }
15900
15967
  }
15901
15968
  };
15902
- exports.SplitRectAfterRenderContribution = __decorate$1D([injectable()], exports.SplitRectAfterRenderContribution);
15969
+ exports.SplitRectAfterRenderContribution = __decorate$1B([injectable()], exports.SplitRectAfterRenderContribution);
15903
15970
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
15904
15971
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
15905
15972
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -15908,8 +15975,8 @@
15908
15975
  constructor() {
15909
15976
  super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
15910
15977
  }
15911
- drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15912
- return super.drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15978
+ drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15979
+ return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15913
15980
  }
15914
15981
  }
15915
15982
  const defaultImageRenderContribution = new DefaultImageRenderContribution();
@@ -16004,17 +16071,17 @@
16004
16071
  }
16005
16072
  }
16006
16073
 
16007
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16074
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16008
16075
  var d,
16009
16076
  c = arguments.length,
16010
16077
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16011
16078
  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);
16012
16079
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16013
16080
  },
16014
- __metadata$1d = undefined && undefined.__metadata || function (k, v) {
16081
+ __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16015
16082
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16016
16083
  },
16017
- __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
16084
+ __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16018
16085
  return function (target, key) {
16019
16086
  decorator(target, key, paramIndex);
16020
16087
  };
@@ -16178,19 +16245,19 @@
16178
16245
  this._draw(arc, arcAttribute, !1, drawContext, params);
16179
16246
  }
16180
16247
  };
16181
- exports.DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
16248
+ exports.DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
16182
16249
 
16183
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16250
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16184
16251
  var d,
16185
16252
  c = arguments.length,
16186
16253
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16187
16254
  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);
16188
16255
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16189
16256
  },
16190
- __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16257
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16191
16258
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16192
16259
  },
16193
- __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16260
+ __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16194
16261
  return function (target, key) {
16195
16262
  decorator(target, key, paramIndex);
16196
16263
  };
@@ -16231,7 +16298,7 @@
16231
16298
  this._draw(circle, circleAttribute, !1, drawContext, params);
16232
16299
  }
16233
16300
  };
16234
- exports.DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
16301
+ exports.DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
16235
16302
 
16236
16303
  function drawSegItem(ctx, curve, endPercent, params) {
16237
16304
  if (!curve.p1) return;
@@ -16355,7 +16422,7 @@
16355
16422
  });
16356
16423
  }
16357
16424
 
16358
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16425
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16359
16426
  var d,
16360
16427
  c = arguments.length,
16361
16428
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16516,7 +16583,7 @@
16516
16583
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
16517
16584
  }
16518
16585
  };
16519
- exports.DefaultCanvasLineRender = __decorate$1A([injectable()], exports.DefaultCanvasLineRender);
16586
+ exports.DefaultCanvasLineRender = __decorate$1y([injectable()], exports.DefaultCanvasLineRender);
16520
16587
 
16521
16588
  function drawAreaSegments(path, segPath, percent, params) {
16522
16589
  var _a;
@@ -16645,17 +16712,17 @@
16645
16712
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
16646
16713
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16647
16714
 
16648
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16715
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16649
16716
  var d,
16650
16717
  c = arguments.length,
16651
16718
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16652
16719
  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);
16653
16720
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16654
16721
  },
16655
- __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16722
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16656
16723
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16657
16724
  },
16658
- __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16725
+ __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16659
16726
  return function (target, key) {
16660
16727
  decorator(target, key, paramIndex);
16661
16728
  };
@@ -16898,22 +16965,22 @@
16898
16965
  })(), !1;
16899
16966
  }
16900
16967
  };
16901
- exports.DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
16968
+ exports.DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
16902
16969
 
16903
16970
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
16904
16971
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16905
16972
 
16906
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16973
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16907
16974
  var d,
16908
16975
  c = arguments.length,
16909
16976
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16910
16977
  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);
16911
16978
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16912
16979
  },
16913
- __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16980
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
16914
16981
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16915
16982
  },
16916
- __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16983
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
16917
16984
  return function (target, key) {
16918
16985
  decorator(target, key, paramIndex);
16919
16986
  };
@@ -16957,19 +17024,19 @@
16957
17024
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
16958
17025
  }
16959
17026
  };
16960
- exports.DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
17027
+ exports.DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
16961
17028
 
16962
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17029
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16963
17030
  var d,
16964
17031
  c = arguments.length,
16965
17032
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16966
17033
  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);
16967
17034
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16968
17035
  },
16969
- __metadata$19 = undefined && undefined.__metadata || function (k, v) {
17036
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
16970
17037
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16971
17038
  },
16972
- __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
17039
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
16973
17040
  return function (target, key) {
16974
17041
  decorator(target, key, paramIndex);
16975
17042
  };
@@ -17029,19 +17096,19 @@
17029
17096
  this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
17030
17097
  }
17031
17098
  };
17032
- exports.DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
17099
+ exports.DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
17033
17100
 
17034
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17101
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17035
17102
  var d,
17036
17103
  c = arguments.length,
17037
17104
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17038
17105
  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
17106
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17040
17107
  },
17041
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
17108
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17042
17109
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17043
17110
  },
17044
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
17111
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17045
17112
  return function (target, key) {
17046
17113
  decorator(target, key, paramIndex);
17047
17114
  };
@@ -17112,7 +17179,7 @@
17112
17179
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
17113
17180
  }
17114
17181
  };
17115
- exports.DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
17182
+ exports.DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
17116
17183
 
17117
17184
  class DefaultBoundsAllocate {
17118
17185
  constructor() {
@@ -17201,17 +17268,17 @@
17201
17268
  }
17202
17269
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
17203
17270
 
17204
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17271
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17205
17272
  var d,
17206
17273
  c = arguments.length,
17207
17274
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17208
17275
  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);
17209
17276
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17210
17277
  },
17211
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17278
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17212
17279
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17213
17280
  },
17214
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17281
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17215
17282
  return function (target, key) {
17216
17283
  decorator(target, key, paramIndex);
17217
17284
  };
@@ -17350,9 +17417,9 @@
17350
17417
  }
17351
17418
  }
17352
17419
  };
17353
- exports.DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
17420
+ exports.DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
17354
17421
 
17355
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17422
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17356
17423
  var d,
17357
17424
  c = arguments.length,
17358
17425
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17360,7 +17427,7 @@
17360
17427
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17361
17428
  };
17362
17429
  exports.AbstractGraphicRender = class AbstractGraphicRender {};
17363
- exports.AbstractGraphicRender = __decorate$1u([injectable()], exports.AbstractGraphicRender);
17430
+ exports.AbstractGraphicRender = __decorate$1s([injectable()], exports.AbstractGraphicRender);
17364
17431
 
17365
17432
  function drawPolygon(path, points, x, y) {
17366
17433
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -17416,17 +17483,17 @@
17416
17483
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
17417
17484
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
17418
17485
 
17419
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17486
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17420
17487
  var d,
17421
17488
  c = arguments.length,
17422
17489
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17423
17490
  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);
17424
17491
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17425
17492
  },
17426
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17493
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17427
17494
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17428
17495
  },
17429
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17496
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17430
17497
  return function (target, key) {
17431
17498
  decorator(target, key, paramIndex);
17432
17499
  };
@@ -17467,19 +17534,19 @@
17467
17534
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
17468
17535
  }
17469
17536
  };
17470
- exports.DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
17537
+ exports.DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
17471
17538
 
17472
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17539
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17473
17540
  var d,
17474
17541
  c = arguments.length,
17475
17542
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17476
17543
  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);
17477
17544
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17478
17545
  },
17479
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17546
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17480
17547
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17481
17548
  },
17482
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17549
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17483
17550
  return function (target, key) {
17484
17551
  decorator(target, key, paramIndex);
17485
17552
  };
@@ -17574,19 +17641,19 @@
17574
17641
  }) : clip ? context.restore() : context.highPerformanceRestore();
17575
17642
  }
17576
17643
  };
17577
- exports.DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
17644
+ exports.DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
17578
17645
 
17579
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17646
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17580
17647
  var d,
17581
17648
  c = arguments.length,
17582
17649
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17583
17650
  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);
17584
17651
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17585
17652
  },
17586
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17653
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17587
17654
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17588
17655
  },
17589
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17656
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17590
17657
  return function (target, key) {
17591
17658
  decorator(target, key, paramIndex);
17592
17659
  };
@@ -17654,7 +17721,7 @@
17654
17721
  this._draw(image, imageAttribute, !1, drawContext);
17655
17722
  }
17656
17723
  };
17657
- exports.DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
17724
+ exports.DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
17658
17725
 
17659
17726
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
17660
17727
  const ArcRender = Symbol.for("ArcRender");
@@ -17722,14 +17789,14 @@
17722
17789
  return result;
17723
17790
  };
17724
17791
 
17725
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17792
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17726
17793
  var d,
17727
17794
  c = arguments.length,
17728
17795
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17729
17796
  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);
17730
17797
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17731
17798
  },
17732
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17799
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17733
17800
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17734
17801
  };
17735
17802
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -17789,7 +17856,7 @@
17789
17856
  return !1;
17790
17857
  }
17791
17858
  };
17792
- exports.CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
17859
+ exports.CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
17793
17860
  class InteractiveDrawItemInterceptorContribution {
17794
17861
  constructor() {
17795
17862
  this.order = 1;
@@ -17880,17 +17947,17 @@
17880
17947
  }
17881
17948
  }
17882
17949
 
17883
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17950
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17884
17951
  var d,
17885
17952
  c = arguments.length,
17886
17953
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17887
17954
  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);
17888
17955
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17889
17956
  },
17890
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17957
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
17891
17958
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17892
17959
  },
17893
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17960
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
17894
17961
  return function (target, key) {
17895
17962
  decorator(target, key, paramIndex);
17896
17963
  };
@@ -17928,7 +17995,7 @@
17928
17995
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
17929
17996
  }
17930
17997
  };
17931
- exports.DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], exports.DefaultRenderService);
17998
+ exports.DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
17932
17999
 
17933
18000
  var renderModule$1 = new ContainerModule(bind => {
17934
18001
  bind(RenderService).to(exports.DefaultRenderService);
@@ -17941,7 +18008,7 @@
17941
18008
  const PickItemInterceptor = Symbol.for("PickItemInterceptor");
17942
18009
  const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
17943
18010
 
17944
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18011
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17945
18012
  var d,
17946
18013
  c = arguments.length,
17947
18014
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17963,7 +18030,7 @@
17963
18030
  return result;
17964
18031
  }
17965
18032
  };
17966
- exports.ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], exports.ShadowPickServiceInterceptorContribution);
18033
+ exports.ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], exports.ShadowPickServiceInterceptorContribution);
17967
18034
  exports.ShadowRootPickItemInterceptorContribution = class ShadowRootPickItemInterceptorContribution {
17968
18035
  constructor() {
17969
18036
  this.order = 1;
@@ -17994,7 +18061,7 @@
17994
18061
  return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
17995
18062
  }
17996
18063
  };
17997
- exports.ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], exports.ShadowRootPickItemInterceptorContribution);
18064
+ exports.ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], exports.ShadowRootPickItemInterceptorContribution);
17998
18065
  exports.InteractivePickItemInterceptorContribution = class InteractivePickItemInterceptorContribution {
17999
18066
  constructor() {
18000
18067
  this.order = 1;
@@ -18013,7 +18080,7 @@
18013
18080
  return null;
18014
18081
  }
18015
18082
  };
18016
- exports.InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], exports.InteractivePickItemInterceptorContribution);
18083
+ exports.InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], exports.InteractivePickItemInterceptorContribution);
18017
18084
  exports.Canvas3DPickItemInterceptor = class Canvas3DPickItemInterceptor {
18018
18085
  constructor() {
18019
18086
  this.order = 1;
@@ -18033,7 +18100,7 @@
18033
18100
  context.setTransformForCurrent();
18034
18101
  }
18035
18102
  };
18036
- exports.Canvas3DPickItemInterceptor = __decorate$1o([injectable()], exports.Canvas3DPickItemInterceptor);
18103
+ exports.Canvas3DPickItemInterceptor = __decorate$1m([injectable()], exports.Canvas3DPickItemInterceptor);
18037
18104
 
18038
18105
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
18039
18106
  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);
@@ -18046,17 +18113,17 @@
18046
18113
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
18047
18114
  const PluginService = Symbol.for("PluginService");
18048
18115
 
18049
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18116
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18050
18117
  var d,
18051
18118
  c = arguments.length,
18052
18119
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18053
18120
  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);
18054
18121
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18055
18122
  },
18056
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
18123
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18057
18124
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18058
18125
  },
18059
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
18126
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18060
18127
  return function (target, key) {
18061
18128
  decorator(target, key, paramIndex);
18062
18129
  };
@@ -18096,7 +18163,7 @@
18096
18163
  }), this.onRegisterPlugin = [];
18097
18164
  }
18098
18165
  };
18099
- DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
18166
+ DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
18100
18167
 
18101
18168
  var pluginModule = new ContainerModule(bind => {
18102
18169
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -18110,14 +18177,14 @@
18110
18177
  bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
18111
18178
  });
18112
18179
 
18113
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18180
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18114
18181
  var d,
18115
18182
  c = arguments.length,
18116
18183
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18117
18184
  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);
18118
18185
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18119
18186
  },
18120
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18187
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18121
18188
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18122
18189
  };
18123
18190
  let CanvasLayerHandlerContribution = class {
@@ -18187,7 +18254,7 @@
18187
18254
  this.canvas.release();
18188
18255
  }
18189
18256
  };
18190
- CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
18257
+ CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
18191
18258
 
18192
18259
  var layerHandlerModules = new ContainerModule(bind => {
18193
18260
  bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -18306,17 +18373,17 @@
18306
18373
  return result;
18307
18374
  }
18308
18375
 
18309
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18376
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18310
18377
  var d,
18311
18378
  c = arguments.length,
18312
18379
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18313
18380
  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);
18314
18381
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18315
18382
  },
18316
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18383
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18317
18384
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18318
18385
  },
18319
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18386
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18320
18387
  return function (target, key) {
18321
18388
  decorator(target, key, paramIndex);
18322
18389
  };
@@ -18374,7 +18441,7 @@
18374
18441
  renderGroup(group, drawContext, parentMatrix, skipSort) {
18375
18442
  if (drawContext.break || !1 === group.attribute.visibleAll) return;
18376
18443
  if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext.break = !0, void this._increaseRender(group, drawContext);
18377
- if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
18444
+ if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1) && "empty" !== group.attribute.boundsMode) return;
18378
18445
  let tempBounds,
18379
18446
  nextM = parentMatrix;
18380
18447
  if (this.useDirtyBounds) {
@@ -18455,7 +18522,7 @@
18455
18522
  } = graphic.parent.attribute;
18456
18523
  (scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
18457
18524
  }
18458
- if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
18525
+ if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && "empty" !== graphic.attribute.boundsMode && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
18459
18526
  if (retrans && graphic.parent) {
18460
18527
  const {
18461
18528
  scrollX = 0,
@@ -18515,9 +18582,9 @@
18515
18582
  }
18516
18583
  afterDraw(renderService, drawParams) {}
18517
18584
  };
18518
- 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);
18585
+ 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);
18519
18586
 
18520
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18587
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18521
18588
  var d,
18522
18589
  c = arguments.length,
18523
18590
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18568,9 +18635,9 @@
18568
18635
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
18569
18636
  }
18570
18637
  };
18571
- DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
18638
+ DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
18572
18639
 
18573
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18640
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18574
18641
  var d,
18575
18642
  c = arguments.length,
18576
18643
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18613,20 +18680,20 @@
18613
18680
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
18614
18681
  }
18615
18682
  };
18616
- DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
18683
+ DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
18617
18684
 
18618
18685
  var STATUS,
18619
- __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18686
+ __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18620
18687
  var d,
18621
18688
  c = arguments.length,
18622
18689
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18623
18690
  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);
18624
18691
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18625
18692
  },
18626
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18693
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
18627
18694
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18628
18695
  },
18629
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18696
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
18630
18697
  return function (target, key) {
18631
18698
  decorator(target, key, paramIndex);
18632
18699
  };
@@ -18756,7 +18823,7 @@
18756
18823
  });
18757
18824
  }
18758
18825
  };
18759
- 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);
18826
+ 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);
18760
18827
 
18761
18828
  var renderModule = new ContainerModule(bind => {
18762
18829
  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);
@@ -19452,14 +19519,14 @@
19452
19519
  return new Stage(params);
19453
19520
  }
19454
19521
 
19455
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19522
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19456
19523
  var d,
19457
19524
  c = arguments.length,
19458
19525
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19459
19526
  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);
19460
19527
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19461
19528
  },
19462
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
19529
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19463
19530
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19464
19531
  };
19465
19532
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -19669,7 +19736,7 @@
19669
19736
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
19670
19737
  }
19671
19738
  };
19672
- exports.EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
19739
+ exports.EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
19673
19740
 
19674
19741
  const DefaultConfig = {
19675
19742
  WIDTH: 500,
@@ -19768,7 +19835,7 @@
19768
19835
  }
19769
19836
  BaseCanvas.env = "browser";
19770
19837
 
19771
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19838
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19772
19839
  var d,
19773
19840
  c = arguments.length,
19774
19841
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19882,16 +19949,16 @@
19882
19949
  return Promise.resolve(null);
19883
19950
  }
19884
19951
  };
19885
- exports.BaseEnvContribution = __decorate$1g([injectable()], exports.BaseEnvContribution);
19952
+ exports.BaseEnvContribution = __decorate$1e([injectable()], exports.BaseEnvContribution);
19886
19953
 
19887
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19954
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19888
19955
  var d,
19889
19956
  c = arguments.length,
19890
19957
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19891
19958
  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);
19892
19959
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19893
19960
  },
19894
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19961
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
19895
19962
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19896
19963
  };
19897
19964
  exports.BaseWindowHandlerContribution = class BaseWindowHandlerContribution {
@@ -19930,7 +19997,7 @@
19930
19997
  return this.modelMatrix;
19931
19998
  }
19932
19999
  };
19933
- exports.BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
20000
+ exports.BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
19934
20001
 
19935
20002
  class DirectionalLight {
19936
20003
  constructor(dir, color) {
@@ -20021,17 +20088,17 @@
20021
20088
  Factory.registerPlugin("OrthoCamera", OrthoCamera);
20022
20089
  };
20023
20090
 
20024
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20091
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20025
20092
  var d,
20026
20093
  c = arguments.length,
20027
20094
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20028
20095
  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);
20029
20096
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20030
20097
  },
20031
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
20098
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
20032
20099
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20033
20100
  },
20034
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
20101
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
20035
20102
  return function (target, key) {
20036
20103
  decorator(target, key, paramIndex);
20037
20104
  };
@@ -20136,16 +20203,16 @@
20136
20203
  return picker || null;
20137
20204
  }
20138
20205
  };
20139
- 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);
20206
+ 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);
20140
20207
 
20141
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20208
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20142
20209
  var d,
20143
20210
  c = arguments.length,
20144
20211
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20145
20212
  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);
20146
20213
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20147
20214
  },
20148
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
20215
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
20149
20216
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20150
20217
  };
20151
20218
  exports.DefaultGlobalPickerService = class DefaultGlobalPickerService {
@@ -20210,7 +20277,7 @@
20210
20277
  } : null;
20211
20278
  }
20212
20279
  };
20213
- exports.DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], exports.DefaultGlobalPickerService);
20280
+ exports.DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], exports.DefaultGlobalPickerService);
20214
20281
 
20215
20282
  function simplifyRadialDist(points, sqTolerance) {
20216
20283
  let deltaX,
@@ -20235,6 +20302,24 @@
20235
20302
  }
20236
20303
  return t;
20237
20304
  };
20305
+ function getDefaultCharacterConfig(attribute) {
20306
+ const {
20307
+ fill = "black",
20308
+ stroke = !1,
20309
+ fontWeight = "normal",
20310
+ fontFamily = "Arial"
20311
+ } = attribute;
20312
+ let {
20313
+ fontSize = 12
20314
+ } = attribute;
20315
+ return isFinite(fontSize) || (fontSize = 12), {
20316
+ fill: fill,
20317
+ stroke: stroke,
20318
+ fontSize: fontSize,
20319
+ fontWeight: fontWeight,
20320
+ fontFamily: fontFamily
20321
+ };
20322
+ }
20238
20323
  function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
20239
20324
  if (cursorIndex < 0) return 0;
20240
20325
  const intCursorIndex = Math.round(cursorIndex);
@@ -20273,9 +20358,7 @@
20273
20358
  } = this.currRt.attribute;
20274
20359
  if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
20275
20360
  const config = textConfig[0];
20276
- textConfig.unshift(Object.assign(Object.assign({
20277
- fill: "black"
20278
- }, config), {
20361
+ textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
20279
20362
  text: ""
20280
20363
  }));
20281
20364
  } else {
@@ -20292,26 +20375,20 @@
20292
20375
  cb(text, this.isComposing, this.cursorIndex, this.currRt);
20293
20376
  });
20294
20377
  }, this.handleInput = ev => {
20295
- var _a, _b, _c, _d;
20296
20378
  if (!this.currRt) return;
20297
20379
  if ("historyUndo" === ev.inputType) return;
20298
- const _e = this.currRt.attribute,
20380
+ const _a = this.currRt.attribute,
20299
20381
  {
20300
20382
  textConfig = []
20301
- } = _e,
20302
- rest = __rest$1(_e, ["textConfig"]);
20383
+ } = _a,
20384
+ rest = __rest$1(_a, ["textConfig"]);
20303
20385
  if ("Backspace" === ev.type && !textConfig.length) return;
20304
20386
  let str = ev.data;
20305
20387
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
20306
20388
  const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
20307
20389
  endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
20308
20390
  let lastConfig = textConfig[this.isComposing ? this.composingConfigIdx : Math.max(startIdx - 1, 0)];
20309
- lastConfig || (lastConfig = {
20310
- fill: null !== (_a = rest.fill) && void 0 !== _a ? _a : "black",
20311
- stroke: null !== (_b = rest.stroke) && void 0 !== _b && _b,
20312
- fontSize: null !== (_c = rest.fontSize) && void 0 !== _c ? _c : 12,
20313
- fontWeight: null !== (_d = rest.fontWeight) && void 0 !== _d ? _d : "normal"
20314
- });
20391
+ lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
20315
20392
  let nextConfig = lastConfig;
20316
20393
  startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
20317
20394
  let nextConfigIdx = startIdx;
@@ -20359,9 +20436,9 @@
20359
20436
  textConfig.splice(configIdx, 1);
20360
20437
  const text = lastConfig.text,
20361
20438
  textList = text ? Array.from(text.toString()) : [];
20362
- for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
20439
+ 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)), {
20363
20440
  fill: "black"
20364
- }, lastConfig), {
20441
+ }), lastConfig), {
20365
20442
  isComposing: !1,
20366
20443
  text: textList[i]
20367
20444
  }));
@@ -20407,6 +20484,7 @@
20407
20484
  if (!this.rt) return null;
20408
20485
  let idx = Math.round(cursorIdx);
20409
20486
  const config = this.rt.attribute.textConfig;
20487
+ if (!config.length) return null;
20410
20488
  for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
20411
20489
  return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
20412
20490
  }
@@ -20426,6 +20504,7 @@
20426
20504
  }
20427
20505
  }
20428
20506
  const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
20507
+ const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
20429
20508
  const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
20430
20509
  class RichTextEditPlugin {
20431
20510
  static tryUpdateRichtext(richtext) {
@@ -20445,45 +20524,57 @@
20445
20524
  return new Selection(0, textConfig.length - 1, rt);
20446
20525
  }
20447
20526
  constructor() {
20448
- this.name = "RichTextEditPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.editing = !1, this.pointerDown = !1, this.handleKeyDown = e => {
20527
+ this.name = "RichTextEditPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.editing = !1, this.focusing = !1, this.pointerDown = !1, this.formatTextCommandCb = (payload, p) => {
20528
+ const rt = p.currRt;
20529
+ if (!rt) return;
20530
+ const selectionData = p.getSelection();
20531
+ if (!selectionData) return;
20532
+ const {
20533
+ selectionStartCursorIdx: selectionStartCursorIdx,
20534
+ curCursorIdx: curCursorIdx
20535
+ } = selectionData,
20536
+ minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
20537
+ maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
20538
+ minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
20539
+ maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
20540
+ config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
20541
+ this._formatTextCommand(payload, config, rt);
20542
+ }, this.formatAllTextCommandCb = (payload, p) => {
20543
+ const rt = p.currRt;
20544
+ if (!rt) return;
20545
+ const config = rt.attribute.textConfig;
20546
+ this._formatTextCommand(payload, config, rt);
20547
+ }, this.handleKeyDown = e => {
20449
20548
  this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
20450
20549
  }, this.handleInput = (text, isComposing, cursorIdx, rt) => {
20451
- this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
20550
+ this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
20452
20551
  }, this.handleChange = (text, isComposing, cursorIdx, rt) => {
20453
- this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20552
+ if (!this.currRt) return;
20553
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20454
20554
  const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
20455
20555
  this.setCursorAndTextArea(p.x, p.y1, p.y2, rt), this.hideSelection(), this.updateCbs.forEach(cb => cb("change", this));
20456
- }, this.handleFocusIn = () => {}, this.handleFocusOut = () => {
20457
- this.editing = !1, this.deFocus(), this.pointerDown = !1, this.triggerRender(), this.updateCbs.forEach(cb => cb("defocus", this));
20556
+ }, this.handleFocusIn = () => {
20557
+ throw new Error("不会走到这里 handleFocusIn");
20558
+ }, this.handleFocusOut = () => {
20559
+ throw new Error("不会走到这里 handleFocusOut");
20458
20560
  }, this.handleMove = e => {
20459
- this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
20460
- }, this.handleEnter = e => {
20561
+ 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();
20562
+ }, this.handleEnter = () => {
20461
20563
  this.editing = !0, this.pluginService.stage.setCursor("text");
20462
- }, this.handleLeave = e => {
20564
+ }, this.handleLeave = () => {
20463
20565
  this.editing = !1, this.pluginService.stage.setCursor("default");
20464
20566
  }, this.handlePointerDown = e => {
20465
- this.editing ? this.onFocus(e) : this.deFocus(), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20567
+ 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));
20466
20568
  }, this.handlePointerUp = e => {
20467
20569
  this.pointerDown = !1;
20468
20570
  }, this.handleDBLClick = e => {
20469
20571
  this.editing && this.tryShowSelection(e, !0);
20470
- }, this.commandCbs = new Map(), this.commandCbs.set(FORMAT_TEXT_COMMAND, [this.formatTextCommandCb]), this.updateCbs = [], this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker([this.timeline]), this.deltaX = 0, this.deltaY = 0;
20572
+ }, this.commandCbs = new Map(), this.commandCbs.set(FORMAT_TEXT_COMMAND, [this.formatTextCommandCb]), this.commandCbs.set(FORMAT_ALL_TEXT_COMMAND, [this.formatAllTextCommandCb]), this.updateCbs = [], this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker([this.timeline]), this.deltaX = 0, this.deltaY = 0;
20471
20573
  }
20472
- formatTextCommandCb(payload, p) {
20473
- const rt = p.currRt;
20474
- if (!rt) return;
20475
- const selectionData = p.getSelection();
20476
- if (!selectionData) return;
20477
- const {
20478
- selectionStartCursorIdx: selectionStartCursorIdx,
20479
- curCursorIdx: curCursorIdx
20480
- } = selectionData,
20481
- minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
20482
- maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
20483
- minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
20484
- maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
20485
- config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
20574
+ _formatTextCommand(payload, config, rt) {
20486
20575
  "bold" === payload ? config.forEach(item => item.fontWeight = "bold") : "italic" === payload ? config.forEach(item => item.fontStyle = "italic") : "underline" === payload ? config.forEach(item => item.underline = !0) : "lineThrough" === payload ? config.forEach(item => item.lineThrough = !0) : isObject$1(payload) && config.forEach(item => merge(item, payload)), rt.setAttributes(rt.attribute);
20576
+ const cache = rt.getFrameCache();
20577
+ cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
20487
20578
  }
20488
20579
  dispatchCommand(command, payload) {
20489
20580
  const cbs = this.commandCbs.get(command);
@@ -20492,9 +20583,19 @@
20492
20583
  registerCommand(command, cb) {
20493
20584
  (this.commandCbs.get(command) || []).push(cb);
20494
20585
  }
20586
+ removeCommand(command, cb) {
20587
+ const cbs = this.commandCbs.get(command) || [],
20588
+ idx = cbs.indexOf(cb);
20589
+ idx > -1 && cbs.splice(idx, 1);
20590
+ }
20495
20591
  registerUpdateListener(cb) {
20496
20592
  (this.updateCbs || []).push(cb);
20497
20593
  }
20594
+ removeUpdateListener(cb) {
20595
+ const cbs = this.updateCbs || [],
20596
+ idx = cbs.indexOf(cb);
20597
+ idx > -1 && cbs.splice(idx, 1);
20598
+ }
20498
20599
  activate(context) {
20499
20600
  this.pluginService = context, this.editModule = new EditModule(), context.stage.on("pointermove", this.handleMove), context.stage.on("pointerdown", this.handlePointerDown), context.stage.on("pointerup", this.handlePointerUp), context.stage.on("pointerleave", this.handlePointerUp), context.stage.on("dblclick", this.handleDBLClick), application.global.addEventListener("keydown", this.handleKeyDown), this.editModule.onInput(this.handleInput), this.editModule.onChange(this.handleChange), this.editModule.onFocusOut(this.handleFocusOut);
20500
20601
  }
@@ -20514,7 +20615,10 @@
20514
20615
  lines: lines
20515
20616
  } = cache,
20516
20617
  totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20517
- startIdx > endIdx && ([startIdx, endIdx] = [endIdx, startIdx]), startIdx = Math.min(Math.max(startIdx, -.1), totalCursorCount + .1), endIdx = Math.min(Math.max(endIdx, -.1), totalCursorCount + .1), this.curCursorIdx = endIdx, this.selectionStartCursorIdx = startIdx;
20618
+ startIdx > endIdx && ([startIdx, endIdx] = [endIdx, startIdx]), startIdx = Math.min(Math.max(startIdx, -.1), totalCursorCount + .1), endIdx = Math.min(Math.max(endIdx, -.1), totalCursorCount + .1), this.selectionRangeByCursorIdx(startIdx, endIdx, cache);
20619
+ }
20620
+ selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
20621
+ this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
20518
20622
  const {
20519
20623
  x: x,
20520
20624
  y1: y1,
@@ -20534,9 +20638,11 @@
20534
20638
  const cache = currRt.getFrameCache();
20535
20639
  if (!cache) return;
20536
20640
  const {
20537
- lines: lines
20538
- } = cache,
20539
- totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20641
+ lines: lines
20642
+ } = cache;
20643
+ if (0 === lines.length) return;
20644
+ if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
20645
+ const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20540
20646
  return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
20541
20647
  }
20542
20648
  return !1;
@@ -20585,61 +20691,190 @@
20585
20691
  }
20586
20692
  return !0;
20587
20693
  }
20694
+ tryShowShadowPlaceholder() {
20695
+ if (!this.currRt) return;
20696
+ const shadowRoot = this.currRt.shadowRoot;
20697
+ if (shadowRoot) {
20698
+ const placeholder = shadowRoot.getElementsByType("richtext")[0];
20699
+ placeholder && shadowRoot.removeChild(placeholder);
20700
+ }
20701
+ const {
20702
+ textConfig: textConfig,
20703
+ editOptions: editOptions
20704
+ } = this.currRt.attribute;
20705
+ if (textConfig && textConfig.length) return;
20706
+ if (!editOptions || !editOptions.placeholder) return;
20707
+ const {
20708
+ placeholder: placeholder,
20709
+ placeholderColor = "rgba(0, 0, 0, 0.6)",
20710
+ placeholderFontFamily: placeholderFontFamily,
20711
+ placeholderFontSize: placeholderFontSize
20712
+ } = editOptions,
20713
+ shadow = this.getShadow(this.currRt),
20714
+ textConfigItem = Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
20715
+ text: placeholder
20716
+ });
20717
+ placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
20718
+ x: 0,
20719
+ y: 0,
20720
+ pickable: !1,
20721
+ editable: !1,
20722
+ editOptions: null,
20723
+ angle: 0,
20724
+ _debug_bounds: !1,
20725
+ textConfig: [textConfigItem]
20726
+ })), shadow.add(this.shadowPlaceHolder);
20727
+ }
20728
+ tryShowInputBounds() {
20729
+ if (!this.currRt || !this.focusing) return;
20730
+ const {
20731
+ editOptions = {}
20732
+ } = this.currRt.attribute,
20733
+ {
20734
+ boundsStrokeWhenInput: boundsStrokeWhenInput
20735
+ } = editOptions;
20736
+ if (!editOptions || !boundsStrokeWhenInput) return;
20737
+ const {
20738
+ attribute: attribute
20739
+ } = this.currRt;
20740
+ let b = this.currRt.AABBBounds,
20741
+ h = b.height();
20742
+ if (!attribute.textConfig.length && this.editLine) {
20743
+ const {
20744
+ points: points
20745
+ } = this.editLine.attribute;
20746
+ h = points[1].y - points[0].y, b = getRichTextBounds(Object.assign({}, this.shadowPlaceHolder.attribute));
20747
+ }
20748
+ this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
20749
+ x: 0,
20750
+ y: 0,
20751
+ width: b.width(),
20752
+ height: h,
20753
+ fill: !1,
20754
+ stroke: boundsStrokeWhenInput,
20755
+ lineWidth: 1,
20756
+ zIndex: -1
20757
+ });
20758
+ this.getShadow(this.currRt).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
20759
+ }
20760
+ trySyncPlaceholderToTextConfig() {
20761
+ if (!this.currRt) return;
20762
+ const {
20763
+ textConfig: textConfig,
20764
+ editOptions: editOptions
20765
+ } = this.currRt.attribute;
20766
+ if (textConfig && textConfig.length) return;
20767
+ if (!(editOptions && editOptions.placeholder && editOptions.syncPlaceHolderToTextConfig)) return;
20768
+ const {
20769
+ placeholder: placeholder
20770
+ } = editOptions;
20771
+ this.currRt.setAttributes({
20772
+ textConfig: [Object.assign({
20773
+ text: placeholder
20774
+ }, getDefaultCharacterConfig(this.currRt.attribute))]
20775
+ });
20776
+ }
20588
20777
  deactivate(context) {
20589
20778
  context.stage.off("pointermove", this.handleMove), context.stage.off("pointerdown", this.handlePointerDown), context.stage.off("pointerup", this.handlePointerUp), context.stage.off("pointerleave", this.handlePointerUp), context.stage.off("dblclick", this.handleDBLClick), application.global.addEventListener("keydown", this.handleKeyDown);
20590
20779
  }
20591
- onFocus(e) {
20592
- this.deFocus(), this.currRt = e.target;
20780
+ onFocus(e, data) {
20781
+ this.updateCbs && this.updateCbs.forEach(cb => cb("beforeOnfocus", this)), this.deFocus(!1), this.focusing = !0;
20593
20782
  const target = e.target;
20594
- RichTextEditPlugin.tryUpdateRichtext(target);
20595
- const shadowRoot = target.attachShadow(),
20783
+ if (!target || "richtext" !== target.type) return;
20784
+ this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
20785
+ const shadowRoot = this.getShadow(target),
20596
20786
  cache = target.getFrameCache();
20597
- if (!cache) return;
20598
- if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
20599
- shadowRootIdx: 1,
20600
- pickable: !1,
20601
- x: this.deltaX,
20602
- y: this.deltaY
20603
- }), !this.editLine) {
20604
- const line = createLine({
20605
- x: 0,
20606
- y: 0,
20607
- lineWidth: 1,
20608
- stroke: "black"
20609
- });
20610
- this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
20611
- const g = createGroup({
20612
- x: 0,
20613
- y: 0,
20614
- width: 0,
20615
- height: 0
20616
- });
20617
- this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20618
- }
20619
- const data = this.computedCursorPosByEvent(e, cache);
20620
- if (data) {
20621
- const {
20622
- x: x,
20623
- y1: y1,
20624
- y2: y2,
20625
- cursorIndex: cursorIndex
20626
- } = data;
20627
- this.startCursorPos = {
20628
- x: x,
20629
- y: (y1 + y2) / 2
20630
- }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20787
+ if (cache) {
20788
+ if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
20789
+ shadowRootIdx: 1,
20790
+ pickable: !1,
20791
+ x: this.deltaX,
20792
+ y: this.deltaY
20793
+ }), !this.editLine) {
20794
+ const line = createLine({
20795
+ x: 0,
20796
+ y: 0,
20797
+ lineWidth: 1,
20798
+ stroke: "black"
20799
+ });
20800
+ this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
20801
+ const g = createGroup({
20802
+ x: 0,
20803
+ y: 0,
20804
+ width: 0,
20805
+ height: 0
20806
+ });
20807
+ this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20808
+ }
20809
+ if (data = data || this.computedCursorPosByEvent(e, cache)) {
20810
+ const {
20811
+ x: x,
20812
+ y1: y1,
20813
+ y2: y2,
20814
+ cursorIndex: cursorIndex
20815
+ } = data;
20816
+ this.startCursorPos = {
20817
+ x: x,
20818
+ y: (y1 + y2) / 2
20819
+ }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20820
+ } else {
20821
+ const x = 0,
20822
+ y1 = 0,
20823
+ y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
20824
+ textConfig: [{
20825
+ text: "a"
20826
+ }]
20827
+ })).height();
20828
+ this.startCursorPos = {
20829
+ x: x,
20830
+ y: (y1 + y2) / 2
20831
+ }, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
20832
+ }
20833
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
20631
20834
  }
20632
20835
  }
20633
- deFocus() {
20634
- const target = this.currRt;
20635
- target && (target.detachShadow(), this.currRt = null, this.editLine && (this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null));
20836
+ offsetLineBgAndShadowBounds() {
20837
+ const rt = this.currRt,
20838
+ {
20839
+ textBaseline: textBaseline
20840
+ } = rt.attribute;
20841
+ let b,
20842
+ dy = 0,
20843
+ attr = rt.attribute;
20844
+ "middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
20845
+ textConfig: [{
20846
+ text: "a"
20847
+ }]
20848
+ })), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
20849
+ dy: dy
20850
+ }), this.editBg && this.editBg.setAttributes({
20851
+ dy: dy
20852
+ }), this.shadowBounds && this.shadowBounds.setAttributes({
20853
+ dy: dy
20854
+ });
20855
+ }
20856
+ deFocus() {
20857
+ let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20858
+ const currRt = this.currRt;
20859
+ if (!currRt) return;
20860
+ this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
20861
+ trulyDeFocus: trulyDeFocus
20862
+ })), 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;
20863
+ const textConfig = currRt.attribute.textConfig;
20864
+ let lastConfig = textConfig[textConfig.length - 1],
20865
+ cleared = !1;
20866
+ for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
20867
+ cleared && currRt.setAttributes({
20868
+ textConfig: textConfig
20869
+ }), currRt.removeEventListener("pointerleave", this.handleLeave);
20636
20870
  }
20637
20871
  addAnimateToLine(line) {
20638
20872
  line.animates && line.animates.forEach(animate => {
20639
20873
  animate.stop(), animate.release();
20640
20874
  });
20641
- const animate = line.animate();
20642
- animate.setTimeline(this.timeline), animate.to({
20875
+ line.animate({
20876
+ timeline: this.timeline
20877
+ }).to({
20643
20878
  opacity: 1
20644
20879
  }, 10, "linear").wait(700).to({
20645
20880
  opacity: 0
@@ -20679,67 +20914,75 @@
20679
20914
  },
20680
20915
  line0Info = this.getLineByPoint(cache, startCursorPos),
20681
20916
  line1Info = this.getLineByPoint(cache, endCursorPos);
20682
- 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({
20683
- x: startCursorPos.x,
20684
- y: line0Info.top,
20685
- width: endCursorPos.x - startCursorPos.x,
20686
- height: line0Info.height,
20687
- fill: "#336df4",
20688
- fillOpacity: .2
20689
- });else {
20690
- this.editBg.setAttributes({
20691
- x: 0,
20917
+ if (line0Info && line1Info) {
20918
+ 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({
20919
+ x: startCursorPos.x,
20692
20920
  y: line0Info.top,
20693
- width: 0,
20694
- height: 0
20695
- });
20696
- const startIdx = cache.lines.findIndex(item => item === line0Info),
20697
- endIdx = cache.lines.findIndex(item => item === line1Info);
20698
- let y = 0;
20699
- for (let i = startIdx; i <= endIdx; i++) {
20700
- const line = cache.lines[i];
20701
- if (i === startIdx) {
20702
- const p = line.paragraphs[line.paragraphs.length - 1];
20703
- this.editBg.add(createRect({
20704
- x: startCursorPos.x,
20705
- y: y,
20706
- width: p.left + p.width - startCursorPos.x,
20707
- height: line.height,
20708
- fill: "#336df4",
20709
- fillOpacity: .2
20710
- }));
20711
- } else if (i === endIdx) {
20712
- const p = line.paragraphs[0];
20713
- this.editBg.add(createRect({
20714
- x: p.left,
20715
- y: y,
20716
- width: endCursorPos.x - p.left,
20717
- height: line.height,
20718
- fill: "#336df4",
20719
- fillOpacity: .2
20720
- }));
20721
- } else {
20722
- const p0 = line.paragraphs[0],
20723
- p1 = line.paragraphs[line.paragraphs.length - 1];
20724
- this.editBg.add(createRect({
20725
- x: p0.left,
20726
- y: y,
20727
- width: p1.left + p1.width - p0.left,
20728
- height: line.height,
20729
- fill: "#336df4",
20730
- fillOpacity: .2
20731
- }));
20921
+ width: endCursorPos.x - startCursorPos.x,
20922
+ height: line0Info.height,
20923
+ fill: "#336df4",
20924
+ fillOpacity: .2
20925
+ });else {
20926
+ this.editBg.setAttributes({
20927
+ x: 0,
20928
+ y: line0Info.top,
20929
+ width: 0,
20930
+ height: 0
20931
+ });
20932
+ const startIdx = cache.lines.findIndex(item => item === line0Info),
20933
+ endIdx = cache.lines.findIndex(item => item === line1Info);
20934
+ let y = 0;
20935
+ for (let i = startIdx; i <= endIdx; i++) {
20936
+ const line = cache.lines[i];
20937
+ if (i === startIdx) {
20938
+ const p = line.paragraphs[line.paragraphs.length - 1];
20939
+ this.editBg.add(createRect({
20940
+ x: startCursorPos.x,
20941
+ y: y,
20942
+ width: p.left + p.width - startCursorPos.x,
20943
+ height: line.height,
20944
+ fill: "#336df4",
20945
+ fillOpacity: .2
20946
+ }));
20947
+ } else if (i === endIdx) {
20948
+ const p = line.paragraphs[0];
20949
+ this.editBg.add(createRect({
20950
+ x: p.left,
20951
+ y: y,
20952
+ width: endCursorPos.x - p.left,
20953
+ height: line.height,
20954
+ fill: "#336df4",
20955
+ fillOpacity: .2
20956
+ }));
20957
+ } else {
20958
+ const p0 = line.paragraphs[0],
20959
+ p1 = line.paragraphs[line.paragraphs.length - 1];
20960
+ this.editBg.add(createRect({
20961
+ x: p0.left,
20962
+ y: y,
20963
+ width: p1.left + p1.width - p0.left,
20964
+ height: line.height,
20965
+ fill: "#336df4",
20966
+ fillOpacity: .2
20967
+ }));
20968
+ }
20969
+ y += line.height;
20732
20970
  }
20733
- y += line.height;
20734
20971
  }
20972
+ this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20735
20973
  }
20736
- this.setCursorAndTextArea(currCursorData.x, currCursorData.y1 + 2, currCursorData.y2 - 2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20737
20974
  }
20738
20975
  hideSelection() {
20739
20976
  this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
20740
20977
  fill: "transparent"
20741
20978
  }));
20742
20979
  }
20980
+ getShadow(rt) {
20981
+ const sr = rt.shadowRoot || rt.attachShadow();
20982
+ return sr.setAttributes({
20983
+ boundsMode: "empty"
20984
+ }), sr;
20985
+ }
20743
20986
  getLineByPoint(cache, p1) {
20744
20987
  let lineInfo = cache.lines[0];
20745
20988
  for (let i = 0; i < cache.lines.length && !(lineInfo.top <= p1.y && lineInfo.top + lineInfo.height >= p1.y); i++) lineInfo = cache.lines[i + 1];
@@ -20771,7 +21014,10 @@
20771
21014
  return -1;
20772
21015
  }
20773
21016
  isRichtext(e) {
20774
- return !(!e.target || "richtext" !== e.target.type || !e.target.attribute.editable);
21017
+ return !(!e.target || "richtext" !== e.target.type);
21018
+ }
21019
+ isEditableRichtext(e) {
21020
+ return this.isRichtext(e) && !!e.target.attribute.editable;
20775
21021
  }
20776
21022
  triggerRender() {
20777
21023
  this.pluginService.stage.renderNextFrame();
@@ -20789,7 +21035,18 @@
20789
21035
  x: 0,
20790
21036
  y: 0
20791
21037
  };
20792
- return e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY, p1;
21038
+ e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
21039
+ const rt = this.currRt,
21040
+ {
21041
+ textBaseline: textBaseline
21042
+ } = rt.attribute;
21043
+ let dy = 0;
21044
+ if ("middle" === textBaseline) {
21045
+ dy = getRichTextBounds(rt.attribute).height() / 2;
21046
+ } else if ("bottom" === textBaseline) {
21047
+ dy = getRichTextBounds(rt.attribute).height();
21048
+ }
21049
+ return p1.y += dy, p1;
20793
21050
  }
20794
21051
  setCursorAndTextArea(x, y1, y2, rt) {
20795
21052
  this.editLine.setAttributes({
@@ -20813,7 +21070,7 @@
20813
21070
  left: left,
20814
21071
  top: top
20815
21072
  } = this.pluginService.stage.window.getBoundingClientRect();
20816
- out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
21073
+ out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
20817
21074
  }
20818
21075
  computedCursorPosByEvent(e, cache) {
20819
21076
  const p1 = this.getEventPosition(e),
@@ -20824,9 +21081,8 @@
20824
21081
  delta: delta
20825
21082
  } = this.getColumnAndIndexByLinePoint(lineInfo, p1);
20826
21083
  if (!columnInfo) return;
20827
- let y1 = lineInfo.top,
21084
+ const y1 = lineInfo.top,
20828
21085
  y2 = lineInfo.top + lineInfo.height;
20829
- y1 += 2, y2 -= 2;
20830
21086
  let cursorIndex = this.getColumnIndex(cache, columnInfo);
20831
21087
  cursorIndex += delta;
20832
21088
  return {
@@ -20845,21 +21101,36 @@
20845
21101
  cache = rt.getFrameCache(),
20846
21102
  column = this.getColumnByIndex(cache, idx),
20847
21103
  height = null !== (_a = rt.attribute.fontSize) && void 0 !== _a ? _a : null === (_c = null === (_b = rt.attribute.textConfig) || void 0 === _b ? void 0 : _b[0]) || void 0 === _c ? void 0 : _c.fontSize;
20848
- if (!column) return {
20849
- x: 0,
20850
- y1: 0,
20851
- y2: height
20852
- };
21104
+ if (!column) {
21105
+ if (!cache.lines.length) {
21106
+ return {
21107
+ x: 0,
21108
+ y1: 0,
21109
+ y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
21110
+ textConfig: [{
21111
+ text: "a"
21112
+ }]
21113
+ })).height()
21114
+ };
21115
+ }
21116
+ return {
21117
+ x: 0,
21118
+ y1: 0,
21119
+ y2: height
21120
+ };
21121
+ }
20853
21122
  const {
20854
- lineInfo: lineInfo,
20855
- columnInfo: columnInfo
20856
- } = column;
20857
- let y1 = lineInfo.top,
21123
+ lineInfo: lineInfo,
21124
+ columnInfo: columnInfo
21125
+ } = column,
21126
+ y1 = lineInfo.top,
20858
21127
  y2 = lineInfo.top + lineInfo.height;
20859
- return y1 += 2, y2 -= 2, {
21128
+ return {
20860
21129
  x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
20861
21130
  y1: y1,
20862
- y2: y2
21131
+ y2: y2,
21132
+ lineInfo: lineInfo,
21133
+ columnInfo: columnInfo
20863
21134
  };
20864
21135
  }
20865
21136
  getColumnByIndex(cache, index) {
@@ -20883,6 +21154,37 @@
20883
21154
  let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20884
21155
  return this.currRt ? null != this.selectionStartCursorIdx && null != this.curCursorIdx ? new Selection(this.selectionStartCursorIdx, this.curCursorIdx, this.currRt) : defaultAll ? RichTextEditPlugin.CreateSelection(this.currRt) : null : null;
20885
21156
  }
21157
+ forceFocus(params) {
21158
+ const {
21159
+ target: target,
21160
+ e: e,
21161
+ cursorIndex: cursorIndex
21162
+ } = params;
21163
+ target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
21164
+ }
21165
+ _forceFocusByEvent(e) {
21166
+ this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
21167
+ }
21168
+ _forceFocusByCursorIndex(cursorIndex) {
21169
+ const richtext = this.currRt;
21170
+ if (!richtext) return;
21171
+ let x = 0,
21172
+ y1 = 0,
21173
+ y2 = 2,
21174
+ lineInfo = null,
21175
+ columnInfo = null;
21176
+ const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
21177
+ x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
21178
+ target: this.currRt
21179
+ }, {
21180
+ x: x,
21181
+ y1: y1,
21182
+ y2: y2,
21183
+ cursorIndex: cursorIndex,
21184
+ lineInfo: lineInfo,
21185
+ columnInfo: columnInfo
21186
+ });
21187
+ }
20886
21188
  }
20887
21189
 
20888
21190
  class DefaultGraphicAllocate {
@@ -21065,7 +21367,7 @@
21065
21367
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21066
21368
  });
21067
21369
 
21068
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21370
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21069
21371
  var d,
21070
21372
  c = arguments.length,
21071
21373
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21097,21 +21399,21 @@
21097
21399
  }), context.highPerformanceRestore();
21098
21400
  }
21099
21401
  };
21100
- DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
21402
+ DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
21101
21403
 
21102
21404
  let loadGlyphModule = !1;
21103
21405
  const glyphModule = new ContainerModule(bind => {
21104
21406
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21105
21407
  });
21106
21408
 
21107
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21409
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21108
21410
  var d,
21109
21411
  c = arguments.length,
21110
21412
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21111
21413
  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);
21112
21414
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21113
21415
  },
21114
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
21416
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
21115
21417
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21116
21418
  };
21117
21419
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -21165,7 +21467,7 @@
21165
21467
  this._draw(richtext, richtextAttribute, !1, drawContext);
21166
21468
  }
21167
21469
  };
21168
- DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
21470
+ DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
21169
21471
 
21170
21472
  let loadRichtextModule = !1;
21171
21473
  const richtextModule = new ContainerModule(bind => {
@@ -21249,7 +21551,7 @@
21249
21551
  }
21250
21552
  }
21251
21553
 
21252
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21554
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21253
21555
  var d,
21254
21556
  c = arguments.length,
21255
21557
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21305,14 +21607,14 @@
21305
21607
  this._draw(rect, rectAttribute, !1, drawContext);
21306
21608
  }
21307
21609
  };
21308
- DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
21610
+ DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
21309
21611
 
21310
21612
  let loadRect3dModule = !1;
21311
21613
  const rect3dModule = new ContainerModule(bind => {
21312
21614
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21313
21615
  });
21314
21616
 
21315
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21617
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21316
21618
  var d,
21317
21619
  c = arguments.length,
21318
21620
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21439,14 +21741,14 @@
21439
21741
  this._draw(arc, arcAttribute, !1, drawContext, params);
21440
21742
  }
21441
21743
  };
21442
- DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
21744
+ DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
21443
21745
 
21444
21746
  let loadArc3dModule = !1;
21445
21747
  const arc3dModule = new ContainerModule(bind => {
21446
21748
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21447
21749
  });
21448
21750
 
21449
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21751
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21450
21752
  var d,
21451
21753
  c = arguments.length,
21452
21754
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21483,7 +21785,7 @@
21483
21785
  this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
21484
21786
  }
21485
21787
  };
21486
- DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
21788
+ DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
21487
21789
 
21488
21790
  let loadPyramid3dModule = !1;
21489
21791
  const pyramid3dModule = new ContainerModule(bind => {
@@ -23606,17 +23908,17 @@
23606
23908
  }
23607
23909
  }
23608
23910
 
23609
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23911
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23610
23912
  var d,
23611
23913
  c = arguments.length,
23612
23914
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23613
23915
  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);
23614
23916
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23615
23917
  },
23616
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
23918
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
23617
23919
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23618
23920
  },
23619
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
23921
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
23620
23922
  return function (target, key) {
23621
23923
  decorator(target, key, paramIndex);
23622
23924
  };
@@ -23702,9 +24004,9 @@
23702
24004
  }), context.highPerformanceRestore();
23703
24005
  }
23704
24006
  };
23705
- RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(exports.DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
24007
+ RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
23706
24008
 
23707
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24009
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23708
24010
  var d,
23709
24011
  c = arguments.length,
23710
24012
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23782,19 +24084,19 @@
23782
24084
  }), context.highPerformanceRestore(), !1;
23783
24085
  }
23784
24086
  };
23785
- RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
24087
+ RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
23786
24088
 
23787
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24089
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23788
24090
  var d,
23789
24091
  c = arguments.length,
23790
24092
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23791
24093
  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);
23792
24094
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23793
24095
  },
23794
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
24096
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
23795
24097
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23796
24098
  },
23797
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
24099
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
23798
24100
  return function (target, key) {
23799
24101
  decorator(target, key, paramIndex);
23800
24102
  };
@@ -23831,9 +24133,9 @@
23831
24133
  });
23832
24134
  }
23833
24135
  };
23834
- RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
24136
+ RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
23835
24137
 
23836
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24138
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23837
24139
  var d,
23838
24140
  c = arguments.length,
23839
24141
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23912,19 +24214,19 @@
23912
24214
  }), context.highPerformanceRestore(), !1;
23913
24215
  }
23914
24216
  };
23915
- RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
24217
+ RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
23916
24218
 
23917
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24219
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23918
24220
  var d,
23919
24221
  c = arguments.length,
23920
24222
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23921
24223
  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);
23922
24224
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23923
24225
  },
23924
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
24226
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
23925
24227
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23926
24228
  },
23927
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
24229
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
23928
24230
  return function (target, key) {
23929
24231
  decorator(target, key, paramIndex);
23930
24232
  };
@@ -23998,19 +24300,19 @@
23998
24300
  }), context.highPerformanceRestore();
23999
24301
  }
24000
24302
  };
24001
- RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
24303
+ RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(exports.DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
24002
24304
 
24003
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24305
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24004
24306
  var d,
24005
24307
  c = arguments.length,
24006
24308
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24007
24309
  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);
24008
24310
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24009
24311
  },
24010
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
24312
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24011
24313
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24012
24314
  },
24013
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
24315
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24014
24316
  return function (target, key) {
24015
24317
  decorator(target, key, paramIndex);
24016
24318
  };
@@ -24101,19 +24403,19 @@
24101
24403
  }), context.highPerformanceRestore();
24102
24404
  }
24103
24405
  };
24104
- RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(exports.DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
24406
+ RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(exports.DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
24105
24407
 
24106
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24408
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24107
24409
  var d,
24108
24410
  c = arguments.length,
24109
24411
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24110
24412
  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);
24111
24413
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24112
24414
  },
24113
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24415
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
24114
24416
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24115
24417
  },
24116
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24418
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
24117
24419
  return function (target, key) {
24118
24420
  decorator(target, key, paramIndex);
24119
24421
  };
@@ -24205,7 +24507,7 @@
24205
24507
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
24206
24508
  }
24207
24509
  };
24208
- RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24510
+ RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24209
24511
 
24210
24512
  var _roughModule = new ContainerModule(bind => {
24211
24513
  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);
@@ -24228,7 +24530,6 @@
24228
24530
  const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
24229
24531
  const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
24230
24532
  const CanvasImagePicker = Symbol.for("CanvasImagePicker");
24231
- const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
24232
24533
  const CanvasLinePicker = Symbol.for("CanvasLinePicker");
24233
24534
  const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
24234
24535
  const CanvasPathPicker = Symbol.for("CanvasPathPicker");
@@ -24369,11 +24670,9 @@
24369
24670
  name: name,
24370
24671
  id: id,
24371
24672
  attribute: attribute,
24372
- stateProxy: stateProxy,
24373
- animation: animation,
24374
- timeline: timeline
24673
+ stateProxy: stateProxy
24375
24674
  } = _a,
24376
- props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
24675
+ props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
24377
24676
  let c = type;
24378
24677
  isString$1(type) && (c = graphicCreator[type]);
24379
24678
  const childrenList = [];
@@ -24382,13 +24681,7 @@
24382
24681
  }
24383
24682
  children.length && flatten(1 === children.length ? children[0] : children, childrenList);
24384
24683
  const g = "Group" === c.name ? new c(attribute) : c(config);
24385
- if (parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), name && (g.name = name), isArray$1(animation)) {
24386
- const animate = g.animate();
24387
- timeline && animate.setTimeline(timeline), animation.forEach(item => {
24388
- animate[item[0]](...item.slice(1));
24389
- });
24390
- }
24391
- return g;
24684
+ return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
24392
24685
  }
24393
24686
  function parseToGraphic$1(g, childrenList, props) {
24394
24687
  let out,
@@ -24718,14 +25011,14 @@
24718
25011
  }
24719
25012
  }
24720
25013
 
24721
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25014
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24722
25015
  var d,
24723
25016
  c = arguments.length,
24724
25017
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24725
25018
  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);
24726
25019
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24727
25020
  },
24728
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
25021
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
24729
25022
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24730
25023
  };
24731
25024
  const outP = [0, 0, 0],
@@ -25237,16 +25530,16 @@
25237
25530
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
25238
25531
  }
25239
25532
  };
25240
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
25533
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
25241
25534
 
25242
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25535
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25243
25536
  var d,
25244
25537
  c = arguments.length,
25245
25538
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25246
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);
25247
25540
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25248
25541
  },
25249
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
25542
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
25250
25543
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25251
25544
  };
25252
25545
  let BrowserCanvas = class extends BaseCanvas {
@@ -25308,7 +25601,7 @@
25308
25601
  this._context.dpr = this._dpr;
25309
25602
  }
25310
25603
  };
25311
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
25604
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
25312
25605
 
25313
25606
  function createModule(CanvasConstructor, ContextConstructor) {
25314
25607
  return new ContainerModule(bind => {
@@ -25318,17 +25611,17 @@
25318
25611
 
25319
25612
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
25320
25613
 
25321
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25614
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25322
25615
  var d,
25323
25616
  c = arguments.length,
25324
25617
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25325
25618
  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);
25326
25619
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25327
25620
  },
25328
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
25621
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
25329
25622
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25330
25623
  },
25331
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
25624
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
25332
25625
  return function (target, key) {
25333
25626
  decorator(target, key, paramIndex);
25334
25627
  };
@@ -25379,9 +25672,9 @@
25379
25672
  return data;
25380
25673
  }
25381
25674
  };
25382
- 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);
25675
+ 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);
25383
25676
 
25384
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25677
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25385
25678
  var d,
25386
25679
  c = arguments.length,
25387
25680
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25396,7 +25689,7 @@
25396
25689
  return !1;
25397
25690
  }
25398
25691
  };
25399
- DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
25692
+ DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
25400
25693
 
25401
25694
  const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
25402
25695
  m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -25412,14 +25705,14 @@
25412
25705
  }
25413
25706
 
25414
25707
  var BrowserWindowHandlerContribution_1,
25415
- __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25708
+ __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25416
25709
  var d,
25417
25710
  c = arguments.length,
25418
25711
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25419
25712
  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);
25420
25713
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25421
25714
  },
25422
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
25715
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
25423
25716
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25424
25717
  };
25425
25718
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends exports.BaseWindowHandlerContribution {
@@ -25577,19 +25870,19 @@
25577
25870
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
25578
25871
  }
25579
25872
  };
25580
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
25873
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
25581
25874
  const browserWindowModule = new ContainerModule(bind => {
25582
25875
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
25583
25876
  });
25584
25877
 
25585
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25878
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25586
25879
  var d,
25587
25880
  c = arguments.length,
25588
25881
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25589
25882
  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);
25590
25883
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25591
25884
  },
25592
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
25885
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
25593
25886
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25594
25887
  },
25595
25888
  __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -25643,7 +25936,7 @@
25643
25936
  function createImageElement$1(src) {
25644
25937
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
25645
25938
  const img = document.createElement("img");
25646
- if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
25939
+ if (img.crossOrigin = "anonymous", isSvg) {
25647
25940
  const data = new Blob([src], {
25648
25941
  type: "image/svg+xml"
25649
25942
  });
@@ -25836,7 +26129,7 @@
25836
26129
  return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
25837
26130
  }
25838
26131
  };
25839
- exports.BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], exports.BrowserEnvContribution);
26132
+ exports.BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], exports.BrowserEnvContribution);
25840
26133
 
25841
26134
  const browserEnvModule = new ContainerModule(bind => {
25842
26135
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(exports.BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(exports.BrowserEnvContribution));
@@ -25851,7 +26144,7 @@
25851
26144
  loadBrowserEnv(container);
25852
26145
  }
25853
26146
 
25854
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26147
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25855
26148
  var d,
25856
26149
  c = arguments.length,
25857
26150
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25896,16 +26189,16 @@
25896
26189
  return null;
25897
26190
  }
25898
26191
  };
25899
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
26192
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
25900
26193
 
25901
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26194
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25902
26195
  var d,
25903
26196
  c = arguments.length,
25904
26197
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25905
26198
  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);
25906
26199
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25907
26200
  },
25908
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
26201
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
25909
26202
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25910
26203
  };
25911
26204
  let FeishuCanvas = class extends BaseCanvas {
@@ -25917,21 +26210,21 @@
25917
26210
  }
25918
26211
  release() {}
25919
26212
  };
25920
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
26213
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
25921
26214
 
25922
26215
  const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
25923
26216
 
25924
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26217
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25925
26218
  var d,
25926
26219
  c = arguments.length,
25927
26220
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25928
26221
  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);
25929
26222
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25930
26223
  },
25931
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
26224
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
25932
26225
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25933
26226
  },
25934
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
26227
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
25935
26228
  return function (target, key) {
25936
26229
  decorator(target, key, paramIndex);
25937
26230
  };
@@ -26067,22 +26360,22 @@
26067
26360
  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();
26068
26361
  }
26069
26362
  };
26070
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26363
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26071
26364
  const feishuWindowModule = new ContainerModule(bind => {
26072
26365
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
26073
26366
  });
26074
26367
 
26075
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26368
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26076
26369
  var d,
26077
26370
  c = arguments.length,
26078
26371
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26079
26372
  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);
26080
26373
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26081
26374
  },
26082
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
26375
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
26083
26376
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26084
26377
  },
26085
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
26378
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26086
26379
  return function (target, key) {
26087
26380
  decorator(target, key, paramIndex);
26088
26381
  };
@@ -26113,7 +26406,7 @@
26113
26406
  } : null;
26114
26407
  }
26115
26408
  };
26116
- 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);
26409
+ 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);
26117
26410
 
26118
26411
  const m = new ContainerModule(bind => {
26119
26412
  m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -26150,17 +26443,17 @@
26150
26443
  }
26151
26444
  }
26152
26445
 
26153
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26446
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26154
26447
  var d,
26155
26448
  c = arguments.length,
26156
26449
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26157
26450
  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);
26158
26451
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26159
26452
  },
26160
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
26453
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
26161
26454
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26162
26455
  },
26163
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26456
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26164
26457
  return function (target, key) {
26165
26458
  decorator(target, key, paramIndex);
26166
26459
  };
@@ -26170,24 +26463,24 @@
26170
26463
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
26171
26464
  }
26172
26465
  };
26173
- DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
26466
+ DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
26174
26467
 
26175
26468
  let loadArcPick$1 = !1;
26176
26469
  const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26177
26470
  loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
26178
26471
  });
26179
26472
 
26180
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26473
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26181
26474
  var d,
26182
26475
  c = arguments.length,
26183
26476
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26184
26477
  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);
26185
26478
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26186
26479
  },
26187
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
26480
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
26188
26481
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26189
26482
  },
26190
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26483
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26191
26484
  return function (target, key) {
26192
26485
  decorator(target, key, paramIndex);
26193
26486
  };
@@ -26197,24 +26490,24 @@
26197
26490
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
26198
26491
  }
26199
26492
  };
26200
- DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
26493
+ DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
26201
26494
 
26202
26495
  let loadAreaPick$1 = !1;
26203
26496
  const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26204
26497
  loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
26205
26498
  });
26206
26499
 
26207
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26500
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26208
26501
  var d,
26209
26502
  c = arguments.length,
26210
26503
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26211
26504
  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);
26212
26505
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26213
26506
  },
26214
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
26507
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
26215
26508
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26216
26509
  },
26217
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26510
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26218
26511
  return function (target, key) {
26219
26512
  decorator(target, key, paramIndex);
26220
26513
  };
@@ -26224,7 +26517,7 @@
26224
26517
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
26225
26518
  }
26226
26519
  };
26227
- DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
26520
+ DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
26228
26521
 
26229
26522
  let loadCirclePick$1 = !1;
26230
26523
  const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26255,17 +26548,17 @@
26255
26548
  }
26256
26549
  }
26257
26550
 
26258
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26551
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26259
26552
  var d,
26260
26553
  c = arguments.length,
26261
26554
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26262
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);
26263
26556
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26264
26557
  },
26265
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
26558
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
26266
26559
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26267
26560
  },
26268
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26561
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26269
26562
  return function (target, key) {
26270
26563
  decorator(target, key, paramIndex);
26271
26564
  };
@@ -26275,14 +26568,14 @@
26275
26568
  super(), this.canvasRenderer = canvasRenderer;
26276
26569
  }
26277
26570
  };
26278
- DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26571
+ DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26279
26572
 
26280
26573
  let loadGlyphPick$1 = !1;
26281
26574
  const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26282
26575
  loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
26283
26576
  });
26284
26577
 
26285
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26578
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26286
26579
  var d,
26287
26580
  c = arguments.length,
26288
26581
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26300,24 +26593,24 @@
26300
26593
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
26301
26594
  }
26302
26595
  };
26303
- DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
26596
+ DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
26304
26597
 
26305
26598
  let loadImagePick$1 = !1;
26306
26599
  const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26307
26600
  loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26308
26601
  });
26309
26602
 
26310
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26603
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26311
26604
  var d,
26312
26605
  c = arguments.length,
26313
26606
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26314
26607
  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);
26315
26608
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26316
26609
  },
26317
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
26610
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
26318
26611
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26319
26612
  },
26320
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26613
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26321
26614
  return function (target, key) {
26322
26615
  decorator(target, key, paramIndex);
26323
26616
  };
@@ -26327,24 +26620,24 @@
26327
26620
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
26328
26621
  }
26329
26622
  };
26330
- DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
26623
+ DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
26331
26624
 
26332
26625
  let loadLinePick$1 = !1;
26333
26626
  const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26334
26627
  loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
26335
26628
  });
26336
26629
 
26337
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26630
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26338
26631
  var d,
26339
26632
  c = arguments.length,
26340
26633
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26341
26634
  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);
26342
26635
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26343
26636
  },
26344
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
26637
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
26345
26638
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26346
26639
  },
26347
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26640
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26348
26641
  return function (target, key) {
26349
26642
  decorator(target, key, paramIndex);
26350
26643
  };
@@ -26354,24 +26647,24 @@
26354
26647
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
26355
26648
  }
26356
26649
  };
26357
- DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26650
+ DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26358
26651
 
26359
26652
  let loadPolygonPick$1 = !1;
26360
26653
  const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26361
26654
  loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
26362
26655
  });
26363
26656
 
26364
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26657
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26365
26658
  var d,
26366
26659
  c = arguments.length,
26367
26660
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26368
26661
  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);
26369
26662
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26370
26663
  },
26371
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
26664
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
26372
26665
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26373
26666
  },
26374
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26667
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26375
26668
  return function (target, key) {
26376
26669
  decorator(target, key, paramIndex);
26377
26670
  };
@@ -26381,7 +26674,7 @@
26381
26674
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
26382
26675
  }
26383
26676
  };
26384
- DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
26677
+ DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
26385
26678
 
26386
26679
  let loadPathPick$1 = !1;
26387
26680
  const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26436,17 +26729,17 @@
26436
26729
  }
26437
26730
  }
26438
26731
 
26439
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26732
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26440
26733
  var d,
26441
26734
  c = arguments.length,
26442
26735
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26443
26736
  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);
26444
26737
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26445
26738
  },
26446
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
26739
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
26447
26740
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26448
26741
  },
26449
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26742
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26450
26743
  return function (target, key) {
26451
26744
  decorator(target, key, paramIndex);
26452
26745
  };
@@ -26456,7 +26749,7 @@
26456
26749
  super(), this.canvasRenderer = canvasRenderer;
26457
26750
  }
26458
26751
  };
26459
- DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
26752
+ DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
26460
26753
 
26461
26754
  let loadRectPick$1 = !1;
26462
26755
  const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26468,17 +26761,17 @@
26468
26761
  loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26469
26762
  });
26470
26763
 
26471
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26764
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26472
26765
  var d,
26473
26766
  c = arguments.length,
26474
26767
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26475
26768
  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);
26476
26769
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26477
26770
  },
26478
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
26771
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
26479
26772
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26480
26773
  },
26481
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26774
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
26482
26775
  return function (target, key) {
26483
26776
  decorator(target, key, paramIndex);
26484
26777
  };
@@ -26488,14 +26781,14 @@
26488
26781
  super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
26489
26782
  }
26490
26783
  };
26491
- DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26784
+ DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26492
26785
 
26493
26786
  let loadSymbolPick$1 = !1;
26494
26787
  const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26495
26788
  loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
26496
26789
  });
26497
26790
 
26498
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26791
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26499
26792
  var d,
26500
26793
  c = arguments.length,
26501
26794
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26510,7 +26803,7 @@
26510
26803
  return !!text.AABBBounds.containsPoint(point);
26511
26804
  }
26512
26805
  };
26513
- DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
26806
+ DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
26514
26807
 
26515
26808
  let loadTextPick$1 = !1;
26516
26809
  const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26593,14 +26886,14 @@
26593
26886
  }
26594
26887
  }
26595
26888
 
26596
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26889
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26597
26890
  var d,
26598
26891
  c = arguments.length,
26599
26892
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26600
26893
  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);
26601
26894
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26602
26895
  },
26603
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
26896
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
26604
26897
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26605
26898
  };
26606
26899
  function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
@@ -26682,7 +26975,7 @@
26682
26975
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
26683
26976
  }
26684
26977
  };
26685
- FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
26978
+ FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
26686
26979
 
26687
26980
  const feishuEnvModule = new ContainerModule(bind => {
26688
26981
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -26697,7 +26990,7 @@
26697
26990
  loadFeishuEnv(container);
26698
26991
  }
26699
26992
 
26700
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26993
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26701
26994
  var d,
26702
26995
  c = arguments.length,
26703
26996
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26758,16 +27051,16 @@
26758
27051
  }));
26759
27052
  }
26760
27053
  };
26761
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
27054
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
26762
27055
 
26763
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27056
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26764
27057
  var d,
26765
27058
  c = arguments.length,
26766
27059
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26767
27060
  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);
26768
27061
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26769
27062
  },
26770
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
27063
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
26771
27064
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26772
27065
  };
26773
27066
  let LynxCanvas = class extends BaseCanvas {
@@ -26783,19 +27076,19 @@
26783
27076
  }
26784
27077
  release() {}
26785
27078
  };
26786
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
27079
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
26787
27080
 
26788
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27081
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26789
27082
  var d,
26790
27083
  c = arguments.length,
26791
27084
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26792
27085
  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);
26793
27086
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26794
27087
  },
26795
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
27088
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
26796
27089
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26797
27090
  },
26798
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
27091
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
26799
27092
  return function (target, key) {
26800
27093
  decorator(target, key, paramIndex);
26801
27094
  };
@@ -26933,21 +27226,21 @@
26933
27226
  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();
26934
27227
  }
26935
27228
  };
26936
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
27229
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
26937
27230
  const lynxWindowModule = new ContainerModule(bind => {
26938
27231
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
26939
27232
  });
26940
27233
 
26941
27234
  const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
26942
27235
 
26943
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27236
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26944
27237
  var d,
26945
27238
  c = arguments.length,
26946
27239
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26947
27240
  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);
26948
27241
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26949
27242
  },
26950
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
27243
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
26951
27244
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26952
27245
  };
26953
27246
  let ng = !1;
@@ -27057,7 +27350,7 @@
27057
27350
  }
27058
27351
  release() {}
27059
27352
  };
27060
- LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
27353
+ LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
27061
27354
 
27062
27355
  const lynxEnvModule = new ContainerModule(bind => {
27063
27356
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -27072,14 +27365,14 @@
27072
27365
  loadLynxEnv(container);
27073
27366
  }
27074
27367
 
27075
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27368
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27076
27369
  var d,
27077
27370
  c = arguments.length,
27078
27371
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27079
27372
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27080
27373
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27081
27374
  },
27082
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
27375
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
27083
27376
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27084
27377
  };
27085
27378
  let NodeContext2d = class extends BrowserContext2d {
@@ -27091,16 +27384,16 @@
27091
27384
  }
27092
27385
  release() {}
27093
27386
  };
27094
- NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
27387
+ NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
27095
27388
 
27096
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27389
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27097
27390
  var d,
27098
27391
  c = arguments.length,
27099
27392
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27100
27393
  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);
27101
27394
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27102
27395
  },
27103
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
27396
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
27104
27397
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27105
27398
  };
27106
27399
  let NodeCanvas = class extends BaseCanvas {
@@ -27114,21 +27407,21 @@
27114
27407
  this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
27115
27408
  }
27116
27409
  };
27117
- NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
27410
+ NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
27118
27411
 
27119
27412
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
27120
27413
 
27121
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27414
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27122
27415
  var d,
27123
27416
  c = arguments.length,
27124
27417
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27125
27418
  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);
27126
27419
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27127
27420
  },
27128
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
27421
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
27129
27422
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27130
27423
  },
27131
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
27424
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27132
27425
  return function (target, key) {
27133
27426
  decorator(target, key, paramIndex);
27134
27427
  };
@@ -27219,12 +27512,12 @@
27219
27512
  }
27220
27513
  clearViewBox(color) {}
27221
27514
  };
27222
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27515
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27223
27516
  const nodeWindowModule = new ContainerModule(bind => {
27224
27517
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
27225
27518
  });
27226
27519
 
27227
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27520
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27228
27521
  var d,
27229
27522
  c = arguments.length,
27230
27523
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27310,7 +27603,7 @@
27310
27603
  release() {}
27311
27604
  createOffscreenCanvas(params) {}
27312
27605
  };
27313
- NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
27606
+ NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
27314
27607
 
27315
27608
  const nodeEnvModule = new ContainerModule(bind => {
27316
27609
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -27324,7 +27617,7 @@
27324
27617
  loadNodeEnv(container);
27325
27618
  }
27326
27619
 
27327
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27620
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27328
27621
  var d,
27329
27622
  c = arguments.length,
27330
27623
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27413,16 +27706,16 @@
27413
27706
  return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
27414
27707
  }
27415
27708
  };
27416
- TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
27709
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
27417
27710
 
27418
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27711
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27419
27712
  var d,
27420
27713
  c = arguments.length,
27421
27714
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27422
27715
  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);
27423
27716
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27424
27717
  },
27425
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
27718
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
27426
27719
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27427
27720
  };
27428
27721
  let TaroCanvas = class extends BaseCanvas {
@@ -27434,21 +27727,21 @@
27434
27727
  }
27435
27728
  release() {}
27436
27729
  };
27437
- TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
27730
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
27438
27731
 
27439
27732
  const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
27440
27733
 
27441
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27734
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27442
27735
  var d,
27443
27736
  c = arguments.length,
27444
27737
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27445
27738
  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);
27446
27739
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27447
27740
  },
27448
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
27741
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
27449
27742
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27450
27743
  },
27451
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27744
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
27452
27745
  return function (target, key) {
27453
27746
  decorator(target, key, paramIndex);
27454
27747
  };
@@ -27594,19 +27887,19 @@
27594
27887
  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();
27595
27888
  }
27596
27889
  };
27597
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27890
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27598
27891
  const taroWindowModule = new ContainerModule(bind => {
27599
27892
  bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
27600
27893
  });
27601
27894
 
27602
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27895
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27603
27896
  var d,
27604
27897
  c = arguments.length,
27605
27898
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27606
27899
  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);
27607
27900
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27608
27901
  },
27609
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
27902
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
27610
27903
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27611
27904
  };
27612
27905
  function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
@@ -27703,7 +27996,7 @@
27703
27996
  }
27704
27997
  release() {}
27705
27998
  };
27706
- TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
27999
+ TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
27707
28000
 
27708
28001
  const taroEnvModule = new ContainerModule(bind => {
27709
28002
  taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
@@ -27718,7 +28011,7 @@
27718
28011
  loadTaroEnv(container);
27719
28012
  }
27720
28013
 
27721
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28014
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27722
28015
  var d,
27723
28016
  c = arguments.length,
27724
28017
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27731,16 +28024,16 @@
27731
28024
  return null;
27732
28025
  }
27733
28026
  };
27734
- WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
28027
+ WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
27735
28028
 
27736
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28029
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27737
28030
  var d,
27738
28031
  c = arguments.length,
27739
28032
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27740
28033
  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);
27741
28034
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27742
28035
  },
27743
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
28036
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
27744
28037
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27745
28038
  };
27746
28039
  let WxCanvas = class extends BaseCanvas {
@@ -27752,21 +28045,21 @@
27752
28045
  }
27753
28046
  release() {}
27754
28047
  };
27755
- WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
28048
+ WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
27756
28049
 
27757
28050
  const wxCanvasModule = createModule(WxCanvas, WxContext2d);
27758
28051
 
27759
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28052
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27760
28053
  var d,
27761
28054
  c = arguments.length,
27762
28055
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27763
28056
  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);
27764
28057
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27765
28058
  },
27766
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
28059
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
27767
28060
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27768
28061
  },
27769
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
28062
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
27770
28063
  return function (target, key) {
27771
28064
  decorator(target, key, paramIndex);
27772
28065
  };
@@ -27903,19 +28196,19 @@
27903
28196
  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();
27904
28197
  }
27905
28198
  };
27906
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
28199
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
27907
28200
  const wxWindowModule = new ContainerModule(bind => {
27908
28201
  bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
27909
28202
  });
27910
28203
 
27911
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28204
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27912
28205
  var d,
27913
28206
  c = arguments.length,
27914
28207
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27915
28208
  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);
27916
28209
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27917
28210
  },
27918
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
28211
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
27919
28212
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27920
28213
  },
27921
28214
  __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28029,7 +28322,7 @@
28029
28322
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28030
28323
  }
28031
28324
  };
28032
- WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
28325
+ WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
28033
28326
 
28034
28327
  const wxEnvModule = new ContainerModule(bind => {
28035
28328
  wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
@@ -28057,7 +28350,7 @@
28057
28350
  loadAllEnv(container);
28058
28351
  }
28059
28352
 
28060
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28353
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28061
28354
  var d,
28062
28355
  c = arguments.length,
28063
28356
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28065,16 +28358,16 @@
28065
28358
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28066
28359
  };
28067
28360
  let TTContext2d = class extends FeishuContext2d {};
28068
- TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
28361
+ TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
28069
28362
 
28070
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28363
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28071
28364
  var d,
28072
28365
  c = arguments.length,
28073
28366
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28074
28367
  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);
28075
28368
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28076
28369
  },
28077
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
28370
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
28078
28371
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28079
28372
  };
28080
28373
  let TTCanvas = class extends BaseCanvas {
@@ -28086,21 +28379,21 @@
28086
28379
  }
28087
28380
  release() {}
28088
28381
  };
28089
- TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
28382
+ TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
28090
28383
 
28091
28384
  const ttCanvasModule = createModule(TTCanvas, TTContext2d);
28092
28385
 
28093
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28386
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28094
28387
  var d,
28095
28388
  c = arguments.length,
28096
28389
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28097
28390
  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);
28098
28391
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28099
28392
  },
28100
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
28393
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
28101
28394
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28102
28395
  },
28103
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
28396
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28104
28397
  return function (target, key) {
28105
28398
  decorator(target, key, paramIndex);
28106
28399
  };
@@ -28236,19 +28529,19 @@
28236
28529
  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();
28237
28530
  }
28238
28531
  };
28239
- TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
28532
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
28240
28533
  const ttWindowModule = new ContainerModule(bind => {
28241
28534
  bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
28242
28535
  });
28243
28536
 
28244
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28537
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28245
28538
  var d,
28246
28539
  c = arguments.length,
28247
28540
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28248
28541
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28249
28542
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28250
28543
  },
28251
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
28544
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
28252
28545
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28253
28546
  },
28254
28547
  __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28358,7 +28651,7 @@
28358
28651
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28359
28652
  }
28360
28653
  };
28361
- TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
28654
+ TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
28362
28655
 
28363
28656
  const ttEnvModule = new ContainerModule(bind => {
28364
28657
  ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
@@ -28373,7 +28666,7 @@
28373
28666
  loadTTEnv(container);
28374
28667
  }
28375
28668
 
28376
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28669
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28377
28670
  var d,
28378
28671
  c = arguments.length,
28379
28672
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28458,16 +28751,16 @@
28458
28751
  }
28459
28752
  draw() {}
28460
28753
  };
28461
- HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
28754
+ HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
28462
28755
 
28463
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28756
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28464
28757
  var d,
28465
28758
  c = arguments.length,
28466
28759
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28467
28760
  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);
28468
28761
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28469
28762
  },
28470
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
28763
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
28471
28764
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28472
28765
  };
28473
28766
  let HarmonyCanvas = class extends BaseCanvas {
@@ -28480,19 +28773,19 @@
28480
28773
  resize(width, height) {}
28481
28774
  release() {}
28482
28775
  };
28483
- HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
28776
+ HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
28484
28777
 
28485
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28778
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28486
28779
  var d,
28487
28780
  c = arguments.length,
28488
28781
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28489
28782
  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);
28490
28783
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28491
28784
  },
28492
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
28785
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
28493
28786
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28494
28787
  },
28495
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28788
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
28496
28789
  return function (target, key) {
28497
28790
  decorator(target, key, paramIndex);
28498
28791
  };
@@ -28629,21 +28922,21 @@
28629
28922
  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();
28630
28923
  }
28631
28924
  };
28632
- HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28925
+ HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28633
28926
  const harmonyWindowModule = new ContainerModule(bind => {
28634
28927
  bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
28635
28928
  });
28636
28929
 
28637
28930
  const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
28638
28931
 
28639
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28932
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28640
28933
  var d,
28641
28934
  c = arguments.length,
28642
28935
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28643
28936
  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);
28644
28937
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28645
28938
  },
28646
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
28939
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
28647
28940
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28648
28941
  };
28649
28942
  function createCanvas(width, height, id) {
@@ -28724,7 +29017,7 @@
28724
29017
  }
28725
29018
  release() {}
28726
29019
  };
28727
- HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
29020
+ HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
28728
29021
 
28729
29022
  const harmonyEnvModule = new ContainerModule(bind => {
28730
29023
  harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
@@ -28739,17 +29032,17 @@
28739
29032
  loadHarmonyEnv(container);
28740
29033
  }
28741
29034
 
28742
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29035
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28743
29036
  var d,
28744
29037
  c = arguments.length,
28745
29038
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28746
29039
  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);
28747
29040
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28748
29041
  },
28749
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
29042
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
28750
29043
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28751
29044
  },
28752
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
29045
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
28753
29046
  return function (target, key) {
28754
29047
  decorator(target, key, paramIndex);
28755
29048
  };
@@ -28759,24 +29052,24 @@
28759
29052
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
28760
29053
  }
28761
29054
  };
28762
- DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
29055
+ DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
28763
29056
 
28764
29057
  let loadArcPick = !1;
28765
29058
  const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28766
29059
  loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
28767
29060
  });
28768
29061
 
28769
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29062
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28770
29063
  var d,
28771
29064
  c = arguments.length,
28772
29065
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28773
29066
  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);
28774
29067
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28775
29068
  },
28776
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
29069
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
28777
29070
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28778
29071
  },
28779
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
29072
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
28780
29073
  return function (target, key) {
28781
29074
  decorator(target, key, paramIndex);
28782
29075
  };
@@ -28786,7 +29079,7 @@
28786
29079
  super(), this.canvasRenderer = canvasRenderer;
28787
29080
  }
28788
29081
  };
28789
- DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
29082
+ DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
28790
29083
 
28791
29084
  let loadRectPick = !1;
28792
29085
  const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28828,17 +29121,17 @@
28828
29121
  }
28829
29122
  }
28830
29123
 
28831
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29124
+ var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28832
29125
  var d,
28833
29126
  c = arguments.length,
28834
29127
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28835
29128
  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);
28836
29129
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28837
29130
  },
28838
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
29131
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
28839
29132
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28840
29133
  },
28841
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
29134
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
28842
29135
  return function (target, key) {
28843
29136
  decorator(target, key, paramIndex);
28844
29137
  };
@@ -28848,24 +29141,24 @@
28848
29141
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
28849
29142
  }
28850
29143
  };
28851
- DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
29144
+ DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
28852
29145
 
28853
29146
  let loadLinePick = !1;
28854
29147
  const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28855
29148
  loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
28856
29149
  });
28857
29150
 
28858
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29151
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28859
29152
  var d,
28860
29153
  c = arguments.length,
28861
29154
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28862
29155
  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);
28863
29156
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28864
29157
  },
28865
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
29158
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
28866
29159
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28867
29160
  },
28868
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
29161
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
28869
29162
  return function (target, key) {
28870
29163
  decorator(target, key, paramIndex);
28871
29164
  };
@@ -28875,7 +29168,7 @@
28875
29168
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
28876
29169
  }
28877
29170
  };
28878
- DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
29171
+ DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
28879
29172
 
28880
29173
  let loadAreaPick = !1;
28881
29174
  const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28909,17 +29202,17 @@
28909
29202
  }
28910
29203
  }
28911
29204
 
28912
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29205
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28913
29206
  var d,
28914
29207
  c = arguments.length,
28915
29208
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28916
29209
  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);
28917
29210
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28918
29211
  },
28919
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
29212
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
28920
29213
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28921
29214
  },
28922
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
29215
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
28923
29216
  return function (target, key) {
28924
29217
  decorator(target, key, paramIndex);
28925
29218
  };
@@ -28964,24 +29257,24 @@
28964
29257
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
28965
29258
  }
28966
29259
  };
28967
- DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
29260
+ DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
28968
29261
 
28969
29262
  let loadSymbolPick = !1;
28970
29263
  const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28971
29264
  loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
28972
29265
  });
28973
29266
 
28974
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29267
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28975
29268
  var d,
28976
29269
  c = arguments.length,
28977
29270
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28978
29271
  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);
28979
29272
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28980
29273
  },
28981
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
29274
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
28982
29275
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28983
29276
  },
28984
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
29277
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
28985
29278
  return function (target, key) {
28986
29279
  decorator(target, key, paramIndex);
28987
29280
  };
@@ -28991,24 +29284,24 @@
28991
29284
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
28992
29285
  }
28993
29286
  };
28994
- DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
29287
+ DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
28995
29288
 
28996
29289
  let loadCirclePick = !1;
28997
29290
  const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28998
29291
  loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
28999
29292
  });
29000
29293
 
29001
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29294
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29002
29295
  var d,
29003
29296
  c = arguments.length,
29004
29297
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29005
29298
  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);
29006
29299
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29007
29300
  },
29008
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
29301
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29009
29302
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29010
29303
  },
29011
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
29304
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29012
29305
  return function (target, key) {
29013
29306
  decorator(target, key, paramIndex);
29014
29307
  };
@@ -29061,24 +29354,24 @@
29061
29354
  }, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
29062
29355
  }
29063
29356
  };
29064
- DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29357
+ DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29065
29358
 
29066
29359
  let loadTextPick = !1;
29067
29360
  const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29068
29361
  loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
29069
29362
  });
29070
29363
 
29071
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29364
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29072
29365
  var d,
29073
29366
  c = arguments.length,
29074
29367
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29075
29368
  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);
29076
29369
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29077
29370
  },
29078
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29371
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29079
29372
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29080
29373
  },
29081
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29374
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29082
29375
  return function (target, key) {
29083
29376
  decorator(target, key, paramIndex);
29084
29377
  };
@@ -29088,24 +29381,24 @@
29088
29381
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
29089
29382
  }
29090
29383
  };
29091
- DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29384
+ DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29092
29385
 
29093
29386
  let loadPathPick = !1;
29094
29387
  const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29095
29388
  loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
29096
29389
  });
29097
29390
 
29098
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29391
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29099
29392
  var d,
29100
29393
  c = arguments.length,
29101
29394
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29102
29395
  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);
29103
29396
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29104
29397
  },
29105
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29398
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29106
29399
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29107
29400
  },
29108
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29401
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29109
29402
  return function (target, key) {
29110
29403
  decorator(target, key, paramIndex);
29111
29404
  };
@@ -29115,24 +29408,24 @@
29115
29408
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
29116
29409
  }
29117
29410
  };
29118
- DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29411
+ DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29119
29412
 
29120
29413
  let loadPolygonPick = !1;
29121
29414
  const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29122
29415
  loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
29123
29416
  });
29124
29417
 
29125
- var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29418
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29126
29419
  var d,
29127
29420
  c = arguments.length,
29128
29421
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29129
29422
  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);
29130
29423
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29131
29424
  },
29132
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29425
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29133
29426
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29134
29427
  },
29135
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29428
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29136
29429
  return function (target, key) {
29137
29430
  decorator(target, key, paramIndex);
29138
29431
  };
@@ -29142,24 +29435,24 @@
29142
29435
  super(), this.canvasRenderer = canvasRenderer;
29143
29436
  }
29144
29437
  };
29145
- DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29438
+ DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29146
29439
 
29147
29440
  let loadGlyphPick = !1;
29148
29441
  const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29149
29442
  loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
29150
29443
  });
29151
29444
 
29152
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29445
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29153
29446
  var d,
29154
29447
  c = arguments.length,
29155
29448
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29156
29449
  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);
29157
29450
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29158
29451
  },
29159
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29452
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29160
29453
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29161
29454
  },
29162
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29455
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29163
29456
  return function (target, key) {
29164
29457
  decorator(target, key, paramIndex);
29165
29458
  };
@@ -29172,14 +29465,14 @@
29172
29465
  return !!richtext.AABBBounds.containsPoint(point);
29173
29466
  }
29174
29467
  };
29175
- DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29468
+ DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29176
29469
 
29177
29470
  let loadRichtextPick = !1;
29178
29471
  const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29179
29472
  loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
29180
29473
  });
29181
29474
 
29182
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29475
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29183
29476
  var d,
29184
29477
  c = arguments.length,
29185
29478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29197,24 +29490,24 @@
29197
29490
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
29198
29491
  }
29199
29492
  };
29200
- DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
29493
+ DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
29201
29494
 
29202
29495
  let loadImagePick = !1;
29203
29496
  const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29204
29497
  loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
29205
29498
  });
29206
29499
 
29207
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29500
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29208
29501
  var d,
29209
29502
  c = arguments.length,
29210
29503
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29211
29504
  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);
29212
29505
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29213
29506
  },
29214
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29507
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29215
29508
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29216
29509
  },
29217
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29510
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29218
29511
  return function (target, key) {
29219
29512
  decorator(target, key, paramIndex);
29220
29513
  };
@@ -29224,24 +29517,24 @@
29224
29517
  super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
29225
29518
  }
29226
29519
  };
29227
- DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29520
+ DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29228
29521
 
29229
29522
  let loadRect3dPick = !1;
29230
29523
  const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29231
29524
  loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
29232
29525
  });
29233
29526
 
29234
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29527
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29235
29528
  var d,
29236
29529
  c = arguments.length,
29237
29530
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29238
29531
  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);
29239
29532
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29240
29533
  },
29241
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29534
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29242
29535
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29243
29536
  },
29244
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29537
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29245
29538
  return function (target, key) {
29246
29539
  decorator(target, key, paramIndex);
29247
29540
  };
@@ -29251,24 +29544,24 @@
29251
29544
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
29252
29545
  }
29253
29546
  };
29254
- DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29547
+ DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29255
29548
 
29256
29549
  let loadArc3dPick = !1;
29257
29550
  const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29258
29551
  loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
29259
29552
  });
29260
29553
 
29261
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29554
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29262
29555
  var d,
29263
29556
  c = arguments.length,
29264
29557
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29265
29558
  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);
29266
29559
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29267
29560
  },
29268
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29561
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29269
29562
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29270
29563
  },
29271
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29564
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29272
29565
  return function (target, key) {
29273
29566
  decorator(target, key, paramIndex);
29274
29567
  };
@@ -29278,724 +29571,15 @@
29278
29571
  super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
29279
29572
  }
29280
29573
  };
29281
- DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29574
+ DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29282
29575
 
29283
29576
  let loadPyramid3dPick = !1;
29284
29577
  const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29285
29578
  loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
29286
29579
  });
29287
29580
 
29288
- var lib$1 = {};
29289
-
29290
- var gif = {};
29291
-
29292
- var lib = {};
29293
-
29294
- Object.defineProperty(lib, "__esModule", {
29295
- value: true
29296
- });
29297
- lib.loop = lib.conditional = lib.parse = void 0;
29298
- var parse = function parse(stream, schema) {
29299
- var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
29300
- var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
29301
- if (Array.isArray(schema)) {
29302
- schema.forEach(function (partSchema) {
29303
- return parse(stream, partSchema, result, parent);
29304
- });
29305
- } else if (typeof schema === 'function') {
29306
- schema(stream, result, parent, parse);
29307
- } else {
29308
- var key = Object.keys(schema)[0];
29309
- if (Array.isArray(schema[key])) {
29310
- parent[key] = {};
29311
- parse(stream, schema[key], result, parent[key]);
29312
- } else {
29313
- parent[key] = schema[key](stream, result, parent, parse);
29314
- }
29315
- }
29316
- return result;
29317
- };
29318
- lib.parse = parse;
29319
- var conditional = function conditional(schema, conditionFunc) {
29320
- return function (stream, result, parent, parse) {
29321
- if (conditionFunc(stream, result, parent)) {
29322
- parse(stream, schema, result, parent);
29323
- }
29324
- };
29325
- };
29326
- lib.conditional = conditional;
29327
- var loop = function loop(schema, continueFunc) {
29328
- return function (stream, result, parent, parse) {
29329
- var arr = [];
29330
- var lastStreamPos = stream.pos;
29331
- while (continueFunc(stream, result, parent)) {
29332
- var newParent = {};
29333
- 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
29334
- // it falls into infinite recursion, null check to avoid the same
29335
-
29336
- if (stream.pos === lastStreamPos) {
29337
- break;
29338
- }
29339
- lastStreamPos = stream.pos;
29340
- arr.push(newParent);
29341
- }
29342
- return arr;
29343
- };
29344
- };
29345
- lib.loop = loop;
29346
-
29347
- var uint8 = {};
29348
-
29349
- Object.defineProperty(uint8, "__esModule", {
29350
- value: true
29351
- });
29352
- uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
29353
-
29354
- // Default stream and parsers for Uint8TypedArray data type
29355
- var buildStream = function buildStream(uint8Data) {
29356
- return {
29357
- data: uint8Data,
29358
- pos: 0
29359
- };
29360
- };
29361
- uint8.buildStream = buildStream;
29362
- var readByte = function readByte() {
29363
- return function (stream) {
29364
- return stream.data[stream.pos++];
29365
- };
29366
- };
29367
- uint8.readByte = readByte;
29368
- var peekByte = function peekByte() {
29369
- var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
29370
- return function (stream) {
29371
- return stream.data[stream.pos + offset];
29372
- };
29373
- };
29374
- uint8.peekByte = peekByte;
29375
- var readBytes = function readBytes(length) {
29376
- return function (stream) {
29377
- return stream.data.subarray(stream.pos, stream.pos += length);
29378
- };
29379
- };
29380
- uint8.readBytes = readBytes;
29381
- var peekBytes = function peekBytes(length) {
29382
- return function (stream) {
29383
- return stream.data.subarray(stream.pos, stream.pos + length);
29384
- };
29385
- };
29386
- uint8.peekBytes = peekBytes;
29387
- var readString = function readString(length) {
29388
- return function (stream) {
29389
- return Array.from(readBytes(length)(stream)).map(function (value) {
29390
- return String.fromCharCode(value);
29391
- }).join('');
29392
- };
29393
- };
29394
- uint8.readString = readString;
29395
- var readUnsigned = function readUnsigned(littleEndian) {
29396
- return function (stream) {
29397
- var bytes = readBytes(2)(stream);
29398
- return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
29399
- };
29400
- };
29401
- uint8.readUnsigned = readUnsigned;
29402
- var readArray = function readArray(byteSize, totalOrFunc) {
29403
- return function (stream, result, parent) {
29404
- var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
29405
- var parser = readBytes(byteSize);
29406
- var arr = new Array(total);
29407
- for (var i = 0; i < total; i++) {
29408
- arr[i] = parser(stream);
29409
- }
29410
- return arr;
29411
- };
29412
- };
29413
- uint8.readArray = readArray;
29414
- var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
29415
- var result = 0;
29416
- for (var i = 0; i < length; i++) {
29417
- result += bits[startIndex + i] && Math.pow(2, length - i - 1);
29418
- }
29419
- return result;
29420
- };
29421
- var readBits = function readBits(schema) {
29422
- return function (stream) {
29423
- var _byte = readByte()(stream); // convert the byte to bit array
29424
-
29425
- var bits = new Array(8);
29426
- for (var i = 0; i < 8; i++) {
29427
- bits[7 - i] = !!(_byte & 1 << i);
29428
- } // convert the bit array to values based on the schema
29429
-
29430
- return Object.keys(schema).reduce(function (res, key) {
29431
- var def = schema[key];
29432
- if (def.length) {
29433
- res[key] = subBitsTotal(bits, def.index, def.length);
29434
- } else {
29435
- res[key] = bits[def.index];
29436
- }
29437
- return res;
29438
- }, {});
29439
- };
29440
- };
29441
- uint8.readBits = readBits;
29442
-
29443
- (function (exports) {
29444
-
29445
- Object.defineProperty(exports, "__esModule", {
29446
- value: true
29447
- });
29448
- exports["default"] = void 0;
29449
- var _ = lib;
29450
- var _uint = uint8;
29451
-
29452
- // a set of 0x00 terminated subblocks
29453
- var subBlocksSchema = {
29454
- blocks: function blocks(stream) {
29455
- var terminator = 0x00;
29456
- var chunks = [];
29457
- var streamSize = stream.data.length;
29458
- var total = 0;
29459
- for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
29460
- // size becomes undefined for some case when file is corrupted and terminator is not proper
29461
- // null check to avoid recursion
29462
- if (!size) break; // catch corrupted files with no terminator
29463
-
29464
- if (stream.pos + size >= streamSize) {
29465
- var availableSize = streamSize - stream.pos;
29466
- chunks.push((0, _uint.readBytes)(availableSize)(stream));
29467
- total += availableSize;
29468
- break;
29469
- }
29470
- chunks.push((0, _uint.readBytes)(size)(stream));
29471
- total += size;
29472
- }
29473
- var result = new Uint8Array(total);
29474
- var offset = 0;
29475
- for (var i = 0; i < chunks.length; i++) {
29476
- result.set(chunks[i], offset);
29477
- offset += chunks[i].length;
29478
- }
29479
- return result;
29480
- }
29481
- }; // global control extension
29482
-
29483
- var gceSchema = (0, _.conditional)({
29484
- gce: [{
29485
- codes: (0, _uint.readBytes)(2)
29486
- }, {
29487
- byteSize: (0, _uint.readByte)()
29488
- }, {
29489
- extras: (0, _uint.readBits)({
29490
- future: {
29491
- index: 0,
29492
- length: 3
29493
- },
29494
- disposal: {
29495
- index: 3,
29496
- length: 3
29497
- },
29498
- userInput: {
29499
- index: 6
29500
- },
29501
- transparentColorGiven: {
29502
- index: 7
29503
- }
29504
- })
29505
- }, {
29506
- delay: (0, _uint.readUnsigned)(true)
29507
- }, {
29508
- transparentColorIndex: (0, _uint.readByte)()
29509
- }, {
29510
- terminator: (0, _uint.readByte)()
29511
- }]
29512
- }, function (stream) {
29513
- var codes = (0, _uint.peekBytes)(2)(stream);
29514
- return codes[0] === 0x21 && codes[1] === 0xf9;
29515
- }); // image pipeline block
29516
-
29517
- var imageSchema = (0, _.conditional)({
29518
- image: [{
29519
- code: (0, _uint.readByte)()
29520
- }, {
29521
- descriptor: [{
29522
- left: (0, _uint.readUnsigned)(true)
29523
- }, {
29524
- top: (0, _uint.readUnsigned)(true)
29525
- }, {
29526
- width: (0, _uint.readUnsigned)(true)
29527
- }, {
29528
- height: (0, _uint.readUnsigned)(true)
29529
- }, {
29530
- lct: (0, _uint.readBits)({
29531
- exists: {
29532
- index: 0
29533
- },
29534
- interlaced: {
29535
- index: 1
29536
- },
29537
- sort: {
29538
- index: 2
29539
- },
29540
- future: {
29541
- index: 3,
29542
- length: 2
29543
- },
29544
- size: {
29545
- index: 5,
29546
- length: 3
29547
- }
29548
- })
29549
- }]
29550
- }, (0, _.conditional)({
29551
- lct: (0, _uint.readArray)(3, function (stream, result, parent) {
29552
- return Math.pow(2, parent.descriptor.lct.size + 1);
29553
- })
29554
- }, function (stream, result, parent) {
29555
- return parent.descriptor.lct.exists;
29556
- }), {
29557
- data: [{
29558
- minCodeSize: (0, _uint.readByte)()
29559
- }, subBlocksSchema]
29560
- }]
29561
- }, function (stream) {
29562
- return (0, _uint.peekByte)()(stream) === 0x2c;
29563
- }); // plain text block
29564
-
29565
- var textSchema = (0, _.conditional)({
29566
- text: [{
29567
- codes: (0, _uint.readBytes)(2)
29568
- }, {
29569
- blockSize: (0, _uint.readByte)()
29570
- }, {
29571
- preData: function preData(stream, result, parent) {
29572
- return (0, _uint.readBytes)(parent.text.blockSize)(stream);
29573
- }
29574
- }, subBlocksSchema]
29575
- }, function (stream) {
29576
- var codes = (0, _uint.peekBytes)(2)(stream);
29577
- return codes[0] === 0x21 && codes[1] === 0x01;
29578
- }); // application block
29579
-
29580
- var applicationSchema = (0, _.conditional)({
29581
- application: [{
29582
- codes: (0, _uint.readBytes)(2)
29583
- }, {
29584
- blockSize: (0, _uint.readByte)()
29585
- }, {
29586
- id: function id(stream, result, parent) {
29587
- return (0, _uint.readString)(parent.blockSize)(stream);
29588
- }
29589
- }, subBlocksSchema]
29590
- }, function (stream) {
29591
- var codes = (0, _uint.peekBytes)(2)(stream);
29592
- return codes[0] === 0x21 && codes[1] === 0xff;
29593
- }); // comment block
29594
-
29595
- var commentSchema = (0, _.conditional)({
29596
- comment: [{
29597
- codes: (0, _uint.readBytes)(2)
29598
- }, subBlocksSchema]
29599
- }, function (stream) {
29600
- var codes = (0, _uint.peekBytes)(2)(stream);
29601
- return codes[0] === 0x21 && codes[1] === 0xfe;
29602
- });
29603
- var schema = [{
29604
- header: [{
29605
- signature: (0, _uint.readString)(3)
29606
- }, {
29607
- version: (0, _uint.readString)(3)
29608
- }]
29609
- }, {
29610
- lsd: [{
29611
- width: (0, _uint.readUnsigned)(true)
29612
- }, {
29613
- height: (0, _uint.readUnsigned)(true)
29614
- }, {
29615
- gct: (0, _uint.readBits)({
29616
- exists: {
29617
- index: 0
29618
- },
29619
- resolution: {
29620
- index: 1,
29621
- length: 3
29622
- },
29623
- sort: {
29624
- index: 4
29625
- },
29626
- size: {
29627
- index: 5,
29628
- length: 3
29629
- }
29630
- })
29631
- }, {
29632
- backgroundColorIndex: (0, _uint.readByte)()
29633
- }, {
29634
- pixelAspectRatio: (0, _uint.readByte)()
29635
- }]
29636
- }, (0, _.conditional)({
29637
- gct: (0, _uint.readArray)(3, function (stream, result) {
29638
- return Math.pow(2, result.lsd.gct.size + 1);
29639
- })
29640
- }, function (stream, result) {
29641
- return result.lsd.gct.exists;
29642
- }),
29643
- // content frames
29644
- {
29645
- frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
29646
- var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
29647
- // of an ext or image block to avoid infinite loops
29648
- //var terminator = 0x3B;
29649
- //return nextCode !== terminator;
29650
-
29651
- return nextCode === 0x21 || nextCode === 0x2c;
29652
- })
29653
- }];
29654
- var _default = schema;
29655
- exports["default"] = _default;
29656
- })(gif);
29657
-
29658
- var deinterlace$1 = {};
29659
-
29660
- Object.defineProperty(deinterlace$1, "__esModule", {
29661
- value: true
29662
- });
29663
- deinterlace$1.deinterlace = void 0;
29664
-
29665
- /**
29666
- * Deinterlace function from https://github.com/shachaf/jsgif
29667
- */
29668
- var deinterlace = function deinterlace(pixels, width) {
29669
- var newPixels = new Array(pixels.length);
29670
- var rows = pixels.length / width;
29671
- var cpRow = function cpRow(toRow, fromRow) {
29672
- var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
29673
- newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
29674
- }; // See appendix E.
29675
-
29676
- var offsets = [0, 4, 2, 1];
29677
- var steps = [8, 8, 4, 2];
29678
- var fromRow = 0;
29679
- for (var pass = 0; pass < 4; pass++) {
29680
- for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
29681
- cpRow(toRow, fromRow);
29682
- fromRow++;
29683
- }
29684
- }
29685
- return newPixels;
29686
- };
29687
- deinterlace$1.deinterlace = deinterlace;
29688
-
29689
- var lzw$1 = {};
29690
-
29691
- Object.defineProperty(lzw$1, "__esModule", {
29692
- value: true
29693
- });
29694
- lzw$1.lzw = void 0;
29695
-
29696
- /**
29697
- * javascript port of java LZW decompression
29698
- * Original java author url: https://gist.github.com/devunwired/4479231
29699
- */
29700
- var lzw = function lzw(minCodeSize, data, pixelCount) {
29701
- var MAX_STACK_SIZE = 4096;
29702
- var nullCode = -1;
29703
- var npix = pixelCount;
29704
- var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
29705
- var dstPixels = new Array(pixelCount);
29706
- var prefix = new Array(MAX_STACK_SIZE);
29707
- var suffix = new Array(MAX_STACK_SIZE);
29708
- var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
29709
-
29710
- data_size = minCodeSize;
29711
- clear = 1 << data_size;
29712
- end_of_information = clear + 1;
29713
- available = clear + 2;
29714
- old_code = nullCode;
29715
- code_size = data_size + 1;
29716
- code_mask = (1 << code_size) - 1;
29717
- for (code = 0; code < clear; code++) {
29718
- prefix[code] = 0;
29719
- suffix[code] = code;
29720
- } // Decode GIF pixel stream.
29721
-
29722
- var datum, bits, first, top, pi, bi;
29723
- datum = bits = first = top = pi = bi = 0;
29724
- for (i = 0; i < npix;) {
29725
- if (top === 0) {
29726
- if (bits < code_size) {
29727
- // get the next byte
29728
- datum += data[bi] << bits;
29729
- bits += 8;
29730
- bi++;
29731
- continue;
29732
- } // Get the next code.
29733
-
29734
- code = datum & code_mask;
29735
- datum >>= code_size;
29736
- bits -= code_size; // Interpret the code
29737
-
29738
- if (code > available || code == end_of_information) {
29739
- break;
29740
- }
29741
- if (code == clear) {
29742
- // Reset decoder.
29743
- code_size = data_size + 1;
29744
- code_mask = (1 << code_size) - 1;
29745
- available = clear + 2;
29746
- old_code = nullCode;
29747
- continue;
29748
- }
29749
- if (old_code == nullCode) {
29750
- pixelStack[top++] = suffix[code];
29751
- old_code = code;
29752
- first = code;
29753
- continue;
29754
- }
29755
- in_code = code;
29756
- if (code == available) {
29757
- pixelStack[top++] = first;
29758
- code = old_code;
29759
- }
29760
- while (code > clear) {
29761
- pixelStack[top++] = suffix[code];
29762
- code = prefix[code];
29763
- }
29764
- first = suffix[code] & 0xff;
29765
- pixelStack[top++] = first; // add a new string to the table, but only if space is available
29766
- // if not, just continue with current table until a clear code is found
29767
- // (deferred clear code implementation as per GIF spec)
29768
-
29769
- if (available < MAX_STACK_SIZE) {
29770
- prefix[available] = old_code;
29771
- suffix[available] = first;
29772
- available++;
29773
- if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
29774
- code_size++;
29775
- code_mask += available;
29776
- }
29777
- }
29778
- old_code = in_code;
29779
- } // Pop a pixel off the pixel stack.
29780
-
29781
- top--;
29782
- dstPixels[pi++] = pixelStack[top];
29783
- i++;
29784
- }
29785
- for (i = pi; i < npix; i++) {
29786
- dstPixels[i] = 0; // clear missing pixels
29787
- }
29788
-
29789
- return dstPixels;
29790
- };
29791
- lzw$1.lzw = lzw;
29792
-
29793
- Object.defineProperty(lib$1, "__esModule", {
29794
- value: true
29795
- });
29796
- var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
29797
- var _gif = _interopRequireDefault(gif);
29798
- var _jsBinarySchemaParser = lib;
29799
- var _uint = uint8;
29800
- var _deinterlace = deinterlace$1;
29801
- var _lzw = lzw$1;
29802
- function _interopRequireDefault(obj) {
29803
- return obj && obj.__esModule ? obj : {
29804
- "default": obj
29805
- };
29806
- }
29807
- var parseGIF = function parseGIF(arrayBuffer) {
29808
- var byteData = new Uint8Array(arrayBuffer);
29809
- return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
29810
- };
29811
- var parseGIF_1 = lib$1.parseGIF = parseGIF;
29812
- var generatePatch = function generatePatch(image) {
29813
- var totalPixels = image.pixels.length;
29814
- var patchData = new Uint8ClampedArray(totalPixels * 4);
29815
- for (var i = 0; i < totalPixels; i++) {
29816
- var pos = i * 4;
29817
- var colorIndex = image.pixels[i];
29818
- var color = image.colorTable[colorIndex] || [0, 0, 0];
29819
- patchData[pos] = color[0];
29820
- patchData[pos + 1] = color[1];
29821
- patchData[pos + 2] = color[2];
29822
- patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
29823
- }
29824
- return patchData;
29825
- };
29826
- var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
29827
- if (!frame.image) {
29828
- console.warn('gif frame does not have associated image.');
29829
- return;
29830
- }
29831
- var image = frame.image; // get the number of pixels
29832
-
29833
- var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
29834
-
29835
- var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
29836
-
29837
- if (image.descriptor.lct.interlaced) {
29838
- pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
29839
- }
29840
- var resultImage = {
29841
- pixels: pixels,
29842
- dims: {
29843
- top: frame.image.descriptor.top,
29844
- left: frame.image.descriptor.left,
29845
- width: frame.image.descriptor.width,
29846
- height: frame.image.descriptor.height
29847
- }
29848
- }; // color table
29849
-
29850
- if (image.descriptor.lct && image.descriptor.lct.exists) {
29851
- resultImage.colorTable = image.lct;
29852
- } else {
29853
- resultImage.colorTable = gct;
29854
- } // add per frame relevant gce information
29855
-
29856
- if (frame.gce) {
29857
- resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
29858
-
29859
- resultImage.disposalType = frame.gce.extras.disposal; // transparency
29860
-
29861
- if (frame.gce.extras.transparentColorGiven) {
29862
- resultImage.transparentIndex = frame.gce.transparentColorIndex;
29863
- }
29864
- } // create canvas usable imagedata if desired
29865
-
29866
- if (buildImagePatch) {
29867
- resultImage.patch = generatePatch(resultImage);
29868
- }
29869
- return resultImage;
29870
- };
29871
- lib$1.decompressFrame = decompressFrame;
29872
- var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
29873
- return parsedGif.frames.filter(function (f) {
29874
- return f.image;
29875
- }).map(function (f) {
29876
- return decompressFrame(f, parsedGif.gct, buildImagePatches);
29877
- });
29878
- };
29879
- decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
29880
-
29881
- const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29882
29581
  const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29883
29582
 
29884
- class GifImage extends Image$1 {
29885
- constructor(params) {
29886
- super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
29887
- }
29888
- loadGif() {
29889
- if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
29890
- const gif = parseGIF_1(res),
29891
- frames = decompressFrames_1(gif, !0);
29892
- this.renderGIF(frames);
29893
- }).catch(e => {
29894
- console.error("Gif load error: ", e);
29895
- });else if (this.attribute.gifImage instanceof ArrayBuffer) {
29896
- const gif = parseGIF_1(this.attribute.gifImage),
29897
- frames = decompressFrames_1(gif, !0);
29898
- this.renderGIF(frames);
29899
- }
29900
- }
29901
- renderGIF(frames) {
29902
- 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();
29903
- const animation = this.animate();
29904
- this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
29905
- }
29906
- renderFrame(context, x, y) {
29907
- const frame = this.loadedFrames[this.frameIndex || 0];
29908
- 2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
29909
- const diff = new Date().getTime() - this.lastTime;
29910
- frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
29911
- }
29912
- drawPatch(frame) {
29913
- const dims = frame.dims;
29914
- 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);
29915
- }
29916
- manipulate(context, x, y) {
29917
- context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
29918
- }
29919
- setAttribute(key, value, forceUpdateTag, context) {
29920
- super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
29921
- }
29922
- setAttributes(params, forceUpdateTag, context) {
29923
- super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
29924
- }
29925
- }
29926
- function createGifImage(attributes) {
29927
- return new GifImage(attributes);
29928
- }
29929
-
29930
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29931
- var d,
29932
- c = arguments.length,
29933
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29934
- 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);
29935
- return c > 3 && r && Object.defineProperty(target, key, r), r;
29936
- };
29937
- let DefaultCanvasGifImagePicker = class {
29938
- constructor() {
29939
- this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
29940
- }
29941
- contains(gifImage, point, params) {
29942
- const {
29943
- pickContext: pickContext
29944
- } = null != params ? params : {};
29945
- return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
29946
- }
29947
- };
29948
- DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
29949
-
29950
- let loadGifImagePick = !1;
29951
- const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29952
- loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
29953
- });
29954
-
29955
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29956
- var d,
29957
- c = arguments.length,
29958
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29959
- 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);
29960
- return c > 3 && r && Object.defineProperty(target, key, r), r;
29961
- },
29962
- __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29963
- if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29964
- },
29965
- __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29966
- return function (target, key) {
29967
- decorator(target, key, paramIndex);
29968
- };
29969
- };
29970
- let DefaultCanvasGifImageRender = class extends exports.DefaultCanvasImageRender {
29971
- constructor(imageRenderContribitions) {
29972
- super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
29973
- }
29974
- draw(image, renderService, drawContext) {
29975
- const {
29976
- context: context
29977
- } = renderService.drawParams;
29978
- if (!context) return;
29979
- const imageAttribute = getTheme(image).image;
29980
- this._draw(image, imageAttribute, !1, drawContext);
29981
- }
29982
- };
29983
- DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
29984
- class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
29985
- constructor() {
29986
- super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
29987
- }
29988
- drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
29989
- image.renderFrame && image.playing && image.renderFrame(context, x, y);
29990
- }
29991
- }
29992
- const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
29993
-
29994
- let loadGifImageModule = !1;
29995
- const gifImageModule = new ContainerModule(bind => {
29996
- loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
29997
- });
29998
-
29999
29583
  var lottie = {exports: {}};
30000
29584
 
30001
29585
  (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:{}}
@@ -30897,7 +30481,7 @@
30897
30481
 
30898
30482
  const roughModule = _roughModule;
30899
30483
 
30900
- const version = "0.22.0-vstory.1";
30484
+ const version = "0.22.0-vstory.10";
30901
30485
  preLoadAllModule();
30902
30486
  if (isBrowserEnv()) {
30903
30487
  loadBrowserEnv(container);
@@ -30961,7 +30545,6 @@
30961
30545
  exports.CanvasAreaPicker = CanvasAreaPicker;
30962
30546
  exports.CanvasCirclePicker = CanvasCirclePicker;
30963
30547
  exports.CanvasFactory = CanvasFactory;
30964
- exports.CanvasGifImagePicker = CanvasGifImagePicker;
30965
30548
  exports.CanvasGlyphPicker = CanvasGlyphPicker;
30966
30549
  exports.CanvasGroupPicker = CanvasGroupPicker;
30967
30550
  exports.CanvasImagePicker = CanvasImagePicker;
@@ -31061,6 +30644,7 @@
31061
30644
  exports.EventManager = EventManager;
31062
30645
  exports.EventSystem = EventSystem;
31063
30646
  exports.EventTarget = EventTarget;
30647
+ exports.FORMAT_ALL_TEXT_COMMAND = FORMAT_ALL_TEXT_COMMAND;
31064
30648
  exports.FORMAT_ELEMENT_COMMAND = FORMAT_ELEMENT_COMMAND;
31065
30649
  exports.FORMAT_TEXT_COMMAND = FORMAT_TEXT_COMMAND;
31066
30650
  exports.Factory = Factory;
@@ -31076,7 +30660,6 @@
31076
30660
  exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
31077
30661
  exports.Generator = Generator;
31078
30662
  exports.Gesture = Gesture;
31079
- exports.GifImage = GifImage;
31080
30663
  exports.GlobalPickerService = GlobalPickerService;
31081
30664
  exports.Glyph = Glyph;
31082
30665
  exports.GlyphRender = GlyphRender;
@@ -31269,7 +30852,6 @@
31269
30852
  exports.createCircle = createCircle;
31270
30853
  exports.createColor = createColor;
31271
30854
  exports.createConicalGradient = createConicalGradient;
31272
- exports.createGifImage = createGifImage;
31273
30855
  exports.createGlyph = createGlyph;
31274
30856
  exports.createGroup = createGroup;
31275
30857
  exports.createImage = createImage;
@@ -31356,6 +30938,7 @@
31356
30938
  exports.getAttributeFromDefaultAttrList = getAttributeFromDefaultAttrList;
31357
30939
  exports.getConicGradientAt = getConicGradientAt;
31358
30940
  exports.getCurrentEnv = getCurrentEnv;
30941
+ exports.getDefaultCharacterConfig = getDefaultCharacterConfig;
31359
30942
  exports.getExtraModelMatrix = getExtraModelMatrix;
31360
30943
  exports.getModelMatrix = getModelMatrix;
31361
30944
  exports.getRichTextBounds = getRichTextBounds;
@@ -31363,8 +30946,6 @@
31363
30946
  exports.getTextBounds = getTextBounds;
31364
30947
  exports.getTheme = getTheme;
31365
30948
  exports.getThemeFromGroup = getThemeFromGroup;
31366
- exports.gifImageCanvasPickModule = gifImageCanvasPickModule;
31367
- exports.gifImageModule = gifImageModule;
31368
30949
  exports.globalTheme = globalTheme;
31369
30950
  exports.glyphCanvasPickModule = glyphCanvasPickModule;
31370
30951
  exports.glyphMathPickModule = glyphMathPickModule;