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

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.es.js CHANGED
@@ -571,17 +571,17 @@ const EnvContribution = Symbol.for("EnvContribution");
571
571
  const VGlobal = Symbol.for("VGlobal");
572
572
  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";
573
573
 
574
- var __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
574
+ var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
575
575
  var d,
576
576
  c = arguments.length,
577
577
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
578
578
  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);
579
579
  return c > 3 && r && Object.defineProperty(target, key, r), r;
580
580
  },
581
- __metadata$1j = undefined && undefined.__metadata || function (k, v) {
581
+ __metadata$1i = undefined && undefined.__metadata || function (k, v) {
582
582
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
583
583
  },
584
- __param$V = undefined && undefined.__param || function (paramIndex, decorator) {
584
+ __param$U = undefined && undefined.__param || function (paramIndex, decorator) {
585
585
  return function (target, key) {
586
586
  decorator(target, key, paramIndex);
587
587
  };
@@ -615,12 +615,6 @@ let DefaultGlobal = class {
615
615
  get env() {
616
616
  return this._env;
617
617
  }
618
- get isImageAnonymous() {
619
- return this._isImageAnonymous;
620
- }
621
- set isImageAnonymous(isImageAnonymous) {
622
- this._isImageAnonymous = isImageAnonymous;
623
- }
624
618
  get devicePixelRatio() {
625
619
  return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
626
620
  }
@@ -655,7 +649,7 @@ let DefaultGlobal = class {
655
649
  this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
656
650
  }
657
651
  constructor(contributions) {
658
- this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
652
+ this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
659
653
  onSetEnv: new SyncHook(["lastEnv", "env", "global"])
660
654
  }, this.measureTextMethod = "native", this.optimizeVisible = !1;
661
655
  }
@@ -783,7 +777,7 @@ let DefaultGlobal = class {
783
777
  return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
784
778
  }
785
779
  };
786
- DefaultGlobal = __decorate$1L([injectable(), __param$V(0, inject(ContributionProvider)), __param$V(0, named(EnvContribution)), __metadata$1j("design:paramtypes", [Object])], DefaultGlobal);
780
+ DefaultGlobal = __decorate$1J([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(EnvContribution)), __metadata$1i("design:paramtypes", [Object])], DefaultGlobal);
787
781
 
788
782
  var MeasureModeEnum;
789
783
  !function (MeasureModeEnum) {
@@ -4299,6 +4293,7 @@ const DefaultTextAttribute = Object.assign(Object.assign(Object.assign({}, Defau
4299
4293
  });
4300
4294
  const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
4301
4295
  editable: !1,
4296
+ editOptions: null,
4302
4297
  width: 300,
4303
4298
  height: 300,
4304
4299
  ellipsis: !0,
@@ -4346,7 +4341,7 @@ const DefaultRichTextIconAttribute = Object.assign(Object.assign({}, DefaultImag
4346
4341
  class Application {}
4347
4342
  const application = new Application();
4348
4343
 
4349
- const parse$1 = function () {
4344
+ const parse = function () {
4350
4345
  const tokens = {
4351
4346
  linearGradient: /^(linear\-gradient)/i,
4352
4347
  radialGradient: /^(radial\-gradient)/i,
@@ -4499,7 +4494,7 @@ class GradientParser {
4499
4494
  }
4500
4495
  static Parse(c) {
4501
4496
  if (GradientParser.IsGradientStr(c)) try {
4502
- const datum = parse$1(c)[0];
4497
+ const datum = parse(c)[0];
4503
4498
  if (datum) {
4504
4499
  if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
4505
4500
  if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
@@ -4756,7 +4751,7 @@ function measureTextCanvas(text, character) {
4756
4751
  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
4752
  }
4758
4753
 
4759
- var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4754
+ var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4760
4755
  var d,
4761
4756
  c = arguments.length,
4762
4757
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5138,9 +5133,9 @@ let ATextMeasure = class {
5138
5133
  return data.str = data.result, data.width += suffixWidth, data;
5139
5134
  }
5140
5135
  };
5141
- ATextMeasure = __decorate$1K([injectable()], ATextMeasure);
5136
+ ATextMeasure = __decorate$1I([injectable()], ATextMeasure);
5142
5137
 
5143
- var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5138
+ var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5144
5139
  var d,
5145
5140
  c = arguments.length,
5146
5141
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5149,7 +5144,7 @@ var __decorate$1J = undefined && undefined.__decorate || function (decorators, t
5149
5144
  };
5150
5145
  const TextMeasureContribution = Symbol.for("TextMeasureContribution");
5151
5146
  let DefaultTextMeasureContribution = class extends ATextMeasure {};
5152
- DefaultTextMeasureContribution = __decorate$1J([injectable()], DefaultTextMeasureContribution);
5147
+ DefaultTextMeasureContribution = __decorate$1H([injectable()], DefaultTextMeasureContribution);
5153
5148
 
5154
5149
  const container = new Container();
5155
5150
 
@@ -5563,14 +5558,14 @@ class DefaultCanvasAllocate {
5563
5558
  }
5564
5559
  const canvasAllocate = new DefaultCanvasAllocate();
5565
5560
 
5566
- var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5561
+ var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5567
5562
  var d,
5568
5563
  c = arguments.length,
5569
5564
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5570
5565
  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);
5571
5566
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5572
5567
  },
5573
- __metadata$1i = undefined && undefined.__metadata || function (k, v) {
5568
+ __metadata$1h = undefined && undefined.__metadata || function (k, v) {
5574
5569
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
5575
5570
  };
5576
5571
  const VWindow = Symbol.for("VWindow");
@@ -5707,19 +5702,19 @@ let DefaultWindow = class {
5707
5702
  return this._handler.getTopLeft(baseWindow);
5708
5703
  }
5709
5704
  };
5710
- DefaultWindow = __decorate$1I([injectable(), __metadata$1i("design:paramtypes", [])], DefaultWindow);
5705
+ DefaultWindow = __decorate$1G([injectable(), __metadata$1h("design:paramtypes", [])], DefaultWindow);
5711
5706
 
5712
- var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5707
+ var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5713
5708
  var d,
5714
5709
  c = arguments.length,
5715
5710
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
5716
5711
  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);
5717
5712
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5718
5713
  },
5719
- __metadata$1h = undefined && undefined.__metadata || function (k, v) {
5714
+ __metadata$1g = undefined && undefined.__metadata || function (k, v) {
5720
5715
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
5721
5716
  },
5722
- __param$U = undefined && undefined.__param || function (paramIndex, decorator) {
5717
+ __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
5723
5718
  return function (target, key) {
5724
5719
  decorator(target, key, paramIndex);
5725
5720
  };
@@ -5814,7 +5809,7 @@ let DefaultGraphicUtil = class {
5814
5809
  return c.nativeCanvas ? c.nativeCanvas : null;
5815
5810
  }
5816
5811
  };
5817
- DefaultGraphicUtil = __decorate$1H([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(TextMeasureContribution)), __metadata$1h("design:paramtypes", [Object])], DefaultGraphicUtil);
5812
+ DefaultGraphicUtil = __decorate$1F([injectable(), __param$T(0, inject(ContributionProvider)), __param$T(0, named(TextMeasureContribution)), __metadata$1g("design:paramtypes", [Object])], DefaultGraphicUtil);
5818
5813
  var TransformMode;
5819
5814
  !function (TransformMode) {
5820
5815
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -5872,7 +5867,7 @@ let DefaultTransformUtil = class {
5872
5867
  return this;
5873
5868
  }
5874
5869
  };
5875
- DefaultTransformUtil = __decorate$1H([injectable(), __metadata$1h("design:paramtypes", [])], DefaultTransformUtil);
5870
+ DefaultTransformUtil = __decorate$1F([injectable(), __metadata$1g("design:paramtypes", [])], DefaultTransformUtil);
5876
5871
 
5877
5872
  const defaultThemeObj = {
5878
5873
  arc: DefaultArcAttribute,
@@ -9721,7 +9716,7 @@ class ResourceLoader {
9721
9716
  }
9722
9717
  static GetFile(url, type) {
9723
9718
  let data = ResourceLoader.cache.get(url);
9724
- return data ? "fail" === data.loadState ? Promise.reject() : "init" === data.loadState || "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
9719
+ return data ? "init" === data.loadState || "fail" === data.loadState ? Promise.reject() : "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
9725
9720
  type: type,
9726
9721
  loadState: "init"
9727
9722
  }, 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));
@@ -9831,7 +9826,7 @@ class Graphic extends Node {
9831
9826
  }
9832
9827
  }
9833
9828
  get AABBBounds() {
9834
- return this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode);
9829
+ return this.tryUpdateAABBBounds();
9835
9830
  }
9836
9831
  get OBBBounds() {
9837
9832
  return this.tryUpdateOBBBounds();
@@ -9875,12 +9870,13 @@ class Graphic extends Node {
9875
9870
  onAnimateBind(animate) {
9876
9871
  this._emitCustomEvent("animate-bind", animate);
9877
9872
  }
9878
- tryUpdateAABBBounds(full) {
9873
+ tryUpdateAABBBounds() {
9874
+ const full = "imprecise" === this.attribute.boundsMode;
9879
9875
  if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
9880
9876
  if (!this.valid) return this._AABBBounds.clear(), this._AABBBounds;
9881
9877
  application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
9882
9878
  const bounds = this.doUpdateAABBBounds(full);
9883
- return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), bounds;
9879
+ return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
9884
9880
  }
9885
9881
  tryUpdateOBBBounds() {
9886
9882
  if (this._OBBBounds || (this._OBBBounds = new OBBBounds()), this.tryUpdateAABBBounds(), this.updateOBBBoundsStamp === this.updateAABBBoundsStamp) return this._OBBBounds;
@@ -10124,7 +10120,7 @@ class Graphic extends Node {
10124
10120
  context && context.skipUpdateCallback || (application.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
10125
10121
  }
10126
10122
  update(d) {
10127
- d ? (d.bounds && this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode), this.tryUpdateLocalTransMatrix());
10123
+ d ? (d.bounds && this.tryUpdateAABBBounds(), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds(), this.tryUpdateLocalTransMatrix());
10128
10124
  }
10129
10125
  hasState(stateName) {
10130
10126
  return !(!this.currentStates || !this.currentStates.length) && (!!isNil$1(stateName) || this.currentStates.includes(stateName));
@@ -11174,14 +11170,14 @@ const DynamicLayerHandlerContribution = Symbol.for("DynamicLayerHandlerContribut
11174
11170
  const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
11175
11171
 
11176
11172
  var DefaultLayerService_1,
11177
- __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11173
+ __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11178
11174
  var d,
11179
11175
  c = arguments.length,
11180
11176
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11181
11177
  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);
11182
11178
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11183
11179
  },
11184
- __metadata$1g = undefined && undefined.__metadata || function (k, v) {
11180
+ __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11185
11181
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11186
11182
  };
11187
11183
  let DefaultLayerService = DefaultLayerService_1 = class {
@@ -11245,7 +11241,7 @@ let DefaultLayerService = DefaultLayerService_1 = class {
11245
11241
  this.layerMap.delete(stage);
11246
11242
  }
11247
11243
  };
11248
- DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1G([injectable(), __metadata$1g("design:paramtypes", [])], DefaultLayerService);
11244
+ DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], DefaultLayerService);
11249
11245
 
11250
11246
  var coreModule = new ContainerModule(bind => {
11251
11247
  bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
@@ -11784,17 +11780,17 @@ class DefaultMat4Allocate {
11784
11780
  const matrixAllocate = new DefaultMatrixAllocate();
11785
11781
  const mat4Allocate = new DefaultMat4Allocate();
11786
11782
 
11787
- var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11783
+ var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11788
11784
  var d,
11789
11785
  c = arguments.length,
11790
11786
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11791
11787
  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);
11792
11788
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11793
11789
  },
11794
- __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11790
+ __metadata$1e = undefined && undefined.__metadata || function (k, v) {
11795
11791
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11796
11792
  },
11797
- __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
11793
+ __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
11798
11794
  return function (target, key) {
11799
11795
  decorator(target, key, paramIndex);
11800
11796
  };
@@ -12006,7 +12002,7 @@ let DefaultGraphicService = class {
12006
12002
  };
12007
12003
  }
12008
12004
  };
12009
- DefaultGraphicService = __decorate$1F([injectable(), __param$T(0, inject(GraphicCreator$1)), __metadata$1f("design:paramtypes", [Object])], DefaultGraphicService);
12005
+ DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], DefaultGraphicService);
12010
12006
 
12011
12007
  const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
12012
12008
  const {
@@ -13885,6 +13881,18 @@ class Frame {
13885
13881
  }
13886
13882
  }
13887
13883
 
13884
+ function getFixedLRTB(left, right, top, bottom) {
13885
+ const leftInt = Math.round(left),
13886
+ topInt = Math.round(top),
13887
+ rightInt = Math.round(right),
13888
+ bottomInt = Math.round(bottom);
13889
+ return {
13890
+ left: left > leftInt ? leftInt : leftInt - .5,
13891
+ top: top > topInt ? topInt : topInt - .5,
13892
+ right: rightInt > right ? rightInt : rightInt + .5,
13893
+ bottom: bottomInt > bottom ? bottomInt : bottomInt + .5
13894
+ };
13895
+ }
13888
13896
  class Paragraph {
13889
13897
  constructor(text, newLine, character) {
13890
13898
  this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
@@ -13907,7 +13915,8 @@ class Paragraph {
13907
13915
  } = measureTextCanvas(this.text, this.character);
13908
13916
  this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
13909
13917
  }
13910
- draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign) {
13918
+ drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13919
+ if (!this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
13911
13920
  let baseline = top + ascent,
13912
13921
  text = this.text,
13913
13922
  left = this.left + deltaLeft;
@@ -13932,15 +13941,63 @@ class Paragraph {
13932
13941
  case "sub":
13933
13942
  baseline += this.descent / 2;
13934
13943
  }
13935
- 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)) {
13936
- const fillStyle = ctx.fillStyle,
13937
- globalAlpha = ctx.globalAlpha;
13938
- 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;
13944
+ "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);
13945
+ const fillStyle = ctx.fillStyle,
13946
+ globalAlpha = ctx.globalAlpha;
13947
+ ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
13948
+ const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
13949
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
13950
+ }
13951
+ draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13952
+ let baseline = top + ascent,
13953
+ text = this.text,
13954
+ left = this.left + deltaLeft;
13955
+ baseline += this.top;
13956
+ let direction = this.direction;
13957
+ if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
13958
+ if ("hide" === this.ellipsis) return;
13959
+ if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
13960
+ const index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
13961
+ if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
13962
+ const {
13963
+ width: width
13964
+ } = measureTextCanvas(this.text.slice(index), this.character);
13965
+ "vertical" === direction || (left -= this.ellipsisWidth - width);
13966
+ }
13967
+ }
13968
+ }
13969
+ switch (this.character.script) {
13970
+ case "super":
13971
+ baseline -= this.ascent * (1 / 3);
13972
+ break;
13973
+ case "sub":
13974
+ baseline += this.descent / 2;
13939
13975
  }
13976
+ "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);
13940
13977
  const {
13941
13978
  lineWidth = 1
13942
13979
  } = this.character;
13943
- 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();
13980
+ 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) {
13981
+ if (this.character.underline) {
13982
+ const top = 1 + baseline,
13983
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13984
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13985
+ }
13986
+ if (this.character.lineThrough) {
13987
+ const top = 1 + baseline - this.ascent / 2,
13988
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13989
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13990
+ }
13991
+ } else if ("underline" === this.character.textDecoration) {
13992
+ const top = 1 + baseline,
13993
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13994
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13995
+ } else if ("line-through" === this.character.textDecoration) {
13996
+ const top = 1 + baseline - this.ascent / 2,
13997
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13998
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13999
+ }
14000
+ "vertical" === direction && ctx.restore();
13944
14001
  }
13945
14002
  getWidthWithEllips(direction) {
13946
14003
  let text = this.text;
@@ -14164,6 +14221,8 @@ class Line {
14164
14221
  }
14165
14222
  }
14166
14223
  this.paragraphs.forEach((paragraph, index) => {
14224
+ paragraph instanceof RichTextIcon || paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14225
+ }), this.paragraphs.forEach((paragraph, index) => {
14167
14226
  if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
14168
14227
  x: x + paragraph._x,
14169
14228
  y: y + paragraph._y
@@ -14174,7 +14233,7 @@ class Line {
14174
14233
  x2: this.left + this.actualWidth,
14175
14234
  y2: this.top + this.height
14176
14235
  };
14177
- applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
14236
+ applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14178
14237
  });
14179
14238
  }
14180
14239
  getWidthWithEllips(ellipsis) {
@@ -14341,13 +14400,15 @@ class RichText extends Graphic {
14341
14400
  }), tc;
14342
14401
  }
14343
14402
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
14403
+ var _a, _b;
14344
14404
  const {
14345
14405
  width = richtextTheme.width,
14346
14406
  height = richtextTheme.height,
14347
14407
  maxWidth = richtextTheme.maxWidth,
14348
14408
  maxHeight = richtextTheme.maxHeight,
14349
14409
  textAlign = richtextTheme.textAlign,
14350
- textBaseline = richtextTheme.textBaseline
14410
+ textBaseline = richtextTheme.textBaseline,
14411
+ editOptions: editOptions
14351
14412
  } = attribute;
14352
14413
  if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
14353
14414
  const frameCache = this.getFrameCache(),
@@ -14359,6 +14420,7 @@ class RichText extends Graphic {
14359
14420
  contentHeight = height || actualHeight || 0;
14360
14421
  contentHeight = "number" == typeof maxHeight && contentHeight > maxHeight ? maxHeight : contentHeight || 0, contentWidth = "number" == typeof maxWidth && contentWidth > maxWidth ? maxWidth : contentWidth || 0, aabbBounds.set(0, 0, contentWidth, contentHeight);
14361
14422
  }
14423
+ 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);
14362
14424
  let deltaY = 0;
14363
14425
  switch (textBaseline) {
14364
14426
  case "top":
@@ -15336,17 +15398,17 @@ class BaseRender {
15336
15398
  }
15337
15399
  }
15338
15400
 
15339
- var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15401
+ var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15340
15402
  var d,
15341
15403
  c = arguments.length,
15342
15404
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15343
15405
  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);
15344
15406
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15345
15407
  },
15346
- __metadata$1e = undefined && undefined.__metadata || function (k, v) {
15408
+ __metadata$1d = undefined && undefined.__metadata || function (k, v) {
15347
15409
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15348
15410
  },
15349
- __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
15411
+ __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
15350
15412
  return function (target, key) {
15351
15413
  decorator(target, key, paramIndex);
15352
15414
  };
@@ -15443,7 +15505,7 @@ let DefaultBaseInteractiveRenderContribution = class {
15443
15505
  });
15444
15506
  }
15445
15507
  };
15446
- DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15508
+ DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15447
15509
 
15448
15510
  function formatRatio(ratio) {
15449
15511
  return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
@@ -15791,7 +15853,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
15791
15853
  return !edgeCb && path.closePath(), path;
15792
15854
  }
15793
15855
 
15794
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15856
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15795
15857
  var d,
15796
15858
  c = arguments.length,
15797
15859
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15856,7 +15918,7 @@ let SplitRectBeforeRenderContribution = class {
15856
15918
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
15857
15919
  }
15858
15920
  };
15859
- SplitRectBeforeRenderContribution = __decorate$1D([injectable()], SplitRectBeforeRenderContribution);
15921
+ SplitRectBeforeRenderContribution = __decorate$1B([injectable()], SplitRectBeforeRenderContribution);
15860
15922
  let SplitRectAfterRenderContribution = class {
15861
15923
  constructor() {
15862
15924
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -15893,7 +15955,7 @@ let SplitRectAfterRenderContribution = class {
15893
15955
  }
15894
15956
  }
15895
15957
  };
15896
- SplitRectAfterRenderContribution = __decorate$1D([injectable()], SplitRectAfterRenderContribution);
15958
+ SplitRectAfterRenderContribution = __decorate$1B([injectable()], SplitRectAfterRenderContribution);
15897
15959
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
15898
15960
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
15899
15961
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -15902,8 +15964,8 @@ class DefaultImageRenderContribution extends DefaultRectRenderContribution {
15902
15964
  constructor() {
15903
15965
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
15904
15966
  }
15905
- drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15906
- return super.drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15967
+ drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15968
+ return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15907
15969
  }
15908
15970
  }
15909
15971
  const defaultImageRenderContribution = new DefaultImageRenderContribution();
@@ -15998,17 +16060,17 @@ class DefaultAreaTextureRenderContribution extends DefaultBaseTextureRenderContr
15998
16060
  }
15999
16061
  }
16000
16062
 
16001
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16063
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16002
16064
  var d,
16003
16065
  c = arguments.length,
16004
16066
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16005
16067
  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);
16006
16068
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16007
16069
  },
16008
- __metadata$1d = undefined && undefined.__metadata || function (k, v) {
16070
+ __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16009
16071
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16010
16072
  },
16011
- __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
16073
+ __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16012
16074
  return function (target, key) {
16013
16075
  decorator(target, key, paramIndex);
16014
16076
  };
@@ -16172,19 +16234,19 @@ let DefaultCanvasArcRender = class extends BaseRender {
16172
16234
  this._draw(arc, arcAttribute, !1, drawContext, params);
16173
16235
  }
16174
16236
  };
16175
- DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultCanvasArcRender);
16237
+ DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasArcRender);
16176
16238
 
16177
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16239
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16178
16240
  var d,
16179
16241
  c = arguments.length,
16180
16242
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16181
16243
  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);
16182
16244
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16183
16245
  },
16184
- __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16246
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16185
16247
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16186
16248
  },
16187
- __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16249
+ __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16188
16250
  return function (target, key) {
16189
16251
  decorator(target, key, paramIndex);
16190
16252
  };
@@ -16225,7 +16287,7 @@ let DefaultCanvasCircleRender = class extends BaseRender {
16225
16287
  this._draw(circle, circleAttribute, !1, drawContext, params);
16226
16288
  }
16227
16289
  };
16228
- DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasCircleRender);
16290
+ DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasCircleRender);
16229
16291
 
16230
16292
  function drawSegItem(ctx, curve, endPercent, params) {
16231
16293
  if (!curve.p1) return;
@@ -16349,7 +16411,7 @@ function drawIncrementalAreaSegments(path, lastSeg, segments, params) {
16349
16411
  });
16350
16412
  }
16351
16413
 
16352
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16414
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16353
16415
  var d,
16354
16416
  c = arguments.length,
16355
16417
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16510,7 +16572,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
16510
16572
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
16511
16573
  }
16512
16574
  };
16513
- DefaultCanvasLineRender = __decorate$1A([injectable()], DefaultCanvasLineRender);
16575
+ DefaultCanvasLineRender = __decorate$1y([injectable()], DefaultCanvasLineRender);
16514
16576
 
16515
16577
  function drawAreaSegments(path, segPath, percent, params) {
16516
16578
  var _a;
@@ -16639,17 +16701,17 @@ function drawAreaBlock(path, topList, bottomList, params) {
16639
16701
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
16640
16702
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16641
16703
 
16642
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16704
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16643
16705
  var d,
16644
16706
  c = arguments.length,
16645
16707
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16646
16708
  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);
16647
16709
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16648
16710
  },
16649
- __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16711
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16650
16712
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16651
16713
  },
16652
- __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16714
+ __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16653
16715
  return function (target, key) {
16654
16716
  decorator(target, key, paramIndex);
16655
16717
  };
@@ -16892,22 +16954,22 @@ let DefaultCanvasAreaRender = class extends BaseRender {
16892
16954
  })(), !1;
16893
16955
  }
16894
16956
  };
16895
- DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasAreaRender);
16957
+ DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasAreaRender);
16896
16958
 
16897
16959
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
16898
16960
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16899
16961
 
16900
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16962
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16901
16963
  var d,
16902
16964
  c = arguments.length,
16903
16965
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16904
16966
  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);
16905
16967
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16906
16968
  },
16907
- __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16969
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
16908
16970
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16909
16971
  },
16910
- __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16972
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
16911
16973
  return function (target, key) {
16912
16974
  decorator(target, key, paramIndex);
16913
16975
  };
@@ -16951,19 +17013,19 @@ let DefaultCanvasPathRender = class extends BaseRender {
16951
17013
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
16952
17014
  }
16953
17015
  };
16954
- DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasPathRender);
17016
+ DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasPathRender);
16955
17017
 
16956
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17018
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16957
17019
  var d,
16958
17020
  c = arguments.length,
16959
17021
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16960
17022
  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);
16961
17023
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16962
17024
  },
16963
- __metadata$19 = undefined && undefined.__metadata || function (k, v) {
17025
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
16964
17026
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16965
17027
  },
16966
- __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
17028
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
16967
17029
  return function (target, key) {
16968
17030
  decorator(target, key, paramIndex);
16969
17031
  };
@@ -17023,19 +17085,19 @@ let DefaultCanvasRectRender = class extends BaseRender {
17023
17085
  this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
17024
17086
  }
17025
17087
  };
17026
- DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasRectRender);
17088
+ DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasRectRender);
17027
17089
 
17028
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17090
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17029
17091
  var d,
17030
17092
  c = arguments.length,
17031
17093
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17032
17094
  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);
17033
17095
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17034
17096
  },
17035
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
17097
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17036
17098
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17037
17099
  },
17038
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
17100
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17039
17101
  return function (target, key) {
17040
17102
  decorator(target, key, paramIndex);
17041
17103
  };
@@ -17106,7 +17168,7 @@ let DefaultCanvasSymbolRender = class extends BaseRender {
17106
17168
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
17107
17169
  }
17108
17170
  };
17109
- DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
17171
+ DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
17110
17172
 
17111
17173
  class DefaultBoundsAllocate {
17112
17174
  constructor() {
@@ -17195,17 +17257,17 @@ class DefaultTextBackgroundRenderContribution extends DefaultBaseBackgroundRende
17195
17257
  }
17196
17258
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
17197
17259
 
17198
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17260
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17199
17261
  var d,
17200
17262
  c = arguments.length,
17201
17263
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17202
17264
  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);
17203
17265
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17204
17266
  },
17205
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17267
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17206
17268
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17207
17269
  },
17208
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17270
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17209
17271
  return function (target, key) {
17210
17272
  decorator(target, key, paramIndex);
17211
17273
  };
@@ -17344,9 +17406,9 @@ let DefaultCanvasTextRender = class extends BaseRender {
17344
17406
  }
17345
17407
  }
17346
17408
  };
17347
- DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasTextRender);
17409
+ DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasTextRender);
17348
17410
 
17349
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17411
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17350
17412
  var d,
17351
17413
  c = arguments.length,
17352
17414
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17354,7 +17416,7 @@ var __decorate$1u = undefined && undefined.__decorate || function (decorators, t
17354
17416
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17355
17417
  };
17356
17418
  let AbstractGraphicRender = class {};
17357
- AbstractGraphicRender = __decorate$1u([injectable()], AbstractGraphicRender);
17419
+ AbstractGraphicRender = __decorate$1s([injectable()], AbstractGraphicRender);
17358
17420
 
17359
17421
  function drawPolygon(path, points, x, y) {
17360
17422
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -17410,17 +17472,17 @@ function getProportionPoint(point, segment, length, dx, dy) {
17410
17472
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
17411
17473
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
17412
17474
 
17413
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17475
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17414
17476
  var d,
17415
17477
  c = arguments.length,
17416
17478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17417
17479
  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);
17418
17480
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17419
17481
  },
17420
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17482
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17421
17483
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17422
17484
  },
17423
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17485
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17424
17486
  return function (target, key) {
17425
17487
  decorator(target, key, paramIndex);
17426
17488
  };
@@ -17461,19 +17523,19 @@ let DefaultCanvasPolygonRender = class extends BaseRender {
17461
17523
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
17462
17524
  }
17463
17525
  };
17464
- DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
17526
+ DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
17465
17527
 
17466
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17528
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17467
17529
  var d,
17468
17530
  c = arguments.length,
17469
17531
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17470
17532
  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);
17471
17533
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17472
17534
  },
17473
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17535
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17474
17536
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17475
17537
  },
17476
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17538
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17477
17539
  return function (target, key) {
17478
17540
  decorator(target, key, paramIndex);
17479
17541
  };
@@ -17568,19 +17630,19 @@ let DefaultCanvasGroupRender = class {
17568
17630
  }) : clip ? context.restore() : context.highPerformanceRestore();
17569
17631
  }
17570
17632
  };
17571
- DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17633
+ DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17572
17634
 
17573
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17635
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17574
17636
  var d,
17575
17637
  c = arguments.length,
17576
17638
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17577
17639
  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);
17578
17640
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17579
17641
  },
17580
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17642
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17581
17643
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17582
17644
  },
17583
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17645
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17584
17646
  return function (target, key) {
17585
17647
  decorator(target, key, paramIndex);
17586
17648
  };
@@ -17648,7 +17710,7 @@ let DefaultCanvasImageRender = class extends BaseRender {
17648
17710
  this._draw(image, imageAttribute, !1, drawContext);
17649
17711
  }
17650
17712
  };
17651
- DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasImageRender);
17713
+ DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultCanvasImageRender);
17652
17714
 
17653
17715
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
17654
17716
  const ArcRender = Symbol.for("ArcRender");
@@ -17716,14 +17778,14 @@ const draw3dItem = (context, graphic, callback, output) => {
17716
17778
  return result;
17717
17779
  };
17718
17780
 
17719
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17781
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17720
17782
  var d,
17721
17783
  c = arguments.length,
17722
17784
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17723
17785
  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);
17724
17786
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17725
17787
  },
17726
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17788
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17727
17789
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17728
17790
  };
17729
17791
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -17783,7 +17845,7 @@ let CommonDrawItemInterceptorContribution = class {
17783
17845
  return !1;
17784
17846
  }
17785
17847
  };
17786
- CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
17848
+ CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
17787
17849
  class InteractiveDrawItemInterceptorContribution {
17788
17850
  constructor() {
17789
17851
  this.order = 1;
@@ -17874,17 +17936,17 @@ class Canvas3DDrawItemInterceptor {
17874
17936
  }
17875
17937
  }
17876
17938
 
17877
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17939
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17878
17940
  var d,
17879
17941
  c = arguments.length,
17880
17942
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17881
17943
  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);
17882
17944
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17883
17945
  },
17884
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17946
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
17885
17947
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17886
17948
  },
17887
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17949
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
17888
17950
  return function (target, key) {
17889
17951
  decorator(target, key, paramIndex);
17890
17952
  };
@@ -17922,7 +17984,7 @@ let DefaultRenderService = class {
17922
17984
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
17923
17985
  }
17924
17986
  };
17925
- DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], DefaultRenderService);
17987
+ DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], DefaultRenderService);
17926
17988
 
17927
17989
  var renderModule$1 = new ContainerModule(bind => {
17928
17990
  bind(RenderService).to(DefaultRenderService);
@@ -17935,7 +17997,7 @@ const GlobalPickerService = Symbol.for("GlobalPickerService");
17935
17997
  const PickItemInterceptor = Symbol.for("PickItemInterceptor");
17936
17998
  const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
17937
17999
 
17938
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18000
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17939
18001
  var d,
17940
18002
  c = arguments.length,
17941
18003
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17957,7 +18019,7 @@ let ShadowPickServiceInterceptorContribution = class {
17957
18019
  return result;
17958
18020
  }
17959
18021
  };
17960
- ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], ShadowPickServiceInterceptorContribution);
18022
+ ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], ShadowPickServiceInterceptorContribution);
17961
18023
  let ShadowRootPickItemInterceptorContribution = class {
17962
18024
  constructor() {
17963
18025
  this.order = 1;
@@ -17988,7 +18050,7 @@ let ShadowRootPickItemInterceptorContribution = class {
17988
18050
  return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
17989
18051
  }
17990
18052
  };
17991
- ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], ShadowRootPickItemInterceptorContribution);
18053
+ ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], ShadowRootPickItemInterceptorContribution);
17992
18054
  let InteractivePickItemInterceptorContribution = class {
17993
18055
  constructor() {
17994
18056
  this.order = 1;
@@ -18007,7 +18069,7 @@ let InteractivePickItemInterceptorContribution = class {
18007
18069
  return null;
18008
18070
  }
18009
18071
  };
18010
- InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], InteractivePickItemInterceptorContribution);
18072
+ InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], InteractivePickItemInterceptorContribution);
18011
18073
  let Canvas3DPickItemInterceptor = class {
18012
18074
  constructor() {
18013
18075
  this.order = 1;
@@ -18027,7 +18089,7 @@ let Canvas3DPickItemInterceptor = class {
18027
18089
  context.setTransformForCurrent();
18028
18090
  }
18029
18091
  };
18030
- Canvas3DPickItemInterceptor = __decorate$1o([injectable()], Canvas3DPickItemInterceptor);
18092
+ Canvas3DPickItemInterceptor = __decorate$1m([injectable()], Canvas3DPickItemInterceptor);
18031
18093
 
18032
18094
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
18033
18095
  isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor), bind(ShadowPickServiceInterceptorContribution).toSelf().inSingletonScope(), bind(PickServiceInterceptor).toService(ShadowPickServiceInterceptorContribution), bindContributionProvider(bind, PickServiceInterceptor);
@@ -18040,17 +18102,17 @@ var graphicModule = new ContainerModule(bind => {
18040
18102
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
18041
18103
  const PluginService = Symbol.for("PluginService");
18042
18104
 
18043
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18105
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18044
18106
  var d,
18045
18107
  c = arguments.length,
18046
18108
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18047
18109
  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);
18048
18110
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18049
18111
  },
18050
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
18112
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18051
18113
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18052
18114
  },
18053
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
18115
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18054
18116
  return function (target, key) {
18055
18117
  decorator(target, key, paramIndex);
18056
18118
  };
@@ -18090,7 +18152,7 @@ let DefaultPluginService = class {
18090
18152
  }), this.onRegisterPlugin = [];
18091
18153
  }
18092
18154
  };
18093
- DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
18155
+ DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
18094
18156
 
18095
18157
  var pluginModule = new ContainerModule(bind => {
18096
18158
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -18104,14 +18166,14 @@ var textMeasureModules = new ContainerModule(bind => {
18104
18166
  bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
18105
18167
  });
18106
18168
 
18107
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18169
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18108
18170
  var d,
18109
18171
  c = arguments.length,
18110
18172
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18111
18173
  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);
18112
18174
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18113
18175
  },
18114
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18176
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18115
18177
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18116
18178
  };
18117
18179
  let CanvasLayerHandlerContribution = class {
@@ -18181,7 +18243,7 @@ let CanvasLayerHandlerContribution = class {
18181
18243
  this.canvas.release();
18182
18244
  }
18183
18245
  };
18184
- CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
18246
+ CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
18185
18247
 
18186
18248
  var layerHandlerModules = new ContainerModule(bind => {
18187
18249
  bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -18300,17 +18362,17 @@ function findNextGraphic(graphic, id, defaultZIndex) {
18300
18362
  return result;
18301
18363
  }
18302
18364
 
18303
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18365
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18304
18366
  var d,
18305
18367
  c = arguments.length,
18306
18368
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18307
18369
  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);
18308
18370
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18309
18371
  },
18310
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18372
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18311
18373
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18312
18374
  },
18313
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18375
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18314
18376
  return function (target, key) {
18315
18377
  decorator(target, key, paramIndex);
18316
18378
  };
@@ -18449,7 +18511,7 @@ let DefaultDrawContribution = class {
18449
18511
  } = graphic.parent.attribute;
18450
18512
  (scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
18451
18513
  }
18452
- if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
18514
+ 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)) {
18453
18515
  if (retrans && graphic.parent) {
18454
18516
  const {
18455
18517
  scrollX = 0,
@@ -18509,9 +18571,9 @@ let DefaultDrawContribution = class {
18509
18571
  }
18510
18572
  afterDraw(renderService, drawParams) {}
18511
18573
  };
18512
- 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);
18574
+ 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);
18513
18575
 
18514
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18576
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18515
18577
  var d,
18516
18578
  c = arguments.length,
18517
18579
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18562,9 +18624,9 @@ let DefaultIncrementalCanvasLineRender = class extends DefaultCanvasLineRender {
18562
18624
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
18563
18625
  }
18564
18626
  };
18565
- DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
18627
+ DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
18566
18628
 
18567
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18629
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18568
18630
  var d,
18569
18631
  c = arguments.length,
18570
18632
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18607,20 +18669,20 @@ let DefaultIncrementalCanvasAreaRender = class extends DefaultCanvasAreaRender {
18607
18669
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
18608
18670
  }
18609
18671
  };
18610
- DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
18672
+ DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
18611
18673
 
18612
18674
  var STATUS,
18613
- __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18675
+ __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18614
18676
  var d,
18615
18677
  c = arguments.length,
18616
18678
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18617
18679
  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);
18618
18680
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18619
18681
  },
18620
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18682
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
18621
18683
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18622
18684
  },
18623
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18685
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
18624
18686
  return function (target, key) {
18625
18687
  decorator(target, key, paramIndex);
18626
18688
  };
@@ -18750,7 +18812,7 @@ let DefaultIncrementalDrawContribution = class extends DefaultDrawContribution {
18750
18812
  });
18751
18813
  }
18752
18814
  };
18753
- 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);
18815
+ 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);
18754
18816
 
18755
18817
  var renderModule = new ContainerModule(bind => {
18756
18818
  bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
@@ -19446,14 +19508,14 @@ function createStage(params) {
19446
19508
  return new Stage(params);
19447
19509
  }
19448
19510
 
19449
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19511
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19450
19512
  var d,
19451
19513
  c = arguments.length,
19452
19514
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19453
19515
  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);
19454
19516
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19455
19517
  },
19456
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
19518
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19457
19519
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19458
19520
  };
19459
19521
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -19663,7 +19725,7 @@ let EmptyContext2d = class {
19663
19725
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
19664
19726
  }
19665
19727
  };
19666
- EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], EmptyContext2d);
19728
+ EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], EmptyContext2d);
19667
19729
 
19668
19730
  const DefaultConfig = {
19669
19731
  WIDTH: 500,
@@ -19762,7 +19824,7 @@ class BaseCanvas {
19762
19824
  }
19763
19825
  BaseCanvas.env = "browser";
19764
19826
 
19765
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19827
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19766
19828
  var d,
19767
19829
  c = arguments.length,
19768
19830
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19876,16 +19938,16 @@ let BaseEnvContribution = class {
19876
19938
  return Promise.resolve(null);
19877
19939
  }
19878
19940
  };
19879
- BaseEnvContribution = __decorate$1g([injectable()], BaseEnvContribution);
19941
+ BaseEnvContribution = __decorate$1e([injectable()], BaseEnvContribution);
19880
19942
 
19881
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19943
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19882
19944
  var d,
19883
19945
  c = arguments.length,
19884
19946
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19885
19947
  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);
19886
19948
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19887
19949
  },
19888
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19950
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
19889
19951
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19890
19952
  };
19891
19953
  let BaseWindowHandlerContribution = class {
@@ -19924,7 +19986,7 @@ let BaseWindowHandlerContribution = class {
19924
19986
  return this.modelMatrix;
19925
19987
  }
19926
19988
  };
19927
- BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], BaseWindowHandlerContribution);
19989
+ BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], BaseWindowHandlerContribution);
19928
19990
 
19929
19991
  class DirectionalLight {
19930
19992
  constructor(dir, color) {
@@ -20015,17 +20077,17 @@ const registerOrthoCamera = () => {
20015
20077
  Factory.registerPlugin("OrthoCamera", OrthoCamera);
20016
20078
  };
20017
20079
 
20018
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20080
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20019
20081
  var d,
20020
20082
  c = arguments.length,
20021
20083
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20022
20084
  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);
20023
20085
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20024
20086
  },
20025
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
20087
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
20026
20088
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20027
20089
  },
20028
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
20090
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
20029
20091
  return function (target, key) {
20030
20092
  decorator(target, key, paramIndex);
20031
20093
  };
@@ -20130,16 +20192,16 @@ let DefaultPickService = class {
20130
20192
  return picker || null;
20131
20193
  }
20132
20194
  };
20133
- 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])], DefaultPickService);
20195
+ 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])], DefaultPickService);
20134
20196
 
20135
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20197
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20136
20198
  var d,
20137
20199
  c = arguments.length,
20138
20200
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20139
20201
  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);
20140
20202
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20141
20203
  },
20142
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
20204
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
20143
20205
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20144
20206
  };
20145
20207
  let DefaultGlobalPickerService = class {
@@ -20204,7 +20266,7 @@ let DefaultGlobalPickerService = class {
20204
20266
  } : null;
20205
20267
  }
20206
20268
  };
20207
- DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], DefaultGlobalPickerService);
20269
+ DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultGlobalPickerService);
20208
20270
 
20209
20271
  function simplifyRadialDist(points, sqTolerance) {
20210
20272
  let deltaX,
@@ -20229,6 +20291,24 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
20229
20291
  }
20230
20292
  return t;
20231
20293
  };
20294
+ function getDefaultCharacterConfig(attribute) {
20295
+ const {
20296
+ fill = "black",
20297
+ stroke = !1,
20298
+ fontWeight = "normal",
20299
+ fontFamily = "Arial"
20300
+ } = attribute;
20301
+ let {
20302
+ fontSize = 12
20303
+ } = attribute;
20304
+ return isFinite(fontSize) || (fontSize = 12), {
20305
+ fill: fill,
20306
+ stroke: stroke,
20307
+ fontSize: fontSize,
20308
+ fontWeight: fontWeight,
20309
+ fontFamily: fontFamily
20310
+ };
20311
+ }
20232
20312
  function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
20233
20313
  if (cursorIndex < 0) return 0;
20234
20314
  const intCursorIndex = Math.round(cursorIndex);
@@ -20267,9 +20347,7 @@ class EditModule {
20267
20347
  } = this.currRt.attribute;
20268
20348
  if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
20269
20349
  const config = textConfig[0];
20270
- textConfig.unshift(Object.assign(Object.assign({
20271
- fill: "black"
20272
- }, config), {
20350
+ textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
20273
20351
  text: ""
20274
20352
  }));
20275
20353
  } else {
@@ -20286,26 +20364,20 @@ class EditModule {
20286
20364
  cb(text, this.isComposing, this.cursorIndex, this.currRt);
20287
20365
  });
20288
20366
  }, this.handleInput = ev => {
20289
- var _a, _b, _c, _d;
20290
20367
  if (!this.currRt) return;
20291
20368
  if ("historyUndo" === ev.inputType) return;
20292
- const _e = this.currRt.attribute,
20369
+ const _a = this.currRt.attribute,
20293
20370
  {
20294
20371
  textConfig = []
20295
- } = _e,
20296
- rest = __rest$1(_e, ["textConfig"]);
20372
+ } = _a,
20373
+ rest = __rest$1(_a, ["textConfig"]);
20297
20374
  if ("Backspace" === ev.type && !textConfig.length) return;
20298
20375
  let str = ev.data;
20299
20376
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
20300
20377
  const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
20301
20378
  endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
20302
20379
  let lastConfig = textConfig[this.isComposing ? this.composingConfigIdx : Math.max(startIdx - 1, 0)];
20303
- lastConfig || (lastConfig = {
20304
- fill: null !== (_a = rest.fill) && void 0 !== _a ? _a : "black",
20305
- stroke: null !== (_b = rest.stroke) && void 0 !== _b && _b,
20306
- fontSize: null !== (_c = rest.fontSize) && void 0 !== _c ? _c : 12,
20307
- fontWeight: null !== (_d = rest.fontWeight) && void 0 !== _d ? _d : "normal"
20308
- });
20380
+ lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
20309
20381
  let nextConfig = lastConfig;
20310
20382
  startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
20311
20383
  let nextConfigIdx = startIdx;
@@ -20401,6 +20473,7 @@ class Selection {
20401
20473
  if (!this.rt) return null;
20402
20474
  let idx = Math.round(cursorIdx);
20403
20475
  const config = this.rt.attribute.textConfig;
20476
+ if (!config.length) return null;
20404
20477
  for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
20405
20478
  return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
20406
20479
  }
@@ -20420,6 +20493,7 @@ class Selection {
20420
20493
  }
20421
20494
  }
20422
20495
  const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
20496
+ const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
20423
20497
  const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
20424
20498
  class RichTextEditPlugin {
20425
20499
  static tryUpdateRichtext(richtext) {
@@ -20439,16 +20513,39 @@ class RichTextEditPlugin {
20439
20513
  return new Selection(0, textConfig.length - 1, rt);
20440
20514
  }
20441
20515
  constructor() {
20442
- 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 => {
20516
+ 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) => {
20517
+ const rt = p.currRt;
20518
+ if (!rt) return;
20519
+ const selectionData = p.getSelection();
20520
+ if (!selectionData) return;
20521
+ const {
20522
+ selectionStartCursorIdx: selectionStartCursorIdx,
20523
+ curCursorIdx: curCursorIdx
20524
+ } = selectionData,
20525
+ minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
20526
+ maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
20527
+ minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
20528
+ maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
20529
+ config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
20530
+ this._formatTextCommand(payload, config, rt);
20531
+ }, this.formatAllTextCommandCb = (payload, p) => {
20532
+ const rt = p.currRt;
20533
+ if (!rt) return;
20534
+ const config = rt.attribute.textConfig;
20535
+ this._formatTextCommand(payload, config, rt);
20536
+ }, this.handleKeyDown = e => {
20443
20537
  this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
20444
20538
  }, this.handleInput = (text, isComposing, cursorIdx, rt) => {
20445
- this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
20539
+ this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
20446
20540
  }, this.handleChange = (text, isComposing, cursorIdx, rt) => {
20447
- this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20541
+ if (!this.currRt) return;
20542
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20448
20543
  const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
20449
20544
  this.setCursorAndTextArea(p.x, p.y1, p.y2, rt), this.hideSelection(), this.updateCbs.forEach(cb => cb("change", this));
20450
- }, this.handleFocusIn = () => {}, this.handleFocusOut = () => {
20451
- this.editing = !1, this.deFocus(), this.pointerDown = !1, this.triggerRender(), this.updateCbs.forEach(cb => cb("defocus", this));
20545
+ }, this.handleFocusIn = () => {
20546
+ throw new Error("不会走到这里 handleFocusIn");
20547
+ }, this.handleFocusOut = () => {
20548
+ throw new Error("不会走到这里 handleFocusOut");
20452
20549
  }, this.handleMove = e => {
20453
20550
  this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
20454
20551
  }, this.handleEnter = e => {
@@ -20456,28 +20553,17 @@ class RichTextEditPlugin {
20456
20553
  }, this.handleLeave = e => {
20457
20554
  this.editing = !1, this.pluginService.stage.setCursor("default");
20458
20555
  }, this.handlePointerDown = e => {
20459
- this.editing ? this.onFocus(e) : this.deFocus(), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20556
+ this.editing ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20460
20557
  }, this.handlePointerUp = e => {
20461
20558
  this.pointerDown = !1;
20462
20559
  }, this.handleDBLClick = e => {
20463
20560
  this.editing && this.tryShowSelection(e, !0);
20464
- }, 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;
20561
+ }, 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;
20465
20562
  }
20466
- formatTextCommandCb(payload, p) {
20467
- const rt = p.currRt;
20468
- if (!rt) return;
20469
- const selectionData = p.getSelection();
20470
- if (!selectionData) return;
20471
- const {
20472
- selectionStartCursorIdx: selectionStartCursorIdx,
20473
- curCursorIdx: curCursorIdx
20474
- } = selectionData,
20475
- minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
20476
- maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
20477
- minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
20478
- maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
20479
- config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
20563
+ _formatTextCommand(payload, config, rt) {
20480
20564
  "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);
20565
+ const cache = rt.getFrameCache();
20566
+ cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
20481
20567
  }
20482
20568
  dispatchCommand(command, payload) {
20483
20569
  const cbs = this.commandCbs.get(command);
@@ -20486,9 +20572,19 @@ class RichTextEditPlugin {
20486
20572
  registerCommand(command, cb) {
20487
20573
  (this.commandCbs.get(command) || []).push(cb);
20488
20574
  }
20575
+ removeCommand(command, cb) {
20576
+ const cbs = this.commandCbs.get(command) || [],
20577
+ idx = cbs.indexOf(cb);
20578
+ idx > -1 && cbs.splice(idx, 1);
20579
+ }
20489
20580
  registerUpdateListener(cb) {
20490
20581
  (this.updateCbs || []).push(cb);
20491
20582
  }
20583
+ removeUpdateListener(cb) {
20584
+ const cbs = this.updateCbs || [],
20585
+ idx = cbs.indexOf(cb);
20586
+ idx > -1 && cbs.splice(idx, 1);
20587
+ }
20492
20588
  activate(context) {
20493
20589
  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);
20494
20590
  }
@@ -20508,7 +20604,10 @@ class RichTextEditPlugin {
20508
20604
  lines: lines
20509
20605
  } = cache,
20510
20606
  totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20511
- 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;
20607
+ 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);
20608
+ }
20609
+ selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
20610
+ this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
20512
20611
  const {
20513
20612
  x: x,
20514
20613
  y1: y1,
@@ -20579,61 +20678,192 @@ class RichTextEditPlugin {
20579
20678
  }
20580
20679
  return !0;
20581
20680
  }
20681
+ tryShowShadowPlaceholder() {
20682
+ if (!this.currRt) return;
20683
+ const shadowRoot = this.currRt.shadowRoot;
20684
+ if (shadowRoot) {
20685
+ const placeholder = shadowRoot.getElementsByType("richtext")[0];
20686
+ placeholder && shadowRoot.removeChild(placeholder);
20687
+ }
20688
+ const {
20689
+ textConfig: textConfig,
20690
+ editOptions: editOptions
20691
+ } = this.currRt.attribute;
20692
+ if (textConfig && textConfig.length) return;
20693
+ if (!editOptions || !editOptions.placeholder) return;
20694
+ const {
20695
+ placeholder: placeholder,
20696
+ placeholderColor = "rgba(0, 0, 0, 0.6)",
20697
+ placeholderFontFamily: placeholderFontFamily,
20698
+ placeholderFontSize: placeholderFontSize
20699
+ } = editOptions,
20700
+ shadow = this.currRt.shadowRoot || this.currRt.attachShadow();
20701
+ this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
20702
+ x: 0,
20703
+ y: 0,
20704
+ angle: 0,
20705
+ _debug_bounds: !1,
20706
+ textConfig: [{
20707
+ text: placeholder,
20708
+ fill: placeholderColor,
20709
+ fontFamily: placeholderFontFamily,
20710
+ fontSize: placeholderFontSize
20711
+ }]
20712
+ })), shadow.add(this.shadowPlaceHolder);
20713
+ }
20714
+ tryShowInputBounds() {
20715
+ if (!this.currRt || !this.focusing) return;
20716
+ const {
20717
+ editOptions = {}
20718
+ } = this.currRt.attribute,
20719
+ {
20720
+ boundsStrokeWhenInput: boundsStrokeWhenInput
20721
+ } = editOptions;
20722
+ if (!editOptions || !boundsStrokeWhenInput) return;
20723
+ const {
20724
+ attribute: attribute
20725
+ } = this.currRt,
20726
+ b = this.currRt.AABBBounds;
20727
+ let h = b.height();
20728
+ if (!attribute.textConfig.length && this.editLine) {
20729
+ const {
20730
+ points: points
20731
+ } = this.editLine.attribute;
20732
+ h = points[1].y - points[0].y;
20733
+ }
20734
+ this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
20735
+ x: 0,
20736
+ y: 0,
20737
+ width: b.width(),
20738
+ height: h,
20739
+ fill: !1,
20740
+ stroke: boundsStrokeWhenInput,
20741
+ lineWidth: 1,
20742
+ boundsMode: "empty",
20743
+ zIndex: -1
20744
+ });
20745
+ (this.currRt.shadowRoot || this.currRt.attachShadow()).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
20746
+ }
20747
+ trySyncPlaceholderToTextConfig() {
20748
+ if (!this.currRt) return;
20749
+ const {
20750
+ textConfig: textConfig,
20751
+ editOptions: editOptions
20752
+ } = this.currRt.attribute;
20753
+ if (textConfig && textConfig.length) return;
20754
+ if (!editOptions || !editOptions.placeholder) return;
20755
+ const {
20756
+ placeholder: placeholder
20757
+ } = editOptions;
20758
+ this.currRt.setAttributes({
20759
+ textConfig: [Object.assign({
20760
+ text: placeholder
20761
+ }, getDefaultCharacterConfig(this.currRt.attribute))]
20762
+ });
20763
+ }
20582
20764
  deactivate(context) {
20583
20765
  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);
20584
20766
  }
20585
- onFocus(e) {
20586
- this.deFocus(), this.currRt = e.target;
20767
+ onFocus(e, data) {
20768
+ this.deFocus(!1), this.focusing = !0;
20587
20769
  const target = e.target;
20588
- RichTextEditPlugin.tryUpdateRichtext(target);
20589
- const shadowRoot = target.attachShadow(),
20770
+ if (!target || "richtext" !== target.type) return;
20771
+ this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
20772
+ const shadowRoot = target.shadowRoot || target.attachShadow(),
20590
20773
  cache = target.getFrameCache();
20591
- if (!cache) return;
20592
- if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
20593
- shadowRootIdx: 1,
20594
- pickable: !1,
20595
- x: this.deltaX,
20596
- y: this.deltaY
20597
- }), !this.editLine) {
20598
- const line = createLine({
20599
- x: 0,
20600
- y: 0,
20601
- lineWidth: 1,
20602
- stroke: "black"
20603
- });
20604
- this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
20605
- const g = createGroup({
20606
- x: 0,
20607
- y: 0,
20608
- width: 0,
20609
- height: 0
20610
- });
20611
- this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20612
- }
20613
- const data = this.computedCursorPosByEvent(e, cache);
20614
- if (data) {
20615
- const {
20616
- x: x,
20617
- y1: y1,
20618
- y2: y2,
20619
- cursorIndex: cursorIndex
20620
- } = data;
20621
- this.startCursorPos = {
20622
- x: x,
20623
- y: (y1 + y2) / 2
20624
- }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20774
+ if (cache) {
20775
+ if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
20776
+ shadowRootIdx: 1,
20777
+ pickable: !1,
20778
+ x: this.deltaX,
20779
+ y: this.deltaY
20780
+ }), !this.editLine) {
20781
+ const line = createLine({
20782
+ x: 0,
20783
+ y: 0,
20784
+ lineWidth: 1,
20785
+ stroke: "black",
20786
+ boundsMode: "empty"
20787
+ });
20788
+ this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
20789
+ const g = createGroup({
20790
+ x: 0,
20791
+ y: 0,
20792
+ width: 0,
20793
+ height: 0,
20794
+ boundsMode: "empty"
20795
+ });
20796
+ this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20797
+ }
20798
+ if (data = data || this.computedCursorPosByEvent(e, cache)) {
20799
+ const {
20800
+ x: x,
20801
+ y1: y1,
20802
+ y2: y2,
20803
+ cursorIndex: cursorIndex
20804
+ } = data;
20805
+ this.startCursorPos = {
20806
+ x: x,
20807
+ y: (y1 + y2) / 2
20808
+ }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20809
+ } else {
20810
+ const x = 0,
20811
+ y1 = 0,
20812
+ y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
20813
+ textConfig: [{
20814
+ text: "a"
20815
+ }]
20816
+ })).height();
20817
+ this.startCursorPos = {
20818
+ x: x,
20819
+ y: (y1 + y2) / 2
20820
+ }, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
20821
+ }
20822
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
20625
20823
  }
20626
20824
  }
20825
+ offsetLineBgAndShadowBounds() {
20826
+ const rt = this.currRt,
20827
+ {
20828
+ textBaseline: textBaseline
20829
+ } = rt.attribute;
20830
+ let b,
20831
+ dy = 0,
20832
+ attr = rt.attribute;
20833
+ "middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
20834
+ textConfig: [{
20835
+ text: "a"
20836
+ }]
20837
+ })), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
20838
+ dy: dy
20839
+ }), this.editBg && this.editBg.setAttributes({
20840
+ dy: dy
20841
+ }), this.shadowBounds && this.shadowBounds.setAttributes({
20842
+ dy: dy
20843
+ });
20844
+ }
20627
20845
  deFocus() {
20846
+ let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20628
20847
  const target = this.currRt;
20629
- 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));
20848
+ if (!target) return;
20849
+ trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), target.detachShadow());
20850
+ const currRt = this.currRt;
20851
+ 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;
20852
+ const textConfig = currRt.attribute.textConfig;
20853
+ let lastConfig = textConfig[textConfig.length - 1],
20854
+ cleared = !1;
20855
+ for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
20856
+ cleared && currRt.setAttributes({
20857
+ textConfig: textConfig
20858
+ });
20630
20859
  }
20631
20860
  addAnimateToLine(line) {
20632
20861
  line.animates && line.animates.forEach(animate => {
20633
20862
  animate.stop(), animate.release();
20634
20863
  });
20635
- const animate = line.animate();
20636
- animate.setTimeline(this.timeline), animate.to({
20864
+ line.animate({
20865
+ timeline: this.timeline
20866
+ }).to({
20637
20867
  opacity: 1
20638
20868
  }, 10, "linear").wait(700).to({
20639
20869
  opacity: 0
@@ -20727,7 +20957,7 @@ class RichTextEditPlugin {
20727
20957
  y += line.height;
20728
20958
  }
20729
20959
  }
20730
- this.setCursorAndTextArea(currCursorData.x, currCursorData.y1 + 2, currCursorData.y2 - 2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20960
+ this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20731
20961
  }
20732
20962
  hideSelection() {
20733
20963
  this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
@@ -20783,7 +21013,18 @@ class RichTextEditPlugin {
20783
21013
  x: 0,
20784
21014
  y: 0
20785
21015
  };
20786
- return e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY, p1;
21016
+ e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
21017
+ const rt = this.currRt,
21018
+ {
21019
+ textBaseline: textBaseline
21020
+ } = rt.attribute;
21021
+ let dy = 0;
21022
+ if ("middle" === textBaseline) {
21023
+ dy = getRichTextBounds(rt.attribute).height() / 2;
21024
+ } else if ("bottom" === textBaseline) {
21025
+ dy = getRichTextBounds(rt.attribute).height();
21026
+ }
21027
+ return p1.y += dy, p1;
20787
21028
  }
20788
21029
  setCursorAndTextArea(x, y1, y2, rt) {
20789
21030
  this.editLine.setAttributes({
@@ -20807,7 +21048,7 @@ class RichTextEditPlugin {
20807
21048
  left: left,
20808
21049
  top: top
20809
21050
  } = this.pluginService.stage.window.getBoundingClientRect();
20810
- out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
21051
+ out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
20811
21052
  }
20812
21053
  computedCursorPosByEvent(e, cache) {
20813
21054
  const p1 = this.getEventPosition(e),
@@ -20818,9 +21059,8 @@ class RichTextEditPlugin {
20818
21059
  delta: delta
20819
21060
  } = this.getColumnAndIndexByLinePoint(lineInfo, p1);
20820
21061
  if (!columnInfo) return;
20821
- let y1 = lineInfo.top,
21062
+ const y1 = lineInfo.top,
20822
21063
  y2 = lineInfo.top + lineInfo.height;
20823
- y1 += 2, y2 -= 2;
20824
21064
  let cursorIndex = this.getColumnIndex(cache, columnInfo);
20825
21065
  cursorIndex += delta;
20826
21066
  return {
@@ -20839,21 +21079,36 @@ class RichTextEditPlugin {
20839
21079
  cache = rt.getFrameCache(),
20840
21080
  column = this.getColumnByIndex(cache, idx),
20841
21081
  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;
20842
- if (!column) return {
20843
- x: 0,
20844
- y1: 0,
20845
- y2: height
20846
- };
21082
+ if (!column) {
21083
+ if (!cache.lines.length) {
21084
+ return {
21085
+ x: 0,
21086
+ y1: 0,
21087
+ y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
21088
+ textConfig: [{
21089
+ text: "a"
21090
+ }]
21091
+ })).height()
21092
+ };
21093
+ }
21094
+ return {
21095
+ x: 0,
21096
+ y1: 0,
21097
+ y2: height
21098
+ };
21099
+ }
20847
21100
  const {
20848
- lineInfo: lineInfo,
20849
- columnInfo: columnInfo
20850
- } = column;
20851
- let y1 = lineInfo.top,
21101
+ lineInfo: lineInfo,
21102
+ columnInfo: columnInfo
21103
+ } = column,
21104
+ y1 = lineInfo.top,
20852
21105
  y2 = lineInfo.top + lineInfo.height;
20853
- return y1 += 2, y2 -= 2, {
21106
+ return {
20854
21107
  x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
20855
21108
  y1: y1,
20856
- y2: y2
21109
+ y2: y2,
21110
+ lineInfo: lineInfo,
21111
+ columnInfo: columnInfo
20857
21112
  };
20858
21113
  }
20859
21114
  getColumnByIndex(cache, index) {
@@ -20877,6 +21132,37 @@ class RichTextEditPlugin {
20877
21132
  let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20878
21133
  return this.currRt ? null != this.selectionStartCursorIdx && null != this.curCursorIdx ? new Selection(this.selectionStartCursorIdx, this.curCursorIdx, this.currRt) : defaultAll ? RichTextEditPlugin.CreateSelection(this.currRt) : null : null;
20879
21134
  }
21135
+ forceFocus(params) {
21136
+ const {
21137
+ target: target,
21138
+ e: e,
21139
+ cursorIndex: cursorIndex
21140
+ } = params;
21141
+ target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
21142
+ }
21143
+ _forceFocusByEvent(e) {
21144
+ this.handleEnter(e), this.handlePointerDown(e), this.handlePointerUp(e);
21145
+ }
21146
+ _forceFocusByCursorIndex(cursorIndex) {
21147
+ const richtext = this.currRt;
21148
+ if (!richtext) return;
21149
+ let x = 0,
21150
+ y1 = 0,
21151
+ y2 = 2,
21152
+ lineInfo = null,
21153
+ columnInfo = null;
21154
+ const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
21155
+ x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
21156
+ target: this.currRt
21157
+ }, {
21158
+ x: x,
21159
+ y1: y1,
21160
+ y2: y2,
21161
+ cursorIndex: cursorIndex,
21162
+ lineInfo: lineInfo,
21163
+ columnInfo: columnInfo
21164
+ });
21165
+ }
20880
21166
  }
20881
21167
 
20882
21168
  class DefaultGraphicAllocate {
@@ -21059,7 +21345,7 @@ const polygonModule = new ContainerModule(bind => {
21059
21345
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21060
21346
  });
21061
21347
 
21062
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21348
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21063
21349
  var d,
21064
21350
  c = arguments.length,
21065
21351
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21091,21 +21377,21 @@ let DefaultCanvasGlyphRender = class {
21091
21377
  }), context.highPerformanceRestore();
21092
21378
  }
21093
21379
  };
21094
- DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
21380
+ DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
21095
21381
 
21096
21382
  let loadGlyphModule = !1;
21097
21383
  const glyphModule = new ContainerModule(bind => {
21098
21384
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21099
21385
  });
21100
21386
 
21101
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21387
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21102
21388
  var d,
21103
21389
  c = arguments.length,
21104
21390
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21105
21391
  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);
21106
21392
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21107
21393
  },
21108
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
21394
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
21109
21395
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21110
21396
  };
21111
21397
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -21159,7 +21445,7 @@ let DefaultCanvasRichTextRender = class extends BaseRender {
21159
21445
  this._draw(richtext, richtextAttribute, !1, drawContext);
21160
21446
  }
21161
21447
  };
21162
- DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
21448
+ DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
21163
21449
 
21164
21450
  let loadRichtextModule = !1;
21165
21451
  const richtextModule = new ContainerModule(bind => {
@@ -21243,7 +21529,7 @@ class Base3dRender extends BaseRender {
21243
21529
  }
21244
21530
  }
21245
21531
 
21246
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21532
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21247
21533
  var d,
21248
21534
  c = arguments.length,
21249
21535
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21299,14 +21585,14 @@ let DefaultCanvasRect3dRender = class extends Base3dRender {
21299
21585
  this._draw(rect, rectAttribute, !1, drawContext);
21300
21586
  }
21301
21587
  };
21302
- DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
21588
+ DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
21303
21589
 
21304
21590
  let loadRect3dModule = !1;
21305
21591
  const rect3dModule = new ContainerModule(bind => {
21306
21592
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21307
21593
  });
21308
21594
 
21309
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21595
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21310
21596
  var d,
21311
21597
  c = arguments.length,
21312
21598
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21433,14 +21719,14 @@ let DefaultCanvasArc3DRender = class extends BaseRender {
21433
21719
  this._draw(arc, arcAttribute, !1, drawContext, params);
21434
21720
  }
21435
21721
  };
21436
- DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
21722
+ DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
21437
21723
 
21438
21724
  let loadArc3dModule = !1;
21439
21725
  const arc3dModule = new ContainerModule(bind => {
21440
21726
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21441
21727
  });
21442
21728
 
21443
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21729
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21444
21730
  var d,
21445
21731
  c = arguments.length,
21446
21732
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21477,7 +21763,7 @@ let DefaultCanvasPyramid3dRender = class extends Base3dRender {
21477
21763
  this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
21478
21764
  }
21479
21765
  };
21480
- DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
21766
+ DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
21481
21767
 
21482
21768
  let loadPyramid3dModule = !1;
21483
21769
  const pyramid3dModule = new ContainerModule(bind => {
@@ -23600,17 +23886,17 @@ class RoughBaseRender {
23600
23886
  }
23601
23887
  }
23602
23888
 
23603
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23889
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23604
23890
  var d,
23605
23891
  c = arguments.length,
23606
23892
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23607
23893
  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);
23608
23894
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23609
23895
  },
23610
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
23896
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
23611
23897
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23612
23898
  },
23613
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
23899
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
23614
23900
  return function (target, key) {
23615
23901
  decorator(target, key, paramIndex);
23616
23902
  };
@@ -23696,9 +23982,9 @@ let RoughCanvasArcRender = class extends RoughBaseRender {
23696
23982
  }), context.highPerformanceRestore();
23697
23983
  }
23698
23984
  };
23699
- RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
23985
+ RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
23700
23986
 
23701
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23987
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23702
23988
  var d,
23703
23989
  c = arguments.length,
23704
23990
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23776,19 +24062,19 @@ let RoughCanvasAreaRender = class extends DefaultCanvasAreaRender {
23776
24062
  }), context.highPerformanceRestore(), !1;
23777
24063
  }
23778
24064
  };
23779
- RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
24065
+ RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
23780
24066
 
23781
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24067
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23782
24068
  var d,
23783
24069
  c = arguments.length,
23784
24070
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23785
24071
  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);
23786
24072
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23787
24073
  },
23788
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
24074
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
23789
24075
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23790
24076
  },
23791
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
24077
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
23792
24078
  return function (target, key) {
23793
24079
  decorator(target, key, paramIndex);
23794
24080
  };
@@ -23825,9 +24111,9 @@ let RoughCanvasCircleRender = class extends RoughBaseRender {
23825
24111
  });
23826
24112
  }
23827
24113
  };
23828
- RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
24114
+ RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
23829
24115
 
23830
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24116
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23831
24117
  var d,
23832
24118
  c = arguments.length,
23833
24119
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23906,19 +24192,19 @@ let RoughCanvasLineRender = class extends DefaultCanvasLineRender {
23906
24192
  }), context.highPerformanceRestore(), !1;
23907
24193
  }
23908
24194
  };
23909
- RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
24195
+ RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
23910
24196
 
23911
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24197
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23912
24198
  var d,
23913
24199
  c = arguments.length,
23914
24200
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23915
24201
  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);
23916
24202
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23917
24203
  },
23918
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
24204
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
23919
24205
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23920
24206
  },
23921
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
24207
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
23922
24208
  return function (target, key) {
23923
24209
  decorator(target, key, paramIndex);
23924
24210
  };
@@ -23992,19 +24278,19 @@ let RoughCanvasPathRender = class extends RoughBaseRender {
23992
24278
  }), context.highPerformanceRestore();
23993
24279
  }
23994
24280
  };
23995
- RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
24281
+ RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
23996
24282
 
23997
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24283
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23998
24284
  var d,
23999
24285
  c = arguments.length,
24000
24286
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24001
24287
  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);
24002
24288
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24003
24289
  },
24004
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
24290
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24005
24291
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24006
24292
  },
24007
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
24293
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24008
24294
  return function (target, key) {
24009
24295
  decorator(target, key, paramIndex);
24010
24296
  };
@@ -24095,19 +24381,19 @@ let RoughCanvasRectRender = class extends RoughBaseRender {
24095
24381
  }), context.highPerformanceRestore();
24096
24382
  }
24097
24383
  };
24098
- RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
24384
+ RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
24099
24385
 
24100
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24386
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24101
24387
  var d,
24102
24388
  c = arguments.length,
24103
24389
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24104
24390
  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);
24105
24391
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24106
24392
  },
24107
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24393
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
24108
24394
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24109
24395
  },
24110
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24396
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
24111
24397
  return function (target, key) {
24112
24398
  decorator(target, key, paramIndex);
24113
24399
  };
@@ -24199,7 +24485,7 @@ let RoughCanvasSymbolRender = class extends BaseRender {
24199
24485
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
24200
24486
  }
24201
24487
  };
24202
- RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24488
+ RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24203
24489
 
24204
24490
  var _roughModule = new ContainerModule(bind => {
24205
24491
  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);
@@ -24222,7 +24508,6 @@ const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
24222
24508
  const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
24223
24509
  const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
24224
24510
  const CanvasImagePicker = Symbol.for("CanvasImagePicker");
24225
- const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
24226
24511
  const CanvasLinePicker = Symbol.for("CanvasLinePicker");
24227
24512
  const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
24228
24513
  const CanvasPathPicker = Symbol.for("CanvasPathPicker");
@@ -24363,11 +24648,9 @@ function jsx(type, config) {
24363
24648
  name: name,
24364
24649
  id: id,
24365
24650
  attribute: attribute,
24366
- stateProxy: stateProxy,
24367
- animation: animation,
24368
- timeline: timeline
24651
+ stateProxy: stateProxy
24369
24652
  } = _a,
24370
- props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
24653
+ props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
24371
24654
  let c = type;
24372
24655
  isString$1(type) && (c = graphicCreator[type]);
24373
24656
  const childrenList = [];
@@ -24376,13 +24659,7 @@ function jsx(type, config) {
24376
24659
  }
24377
24660
  children.length && flatten(1 === children.length ? children[0] : children, childrenList);
24378
24661
  const g = "Group" === c.name ? new c(attribute) : c(config);
24379
- if (parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), name && (g.name = name), isArray$1(animation)) {
24380
- const animate = g.animate();
24381
- timeline && animate.setTimeline(timeline), animation.forEach(item => {
24382
- animate[item[0]](...item.slice(1));
24383
- });
24384
- }
24385
- return g;
24662
+ return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
24386
24663
  }
24387
24664
  function parseToGraphic$1(g, childrenList, props) {
24388
24665
  let out,
@@ -24712,14 +24989,14 @@ class Gesture extends EventEmitter {
24712
24989
  }
24713
24990
  }
24714
24991
 
24715
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24992
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24716
24993
  var d,
24717
24994
  c = arguments.length,
24718
24995
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24719
24996
  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);
24720
24997
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24721
24998
  },
24722
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
24999
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
24723
25000
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24724
25001
  };
24725
25002
  const outP = [0, 0, 0],
@@ -25231,16 +25508,16 @@ let BrowserContext2d = class {
25231
25508
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
25232
25509
  }
25233
25510
  };
25234
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
25511
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
25235
25512
 
25236
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25513
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25237
25514
  var d,
25238
25515
  c = arguments.length,
25239
25516
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25240
25517
  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);
25241
25518
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25242
25519
  },
25243
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
25520
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
25244
25521
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25245
25522
  };
25246
25523
  let BrowserCanvas = class extends BaseCanvas {
@@ -25302,7 +25579,7 @@ let BrowserCanvas = class extends BaseCanvas {
25302
25579
  this._context.dpr = this._dpr;
25303
25580
  }
25304
25581
  };
25305
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
25582
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
25306
25583
 
25307
25584
  function createModule(CanvasConstructor, ContextConstructor) {
25308
25585
  return new ContainerModule(bind => {
@@ -25312,17 +25589,17 @@ function createModule(CanvasConstructor, ContextConstructor) {
25312
25589
 
25313
25590
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
25314
25591
 
25315
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25592
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25316
25593
  var d,
25317
25594
  c = arguments.length,
25318
25595
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25319
25596
  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);
25320
25597
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25321
25598
  },
25322
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
25599
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
25323
25600
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25324
25601
  },
25325
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
25602
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
25326
25603
  return function (target, key) {
25327
25604
  decorator(target, key, paramIndex);
25328
25605
  };
@@ -25373,9 +25650,9 @@ let DefaultCanvasPickerService = class extends DefaultPickService {
25373
25650
  return data;
25374
25651
  }
25375
25652
  };
25376
- 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);
25653
+ 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);
25377
25654
 
25378
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25655
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25379
25656
  var d,
25380
25657
  c = arguments.length,
25381
25658
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25390,7 +25667,7 @@ let DefaultCanvasGroupPicker = class {
25390
25667
  return !1;
25391
25668
  }
25392
25669
  };
25393
- DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
25670
+ DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
25394
25671
 
25395
25672
  const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
25396
25673
  m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -25406,14 +25683,14 @@ function loadCanvasPicker(c) {
25406
25683
  }
25407
25684
 
25408
25685
  var BrowserWindowHandlerContribution_1,
25409
- __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25686
+ __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25410
25687
  var d,
25411
25688
  c = arguments.length,
25412
25689
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25413
25690
  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);
25414
25691
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25415
25692
  },
25416
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
25693
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
25417
25694
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25418
25695
  };
25419
25696
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
@@ -25571,19 +25848,19 @@ let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = clas
25571
25848
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
25572
25849
  }
25573
25850
  };
25574
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
25851
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
25575
25852
  const browserWindowModule = new ContainerModule(bind => {
25576
25853
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
25577
25854
  });
25578
25855
 
25579
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25856
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25580
25857
  var d,
25581
25858
  c = arguments.length,
25582
25859
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25583
25860
  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);
25584
25861
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25585
25862
  },
25586
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
25863
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
25587
25864
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25588
25865
  },
25589
25866
  __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -25637,7 +25914,7 @@ class DynamicB {
25637
25914
  function createImageElement$1(src) {
25638
25915
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
25639
25916
  const img = document.createElement("img");
25640
- if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
25917
+ if (img.crossOrigin = "anonymous", isSvg) {
25641
25918
  const data = new Blob([src], {
25642
25919
  type: "image/svg+xml"
25643
25920
  });
@@ -25830,7 +26107,7 @@ let BrowserEnvContribution = class extends BaseEnvContribution {
25830
26107
  return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
25831
26108
  }
25832
26109
  };
25833
- BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], BrowserEnvContribution);
26110
+ BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], BrowserEnvContribution);
25834
26111
 
25835
26112
  const browserEnvModule = new ContainerModule(bind => {
25836
26113
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
@@ -25845,7 +26122,7 @@ function initBrowserEnv() {
25845
26122
  loadBrowserEnv(container);
25846
26123
  }
25847
26124
 
25848
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26125
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25849
26126
  var d,
25850
26127
  c = arguments.length,
25851
26128
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25890,16 +26167,16 @@ let FeishuContext2d = class extends BrowserContext2d {
25890
26167
  return null;
25891
26168
  }
25892
26169
  };
25893
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
26170
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
25894
26171
 
25895
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26172
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25896
26173
  var d,
25897
26174
  c = arguments.length,
25898
26175
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25899
26176
  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);
25900
26177
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25901
26178
  },
25902
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
26179
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
25903
26180
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25904
26181
  };
25905
26182
  let FeishuCanvas = class extends BaseCanvas {
@@ -25911,21 +26188,21 @@ let FeishuCanvas = class extends BaseCanvas {
25911
26188
  }
25912
26189
  release() {}
25913
26190
  };
25914
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
26191
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
25915
26192
 
25916
26193
  const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
25917
26194
 
25918
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26195
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25919
26196
  var d,
25920
26197
  c = arguments.length,
25921
26198
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25922
26199
  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);
25923
26200
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25924
26201
  },
25925
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
26202
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
25926
26203
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25927
26204
  },
25928
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
26205
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
25929
26206
  return function (target, key) {
25930
26207
  decorator(target, key, paramIndex);
25931
26208
  };
@@ -26061,22 +26338,22 @@ let FeishuWindowHandlerContribution = class extends BaseWindowHandlerContributio
26061
26338
  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();
26062
26339
  }
26063
26340
  };
26064
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26341
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26065
26342
  const feishuWindowModule = new ContainerModule(bind => {
26066
26343
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
26067
26344
  });
26068
26345
 
26069
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26346
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26070
26347
  var d,
26071
26348
  c = arguments.length,
26072
26349
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26073
26350
  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);
26074
26351
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26075
26352
  },
26076
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
26353
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
26077
26354
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26078
26355
  },
26079
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
26356
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26080
26357
  return function (target, key) {
26081
26358
  decorator(target, key, paramIndex);
26082
26359
  };
@@ -26107,7 +26384,7 @@ let DefaultMathPickerService = class extends DefaultPickService {
26107
26384
  } : null;
26108
26385
  }
26109
26386
  };
26110
- 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);
26387
+ 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);
26111
26388
 
26112
26389
  const m = new ContainerModule(bind => {
26113
26390
  m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -26144,17 +26421,17 @@ class PickerBase {
26144
26421
  }
26145
26422
  }
26146
26423
 
26147
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26424
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26148
26425
  var d,
26149
26426
  c = arguments.length,
26150
26427
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26151
26428
  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);
26152
26429
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26153
26430
  },
26154
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
26431
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
26155
26432
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26156
26433
  },
26157
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26434
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26158
26435
  return function (target, key) {
26159
26436
  decorator(target, key, paramIndex);
26160
26437
  };
@@ -26164,24 +26441,24 @@ let DefaultMathArcPicker = class extends PickerBase {
26164
26441
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
26165
26442
  }
26166
26443
  };
26167
- DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
26444
+ DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
26168
26445
 
26169
26446
  let loadArcPick$1 = !1;
26170
26447
  const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26171
26448
  loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
26172
26449
  });
26173
26450
 
26174
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26451
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26175
26452
  var d,
26176
26453
  c = arguments.length,
26177
26454
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26178
26455
  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);
26179
26456
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26180
26457
  },
26181
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
26458
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
26182
26459
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26183
26460
  },
26184
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26461
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26185
26462
  return function (target, key) {
26186
26463
  decorator(target, key, paramIndex);
26187
26464
  };
@@ -26191,24 +26468,24 @@ let DefaultMathAreaPicker = class extends PickerBase {
26191
26468
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
26192
26469
  }
26193
26470
  };
26194
- DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
26471
+ DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
26195
26472
 
26196
26473
  let loadAreaPick$1 = !1;
26197
26474
  const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26198
26475
  loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
26199
26476
  });
26200
26477
 
26201
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26478
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26202
26479
  var d,
26203
26480
  c = arguments.length,
26204
26481
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26205
26482
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
26206
26483
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26207
26484
  },
26208
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
26485
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
26209
26486
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26210
26487
  },
26211
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26488
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26212
26489
  return function (target, key) {
26213
26490
  decorator(target, key, paramIndex);
26214
26491
  };
@@ -26218,7 +26495,7 @@ let DefaultMathCirclePicker = class extends PickerBase {
26218
26495
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
26219
26496
  }
26220
26497
  };
26221
- DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
26498
+ DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
26222
26499
 
26223
26500
  let loadCirclePick$1 = !1;
26224
26501
  const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26249,17 +26526,17 @@ class GlyphPickerBase {
26249
26526
  }
26250
26527
  }
26251
26528
 
26252
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26529
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26253
26530
  var d,
26254
26531
  c = arguments.length,
26255
26532
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26256
26533
  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);
26257
26534
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26258
26535
  },
26259
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
26536
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
26260
26537
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26261
26538
  },
26262
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26539
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26263
26540
  return function (target, key) {
26264
26541
  decorator(target, key, paramIndex);
26265
26542
  };
@@ -26269,14 +26546,14 @@ let DefaultMathGlyphPicker = class extends GlyphPickerBase {
26269
26546
  super(), this.canvasRenderer = canvasRenderer;
26270
26547
  }
26271
26548
  };
26272
- DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26549
+ DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26273
26550
 
26274
26551
  let loadGlyphPick$1 = !1;
26275
26552
  const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26276
26553
  loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
26277
26554
  });
26278
26555
 
26279
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26556
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26280
26557
  var d,
26281
26558
  c = arguments.length,
26282
26559
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26294,24 +26571,24 @@ let DefaultMathImagePicker = class {
26294
26571
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
26295
26572
  }
26296
26573
  };
26297
- DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
26574
+ DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
26298
26575
 
26299
26576
  let loadImagePick$1 = !1;
26300
26577
  const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26301
26578
  loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26302
26579
  });
26303
26580
 
26304
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26581
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26305
26582
  var d,
26306
26583
  c = arguments.length,
26307
26584
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26308
26585
  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);
26309
26586
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26310
26587
  },
26311
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
26588
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
26312
26589
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26313
26590
  },
26314
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26591
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26315
26592
  return function (target, key) {
26316
26593
  decorator(target, key, paramIndex);
26317
26594
  };
@@ -26321,24 +26598,24 @@ let DefaultMathLinePicker = class extends PickerBase {
26321
26598
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
26322
26599
  }
26323
26600
  };
26324
- DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
26601
+ DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
26325
26602
 
26326
26603
  let loadLinePick$1 = !1;
26327
26604
  const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26328
26605
  loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
26329
26606
  });
26330
26607
 
26331
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26608
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26332
26609
  var d,
26333
26610
  c = arguments.length,
26334
26611
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26335
26612
  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);
26336
26613
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26337
26614
  },
26338
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
26615
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
26339
26616
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26340
26617
  },
26341
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26618
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26342
26619
  return function (target, key) {
26343
26620
  decorator(target, key, paramIndex);
26344
26621
  };
@@ -26348,24 +26625,24 @@ let DefaultMathPolygonPicker = class extends PickerBase {
26348
26625
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
26349
26626
  }
26350
26627
  };
26351
- DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26628
+ DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26352
26629
 
26353
26630
  let loadPolygonPick$1 = !1;
26354
26631
  const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26355
26632
  loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
26356
26633
  });
26357
26634
 
26358
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26635
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26359
26636
  var d,
26360
26637
  c = arguments.length,
26361
26638
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26362
26639
  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);
26363
26640
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26364
26641
  },
26365
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
26642
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
26366
26643
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26367
26644
  },
26368
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26645
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26369
26646
  return function (target, key) {
26370
26647
  decorator(target, key, paramIndex);
26371
26648
  };
@@ -26375,7 +26652,7 @@ let DefaultMathPathPicker = class extends PickerBase {
26375
26652
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
26376
26653
  }
26377
26654
  };
26378
- DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
26655
+ DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
26379
26656
 
26380
26657
  let loadPathPick$1 = !1;
26381
26658
  const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26430,17 +26707,17 @@ class RectPickerBase {
26430
26707
  }
26431
26708
  }
26432
26709
 
26433
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26710
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26434
26711
  var d,
26435
26712
  c = arguments.length,
26436
26713
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26437
26714
  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);
26438
26715
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26439
26716
  },
26440
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
26717
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
26441
26718
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26442
26719
  },
26443
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26720
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26444
26721
  return function (target, key) {
26445
26722
  decorator(target, key, paramIndex);
26446
26723
  };
@@ -26450,7 +26727,7 @@ let DefaultMathRectPicker = class extends RectPickerBase {
26450
26727
  super(), this.canvasRenderer = canvasRenderer;
26451
26728
  }
26452
26729
  };
26453
- DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
26730
+ DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
26454
26731
 
26455
26732
  let loadRectPick$1 = !1;
26456
26733
  const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26462,17 +26739,17 @@ const richTextMathPickModule = new ContainerModule((bind, unbind, isBound, rebin
26462
26739
  loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26463
26740
  });
26464
26741
 
26465
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26742
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26466
26743
  var d,
26467
26744
  c = arguments.length,
26468
26745
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26469
26746
  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);
26470
26747
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26471
26748
  },
26472
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
26749
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
26473
26750
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26474
26751
  },
26475
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26752
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
26476
26753
  return function (target, key) {
26477
26754
  decorator(target, key, paramIndex);
26478
26755
  };
@@ -26482,14 +26759,14 @@ let DefaultMathSymbolPicker = class extends PickerBase {
26482
26759
  super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
26483
26760
  }
26484
26761
  };
26485
- DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26762
+ DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26486
26763
 
26487
26764
  let loadSymbolPick$1 = !1;
26488
26765
  const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26489
26766
  loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
26490
26767
  });
26491
26768
 
26492
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26769
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26493
26770
  var d,
26494
26771
  c = arguments.length,
26495
26772
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26504,7 +26781,7 @@ let DefaultMathTextPicker = class {
26504
26781
  return !!text.AABBBounds.containsPoint(point);
26505
26782
  }
26506
26783
  };
26507
- DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
26784
+ DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
26508
26785
 
26509
26786
  let loadTextPick$1 = !1;
26510
26787
  const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26587,14 +26864,14 @@ class CanvasWrapEnableWH {
26587
26864
  }
26588
26865
  }
26589
26866
 
26590
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26867
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26591
26868
  var d,
26592
26869
  c = arguments.length,
26593
26870
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26594
26871
  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);
26595
26872
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26596
26873
  },
26597
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
26874
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
26598
26875
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26599
26876
  };
26600
26877
  function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
@@ -26676,7 +26953,7 @@ let FeishuEnvContribution = class extends BaseEnvContribution {
26676
26953
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
26677
26954
  }
26678
26955
  };
26679
- FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
26956
+ FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
26680
26957
 
26681
26958
  const feishuEnvModule = new ContainerModule(bind => {
26682
26959
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -26691,7 +26968,7 @@ function initFeishuEnv() {
26691
26968
  loadFeishuEnv(container);
26692
26969
  }
26693
26970
 
26694
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26971
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26695
26972
  var d,
26696
26973
  c = arguments.length,
26697
26974
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26752,16 +27029,16 @@ let LynxContext2d = class extends BrowserContext2d {
26752
27029
  }));
26753
27030
  }
26754
27031
  };
26755
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
27032
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
26756
27033
 
26757
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27034
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26758
27035
  var d,
26759
27036
  c = arguments.length,
26760
27037
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26761
27038
  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);
26762
27039
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26763
27040
  },
26764
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
27041
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
26765
27042
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26766
27043
  };
26767
27044
  let LynxCanvas = class extends BaseCanvas {
@@ -26777,19 +27054,19 @@ let LynxCanvas = class extends BaseCanvas {
26777
27054
  }
26778
27055
  release() {}
26779
27056
  };
26780
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
27057
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
26781
27058
 
26782
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27059
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26783
27060
  var d,
26784
27061
  c = arguments.length,
26785
27062
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26786
27063
  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);
26787
27064
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26788
27065
  },
26789
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
27066
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
26790
27067
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26791
27068
  },
26792
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
27069
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
26793
27070
  return function (target, key) {
26794
27071
  decorator(target, key, paramIndex);
26795
27072
  };
@@ -26927,21 +27204,21 @@ let LynxWindowHandlerContribution = class extends BaseWindowHandlerContribution
26927
27204
  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();
26928
27205
  }
26929
27206
  };
26930
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
27207
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
26931
27208
  const lynxWindowModule = new ContainerModule(bind => {
26932
27209
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
26933
27210
  });
26934
27211
 
26935
27212
  const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
26936
27213
 
26937
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27214
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26938
27215
  var d,
26939
27216
  c = arguments.length,
26940
27217
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26941
27218
  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);
26942
27219
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26943
27220
  },
26944
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
27221
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
26945
27222
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26946
27223
  };
26947
27224
  let ng = !1;
@@ -27051,7 +27328,7 @@ let LynxEnvContribution = class extends BaseEnvContribution {
27051
27328
  }
27052
27329
  release() {}
27053
27330
  };
27054
- LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
27331
+ LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
27055
27332
 
27056
27333
  const lynxEnvModule = new ContainerModule(bind => {
27057
27334
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -27066,14 +27343,14 @@ function initLynxEnv() {
27066
27343
  loadLynxEnv(container);
27067
27344
  }
27068
27345
 
27069
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27346
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27070
27347
  var d,
27071
27348
  c = arguments.length,
27072
27349
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27073
27350
  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);
27074
27351
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27075
27352
  },
27076
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
27353
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
27077
27354
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27078
27355
  };
27079
27356
  let NodeContext2d = class extends BrowserContext2d {
@@ -27085,16 +27362,16 @@ let NodeContext2d = class extends BrowserContext2d {
27085
27362
  }
27086
27363
  release() {}
27087
27364
  };
27088
- NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
27365
+ NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
27089
27366
 
27090
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27367
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27091
27368
  var d,
27092
27369
  c = arguments.length,
27093
27370
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27094
27371
  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);
27095
27372
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27096
27373
  },
27097
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
27374
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
27098
27375
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27099
27376
  };
27100
27377
  let NodeCanvas = class extends BaseCanvas {
@@ -27108,21 +27385,21 @@ let NodeCanvas = class extends BaseCanvas {
27108
27385
  this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
27109
27386
  }
27110
27387
  };
27111
- NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
27388
+ NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
27112
27389
 
27113
27390
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
27114
27391
 
27115
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27392
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27116
27393
  var d,
27117
27394
  c = arguments.length,
27118
27395
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27119
27396
  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);
27120
27397
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27121
27398
  },
27122
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
27399
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
27123
27400
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27124
27401
  },
27125
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
27402
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27126
27403
  return function (target, key) {
27127
27404
  decorator(target, key, paramIndex);
27128
27405
  };
@@ -27213,12 +27490,12 @@ let NodeWindowHandlerContribution = class extends BaseWindowHandlerContribution
27213
27490
  }
27214
27491
  clearViewBox(color) {}
27215
27492
  };
27216
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27493
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27217
27494
  const nodeWindowModule = new ContainerModule(bind => {
27218
27495
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
27219
27496
  });
27220
27497
 
27221
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27498
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27222
27499
  var d,
27223
27500
  c = arguments.length,
27224
27501
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27304,7 +27581,7 @@ let NodeEnvContribution = class extends BaseEnvContribution {
27304
27581
  release() {}
27305
27582
  createOffscreenCanvas(params) {}
27306
27583
  };
27307
- NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
27584
+ NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
27308
27585
 
27309
27586
  const nodeEnvModule = new ContainerModule(bind => {
27310
27587
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -27318,7 +27595,7 @@ function initNodeEnv() {
27318
27595
  loadNodeEnv(container);
27319
27596
  }
27320
27597
 
27321
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27598
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27322
27599
  var d,
27323
27600
  c = arguments.length,
27324
27601
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27407,16 +27684,16 @@ let TaroContext2d = class extends BrowserContext2d {
27407
27684
  return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
27408
27685
  }
27409
27686
  };
27410
- TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
27687
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
27411
27688
 
27412
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27689
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27413
27690
  var d,
27414
27691
  c = arguments.length,
27415
27692
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27416
27693
  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);
27417
27694
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27418
27695
  },
27419
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
27696
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
27420
27697
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27421
27698
  };
27422
27699
  let TaroCanvas = class extends BaseCanvas {
@@ -27428,21 +27705,21 @@ let TaroCanvas = class extends BaseCanvas {
27428
27705
  }
27429
27706
  release() {}
27430
27707
  };
27431
- TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
27708
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
27432
27709
 
27433
27710
  const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
27434
27711
 
27435
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27712
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27436
27713
  var d,
27437
27714
  c = arguments.length,
27438
27715
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27439
27716
  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);
27440
27717
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27441
27718
  },
27442
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
27719
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
27443
27720
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27444
27721
  },
27445
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27722
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
27446
27723
  return function (target, key) {
27447
27724
  decorator(target, key, paramIndex);
27448
27725
  };
@@ -27588,19 +27865,19 @@ let TaroWindowHandlerContribution = class extends BaseWindowHandlerContribution
27588
27865
  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();
27589
27866
  }
27590
27867
  };
27591
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27868
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27592
27869
  const taroWindowModule = new ContainerModule(bind => {
27593
27870
  bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
27594
27871
  });
27595
27872
 
27596
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27873
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27597
27874
  var d,
27598
27875
  c = arguments.length,
27599
27876
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27600
27877
  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);
27601
27878
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27602
27879
  },
27603
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
27880
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
27604
27881
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27605
27882
  };
27606
27883
  function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
@@ -27697,7 +27974,7 @@ let TaroEnvContribution = class extends BaseEnvContribution {
27697
27974
  }
27698
27975
  release() {}
27699
27976
  };
27700
- TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
27977
+ TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
27701
27978
 
27702
27979
  const taroEnvModule = new ContainerModule(bind => {
27703
27980
  taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
@@ -27712,7 +27989,7 @@ function initTaroEnv() {
27712
27989
  loadTaroEnv(container);
27713
27990
  }
27714
27991
 
27715
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27992
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27716
27993
  var d,
27717
27994
  c = arguments.length,
27718
27995
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27725,16 +28002,16 @@ let WxContext2d = class extends BrowserContext2d {
27725
28002
  return null;
27726
28003
  }
27727
28004
  };
27728
- WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
28005
+ WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
27729
28006
 
27730
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28007
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27731
28008
  var d,
27732
28009
  c = arguments.length,
27733
28010
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27734
28011
  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);
27735
28012
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27736
28013
  },
27737
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
28014
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
27738
28015
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27739
28016
  };
27740
28017
  let WxCanvas = class extends BaseCanvas {
@@ -27746,21 +28023,21 @@ let WxCanvas = class extends BaseCanvas {
27746
28023
  }
27747
28024
  release() {}
27748
28025
  };
27749
- WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
28026
+ WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
27750
28027
 
27751
28028
  const wxCanvasModule = createModule(WxCanvas, WxContext2d);
27752
28029
 
27753
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28030
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27754
28031
  var d,
27755
28032
  c = arguments.length,
27756
28033
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27757
28034
  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);
27758
28035
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27759
28036
  },
27760
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
28037
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
27761
28038
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27762
28039
  },
27763
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
28040
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
27764
28041
  return function (target, key) {
27765
28042
  decorator(target, key, paramIndex);
27766
28043
  };
@@ -27897,19 +28174,19 @@ let WxWindowHandlerContribution = class extends BaseWindowHandlerContribution {
27897
28174
  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();
27898
28175
  }
27899
28176
  };
27900
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
28177
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
27901
28178
  const wxWindowModule = new ContainerModule(bind => {
27902
28179
  bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
27903
28180
  });
27904
28181
 
27905
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28182
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27906
28183
  var d,
27907
28184
  c = arguments.length,
27908
28185
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27909
28186
  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);
27910
28187
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27911
28188
  },
27912
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
28189
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
27913
28190
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27914
28191
  },
27915
28192
  __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28023,7 +28300,7 @@ let WxEnvContribution = class extends BaseEnvContribution {
28023
28300
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28024
28301
  }
28025
28302
  };
28026
- WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
28303
+ WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
28027
28304
 
28028
28305
  const wxEnvModule = new ContainerModule(bind => {
28029
28306
  wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
@@ -28051,7 +28328,7 @@ function initAllEnv() {
28051
28328
  loadAllEnv(container);
28052
28329
  }
28053
28330
 
28054
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28331
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28055
28332
  var d,
28056
28333
  c = arguments.length,
28057
28334
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28059,16 +28336,16 @@ var __decorate$q = undefined && undefined.__decorate || function (decorators, ta
28059
28336
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28060
28337
  };
28061
28338
  let TTContext2d = class extends FeishuContext2d {};
28062
- TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
28339
+ TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
28063
28340
 
28064
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28341
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28065
28342
  var d,
28066
28343
  c = arguments.length,
28067
28344
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28068
28345
  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);
28069
28346
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28070
28347
  },
28071
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
28348
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
28072
28349
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28073
28350
  };
28074
28351
  let TTCanvas = class extends BaseCanvas {
@@ -28080,21 +28357,21 @@ let TTCanvas = class extends BaseCanvas {
28080
28357
  }
28081
28358
  release() {}
28082
28359
  };
28083
- TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
28360
+ TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
28084
28361
 
28085
28362
  const ttCanvasModule = createModule(TTCanvas, TTContext2d);
28086
28363
 
28087
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28364
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28088
28365
  var d,
28089
28366
  c = arguments.length,
28090
28367
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28091
28368
  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);
28092
28369
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28093
28370
  },
28094
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
28371
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
28095
28372
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28096
28373
  },
28097
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
28374
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28098
28375
  return function (target, key) {
28099
28376
  decorator(target, key, paramIndex);
28100
28377
  };
@@ -28230,19 +28507,19 @@ let TTWindowHandlerContribution = class extends BaseWindowHandlerContribution {
28230
28507
  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();
28231
28508
  }
28232
28509
  };
28233
- TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
28510
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
28234
28511
  const ttWindowModule = new ContainerModule(bind => {
28235
28512
  bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
28236
28513
  });
28237
28514
 
28238
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28515
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28239
28516
  var d,
28240
28517
  c = arguments.length,
28241
28518
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28242
28519
  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);
28243
28520
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28244
28521
  },
28245
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
28522
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
28246
28523
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28247
28524
  },
28248
28525
  __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28352,7 +28629,7 @@ let TTEnvContribution = class extends BaseEnvContribution {
28352
28629
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28353
28630
  }
28354
28631
  };
28355
- TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
28632
+ TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
28356
28633
 
28357
28634
  const ttEnvModule = new ContainerModule(bind => {
28358
28635
  ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
@@ -28367,7 +28644,7 @@ function initTTEnv() {
28367
28644
  loadTTEnv(container);
28368
28645
  }
28369
28646
 
28370
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28647
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28371
28648
  var d,
28372
28649
  c = arguments.length,
28373
28650
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28452,16 +28729,16 @@ let HarmonyContext2d = class extends BrowserContext2d {
28452
28729
  }
28453
28730
  draw() {}
28454
28731
  };
28455
- HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
28732
+ HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
28456
28733
 
28457
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28734
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28458
28735
  var d,
28459
28736
  c = arguments.length,
28460
28737
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28461
28738
  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);
28462
28739
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28463
28740
  },
28464
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
28741
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
28465
28742
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28466
28743
  };
28467
28744
  let HarmonyCanvas = class extends BaseCanvas {
@@ -28474,19 +28751,19 @@ let HarmonyCanvas = class extends BaseCanvas {
28474
28751
  resize(width, height) {}
28475
28752
  release() {}
28476
28753
  };
28477
- HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
28754
+ HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
28478
28755
 
28479
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28756
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28480
28757
  var d,
28481
28758
  c = arguments.length,
28482
28759
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28483
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);
28484
28761
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28485
28762
  },
28486
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
28763
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
28487
28764
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28488
28765
  },
28489
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28766
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
28490
28767
  return function (target, key) {
28491
28768
  decorator(target, key, paramIndex);
28492
28769
  };
@@ -28623,21 +28900,21 @@ let HarmonyWindowHandlerContribution = class extends BaseWindowHandlerContributi
28623
28900
  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();
28624
28901
  }
28625
28902
  };
28626
- HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28903
+ HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28627
28904
  const harmonyWindowModule = new ContainerModule(bind => {
28628
28905
  bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
28629
28906
  });
28630
28907
 
28631
28908
  const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
28632
28909
 
28633
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28910
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28634
28911
  var d,
28635
28912
  c = arguments.length,
28636
28913
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28637
28914
  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);
28638
28915
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28639
28916
  },
28640
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
28917
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
28641
28918
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28642
28919
  };
28643
28920
  function createCanvas(width, height, id) {
@@ -28718,7 +28995,7 @@ let HarmonyEnvContribution = class extends BaseEnvContribution {
28718
28995
  }
28719
28996
  release() {}
28720
28997
  };
28721
- HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
28998
+ HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
28722
28999
 
28723
29000
  const harmonyEnvModule = new ContainerModule(bind => {
28724
29001
  harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
@@ -28733,17 +29010,17 @@ function initHarmonyEnv() {
28733
29010
  loadHarmonyEnv(container);
28734
29011
  }
28735
29012
 
28736
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29013
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28737
29014
  var d,
28738
29015
  c = arguments.length,
28739
29016
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28740
29017
  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);
28741
29018
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28742
29019
  },
28743
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
29020
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
28744
29021
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28745
29022
  },
28746
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
29023
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
28747
29024
  return function (target, key) {
28748
29025
  decorator(target, key, paramIndex);
28749
29026
  };
@@ -28753,24 +29030,24 @@ let DefaultCanvasArcPicker = class extends PickerBase {
28753
29030
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
28754
29031
  }
28755
29032
  };
28756
- DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
29033
+ DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
28757
29034
 
28758
29035
  let loadArcPick = !1;
28759
29036
  const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28760
29037
  loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
28761
29038
  });
28762
29039
 
28763
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29040
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28764
29041
  var d,
28765
29042
  c = arguments.length,
28766
29043
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28767
29044
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28768
29045
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28769
29046
  },
28770
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
29047
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
28771
29048
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28772
29049
  },
28773
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
29050
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
28774
29051
  return function (target, key) {
28775
29052
  decorator(target, key, paramIndex);
28776
29053
  };
@@ -28780,7 +29057,7 @@ let DefaultCanvasRectPicker = class extends RectPickerBase {
28780
29057
  super(), this.canvasRenderer = canvasRenderer;
28781
29058
  }
28782
29059
  };
28783
- DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
29060
+ DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
28784
29061
 
28785
29062
  let loadRectPick = !1;
28786
29063
  const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28822,17 +29099,17 @@ class BaseLinePicker extends BaseRender {
28822
29099
  }
28823
29100
  }
28824
29101
 
28825
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29102
+ var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28826
29103
  var d,
28827
29104
  c = arguments.length,
28828
29105
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28829
29106
  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);
28830
29107
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28831
29108
  },
28832
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
29109
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
28833
29110
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28834
29111
  },
28835
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
29112
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
28836
29113
  return function (target, key) {
28837
29114
  decorator(target, key, paramIndex);
28838
29115
  };
@@ -28842,24 +29119,24 @@ let DefaultCanvasLinePicker = class extends BaseLinePicker {
28842
29119
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
28843
29120
  }
28844
29121
  };
28845
- DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
29122
+ DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
28846
29123
 
28847
29124
  let loadLinePick = !1;
28848
29125
  const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28849
29126
  loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
28850
29127
  });
28851
29128
 
28852
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29129
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28853
29130
  var d,
28854
29131
  c = arguments.length,
28855
29132
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28856
29133
  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);
28857
29134
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28858
29135
  },
28859
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
29136
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
28860
29137
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28861
29138
  },
28862
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
29139
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
28863
29140
  return function (target, key) {
28864
29141
  decorator(target, key, paramIndex);
28865
29142
  };
@@ -28869,7 +29146,7 @@ let DefaultCanvasAreaPicker = class extends PickerBase {
28869
29146
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
28870
29147
  }
28871
29148
  };
28872
- DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
29149
+ DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
28873
29150
 
28874
29151
  let loadAreaPick = !1;
28875
29152
  const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28903,17 +29180,17 @@ class Base3dPicker extends BaseRender {
28903
29180
  }
28904
29181
  }
28905
29182
 
28906
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29183
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28907
29184
  var d,
28908
29185
  c = arguments.length,
28909
29186
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28910
29187
  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);
28911
29188
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28912
29189
  },
28913
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
29190
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
28914
29191
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28915
29192
  },
28916
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
29193
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
28917
29194
  return function (target, key) {
28918
29195
  decorator(target, key, paramIndex);
28919
29196
  };
@@ -28958,24 +29235,24 @@ let DefaultCanvasSymbolPicker = class extends Base3dPicker {
28958
29235
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
28959
29236
  }
28960
29237
  };
28961
- DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
29238
+ DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
28962
29239
 
28963
29240
  let loadSymbolPick = !1;
28964
29241
  const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28965
29242
  loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
28966
29243
  });
28967
29244
 
28968
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29245
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28969
29246
  var d,
28970
29247
  c = arguments.length,
28971
29248
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28972
29249
  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);
28973
29250
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28974
29251
  },
28975
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
29252
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
28976
29253
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28977
29254
  },
28978
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
29255
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
28979
29256
  return function (target, key) {
28980
29257
  decorator(target, key, paramIndex);
28981
29258
  };
@@ -28985,24 +29262,24 @@ let DefaultCanvasCirclePicker = class extends PickerBase {
28985
29262
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
28986
29263
  }
28987
29264
  };
28988
- DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
29265
+ DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
28989
29266
 
28990
29267
  let loadCirclePick = !1;
28991
29268
  const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28992
29269
  loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
28993
29270
  });
28994
29271
 
28995
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29272
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28996
29273
  var d,
28997
29274
  c = arguments.length,
28998
29275
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28999
29276
  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);
29000
29277
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29001
29278
  },
29002
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
29279
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29003
29280
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29004
29281
  },
29005
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
29282
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29006
29283
  return function (target, key) {
29007
29284
  decorator(target, key, paramIndex);
29008
29285
  };
@@ -29055,24 +29332,24 @@ let DefaultCanvasTextPicker = class extends Base3dPicker {
29055
29332
  }, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
29056
29333
  }
29057
29334
  };
29058
- DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29335
+ DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29059
29336
 
29060
29337
  let loadTextPick = !1;
29061
29338
  const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29062
29339
  loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
29063
29340
  });
29064
29341
 
29065
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29342
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29066
29343
  var d,
29067
29344
  c = arguments.length,
29068
29345
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29069
29346
  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);
29070
29347
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29071
29348
  },
29072
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29349
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29073
29350
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29074
29351
  },
29075
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29352
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29076
29353
  return function (target, key) {
29077
29354
  decorator(target, key, paramIndex);
29078
29355
  };
@@ -29082,24 +29359,24 @@ let DefaultCanvasPathPicker = class extends BaseLinePicker {
29082
29359
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
29083
29360
  }
29084
29361
  };
29085
- DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29362
+ DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29086
29363
 
29087
29364
  let loadPathPick = !1;
29088
29365
  const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29089
29366
  loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
29090
29367
  });
29091
29368
 
29092
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29369
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29093
29370
  var d,
29094
29371
  c = arguments.length,
29095
29372
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29096
29373
  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);
29097
29374
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29098
29375
  },
29099
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29376
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29100
29377
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29101
29378
  },
29102
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29379
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29103
29380
  return function (target, key) {
29104
29381
  decorator(target, key, paramIndex);
29105
29382
  };
@@ -29109,24 +29386,24 @@ let DefaultCanvasPolygonPicker = class extends PickerBase {
29109
29386
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
29110
29387
  }
29111
29388
  };
29112
- DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29389
+ DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29113
29390
 
29114
29391
  let loadPolygonPick = !1;
29115
29392
  const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29116
29393
  loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
29117
29394
  });
29118
29395
 
29119
- var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29396
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29120
29397
  var d,
29121
29398
  c = arguments.length,
29122
29399
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29123
29400
  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);
29124
29401
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29125
29402
  },
29126
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29403
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29127
29404
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29128
29405
  },
29129
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29406
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29130
29407
  return function (target, key) {
29131
29408
  decorator(target, key, paramIndex);
29132
29409
  };
@@ -29136,24 +29413,24 @@ let DefaultCanvasGlyphPicker = class extends GlyphPickerBase {
29136
29413
  super(), this.canvasRenderer = canvasRenderer;
29137
29414
  }
29138
29415
  };
29139
- DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29416
+ DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29140
29417
 
29141
29418
  let loadGlyphPick = !1;
29142
29419
  const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29143
29420
  loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
29144
29421
  });
29145
29422
 
29146
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29423
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29147
29424
  var d,
29148
29425
  c = arguments.length,
29149
29426
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29150
29427
  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);
29151
29428
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29152
29429
  },
29153
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29430
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29154
29431
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29155
29432
  },
29156
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29433
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29157
29434
  return function (target, key) {
29158
29435
  decorator(target, key, paramIndex);
29159
29436
  };
@@ -29166,14 +29443,14 @@ let DefaultCanvasRichTextPicker = class {
29166
29443
  return !!richtext.AABBBounds.containsPoint(point);
29167
29444
  }
29168
29445
  };
29169
- DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29446
+ DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29170
29447
 
29171
29448
  let loadRichtextPick = !1;
29172
29449
  const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29173
29450
  loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
29174
29451
  });
29175
29452
 
29176
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29453
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29177
29454
  var d,
29178
29455
  c = arguments.length,
29179
29456
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29191,24 +29468,24 @@ let DefaultCanvasImagePicker = class {
29191
29468
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
29192
29469
  }
29193
29470
  };
29194
- DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
29471
+ DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
29195
29472
 
29196
29473
  let loadImagePick = !1;
29197
29474
  const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29198
29475
  loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
29199
29476
  });
29200
29477
 
29201
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29478
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29202
29479
  var d,
29203
29480
  c = arguments.length,
29204
29481
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29205
29482
  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);
29206
29483
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29207
29484
  },
29208
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29485
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29209
29486
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29210
29487
  },
29211
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29488
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29212
29489
  return function (target, key) {
29213
29490
  decorator(target, key, paramIndex);
29214
29491
  };
@@ -29218,24 +29495,24 @@ let DefaultCanvasRect3dPicker = class extends Base3dPicker {
29218
29495
  super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
29219
29496
  }
29220
29497
  };
29221
- DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29498
+ DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29222
29499
 
29223
29500
  let loadRect3dPick = !1;
29224
29501
  const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29225
29502
  loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
29226
29503
  });
29227
29504
 
29228
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29505
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29229
29506
  var d,
29230
29507
  c = arguments.length,
29231
29508
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29232
29509
  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);
29233
29510
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29234
29511
  },
29235
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29512
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29236
29513
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29237
29514
  },
29238
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29515
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29239
29516
  return function (target, key) {
29240
29517
  decorator(target, key, paramIndex);
29241
29518
  };
@@ -29245,24 +29522,24 @@ let DefaultCanvasArc3dPicker = class extends Base3dPicker {
29245
29522
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
29246
29523
  }
29247
29524
  };
29248
- DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29525
+ DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29249
29526
 
29250
29527
  let loadArc3dPick = !1;
29251
29528
  const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29252
29529
  loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
29253
29530
  });
29254
29531
 
29255
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29532
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29256
29533
  var d,
29257
29534
  c = arguments.length,
29258
29535
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29259
29536
  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);
29260
29537
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29261
29538
  },
29262
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29539
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29263
29540
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29264
29541
  },
29265
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29542
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29266
29543
  return function (target, key) {
29267
29544
  decorator(target, key, paramIndex);
29268
29545
  };
@@ -29272,724 +29549,15 @@ let DefaultCanvasPyramid3dPicker = class extends Base3dPicker {
29272
29549
  super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
29273
29550
  }
29274
29551
  };
29275
- DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29552
+ DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29276
29553
 
29277
29554
  let loadPyramid3dPick = !1;
29278
29555
  const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29279
29556
  loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
29280
29557
  });
29281
29558
 
29282
- var lib$1 = {};
29283
-
29284
- var gif = {};
29285
-
29286
- var lib = {};
29287
-
29288
- Object.defineProperty(lib, "__esModule", {
29289
- value: true
29290
- });
29291
- lib.loop = lib.conditional = lib.parse = void 0;
29292
- var parse = function parse(stream, schema) {
29293
- var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
29294
- var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
29295
- if (Array.isArray(schema)) {
29296
- schema.forEach(function (partSchema) {
29297
- return parse(stream, partSchema, result, parent);
29298
- });
29299
- } else if (typeof schema === 'function') {
29300
- schema(stream, result, parent, parse);
29301
- } else {
29302
- var key = Object.keys(schema)[0];
29303
- if (Array.isArray(schema[key])) {
29304
- parent[key] = {};
29305
- parse(stream, schema[key], result, parent[key]);
29306
- } else {
29307
- parent[key] = schema[key](stream, result, parent, parse);
29308
- }
29309
- }
29310
- return result;
29311
- };
29312
- lib.parse = parse;
29313
- var conditional = function conditional(schema, conditionFunc) {
29314
- return function (stream, result, parent, parse) {
29315
- if (conditionFunc(stream, result, parent)) {
29316
- parse(stream, schema, result, parent);
29317
- }
29318
- };
29319
- };
29320
- lib.conditional = conditional;
29321
- var loop = function loop(schema, continueFunc) {
29322
- return function (stream, result, parent, parse) {
29323
- var arr = [];
29324
- var lastStreamPos = stream.pos;
29325
- while (continueFunc(stream, result, parent)) {
29326
- var newParent = {};
29327
- 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
29328
- // it falls into infinite recursion, null check to avoid the same
29329
-
29330
- if (stream.pos === lastStreamPos) {
29331
- break;
29332
- }
29333
- lastStreamPos = stream.pos;
29334
- arr.push(newParent);
29335
- }
29336
- return arr;
29337
- };
29338
- };
29339
- lib.loop = loop;
29340
-
29341
- var uint8 = {};
29342
-
29343
- Object.defineProperty(uint8, "__esModule", {
29344
- value: true
29345
- });
29346
- uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
29347
-
29348
- // Default stream and parsers for Uint8TypedArray data type
29349
- var buildStream = function buildStream(uint8Data) {
29350
- return {
29351
- data: uint8Data,
29352
- pos: 0
29353
- };
29354
- };
29355
- uint8.buildStream = buildStream;
29356
- var readByte = function readByte() {
29357
- return function (stream) {
29358
- return stream.data[stream.pos++];
29359
- };
29360
- };
29361
- uint8.readByte = readByte;
29362
- var peekByte = function peekByte() {
29363
- var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
29364
- return function (stream) {
29365
- return stream.data[stream.pos + offset];
29366
- };
29367
- };
29368
- uint8.peekByte = peekByte;
29369
- var readBytes = function readBytes(length) {
29370
- return function (stream) {
29371
- return stream.data.subarray(stream.pos, stream.pos += length);
29372
- };
29373
- };
29374
- uint8.readBytes = readBytes;
29375
- var peekBytes = function peekBytes(length) {
29376
- return function (stream) {
29377
- return stream.data.subarray(stream.pos, stream.pos + length);
29378
- };
29379
- };
29380
- uint8.peekBytes = peekBytes;
29381
- var readString = function readString(length) {
29382
- return function (stream) {
29383
- return Array.from(readBytes(length)(stream)).map(function (value) {
29384
- return String.fromCharCode(value);
29385
- }).join('');
29386
- };
29387
- };
29388
- uint8.readString = readString;
29389
- var readUnsigned = function readUnsigned(littleEndian) {
29390
- return function (stream) {
29391
- var bytes = readBytes(2)(stream);
29392
- return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
29393
- };
29394
- };
29395
- uint8.readUnsigned = readUnsigned;
29396
- var readArray = function readArray(byteSize, totalOrFunc) {
29397
- return function (stream, result, parent) {
29398
- var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
29399
- var parser = readBytes(byteSize);
29400
- var arr = new Array(total);
29401
- for (var i = 0; i < total; i++) {
29402
- arr[i] = parser(stream);
29403
- }
29404
- return arr;
29405
- };
29406
- };
29407
- uint8.readArray = readArray;
29408
- var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
29409
- var result = 0;
29410
- for (var i = 0; i < length; i++) {
29411
- result += bits[startIndex + i] && Math.pow(2, length - i - 1);
29412
- }
29413
- return result;
29414
- };
29415
- var readBits = function readBits(schema) {
29416
- return function (stream) {
29417
- var _byte = readByte()(stream); // convert the byte to bit array
29418
-
29419
- var bits = new Array(8);
29420
- for (var i = 0; i < 8; i++) {
29421
- bits[7 - i] = !!(_byte & 1 << i);
29422
- } // convert the bit array to values based on the schema
29423
-
29424
- return Object.keys(schema).reduce(function (res, key) {
29425
- var def = schema[key];
29426
- if (def.length) {
29427
- res[key] = subBitsTotal(bits, def.index, def.length);
29428
- } else {
29429
- res[key] = bits[def.index];
29430
- }
29431
- return res;
29432
- }, {});
29433
- };
29434
- };
29435
- uint8.readBits = readBits;
29436
-
29437
- (function (exports) {
29438
-
29439
- Object.defineProperty(exports, "__esModule", {
29440
- value: true
29441
- });
29442
- exports["default"] = void 0;
29443
- var _ = lib;
29444
- var _uint = uint8;
29445
-
29446
- // a set of 0x00 terminated subblocks
29447
- var subBlocksSchema = {
29448
- blocks: function blocks(stream) {
29449
- var terminator = 0x00;
29450
- var chunks = [];
29451
- var streamSize = stream.data.length;
29452
- var total = 0;
29453
- for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
29454
- // size becomes undefined for some case when file is corrupted and terminator is not proper
29455
- // null check to avoid recursion
29456
- if (!size) break; // catch corrupted files with no terminator
29457
-
29458
- if (stream.pos + size >= streamSize) {
29459
- var availableSize = streamSize - stream.pos;
29460
- chunks.push((0, _uint.readBytes)(availableSize)(stream));
29461
- total += availableSize;
29462
- break;
29463
- }
29464
- chunks.push((0, _uint.readBytes)(size)(stream));
29465
- total += size;
29466
- }
29467
- var result = new Uint8Array(total);
29468
- var offset = 0;
29469
- for (var i = 0; i < chunks.length; i++) {
29470
- result.set(chunks[i], offset);
29471
- offset += chunks[i].length;
29472
- }
29473
- return result;
29474
- }
29475
- }; // global control extension
29476
-
29477
- var gceSchema = (0, _.conditional)({
29478
- gce: [{
29479
- codes: (0, _uint.readBytes)(2)
29480
- }, {
29481
- byteSize: (0, _uint.readByte)()
29482
- }, {
29483
- extras: (0, _uint.readBits)({
29484
- future: {
29485
- index: 0,
29486
- length: 3
29487
- },
29488
- disposal: {
29489
- index: 3,
29490
- length: 3
29491
- },
29492
- userInput: {
29493
- index: 6
29494
- },
29495
- transparentColorGiven: {
29496
- index: 7
29497
- }
29498
- })
29499
- }, {
29500
- delay: (0, _uint.readUnsigned)(true)
29501
- }, {
29502
- transparentColorIndex: (0, _uint.readByte)()
29503
- }, {
29504
- terminator: (0, _uint.readByte)()
29505
- }]
29506
- }, function (stream) {
29507
- var codes = (0, _uint.peekBytes)(2)(stream);
29508
- return codes[0] === 0x21 && codes[1] === 0xf9;
29509
- }); // image pipeline block
29510
-
29511
- var imageSchema = (0, _.conditional)({
29512
- image: [{
29513
- code: (0, _uint.readByte)()
29514
- }, {
29515
- descriptor: [{
29516
- left: (0, _uint.readUnsigned)(true)
29517
- }, {
29518
- top: (0, _uint.readUnsigned)(true)
29519
- }, {
29520
- width: (0, _uint.readUnsigned)(true)
29521
- }, {
29522
- height: (0, _uint.readUnsigned)(true)
29523
- }, {
29524
- lct: (0, _uint.readBits)({
29525
- exists: {
29526
- index: 0
29527
- },
29528
- interlaced: {
29529
- index: 1
29530
- },
29531
- sort: {
29532
- index: 2
29533
- },
29534
- future: {
29535
- index: 3,
29536
- length: 2
29537
- },
29538
- size: {
29539
- index: 5,
29540
- length: 3
29541
- }
29542
- })
29543
- }]
29544
- }, (0, _.conditional)({
29545
- lct: (0, _uint.readArray)(3, function (stream, result, parent) {
29546
- return Math.pow(2, parent.descriptor.lct.size + 1);
29547
- })
29548
- }, function (stream, result, parent) {
29549
- return parent.descriptor.lct.exists;
29550
- }), {
29551
- data: [{
29552
- minCodeSize: (0, _uint.readByte)()
29553
- }, subBlocksSchema]
29554
- }]
29555
- }, function (stream) {
29556
- return (0, _uint.peekByte)()(stream) === 0x2c;
29557
- }); // plain text block
29558
-
29559
- var textSchema = (0, _.conditional)({
29560
- text: [{
29561
- codes: (0, _uint.readBytes)(2)
29562
- }, {
29563
- blockSize: (0, _uint.readByte)()
29564
- }, {
29565
- preData: function preData(stream, result, parent) {
29566
- return (0, _uint.readBytes)(parent.text.blockSize)(stream);
29567
- }
29568
- }, subBlocksSchema]
29569
- }, function (stream) {
29570
- var codes = (0, _uint.peekBytes)(2)(stream);
29571
- return codes[0] === 0x21 && codes[1] === 0x01;
29572
- }); // application block
29573
-
29574
- var applicationSchema = (0, _.conditional)({
29575
- application: [{
29576
- codes: (0, _uint.readBytes)(2)
29577
- }, {
29578
- blockSize: (0, _uint.readByte)()
29579
- }, {
29580
- id: function id(stream, result, parent) {
29581
- return (0, _uint.readString)(parent.blockSize)(stream);
29582
- }
29583
- }, subBlocksSchema]
29584
- }, function (stream) {
29585
- var codes = (0, _uint.peekBytes)(2)(stream);
29586
- return codes[0] === 0x21 && codes[1] === 0xff;
29587
- }); // comment block
29588
-
29589
- var commentSchema = (0, _.conditional)({
29590
- comment: [{
29591
- codes: (0, _uint.readBytes)(2)
29592
- }, subBlocksSchema]
29593
- }, function (stream) {
29594
- var codes = (0, _uint.peekBytes)(2)(stream);
29595
- return codes[0] === 0x21 && codes[1] === 0xfe;
29596
- });
29597
- var schema = [{
29598
- header: [{
29599
- signature: (0, _uint.readString)(3)
29600
- }, {
29601
- version: (0, _uint.readString)(3)
29602
- }]
29603
- }, {
29604
- lsd: [{
29605
- width: (0, _uint.readUnsigned)(true)
29606
- }, {
29607
- height: (0, _uint.readUnsigned)(true)
29608
- }, {
29609
- gct: (0, _uint.readBits)({
29610
- exists: {
29611
- index: 0
29612
- },
29613
- resolution: {
29614
- index: 1,
29615
- length: 3
29616
- },
29617
- sort: {
29618
- index: 4
29619
- },
29620
- size: {
29621
- index: 5,
29622
- length: 3
29623
- }
29624
- })
29625
- }, {
29626
- backgroundColorIndex: (0, _uint.readByte)()
29627
- }, {
29628
- pixelAspectRatio: (0, _uint.readByte)()
29629
- }]
29630
- }, (0, _.conditional)({
29631
- gct: (0, _uint.readArray)(3, function (stream, result) {
29632
- return Math.pow(2, result.lsd.gct.size + 1);
29633
- })
29634
- }, function (stream, result) {
29635
- return result.lsd.gct.exists;
29636
- }),
29637
- // content frames
29638
- {
29639
- frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
29640
- var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
29641
- // of an ext or image block to avoid infinite loops
29642
- //var terminator = 0x3B;
29643
- //return nextCode !== terminator;
29644
-
29645
- return nextCode === 0x21 || nextCode === 0x2c;
29646
- })
29647
- }];
29648
- var _default = schema;
29649
- exports["default"] = _default;
29650
- })(gif);
29651
-
29652
- var deinterlace$1 = {};
29653
-
29654
- Object.defineProperty(deinterlace$1, "__esModule", {
29655
- value: true
29656
- });
29657
- deinterlace$1.deinterlace = void 0;
29658
-
29659
- /**
29660
- * Deinterlace function from https://github.com/shachaf/jsgif
29661
- */
29662
- var deinterlace = function deinterlace(pixels, width) {
29663
- var newPixels = new Array(pixels.length);
29664
- var rows = pixels.length / width;
29665
- var cpRow = function cpRow(toRow, fromRow) {
29666
- var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
29667
- newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
29668
- }; // See appendix E.
29669
-
29670
- var offsets = [0, 4, 2, 1];
29671
- var steps = [8, 8, 4, 2];
29672
- var fromRow = 0;
29673
- for (var pass = 0; pass < 4; pass++) {
29674
- for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
29675
- cpRow(toRow, fromRow);
29676
- fromRow++;
29677
- }
29678
- }
29679
- return newPixels;
29680
- };
29681
- deinterlace$1.deinterlace = deinterlace;
29682
-
29683
- var lzw$1 = {};
29684
-
29685
- Object.defineProperty(lzw$1, "__esModule", {
29686
- value: true
29687
- });
29688
- lzw$1.lzw = void 0;
29689
-
29690
- /**
29691
- * javascript port of java LZW decompression
29692
- * Original java author url: https://gist.github.com/devunwired/4479231
29693
- */
29694
- var lzw = function lzw(minCodeSize, data, pixelCount) {
29695
- var MAX_STACK_SIZE = 4096;
29696
- var nullCode = -1;
29697
- var npix = pixelCount;
29698
- var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
29699
- var dstPixels = new Array(pixelCount);
29700
- var prefix = new Array(MAX_STACK_SIZE);
29701
- var suffix = new Array(MAX_STACK_SIZE);
29702
- var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
29703
-
29704
- data_size = minCodeSize;
29705
- clear = 1 << data_size;
29706
- end_of_information = clear + 1;
29707
- available = clear + 2;
29708
- old_code = nullCode;
29709
- code_size = data_size + 1;
29710
- code_mask = (1 << code_size) - 1;
29711
- for (code = 0; code < clear; code++) {
29712
- prefix[code] = 0;
29713
- suffix[code] = code;
29714
- } // Decode GIF pixel stream.
29715
-
29716
- var datum, bits, first, top, pi, bi;
29717
- datum = bits = first = top = pi = bi = 0;
29718
- for (i = 0; i < npix;) {
29719
- if (top === 0) {
29720
- if (bits < code_size) {
29721
- // get the next byte
29722
- datum += data[bi] << bits;
29723
- bits += 8;
29724
- bi++;
29725
- continue;
29726
- } // Get the next code.
29727
-
29728
- code = datum & code_mask;
29729
- datum >>= code_size;
29730
- bits -= code_size; // Interpret the code
29731
-
29732
- if (code > available || code == end_of_information) {
29733
- break;
29734
- }
29735
- if (code == clear) {
29736
- // Reset decoder.
29737
- code_size = data_size + 1;
29738
- code_mask = (1 << code_size) - 1;
29739
- available = clear + 2;
29740
- old_code = nullCode;
29741
- continue;
29742
- }
29743
- if (old_code == nullCode) {
29744
- pixelStack[top++] = suffix[code];
29745
- old_code = code;
29746
- first = code;
29747
- continue;
29748
- }
29749
- in_code = code;
29750
- if (code == available) {
29751
- pixelStack[top++] = first;
29752
- code = old_code;
29753
- }
29754
- while (code > clear) {
29755
- pixelStack[top++] = suffix[code];
29756
- code = prefix[code];
29757
- }
29758
- first = suffix[code] & 0xff;
29759
- pixelStack[top++] = first; // add a new string to the table, but only if space is available
29760
- // if not, just continue with current table until a clear code is found
29761
- // (deferred clear code implementation as per GIF spec)
29762
-
29763
- if (available < MAX_STACK_SIZE) {
29764
- prefix[available] = old_code;
29765
- suffix[available] = first;
29766
- available++;
29767
- if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
29768
- code_size++;
29769
- code_mask += available;
29770
- }
29771
- }
29772
- old_code = in_code;
29773
- } // Pop a pixel off the pixel stack.
29774
-
29775
- top--;
29776
- dstPixels[pi++] = pixelStack[top];
29777
- i++;
29778
- }
29779
- for (i = pi; i < npix; i++) {
29780
- dstPixels[i] = 0; // clear missing pixels
29781
- }
29782
-
29783
- return dstPixels;
29784
- };
29785
- lzw$1.lzw = lzw;
29786
-
29787
- Object.defineProperty(lib$1, "__esModule", {
29788
- value: true
29789
- });
29790
- var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
29791
- var _gif = _interopRequireDefault(gif);
29792
- var _jsBinarySchemaParser = lib;
29793
- var _uint = uint8;
29794
- var _deinterlace = deinterlace$1;
29795
- var _lzw = lzw$1;
29796
- function _interopRequireDefault(obj) {
29797
- return obj && obj.__esModule ? obj : {
29798
- "default": obj
29799
- };
29800
- }
29801
- var parseGIF = function parseGIF(arrayBuffer) {
29802
- var byteData = new Uint8Array(arrayBuffer);
29803
- return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
29804
- };
29805
- var parseGIF_1 = lib$1.parseGIF = parseGIF;
29806
- var generatePatch = function generatePatch(image) {
29807
- var totalPixels = image.pixels.length;
29808
- var patchData = new Uint8ClampedArray(totalPixels * 4);
29809
- for (var i = 0; i < totalPixels; i++) {
29810
- var pos = i * 4;
29811
- var colorIndex = image.pixels[i];
29812
- var color = image.colorTable[colorIndex] || [0, 0, 0];
29813
- patchData[pos] = color[0];
29814
- patchData[pos + 1] = color[1];
29815
- patchData[pos + 2] = color[2];
29816
- patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
29817
- }
29818
- return patchData;
29819
- };
29820
- var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
29821
- if (!frame.image) {
29822
- console.warn('gif frame does not have associated image.');
29823
- return;
29824
- }
29825
- var image = frame.image; // get the number of pixels
29826
-
29827
- var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
29828
-
29829
- var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
29830
-
29831
- if (image.descriptor.lct.interlaced) {
29832
- pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
29833
- }
29834
- var resultImage = {
29835
- pixels: pixels,
29836
- dims: {
29837
- top: frame.image.descriptor.top,
29838
- left: frame.image.descriptor.left,
29839
- width: frame.image.descriptor.width,
29840
- height: frame.image.descriptor.height
29841
- }
29842
- }; // color table
29843
-
29844
- if (image.descriptor.lct && image.descriptor.lct.exists) {
29845
- resultImage.colorTable = image.lct;
29846
- } else {
29847
- resultImage.colorTable = gct;
29848
- } // add per frame relevant gce information
29849
-
29850
- if (frame.gce) {
29851
- resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
29852
-
29853
- resultImage.disposalType = frame.gce.extras.disposal; // transparency
29854
-
29855
- if (frame.gce.extras.transparentColorGiven) {
29856
- resultImage.transparentIndex = frame.gce.transparentColorIndex;
29857
- }
29858
- } // create canvas usable imagedata if desired
29859
-
29860
- if (buildImagePatch) {
29861
- resultImage.patch = generatePatch(resultImage);
29862
- }
29863
- return resultImage;
29864
- };
29865
- lib$1.decompressFrame = decompressFrame;
29866
- var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
29867
- return parsedGif.frames.filter(function (f) {
29868
- return f.image;
29869
- }).map(function (f) {
29870
- return decompressFrame(f, parsedGif.gct, buildImagePatches);
29871
- });
29872
- };
29873
- decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
29874
-
29875
- const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29876
29559
  const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29877
29560
 
29878
- class GifImage extends Image$1 {
29879
- constructor(params) {
29880
- super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
29881
- }
29882
- loadGif() {
29883
- if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
29884
- const gif = parseGIF_1(res),
29885
- frames = decompressFrames_1(gif, !0);
29886
- this.renderGIF(frames);
29887
- }).catch(e => {
29888
- console.error("Gif load error: ", e);
29889
- });else if (this.attribute.gifImage instanceof ArrayBuffer) {
29890
- const gif = parseGIF_1(this.attribute.gifImage),
29891
- frames = decompressFrames_1(gif, !0);
29892
- this.renderGIF(frames);
29893
- }
29894
- }
29895
- renderGIF(frames) {
29896
- 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();
29897
- const animation = this.animate();
29898
- this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
29899
- }
29900
- renderFrame(context, x, y) {
29901
- const frame = this.loadedFrames[this.frameIndex || 0];
29902
- 2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
29903
- const diff = new Date().getTime() - this.lastTime;
29904
- frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
29905
- }
29906
- drawPatch(frame) {
29907
- const dims = frame.dims;
29908
- 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);
29909
- }
29910
- manipulate(context, x, y) {
29911
- context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
29912
- }
29913
- setAttribute(key, value, forceUpdateTag, context) {
29914
- super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
29915
- }
29916
- setAttributes(params, forceUpdateTag, context) {
29917
- super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
29918
- }
29919
- }
29920
- function createGifImage(attributes) {
29921
- return new GifImage(attributes);
29922
- }
29923
-
29924
- var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29925
- var d,
29926
- c = arguments.length,
29927
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29928
- 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);
29929
- return c > 3 && r && Object.defineProperty(target, key, r), r;
29930
- };
29931
- let DefaultCanvasGifImagePicker = class {
29932
- constructor() {
29933
- this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
29934
- }
29935
- contains(gifImage, point, params) {
29936
- const {
29937
- pickContext: pickContext
29938
- } = null != params ? params : {};
29939
- return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
29940
- }
29941
- };
29942
- DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
29943
-
29944
- let loadGifImagePick = !1;
29945
- const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29946
- loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
29947
- });
29948
-
29949
- var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29950
- var d,
29951
- c = arguments.length,
29952
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29953
- 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);
29954
- return c > 3 && r && Object.defineProperty(target, key, r), r;
29955
- },
29956
- __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29957
- if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29958
- },
29959
- __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29960
- return function (target, key) {
29961
- decorator(target, key, paramIndex);
29962
- };
29963
- };
29964
- let DefaultCanvasGifImageRender = class extends DefaultCanvasImageRender {
29965
- constructor(imageRenderContribitions) {
29966
- super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
29967
- }
29968
- draw(image, renderService, drawContext) {
29969
- const {
29970
- context: context
29971
- } = renderService.drawParams;
29972
- if (!context) return;
29973
- const imageAttribute = getTheme(image).image;
29974
- this._draw(image, imageAttribute, !1, drawContext);
29975
- }
29976
- };
29977
- DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
29978
- class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
29979
- constructor() {
29980
- super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
29981
- }
29982
- drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
29983
- image.renderFrame && image.playing && image.renderFrame(context, x, y);
29984
- }
29985
- }
29986
- const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
29987
-
29988
- let loadGifImageModule = !1;
29989
- const gifImageModule = new ContainerModule(bind => {
29990
- loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
29991
- });
29992
-
29993
29561
  var lottie = {exports: {}};
29994
29562
 
29995
29563
  (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:{}}
@@ -30891,7 +30459,7 @@ const registerWrapText = _registerWrapText;
30891
30459
 
30892
30460
  const roughModule = _roughModule;
30893
30461
 
30894
- const version = "0.22.0-vstory.1";
30462
+ const version = "0.22.0-vstory.3";
30895
30463
  preLoadAllModule();
30896
30464
  if (isBrowserEnv()) {
30897
30465
  loadBrowserEnv(container);
@@ -30924,4 +30492,4 @@ registerReactAttributePlugin();
30924
30492
  registerDirectionalLight();
30925
30493
  registerOrthoCamera();
30926
30494
 
30927
- export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GifImage, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGifImage, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, gifImageCanvasPickModule, gifImageModule, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, identityMat4, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lottieCanvasPickModule, lottieModule, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, rotateZ, roughModule, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
30495
+ export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, identityMat4, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lottieCanvasPickModule, lottieModule, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, rotateZ, roughModule, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };