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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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,7 @@ 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
+ draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13911
13919
  let baseline = top + ascent,
13912
13920
  text = this.text,
13913
13921
  left = this.left + deltaLeft;
@@ -13935,12 +13943,34 @@ class Paragraph {
13935
13943
  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
13944
  const fillStyle = ctx.fillStyle,
13937
13945
  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;
13946
+ ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
13947
+ const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
13948
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
13939
13949
  }
13940
13950
  const {
13941
13951
  lineWidth = 1
13942
13952
  } = 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();
13953
+ 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) {
13954
+ if (this.character.underline) {
13955
+ const top = 1 + baseline,
13956
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13957
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13958
+ }
13959
+ if (this.character.lineThrough) {
13960
+ const top = 1 + baseline - this.ascent / 2,
13961
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13962
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13963
+ }
13964
+ } else if ("underline" === this.character.textDecoration) {
13965
+ const top = 1 + baseline,
13966
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13967
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13968
+ } else if ("line-through" === this.character.textDecoration) {
13969
+ const top = 1 + baseline - this.ascent / 2,
13970
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13971
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13972
+ }
13973
+ "vertical" === direction && ctx.restore();
13944
13974
  }
13945
13975
  getWidthWithEllips(direction) {
13946
13976
  let text = this.text;
@@ -14174,7 +14204,7 @@ class Line {
14174
14204
  x2: this.left + this.actualWidth,
14175
14205
  y2: this.top + this.height
14176
14206
  };
14177
- applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
14207
+ applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14178
14208
  });
14179
14209
  }
14180
14210
  getWidthWithEllips(ellipsis) {
@@ -14341,13 +14371,15 @@ class RichText extends Graphic {
14341
14371
  }), tc;
14342
14372
  }
14343
14373
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
14374
+ var _a, _b;
14344
14375
  const {
14345
14376
  width = richtextTheme.width,
14346
14377
  height = richtextTheme.height,
14347
14378
  maxWidth = richtextTheme.maxWidth,
14348
14379
  maxHeight = richtextTheme.maxHeight,
14349
14380
  textAlign = richtextTheme.textAlign,
14350
- textBaseline = richtextTheme.textBaseline
14381
+ textBaseline = richtextTheme.textBaseline,
14382
+ editOptions: editOptions
14351
14383
  } = attribute;
14352
14384
  if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
14353
14385
  const frameCache = this.getFrameCache(),
@@ -14359,6 +14391,7 @@ class RichText extends Graphic {
14359
14391
  contentHeight = height || actualHeight || 0;
14360
14392
  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
14393
  }
14394
+ 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
14395
  let deltaY = 0;
14363
14396
  switch (textBaseline) {
14364
14397
  case "top":
@@ -15336,17 +15369,17 @@ class BaseRender {
15336
15369
  }
15337
15370
  }
15338
15371
 
15339
- var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15372
+ var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15340
15373
  var d,
15341
15374
  c = arguments.length,
15342
15375
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15343
15376
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
15377
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15345
15378
  },
15346
- __metadata$1e = undefined && undefined.__metadata || function (k, v) {
15379
+ __metadata$1d = undefined && undefined.__metadata || function (k, v) {
15347
15380
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15348
15381
  },
15349
- __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
15382
+ __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
15350
15383
  return function (target, key) {
15351
15384
  decorator(target, key, paramIndex);
15352
15385
  };
@@ -15443,7 +15476,7 @@ let DefaultBaseInteractiveRenderContribution = class {
15443
15476
  });
15444
15477
  }
15445
15478
  };
15446
- DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15479
+ DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15447
15480
 
15448
15481
  function formatRatio(ratio) {
15449
15482
  return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
@@ -15791,7 +15824,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
15791
15824
  return !edgeCb && path.closePath(), path;
15792
15825
  }
15793
15826
 
15794
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15827
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15795
15828
  var d,
15796
15829
  c = arguments.length,
15797
15830
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15856,7 +15889,7 @@ let SplitRectBeforeRenderContribution = class {
15856
15889
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
15857
15890
  }
15858
15891
  };
15859
- SplitRectBeforeRenderContribution = __decorate$1D([injectable()], SplitRectBeforeRenderContribution);
15892
+ SplitRectBeforeRenderContribution = __decorate$1B([injectable()], SplitRectBeforeRenderContribution);
15860
15893
  let SplitRectAfterRenderContribution = class {
15861
15894
  constructor() {
15862
15895
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -15893,7 +15926,7 @@ let SplitRectAfterRenderContribution = class {
15893
15926
  }
15894
15927
  }
15895
15928
  };
15896
- SplitRectAfterRenderContribution = __decorate$1D([injectable()], SplitRectAfterRenderContribution);
15929
+ SplitRectAfterRenderContribution = __decorate$1B([injectable()], SplitRectAfterRenderContribution);
15897
15930
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
15898
15931
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
15899
15932
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -15902,8 +15935,8 @@ class DefaultImageRenderContribution extends DefaultRectRenderContribution {
15902
15935
  constructor() {
15903
15936
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
15904
15937
  }
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);
15938
+ drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15939
+ return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15907
15940
  }
15908
15941
  }
15909
15942
  const defaultImageRenderContribution = new DefaultImageRenderContribution();
@@ -15998,17 +16031,17 @@ class DefaultAreaTextureRenderContribution extends DefaultBaseTextureRenderContr
15998
16031
  }
15999
16032
  }
16000
16033
 
16001
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16034
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16002
16035
  var d,
16003
16036
  c = arguments.length,
16004
16037
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16005
16038
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16039
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16007
16040
  },
16008
- __metadata$1d = undefined && undefined.__metadata || function (k, v) {
16041
+ __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16009
16042
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16010
16043
  },
16011
- __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
16044
+ __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16012
16045
  return function (target, key) {
16013
16046
  decorator(target, key, paramIndex);
16014
16047
  };
@@ -16172,19 +16205,19 @@ let DefaultCanvasArcRender = class extends BaseRender {
16172
16205
  this._draw(arc, arcAttribute, !1, drawContext, params);
16173
16206
  }
16174
16207
  };
16175
- DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultCanvasArcRender);
16208
+ DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasArcRender);
16176
16209
 
16177
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16210
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16178
16211
  var d,
16179
16212
  c = arguments.length,
16180
16213
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16181
16214
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16215
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16183
16216
  },
16184
- __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16217
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16185
16218
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16186
16219
  },
16187
- __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16220
+ __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16188
16221
  return function (target, key) {
16189
16222
  decorator(target, key, paramIndex);
16190
16223
  };
@@ -16225,7 +16258,7 @@ let DefaultCanvasCircleRender = class extends BaseRender {
16225
16258
  this._draw(circle, circleAttribute, !1, drawContext, params);
16226
16259
  }
16227
16260
  };
16228
- DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasCircleRender);
16261
+ DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasCircleRender);
16229
16262
 
16230
16263
  function drawSegItem(ctx, curve, endPercent, params) {
16231
16264
  if (!curve.p1) return;
@@ -16349,7 +16382,7 @@ function drawIncrementalAreaSegments(path, lastSeg, segments, params) {
16349
16382
  });
16350
16383
  }
16351
16384
 
16352
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16385
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16353
16386
  var d,
16354
16387
  c = arguments.length,
16355
16388
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16510,7 +16543,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
16510
16543
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
16511
16544
  }
16512
16545
  };
16513
- DefaultCanvasLineRender = __decorate$1A([injectable()], DefaultCanvasLineRender);
16546
+ DefaultCanvasLineRender = __decorate$1y([injectable()], DefaultCanvasLineRender);
16514
16547
 
16515
16548
  function drawAreaSegments(path, segPath, percent, params) {
16516
16549
  var _a;
@@ -16639,17 +16672,17 @@ function drawAreaBlock(path, topList, bottomList, params) {
16639
16672
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
16640
16673
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16641
16674
 
16642
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16675
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16643
16676
  var d,
16644
16677
  c = arguments.length,
16645
16678
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16646
16679
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16680
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16648
16681
  },
16649
- __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16682
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16650
16683
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16651
16684
  },
16652
- __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16685
+ __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16653
16686
  return function (target, key) {
16654
16687
  decorator(target, key, paramIndex);
16655
16688
  };
@@ -16892,22 +16925,22 @@ let DefaultCanvasAreaRender = class extends BaseRender {
16892
16925
  })(), !1;
16893
16926
  }
16894
16927
  };
16895
- DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasAreaRender);
16928
+ DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasAreaRender);
16896
16929
 
16897
16930
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
16898
16931
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16899
16932
 
16900
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16933
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16901
16934
  var d,
16902
16935
  c = arguments.length,
16903
16936
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16904
16937
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16938
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16906
16939
  },
16907
- __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16940
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
16908
16941
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16909
16942
  },
16910
- __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16943
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
16911
16944
  return function (target, key) {
16912
16945
  decorator(target, key, paramIndex);
16913
16946
  };
@@ -16951,19 +16984,19 @@ let DefaultCanvasPathRender = class extends BaseRender {
16951
16984
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
16952
16985
  }
16953
16986
  };
16954
- DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasPathRender);
16987
+ DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasPathRender);
16955
16988
 
16956
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16989
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16957
16990
  var d,
16958
16991
  c = arguments.length,
16959
16992
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16960
16993
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16994
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16962
16995
  },
16963
- __metadata$19 = undefined && undefined.__metadata || function (k, v) {
16996
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
16964
16997
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16965
16998
  },
16966
- __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
16999
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
16967
17000
  return function (target, key) {
16968
17001
  decorator(target, key, paramIndex);
16969
17002
  };
@@ -17023,19 +17056,19 @@ let DefaultCanvasRectRender = class extends BaseRender {
17023
17056
  this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
17024
17057
  }
17025
17058
  };
17026
- DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasRectRender);
17059
+ DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasRectRender);
17027
17060
 
17028
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17061
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17029
17062
  var d,
17030
17063
  c = arguments.length,
17031
17064
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17032
17065
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17066
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17034
17067
  },
17035
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
17068
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17036
17069
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17037
17070
  },
17038
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
17071
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17039
17072
  return function (target, key) {
17040
17073
  decorator(target, key, paramIndex);
17041
17074
  };
@@ -17106,7 +17139,7 @@ let DefaultCanvasSymbolRender = class extends BaseRender {
17106
17139
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
17107
17140
  }
17108
17141
  };
17109
- DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
17142
+ DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
17110
17143
 
17111
17144
  class DefaultBoundsAllocate {
17112
17145
  constructor() {
@@ -17195,17 +17228,17 @@ class DefaultTextBackgroundRenderContribution extends DefaultBaseBackgroundRende
17195
17228
  }
17196
17229
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
17197
17230
 
17198
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17231
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17199
17232
  var d,
17200
17233
  c = arguments.length,
17201
17234
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17202
17235
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17236
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17204
17237
  },
17205
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17238
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17206
17239
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17207
17240
  },
17208
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17241
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17209
17242
  return function (target, key) {
17210
17243
  decorator(target, key, paramIndex);
17211
17244
  };
@@ -17344,9 +17377,9 @@ let DefaultCanvasTextRender = class extends BaseRender {
17344
17377
  }
17345
17378
  }
17346
17379
  };
17347
- DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasTextRender);
17380
+ DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasTextRender);
17348
17381
 
17349
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17382
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17350
17383
  var d,
17351
17384
  c = arguments.length,
17352
17385
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17354,7 +17387,7 @@ var __decorate$1u = undefined && undefined.__decorate || function (decorators, t
17354
17387
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17355
17388
  };
17356
17389
  let AbstractGraphicRender = class {};
17357
- AbstractGraphicRender = __decorate$1u([injectable()], AbstractGraphicRender);
17390
+ AbstractGraphicRender = __decorate$1s([injectable()], AbstractGraphicRender);
17358
17391
 
17359
17392
  function drawPolygon(path, points, x, y) {
17360
17393
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -17410,17 +17443,17 @@ function getProportionPoint(point, segment, length, dx, dy) {
17410
17443
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
17411
17444
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
17412
17445
 
17413
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17446
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17414
17447
  var d,
17415
17448
  c = arguments.length,
17416
17449
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17417
17450
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17451
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17419
17452
  },
17420
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17453
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17421
17454
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17422
17455
  },
17423
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17456
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17424
17457
  return function (target, key) {
17425
17458
  decorator(target, key, paramIndex);
17426
17459
  };
@@ -17461,19 +17494,19 @@ let DefaultCanvasPolygonRender = class extends BaseRender {
17461
17494
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
17462
17495
  }
17463
17496
  };
17464
- DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
17497
+ DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
17465
17498
 
17466
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17499
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17467
17500
  var d,
17468
17501
  c = arguments.length,
17469
17502
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17470
17503
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17504
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17472
17505
  },
17473
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17506
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17474
17507
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17475
17508
  },
17476
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17509
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17477
17510
  return function (target, key) {
17478
17511
  decorator(target, key, paramIndex);
17479
17512
  };
@@ -17568,19 +17601,19 @@ let DefaultCanvasGroupRender = class {
17568
17601
  }) : clip ? context.restore() : context.highPerformanceRestore();
17569
17602
  }
17570
17603
  };
17571
- DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17604
+ DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17572
17605
 
17573
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17606
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17574
17607
  var d,
17575
17608
  c = arguments.length,
17576
17609
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17577
17610
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17611
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17579
17612
  },
17580
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17613
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17581
17614
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17582
17615
  },
17583
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17616
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17584
17617
  return function (target, key) {
17585
17618
  decorator(target, key, paramIndex);
17586
17619
  };
@@ -17648,7 +17681,7 @@ let DefaultCanvasImageRender = class extends BaseRender {
17648
17681
  this._draw(image, imageAttribute, !1, drawContext);
17649
17682
  }
17650
17683
  };
17651
- DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasImageRender);
17684
+ DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultCanvasImageRender);
17652
17685
 
17653
17686
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
17654
17687
  const ArcRender = Symbol.for("ArcRender");
@@ -17716,14 +17749,14 @@ const draw3dItem = (context, graphic, callback, output) => {
17716
17749
  return result;
17717
17750
  };
17718
17751
 
17719
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17752
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17720
17753
  var d,
17721
17754
  c = arguments.length,
17722
17755
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17723
17756
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17757
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17725
17758
  },
17726
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17759
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17727
17760
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17728
17761
  };
17729
17762
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -17783,7 +17816,7 @@ let CommonDrawItemInterceptorContribution = class {
17783
17816
  return !1;
17784
17817
  }
17785
17818
  };
17786
- CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
17819
+ CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
17787
17820
  class InteractiveDrawItemInterceptorContribution {
17788
17821
  constructor() {
17789
17822
  this.order = 1;
@@ -17874,17 +17907,17 @@ class Canvas3DDrawItemInterceptor {
17874
17907
  }
17875
17908
  }
17876
17909
 
17877
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17910
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17878
17911
  var d,
17879
17912
  c = arguments.length,
17880
17913
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17881
17914
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17915
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17883
17916
  },
17884
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17917
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
17885
17918
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17886
17919
  },
17887
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17920
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
17888
17921
  return function (target, key) {
17889
17922
  decorator(target, key, paramIndex);
17890
17923
  };
@@ -17922,7 +17955,7 @@ let DefaultRenderService = class {
17922
17955
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
17923
17956
  }
17924
17957
  };
17925
- DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], DefaultRenderService);
17958
+ DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], DefaultRenderService);
17926
17959
 
17927
17960
  var renderModule$1 = new ContainerModule(bind => {
17928
17961
  bind(RenderService).to(DefaultRenderService);
@@ -17935,7 +17968,7 @@ const GlobalPickerService = Symbol.for("GlobalPickerService");
17935
17968
  const PickItemInterceptor = Symbol.for("PickItemInterceptor");
17936
17969
  const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
17937
17970
 
17938
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17971
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17939
17972
  var d,
17940
17973
  c = arguments.length,
17941
17974
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17957,7 +17990,7 @@ let ShadowPickServiceInterceptorContribution = class {
17957
17990
  return result;
17958
17991
  }
17959
17992
  };
17960
- ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], ShadowPickServiceInterceptorContribution);
17993
+ ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], ShadowPickServiceInterceptorContribution);
17961
17994
  let ShadowRootPickItemInterceptorContribution = class {
17962
17995
  constructor() {
17963
17996
  this.order = 1;
@@ -17988,7 +18021,7 @@ let ShadowRootPickItemInterceptorContribution = class {
17988
18021
  return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
17989
18022
  }
17990
18023
  };
17991
- ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], ShadowRootPickItemInterceptorContribution);
18024
+ ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], ShadowRootPickItemInterceptorContribution);
17992
18025
  let InteractivePickItemInterceptorContribution = class {
17993
18026
  constructor() {
17994
18027
  this.order = 1;
@@ -18007,7 +18040,7 @@ let InteractivePickItemInterceptorContribution = class {
18007
18040
  return null;
18008
18041
  }
18009
18042
  };
18010
- InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], InteractivePickItemInterceptorContribution);
18043
+ InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], InteractivePickItemInterceptorContribution);
18011
18044
  let Canvas3DPickItemInterceptor = class {
18012
18045
  constructor() {
18013
18046
  this.order = 1;
@@ -18027,7 +18060,7 @@ let Canvas3DPickItemInterceptor = class {
18027
18060
  context.setTransformForCurrent();
18028
18061
  }
18029
18062
  };
18030
- Canvas3DPickItemInterceptor = __decorate$1o([injectable()], Canvas3DPickItemInterceptor);
18063
+ Canvas3DPickItemInterceptor = __decorate$1m([injectable()], Canvas3DPickItemInterceptor);
18031
18064
 
18032
18065
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
18033
18066
  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 +18073,17 @@ var graphicModule = new ContainerModule(bind => {
18040
18073
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
18041
18074
  const PluginService = Symbol.for("PluginService");
18042
18075
 
18043
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18076
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18044
18077
  var d,
18045
18078
  c = arguments.length,
18046
18079
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18047
18080
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18081
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18049
18082
  },
18050
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
18083
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18051
18084
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18052
18085
  },
18053
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
18086
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18054
18087
  return function (target, key) {
18055
18088
  decorator(target, key, paramIndex);
18056
18089
  };
@@ -18090,7 +18123,7 @@ let DefaultPluginService = class {
18090
18123
  }), this.onRegisterPlugin = [];
18091
18124
  }
18092
18125
  };
18093
- DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
18126
+ DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
18094
18127
 
18095
18128
  var pluginModule = new ContainerModule(bind => {
18096
18129
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -18104,14 +18137,14 @@ var textMeasureModules = new ContainerModule(bind => {
18104
18137
  bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
18105
18138
  });
18106
18139
 
18107
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18140
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18108
18141
  var d,
18109
18142
  c = arguments.length,
18110
18143
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18111
18144
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18145
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18113
18146
  },
18114
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18147
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18115
18148
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18116
18149
  };
18117
18150
  let CanvasLayerHandlerContribution = class {
@@ -18181,7 +18214,7 @@ let CanvasLayerHandlerContribution = class {
18181
18214
  this.canvas.release();
18182
18215
  }
18183
18216
  };
18184
- CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
18217
+ CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
18185
18218
 
18186
18219
  var layerHandlerModules = new ContainerModule(bind => {
18187
18220
  bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -18300,17 +18333,17 @@ function findNextGraphic(graphic, id, defaultZIndex) {
18300
18333
  return result;
18301
18334
  }
18302
18335
 
18303
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18336
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18304
18337
  var d,
18305
18338
  c = arguments.length,
18306
18339
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18307
18340
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18341
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18309
18342
  },
18310
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18343
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18311
18344
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18312
18345
  },
18313
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18346
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18314
18347
  return function (target, key) {
18315
18348
  decorator(target, key, paramIndex);
18316
18349
  };
@@ -18449,7 +18482,7 @@ let DefaultDrawContribution = class {
18449
18482
  } = graphic.parent.attribute;
18450
18483
  (scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
18451
18484
  }
18452
- if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
18485
+ 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
18486
  if (retrans && graphic.parent) {
18454
18487
  const {
18455
18488
  scrollX = 0,
@@ -18509,9 +18542,9 @@ let DefaultDrawContribution = class {
18509
18542
  }
18510
18543
  afterDraw(renderService, drawParams) {}
18511
18544
  };
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);
18545
+ 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
18546
 
18514
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18547
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18515
18548
  var d,
18516
18549
  c = arguments.length,
18517
18550
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18562,9 +18595,9 @@ let DefaultIncrementalCanvasLineRender = class extends DefaultCanvasLineRender {
18562
18595
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
18563
18596
  }
18564
18597
  };
18565
- DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
18598
+ DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
18566
18599
 
18567
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18600
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18568
18601
  var d,
18569
18602
  c = arguments.length,
18570
18603
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18607,20 +18640,20 @@ let DefaultIncrementalCanvasAreaRender = class extends DefaultCanvasAreaRender {
18607
18640
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
18608
18641
  }
18609
18642
  };
18610
- DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
18643
+ DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
18611
18644
 
18612
18645
  var STATUS,
18613
- __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18646
+ __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18614
18647
  var d,
18615
18648
  c = arguments.length,
18616
18649
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18617
18650
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18651
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18619
18652
  },
18620
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18653
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
18621
18654
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18622
18655
  },
18623
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18656
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
18624
18657
  return function (target, key) {
18625
18658
  decorator(target, key, paramIndex);
18626
18659
  };
@@ -18750,7 +18783,7 @@ let DefaultIncrementalDrawContribution = class extends DefaultDrawContribution {
18750
18783
  });
18751
18784
  }
18752
18785
  };
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);
18786
+ 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
18787
 
18755
18788
  var renderModule = new ContainerModule(bind => {
18756
18789
  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 +19479,14 @@ function createStage(params) {
19446
19479
  return new Stage(params);
19447
19480
  }
19448
19481
 
19449
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19482
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19450
19483
  var d,
19451
19484
  c = arguments.length,
19452
19485
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19453
19486
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
19487
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19455
19488
  },
19456
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
19489
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19457
19490
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19458
19491
  };
19459
19492
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -19663,7 +19696,7 @@ let EmptyContext2d = class {
19663
19696
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
19664
19697
  }
19665
19698
  };
19666
- EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], EmptyContext2d);
19699
+ EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], EmptyContext2d);
19667
19700
 
19668
19701
  const DefaultConfig = {
19669
19702
  WIDTH: 500,
@@ -19762,7 +19795,7 @@ class BaseCanvas {
19762
19795
  }
19763
19796
  BaseCanvas.env = "browser";
19764
19797
 
19765
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19798
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19766
19799
  var d,
19767
19800
  c = arguments.length,
19768
19801
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19876,16 +19909,16 @@ let BaseEnvContribution = class {
19876
19909
  return Promise.resolve(null);
19877
19910
  }
19878
19911
  };
19879
- BaseEnvContribution = __decorate$1g([injectable()], BaseEnvContribution);
19912
+ BaseEnvContribution = __decorate$1e([injectable()], BaseEnvContribution);
19880
19913
 
19881
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19914
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19882
19915
  var d,
19883
19916
  c = arguments.length,
19884
19917
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19885
19918
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
19919
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19887
19920
  },
19888
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19921
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
19889
19922
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19890
19923
  };
19891
19924
  let BaseWindowHandlerContribution = class {
@@ -19924,7 +19957,7 @@ let BaseWindowHandlerContribution = class {
19924
19957
  return this.modelMatrix;
19925
19958
  }
19926
19959
  };
19927
- BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], BaseWindowHandlerContribution);
19960
+ BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], BaseWindowHandlerContribution);
19928
19961
 
19929
19962
  class DirectionalLight {
19930
19963
  constructor(dir, color) {
@@ -20015,17 +20048,17 @@ const registerOrthoCamera = () => {
20015
20048
  Factory.registerPlugin("OrthoCamera", OrthoCamera);
20016
20049
  };
20017
20050
 
20018
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20051
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20019
20052
  var d,
20020
20053
  c = arguments.length,
20021
20054
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20022
20055
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
20056
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20024
20057
  },
20025
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
20058
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
20026
20059
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20027
20060
  },
20028
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
20061
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
20029
20062
  return function (target, key) {
20030
20063
  decorator(target, key, paramIndex);
20031
20064
  };
@@ -20130,16 +20163,16 @@ let DefaultPickService = class {
20130
20163
  return picker || null;
20131
20164
  }
20132
20165
  };
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);
20166
+ 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
20167
 
20135
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20168
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20136
20169
  var d,
20137
20170
  c = arguments.length,
20138
20171
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20139
20172
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
20173
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20141
20174
  },
20142
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
20175
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
20143
20176
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20144
20177
  };
20145
20178
  let DefaultGlobalPickerService = class {
@@ -20204,7 +20237,7 @@ let DefaultGlobalPickerService = class {
20204
20237
  } : null;
20205
20238
  }
20206
20239
  };
20207
- DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], DefaultGlobalPickerService);
20240
+ DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultGlobalPickerService);
20208
20241
 
20209
20242
  function simplifyRadialDist(points, sqTolerance) {
20210
20243
  let deltaX,
@@ -20229,6 +20262,24 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
20229
20262
  }
20230
20263
  return t;
20231
20264
  };
20265
+ function getDefaultCharacterConfig(attribute) {
20266
+ const {
20267
+ fill = "black",
20268
+ stroke = !1,
20269
+ fontWeight = "normal",
20270
+ fontFamily = "Arial"
20271
+ } = attribute;
20272
+ let {
20273
+ fontSize = 12
20274
+ } = attribute;
20275
+ return isFinite(fontSize) || (fontSize = 12), {
20276
+ fill: fill,
20277
+ stroke: stroke,
20278
+ fontSize: fontSize,
20279
+ fontWeight: fontWeight,
20280
+ fontFamily: fontFamily
20281
+ };
20282
+ }
20232
20283
  function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
20233
20284
  if (cursorIndex < 0) return 0;
20234
20285
  const intCursorIndex = Math.round(cursorIndex);
@@ -20267,9 +20318,7 @@ class EditModule {
20267
20318
  } = this.currRt.attribute;
20268
20319
  if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
20269
20320
  const config = textConfig[0];
20270
- textConfig.unshift(Object.assign(Object.assign({
20271
- fill: "black"
20272
- }, config), {
20321
+ textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
20273
20322
  text: ""
20274
20323
  }));
20275
20324
  } else {
@@ -20286,26 +20335,20 @@ class EditModule {
20286
20335
  cb(text, this.isComposing, this.cursorIndex, this.currRt);
20287
20336
  });
20288
20337
  }, this.handleInput = ev => {
20289
- var _a, _b, _c, _d;
20290
20338
  if (!this.currRt) return;
20291
20339
  if ("historyUndo" === ev.inputType) return;
20292
- const _e = this.currRt.attribute,
20340
+ const _a = this.currRt.attribute,
20293
20341
  {
20294
20342
  textConfig = []
20295
- } = _e,
20296
- rest = __rest$1(_e, ["textConfig"]);
20343
+ } = _a,
20344
+ rest = __rest$1(_a, ["textConfig"]);
20297
20345
  if ("Backspace" === ev.type && !textConfig.length) return;
20298
20346
  let str = ev.data;
20299
20347
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
20300
20348
  const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
20301
20349
  endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
20302
20350
  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
- });
20351
+ lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
20309
20352
  let nextConfig = lastConfig;
20310
20353
  startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
20311
20354
  let nextConfigIdx = startIdx;
@@ -20401,6 +20444,7 @@ class Selection {
20401
20444
  if (!this.rt) return null;
20402
20445
  let idx = Math.round(cursorIdx);
20403
20446
  const config = this.rt.attribute.textConfig;
20447
+ if (!config.length) return null;
20404
20448
  for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
20405
20449
  return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
20406
20450
  }
@@ -20420,6 +20464,7 @@ class Selection {
20420
20464
  }
20421
20465
  }
20422
20466
  const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
20467
+ const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
20423
20468
  const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
20424
20469
  class RichTextEditPlugin {
20425
20470
  static tryUpdateRichtext(richtext) {
@@ -20439,16 +20484,39 @@ class RichTextEditPlugin {
20439
20484
  return new Selection(0, textConfig.length - 1, rt);
20440
20485
  }
20441
20486
  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 => {
20487
+ 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) => {
20488
+ const rt = p.currRt;
20489
+ if (!rt) return;
20490
+ const selectionData = p.getSelection();
20491
+ if (!selectionData) return;
20492
+ const {
20493
+ selectionStartCursorIdx: selectionStartCursorIdx,
20494
+ curCursorIdx: curCursorIdx
20495
+ } = selectionData,
20496
+ minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
20497
+ maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
20498
+ minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
20499
+ maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
20500
+ config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
20501
+ this._formatTextCommand(payload, config, rt);
20502
+ }, this.formatAllTextCommandCb = (payload, p) => {
20503
+ const rt = p.currRt;
20504
+ if (!rt) return;
20505
+ const config = rt.attribute.textConfig;
20506
+ this._formatTextCommand(payload, config, rt);
20507
+ }, this.handleKeyDown = e => {
20443
20508
  this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
20444
20509
  }, this.handleInput = (text, isComposing, cursorIdx, rt) => {
20445
- this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
20510
+ this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
20446
20511
  }, this.handleChange = (text, isComposing, cursorIdx, rt) => {
20447
- this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20512
+ if (!this.currRt) return;
20513
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20448
20514
  const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
20449
20515
  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));
20516
+ }, this.handleFocusIn = () => {
20517
+ throw new Error("不会走到这里 handleFocusIn");
20518
+ }, this.handleFocusOut = () => {
20519
+ throw new Error("不会走到这里 handleFocusOut");
20452
20520
  }, this.handleMove = e => {
20453
20521
  this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
20454
20522
  }, this.handleEnter = e => {
@@ -20456,28 +20524,17 @@ class RichTextEditPlugin {
20456
20524
  }, this.handleLeave = e => {
20457
20525
  this.editing = !1, this.pluginService.stage.setCursor("default");
20458
20526
  }, 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));
20527
+ this.editing ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20460
20528
  }, this.handlePointerUp = e => {
20461
20529
  this.pointerDown = !1;
20462
20530
  }, this.handleDBLClick = e => {
20463
20531
  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;
20532
+ }, 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
20533
  }
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);
20534
+ _formatTextCommand(payload, config, rt) {
20480
20535
  "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);
20536
+ const cache = rt.getFrameCache();
20537
+ cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
20481
20538
  }
20482
20539
  dispatchCommand(command, payload) {
20483
20540
  const cbs = this.commandCbs.get(command);
@@ -20486,9 +20543,19 @@ class RichTextEditPlugin {
20486
20543
  registerCommand(command, cb) {
20487
20544
  (this.commandCbs.get(command) || []).push(cb);
20488
20545
  }
20546
+ removeCommand(command, cb) {
20547
+ const cbs = this.commandCbs.get(command) || [],
20548
+ idx = cbs.indexOf(cb);
20549
+ idx > -1 && cbs.splice(idx, 1);
20550
+ }
20489
20551
  registerUpdateListener(cb) {
20490
20552
  (this.updateCbs || []).push(cb);
20491
20553
  }
20554
+ removeUpdateListener(cb) {
20555
+ const cbs = this.updateCbs || [],
20556
+ idx = cbs.indexOf(cb);
20557
+ idx > -1 && cbs.splice(idx, 1);
20558
+ }
20492
20559
  activate(context) {
20493
20560
  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
20561
  }
@@ -20508,7 +20575,10 @@ class RichTextEditPlugin {
20508
20575
  lines: lines
20509
20576
  } = cache,
20510
20577
  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;
20578
+ 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);
20579
+ }
20580
+ selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
20581
+ this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
20512
20582
  const {
20513
20583
  x: x,
20514
20584
  y1: y1,
@@ -20579,61 +20649,192 @@ class RichTextEditPlugin {
20579
20649
  }
20580
20650
  return !0;
20581
20651
  }
20652
+ tryShowShadowPlaceholder() {
20653
+ if (!this.currRt) return;
20654
+ const shadowRoot = this.currRt.shadowRoot;
20655
+ if (shadowRoot) {
20656
+ const placeholder = shadowRoot.getElementsByType("richtext")[0];
20657
+ placeholder && shadowRoot.removeChild(placeholder);
20658
+ }
20659
+ const {
20660
+ textConfig: textConfig,
20661
+ editOptions: editOptions
20662
+ } = this.currRt.attribute;
20663
+ if (textConfig && textConfig.length) return;
20664
+ if (!editOptions || !editOptions.placeholder) return;
20665
+ const {
20666
+ placeholder: placeholder,
20667
+ placeholderColor = "rgba(0, 0, 0, 0.6)",
20668
+ placeholderFontFamily: placeholderFontFamily,
20669
+ placeholderFontSize: placeholderFontSize
20670
+ } = editOptions,
20671
+ shadow = this.currRt.shadowRoot || this.currRt.attachShadow();
20672
+ this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
20673
+ x: 0,
20674
+ y: 0,
20675
+ angle: 0,
20676
+ _debug_bounds: !1,
20677
+ textConfig: [{
20678
+ text: placeholder,
20679
+ fill: placeholderColor,
20680
+ fontFamily: placeholderFontFamily,
20681
+ fontSize: placeholderFontSize
20682
+ }]
20683
+ })), shadow.add(this.shadowPlaceHolder);
20684
+ }
20685
+ tryShowInputBounds() {
20686
+ if (!this.currRt || !this.focusing) return;
20687
+ const {
20688
+ editOptions = {}
20689
+ } = this.currRt.attribute,
20690
+ {
20691
+ boundsStrokeWhenInput: boundsStrokeWhenInput
20692
+ } = editOptions;
20693
+ if (!editOptions || !boundsStrokeWhenInput) return;
20694
+ const {
20695
+ attribute: attribute
20696
+ } = this.currRt,
20697
+ b = this.currRt.AABBBounds;
20698
+ let h = b.height();
20699
+ if (!attribute.textConfig.length && this.editLine) {
20700
+ const {
20701
+ points: points
20702
+ } = this.editLine.attribute;
20703
+ h = points[1].y - points[0].y;
20704
+ }
20705
+ this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
20706
+ x: 0,
20707
+ y: 0,
20708
+ width: b.width(),
20709
+ height: h,
20710
+ fill: !1,
20711
+ stroke: boundsStrokeWhenInput,
20712
+ lineWidth: 1,
20713
+ boundsMode: "empty",
20714
+ zIndex: -1
20715
+ });
20716
+ (this.currRt.shadowRoot || this.currRt.attachShadow()).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
20717
+ }
20718
+ trySyncPlaceholderToTextConfig() {
20719
+ if (!this.currRt) return;
20720
+ const {
20721
+ textConfig: textConfig,
20722
+ editOptions: editOptions
20723
+ } = this.currRt.attribute;
20724
+ if (textConfig && textConfig.length) return;
20725
+ if (!editOptions || !editOptions.placeholder) return;
20726
+ const {
20727
+ placeholder: placeholder
20728
+ } = editOptions;
20729
+ this.currRt.setAttributes({
20730
+ textConfig: [Object.assign({
20731
+ text: placeholder
20732
+ }, getDefaultCharacterConfig(this.currRt.attribute))]
20733
+ });
20734
+ }
20582
20735
  deactivate(context) {
20583
20736
  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
20737
  }
20585
- onFocus(e) {
20586
- this.deFocus(), this.currRt = e.target;
20738
+ onFocus(e, data) {
20739
+ this.deFocus(!1), this.focusing = !0;
20587
20740
  const target = e.target;
20588
- RichTextEditPlugin.tryUpdateRichtext(target);
20589
- const shadowRoot = target.attachShadow(),
20741
+ if (!target || "richtext" !== target.type) return;
20742
+ this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
20743
+ const shadowRoot = target.shadowRoot || target.attachShadow(),
20590
20744
  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);
20745
+ if (cache) {
20746
+ if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
20747
+ shadowRootIdx: 1,
20748
+ pickable: !1,
20749
+ x: this.deltaX,
20750
+ y: this.deltaY
20751
+ }), !this.editLine) {
20752
+ const line = createLine({
20753
+ x: 0,
20754
+ y: 0,
20755
+ lineWidth: 1,
20756
+ stroke: "black",
20757
+ boundsMode: "empty"
20758
+ });
20759
+ this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
20760
+ const g = createGroup({
20761
+ x: 0,
20762
+ y: 0,
20763
+ width: 0,
20764
+ height: 0,
20765
+ boundsMode: "empty"
20766
+ });
20767
+ this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20768
+ }
20769
+ if (data = data || this.computedCursorPosByEvent(e, cache)) {
20770
+ const {
20771
+ x: x,
20772
+ y1: y1,
20773
+ y2: y2,
20774
+ cursorIndex: cursorIndex
20775
+ } = data;
20776
+ this.startCursorPos = {
20777
+ x: x,
20778
+ y: (y1 + y2) / 2
20779
+ }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20780
+ } else {
20781
+ const x = 0,
20782
+ y1 = 0,
20783
+ y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
20784
+ textConfig: [{
20785
+ text: "a"
20786
+ }]
20787
+ })).height();
20788
+ this.startCursorPos = {
20789
+ x: x,
20790
+ y: (y1 + y2) / 2
20791
+ }, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
20792
+ }
20793
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
20625
20794
  }
20626
20795
  }
20796
+ offsetLineBgAndShadowBounds() {
20797
+ const rt = this.currRt,
20798
+ {
20799
+ textBaseline: textBaseline
20800
+ } = rt.attribute;
20801
+ let b,
20802
+ dy = 0,
20803
+ attr = rt.attribute;
20804
+ "middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
20805
+ textConfig: [{
20806
+ text: "a"
20807
+ }]
20808
+ })), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
20809
+ dy: dy
20810
+ }), this.editBg && this.editBg.setAttributes({
20811
+ dy: dy
20812
+ }), this.shadowBounds && this.shadowBounds.setAttributes({
20813
+ dy: dy
20814
+ });
20815
+ }
20627
20816
  deFocus() {
20817
+ let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20628
20818
  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));
20819
+ if (!target) return;
20820
+ trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), target.detachShadow());
20821
+ const currRt = this.currRt;
20822
+ 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;
20823
+ const textConfig = currRt.attribute.textConfig;
20824
+ let lastConfig = textConfig[textConfig.length - 1],
20825
+ cleared = !1;
20826
+ for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
20827
+ cleared && currRt.setAttributes({
20828
+ textConfig: textConfig
20829
+ });
20630
20830
  }
20631
20831
  addAnimateToLine(line) {
20632
20832
  line.animates && line.animates.forEach(animate => {
20633
20833
  animate.stop(), animate.release();
20634
20834
  });
20635
- const animate = line.animate();
20636
- animate.setTimeline(this.timeline), animate.to({
20835
+ line.animate({
20836
+ timeline: this.timeline
20837
+ }).to({
20637
20838
  opacity: 1
20638
20839
  }, 10, "linear").wait(700).to({
20639
20840
  opacity: 0
@@ -20727,7 +20928,7 @@ class RichTextEditPlugin {
20727
20928
  y += line.height;
20728
20929
  }
20729
20930
  }
20730
- this.setCursorAndTextArea(currCursorData.x, currCursorData.y1 + 2, currCursorData.y2 - 2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20931
+ this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20731
20932
  }
20732
20933
  hideSelection() {
20733
20934
  this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
@@ -20783,7 +20984,18 @@ class RichTextEditPlugin {
20783
20984
  x: 0,
20784
20985
  y: 0
20785
20986
  };
20786
- return e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY, p1;
20987
+ e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
20988
+ const rt = this.currRt,
20989
+ {
20990
+ textBaseline: textBaseline
20991
+ } = rt.attribute;
20992
+ let dy = 0;
20993
+ if ("middle" === textBaseline) {
20994
+ dy = getRichTextBounds(rt.attribute).height() / 2;
20995
+ } else if ("bottom" === textBaseline) {
20996
+ dy = getRichTextBounds(rt.attribute).height();
20997
+ }
20998
+ return p1.y += dy, p1;
20787
20999
  }
20788
21000
  setCursorAndTextArea(x, y1, y2, rt) {
20789
21001
  this.editLine.setAttributes({
@@ -20807,7 +21019,7 @@ class RichTextEditPlugin {
20807
21019
  left: left,
20808
21020
  top: top
20809
21021
  } = this.pluginService.stage.window.getBoundingClientRect();
20810
- out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
21022
+ out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
20811
21023
  }
20812
21024
  computedCursorPosByEvent(e, cache) {
20813
21025
  const p1 = this.getEventPosition(e),
@@ -20818,9 +21030,8 @@ class RichTextEditPlugin {
20818
21030
  delta: delta
20819
21031
  } = this.getColumnAndIndexByLinePoint(lineInfo, p1);
20820
21032
  if (!columnInfo) return;
20821
- let y1 = lineInfo.top,
21033
+ const y1 = lineInfo.top,
20822
21034
  y2 = lineInfo.top + lineInfo.height;
20823
- y1 += 2, y2 -= 2;
20824
21035
  let cursorIndex = this.getColumnIndex(cache, columnInfo);
20825
21036
  cursorIndex += delta;
20826
21037
  return {
@@ -20839,21 +21050,36 @@ class RichTextEditPlugin {
20839
21050
  cache = rt.getFrameCache(),
20840
21051
  column = this.getColumnByIndex(cache, idx),
20841
21052
  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
- };
21053
+ if (!column) {
21054
+ if (!cache.lines.length) {
21055
+ return {
21056
+ x: 0,
21057
+ y1: 0,
21058
+ y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
21059
+ textConfig: [{
21060
+ text: "a"
21061
+ }]
21062
+ })).height()
21063
+ };
21064
+ }
21065
+ return {
21066
+ x: 0,
21067
+ y1: 0,
21068
+ y2: height
21069
+ };
21070
+ }
20847
21071
  const {
20848
- lineInfo: lineInfo,
20849
- columnInfo: columnInfo
20850
- } = column;
20851
- let y1 = lineInfo.top,
21072
+ lineInfo: lineInfo,
21073
+ columnInfo: columnInfo
21074
+ } = column,
21075
+ y1 = lineInfo.top,
20852
21076
  y2 = lineInfo.top + lineInfo.height;
20853
- return y1 += 2, y2 -= 2, {
21077
+ return {
20854
21078
  x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
20855
21079
  y1: y1,
20856
- y2: y2
21080
+ y2: y2,
21081
+ lineInfo: lineInfo,
21082
+ columnInfo: columnInfo
20857
21083
  };
20858
21084
  }
20859
21085
  getColumnByIndex(cache, index) {
@@ -20877,6 +21103,37 @@ class RichTextEditPlugin {
20877
21103
  let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20878
21104
  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
21105
  }
21106
+ forceFocus(params) {
21107
+ const {
21108
+ target: target,
21109
+ e: e,
21110
+ cursorIndex: cursorIndex
21111
+ } = params;
21112
+ target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
21113
+ }
21114
+ _forceFocusByEvent(e) {
21115
+ this.handleEnter(e), this.handlePointerDown(e), this.handlePointerUp(e);
21116
+ }
21117
+ _forceFocusByCursorIndex(cursorIndex) {
21118
+ const richtext = this.currRt;
21119
+ if (!richtext) return;
21120
+ let x = 0,
21121
+ y1 = 0,
21122
+ y2 = 2,
21123
+ lineInfo = null,
21124
+ columnInfo = null;
21125
+ const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
21126
+ x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
21127
+ target: this.currRt
21128
+ }, {
21129
+ x: x,
21130
+ y1: y1,
21131
+ y2: y2,
21132
+ cursorIndex: cursorIndex,
21133
+ lineInfo: lineInfo,
21134
+ columnInfo: columnInfo
21135
+ });
21136
+ }
20880
21137
  }
20881
21138
 
20882
21139
  class DefaultGraphicAllocate {
@@ -21059,7 +21316,7 @@ const polygonModule = new ContainerModule(bind => {
21059
21316
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21060
21317
  });
21061
21318
 
21062
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21319
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21063
21320
  var d,
21064
21321
  c = arguments.length,
21065
21322
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21091,21 +21348,21 @@ let DefaultCanvasGlyphRender = class {
21091
21348
  }), context.highPerformanceRestore();
21092
21349
  }
21093
21350
  };
21094
- DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
21351
+ DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
21095
21352
 
21096
21353
  let loadGlyphModule = !1;
21097
21354
  const glyphModule = new ContainerModule(bind => {
21098
21355
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21099
21356
  });
21100
21357
 
21101
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21358
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21102
21359
  var d,
21103
21360
  c = arguments.length,
21104
21361
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21105
21362
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
21363
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21107
21364
  },
21108
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
21365
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
21109
21366
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21110
21367
  };
21111
21368
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -21159,7 +21416,7 @@ let DefaultCanvasRichTextRender = class extends BaseRender {
21159
21416
  this._draw(richtext, richtextAttribute, !1, drawContext);
21160
21417
  }
21161
21418
  };
21162
- DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
21419
+ DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
21163
21420
 
21164
21421
  let loadRichtextModule = !1;
21165
21422
  const richtextModule = new ContainerModule(bind => {
@@ -21243,7 +21500,7 @@ class Base3dRender extends BaseRender {
21243
21500
  }
21244
21501
  }
21245
21502
 
21246
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21503
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21247
21504
  var d,
21248
21505
  c = arguments.length,
21249
21506
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21299,14 +21556,14 @@ let DefaultCanvasRect3dRender = class extends Base3dRender {
21299
21556
  this._draw(rect, rectAttribute, !1, drawContext);
21300
21557
  }
21301
21558
  };
21302
- DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
21559
+ DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
21303
21560
 
21304
21561
  let loadRect3dModule = !1;
21305
21562
  const rect3dModule = new ContainerModule(bind => {
21306
21563
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21307
21564
  });
21308
21565
 
21309
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21566
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21310
21567
  var d,
21311
21568
  c = arguments.length,
21312
21569
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21433,14 +21690,14 @@ let DefaultCanvasArc3DRender = class extends BaseRender {
21433
21690
  this._draw(arc, arcAttribute, !1, drawContext, params);
21434
21691
  }
21435
21692
  };
21436
- DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
21693
+ DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
21437
21694
 
21438
21695
  let loadArc3dModule = !1;
21439
21696
  const arc3dModule = new ContainerModule(bind => {
21440
21697
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21441
21698
  });
21442
21699
 
21443
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21700
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21444
21701
  var d,
21445
21702
  c = arguments.length,
21446
21703
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21477,7 +21734,7 @@ let DefaultCanvasPyramid3dRender = class extends Base3dRender {
21477
21734
  this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
21478
21735
  }
21479
21736
  };
21480
- DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
21737
+ DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
21481
21738
 
21482
21739
  let loadPyramid3dModule = !1;
21483
21740
  const pyramid3dModule = new ContainerModule(bind => {
@@ -23600,17 +23857,17 @@ class RoughBaseRender {
23600
23857
  }
23601
23858
  }
23602
23859
 
23603
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23860
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23604
23861
  var d,
23605
23862
  c = arguments.length,
23606
23863
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23607
23864
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
23865
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23609
23866
  },
23610
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
23867
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
23611
23868
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23612
23869
  },
23613
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
23870
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
23614
23871
  return function (target, key) {
23615
23872
  decorator(target, key, paramIndex);
23616
23873
  };
@@ -23696,9 +23953,9 @@ let RoughCanvasArcRender = class extends RoughBaseRender {
23696
23953
  }), context.highPerformanceRestore();
23697
23954
  }
23698
23955
  };
23699
- RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
23956
+ RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
23700
23957
 
23701
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23958
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23702
23959
  var d,
23703
23960
  c = arguments.length,
23704
23961
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23776,19 +24033,19 @@ let RoughCanvasAreaRender = class extends DefaultCanvasAreaRender {
23776
24033
  }), context.highPerformanceRestore(), !1;
23777
24034
  }
23778
24035
  };
23779
- RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
24036
+ RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
23780
24037
 
23781
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24038
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23782
24039
  var d,
23783
24040
  c = arguments.length,
23784
24041
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23785
24042
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24043
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23787
24044
  },
23788
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
24045
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
23789
24046
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23790
24047
  },
23791
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
24048
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
23792
24049
  return function (target, key) {
23793
24050
  decorator(target, key, paramIndex);
23794
24051
  };
@@ -23825,9 +24082,9 @@ let RoughCanvasCircleRender = class extends RoughBaseRender {
23825
24082
  });
23826
24083
  }
23827
24084
  };
23828
- RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
24085
+ RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
23829
24086
 
23830
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24087
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23831
24088
  var d,
23832
24089
  c = arguments.length,
23833
24090
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23906,19 +24163,19 @@ let RoughCanvasLineRender = class extends DefaultCanvasLineRender {
23906
24163
  }), context.highPerformanceRestore(), !1;
23907
24164
  }
23908
24165
  };
23909
- RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
24166
+ RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
23910
24167
 
23911
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24168
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23912
24169
  var d,
23913
24170
  c = arguments.length,
23914
24171
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23915
24172
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24173
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23917
24174
  },
23918
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
24175
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
23919
24176
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23920
24177
  },
23921
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
24178
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
23922
24179
  return function (target, key) {
23923
24180
  decorator(target, key, paramIndex);
23924
24181
  };
@@ -23992,19 +24249,19 @@ let RoughCanvasPathRender = class extends RoughBaseRender {
23992
24249
  }), context.highPerformanceRestore();
23993
24250
  }
23994
24251
  };
23995
- RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
24252
+ RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
23996
24253
 
23997
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24254
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23998
24255
  var d,
23999
24256
  c = arguments.length,
24000
24257
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24001
24258
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24259
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24003
24260
  },
24004
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
24261
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24005
24262
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24006
24263
  },
24007
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
24264
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24008
24265
  return function (target, key) {
24009
24266
  decorator(target, key, paramIndex);
24010
24267
  };
@@ -24095,19 +24352,19 @@ let RoughCanvasRectRender = class extends RoughBaseRender {
24095
24352
  }), context.highPerformanceRestore();
24096
24353
  }
24097
24354
  };
24098
- RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
24355
+ RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
24099
24356
 
24100
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24357
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24101
24358
  var d,
24102
24359
  c = arguments.length,
24103
24360
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24104
24361
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24362
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24106
24363
  },
24107
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24364
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
24108
24365
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24109
24366
  },
24110
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24367
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
24111
24368
  return function (target, key) {
24112
24369
  decorator(target, key, paramIndex);
24113
24370
  };
@@ -24199,7 +24456,7 @@ let RoughCanvasSymbolRender = class extends BaseRender {
24199
24456
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
24200
24457
  }
24201
24458
  };
24202
- RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24459
+ RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24203
24460
 
24204
24461
  var _roughModule = new ContainerModule(bind => {
24205
24462
  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 +24479,6 @@ const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
24222
24479
  const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
24223
24480
  const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
24224
24481
  const CanvasImagePicker = Symbol.for("CanvasImagePicker");
24225
- const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
24226
24482
  const CanvasLinePicker = Symbol.for("CanvasLinePicker");
24227
24483
  const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
24228
24484
  const CanvasPathPicker = Symbol.for("CanvasPathPicker");
@@ -24363,11 +24619,9 @@ function jsx(type, config) {
24363
24619
  name: name,
24364
24620
  id: id,
24365
24621
  attribute: attribute,
24366
- stateProxy: stateProxy,
24367
- animation: animation,
24368
- timeline: timeline
24622
+ stateProxy: stateProxy
24369
24623
  } = _a,
24370
- props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
24624
+ props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
24371
24625
  let c = type;
24372
24626
  isString$1(type) && (c = graphicCreator[type]);
24373
24627
  const childrenList = [];
@@ -24376,13 +24630,7 @@ function jsx(type, config) {
24376
24630
  }
24377
24631
  children.length && flatten(1 === children.length ? children[0] : children, childrenList);
24378
24632
  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;
24633
+ return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
24386
24634
  }
24387
24635
  function parseToGraphic$1(g, childrenList, props) {
24388
24636
  let out,
@@ -24712,14 +24960,14 @@ class Gesture extends EventEmitter {
24712
24960
  }
24713
24961
  }
24714
24962
 
24715
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24963
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24716
24964
  var d,
24717
24965
  c = arguments.length,
24718
24966
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24719
24967
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24968
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24721
24969
  },
24722
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
24970
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
24723
24971
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24724
24972
  };
24725
24973
  const outP = [0, 0, 0],
@@ -25231,16 +25479,16 @@ let BrowserContext2d = class {
25231
25479
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
25232
25480
  }
25233
25481
  };
25234
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
25482
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
25235
25483
 
25236
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25484
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25237
25485
  var d,
25238
25486
  c = arguments.length,
25239
25487
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25240
25488
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25489
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25242
25490
  },
25243
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
25491
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
25244
25492
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25245
25493
  };
25246
25494
  let BrowserCanvas = class extends BaseCanvas {
@@ -25302,7 +25550,7 @@ let BrowserCanvas = class extends BaseCanvas {
25302
25550
  this._context.dpr = this._dpr;
25303
25551
  }
25304
25552
  };
25305
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
25553
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
25306
25554
 
25307
25555
  function createModule(CanvasConstructor, ContextConstructor) {
25308
25556
  return new ContainerModule(bind => {
@@ -25312,17 +25560,17 @@ function createModule(CanvasConstructor, ContextConstructor) {
25312
25560
 
25313
25561
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
25314
25562
 
25315
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25563
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25316
25564
  var d,
25317
25565
  c = arguments.length,
25318
25566
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25319
25567
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25568
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25321
25569
  },
25322
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
25570
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
25323
25571
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25324
25572
  },
25325
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
25573
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
25326
25574
  return function (target, key) {
25327
25575
  decorator(target, key, paramIndex);
25328
25576
  };
@@ -25373,9 +25621,9 @@ let DefaultCanvasPickerService = class extends DefaultPickService {
25373
25621
  return data;
25374
25622
  }
25375
25623
  };
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);
25624
+ 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
25625
 
25378
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25626
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25379
25627
  var d,
25380
25628
  c = arguments.length,
25381
25629
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25390,7 +25638,7 @@ let DefaultCanvasGroupPicker = class {
25390
25638
  return !1;
25391
25639
  }
25392
25640
  };
25393
- DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
25641
+ DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
25394
25642
 
25395
25643
  const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
25396
25644
  m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -25406,14 +25654,14 @@ function loadCanvasPicker(c) {
25406
25654
  }
25407
25655
 
25408
25656
  var BrowserWindowHandlerContribution_1,
25409
- __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25657
+ __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25410
25658
  var d,
25411
25659
  c = arguments.length,
25412
25660
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25413
25661
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25662
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25415
25663
  },
25416
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
25664
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
25417
25665
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25418
25666
  };
25419
25667
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
@@ -25571,19 +25819,19 @@ let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = clas
25571
25819
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
25572
25820
  }
25573
25821
  };
25574
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
25822
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
25575
25823
  const browserWindowModule = new ContainerModule(bind => {
25576
25824
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
25577
25825
  });
25578
25826
 
25579
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25827
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25580
25828
  var d,
25581
25829
  c = arguments.length,
25582
25830
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25583
25831
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25832
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25585
25833
  },
25586
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
25834
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
25587
25835
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25588
25836
  },
25589
25837
  __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -25637,7 +25885,7 @@ class DynamicB {
25637
25885
  function createImageElement$1(src) {
25638
25886
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
25639
25887
  const img = document.createElement("img");
25640
- if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
25888
+ if (img.crossOrigin = "anonymous", isSvg) {
25641
25889
  const data = new Blob([src], {
25642
25890
  type: "image/svg+xml"
25643
25891
  });
@@ -25830,7 +26078,7 @@ let BrowserEnvContribution = class extends BaseEnvContribution {
25830
26078
  return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
25831
26079
  }
25832
26080
  };
25833
- BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], BrowserEnvContribution);
26081
+ BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], BrowserEnvContribution);
25834
26082
 
25835
26083
  const browserEnvModule = new ContainerModule(bind => {
25836
26084
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
@@ -25845,7 +26093,7 @@ function initBrowserEnv() {
25845
26093
  loadBrowserEnv(container);
25846
26094
  }
25847
26095
 
25848
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26096
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25849
26097
  var d,
25850
26098
  c = arguments.length,
25851
26099
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25890,16 +26138,16 @@ let FeishuContext2d = class extends BrowserContext2d {
25890
26138
  return null;
25891
26139
  }
25892
26140
  };
25893
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
26141
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
25894
26142
 
25895
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26143
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25896
26144
  var d,
25897
26145
  c = arguments.length,
25898
26146
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25899
26147
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26148
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25901
26149
  },
25902
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
26150
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
25903
26151
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25904
26152
  };
25905
26153
  let FeishuCanvas = class extends BaseCanvas {
@@ -25911,21 +26159,21 @@ let FeishuCanvas = class extends BaseCanvas {
25911
26159
  }
25912
26160
  release() {}
25913
26161
  };
25914
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
26162
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
25915
26163
 
25916
26164
  const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
25917
26165
 
25918
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26166
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25919
26167
  var d,
25920
26168
  c = arguments.length,
25921
26169
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25922
26170
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26171
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25924
26172
  },
25925
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
26173
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
25926
26174
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25927
26175
  },
25928
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
26176
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
25929
26177
  return function (target, key) {
25930
26178
  decorator(target, key, paramIndex);
25931
26179
  };
@@ -26061,22 +26309,22 @@ let FeishuWindowHandlerContribution = class extends BaseWindowHandlerContributio
26061
26309
  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
26310
  }
26063
26311
  };
26064
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26312
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26065
26313
  const feishuWindowModule = new ContainerModule(bind => {
26066
26314
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
26067
26315
  });
26068
26316
 
26069
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26317
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26070
26318
  var d,
26071
26319
  c = arguments.length,
26072
26320
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26073
26321
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26322
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26075
26323
  },
26076
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
26324
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
26077
26325
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26078
26326
  },
26079
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
26327
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26080
26328
  return function (target, key) {
26081
26329
  decorator(target, key, paramIndex);
26082
26330
  };
@@ -26107,7 +26355,7 @@ let DefaultMathPickerService = class extends DefaultPickService {
26107
26355
  } : null;
26108
26356
  }
26109
26357
  };
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);
26358
+ 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
26359
 
26112
26360
  const m = new ContainerModule(bind => {
26113
26361
  m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -26144,17 +26392,17 @@ class PickerBase {
26144
26392
  }
26145
26393
  }
26146
26394
 
26147
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26395
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26148
26396
  var d,
26149
26397
  c = arguments.length,
26150
26398
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26151
26399
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26400
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26153
26401
  },
26154
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
26402
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
26155
26403
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26156
26404
  },
26157
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26405
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26158
26406
  return function (target, key) {
26159
26407
  decorator(target, key, paramIndex);
26160
26408
  };
@@ -26164,24 +26412,24 @@ let DefaultMathArcPicker = class extends PickerBase {
26164
26412
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
26165
26413
  }
26166
26414
  };
26167
- DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
26415
+ DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
26168
26416
 
26169
26417
  let loadArcPick$1 = !1;
26170
26418
  const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26171
26419
  loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
26172
26420
  });
26173
26421
 
26174
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26422
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26175
26423
  var d,
26176
26424
  c = arguments.length,
26177
26425
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26178
26426
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26427
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26180
26428
  },
26181
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
26429
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
26182
26430
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26183
26431
  },
26184
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26432
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26185
26433
  return function (target, key) {
26186
26434
  decorator(target, key, paramIndex);
26187
26435
  };
@@ -26191,24 +26439,24 @@ let DefaultMathAreaPicker = class extends PickerBase {
26191
26439
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
26192
26440
  }
26193
26441
  };
26194
- DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
26442
+ DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
26195
26443
 
26196
26444
  let loadAreaPick$1 = !1;
26197
26445
  const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26198
26446
  loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
26199
26447
  });
26200
26448
 
26201
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26449
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26202
26450
  var d,
26203
26451
  c = arguments.length,
26204
26452
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26205
26453
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26454
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26207
26455
  },
26208
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
26456
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
26209
26457
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26210
26458
  },
26211
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26459
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26212
26460
  return function (target, key) {
26213
26461
  decorator(target, key, paramIndex);
26214
26462
  };
@@ -26218,7 +26466,7 @@ let DefaultMathCirclePicker = class extends PickerBase {
26218
26466
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
26219
26467
  }
26220
26468
  };
26221
- DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
26469
+ DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
26222
26470
 
26223
26471
  let loadCirclePick$1 = !1;
26224
26472
  const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26249,17 +26497,17 @@ class GlyphPickerBase {
26249
26497
  }
26250
26498
  }
26251
26499
 
26252
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26500
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26253
26501
  var d,
26254
26502
  c = arguments.length,
26255
26503
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26256
26504
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
26257
26505
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26258
26506
  },
26259
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
26507
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
26260
26508
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26261
26509
  },
26262
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26510
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26263
26511
  return function (target, key) {
26264
26512
  decorator(target, key, paramIndex);
26265
26513
  };
@@ -26269,14 +26517,14 @@ let DefaultMathGlyphPicker = class extends GlyphPickerBase {
26269
26517
  super(), this.canvasRenderer = canvasRenderer;
26270
26518
  }
26271
26519
  };
26272
- DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26520
+ DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26273
26521
 
26274
26522
  let loadGlyphPick$1 = !1;
26275
26523
  const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26276
26524
  loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
26277
26525
  });
26278
26526
 
26279
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26527
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26280
26528
  var d,
26281
26529
  c = arguments.length,
26282
26530
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26294,24 +26542,24 @@ let DefaultMathImagePicker = class {
26294
26542
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
26295
26543
  }
26296
26544
  };
26297
- DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
26545
+ DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
26298
26546
 
26299
26547
  let loadImagePick$1 = !1;
26300
26548
  const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26301
26549
  loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26302
26550
  });
26303
26551
 
26304
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26552
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26305
26553
  var d,
26306
26554
  c = arguments.length,
26307
26555
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26308
26556
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26557
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26310
26558
  },
26311
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
26559
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
26312
26560
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26313
26561
  },
26314
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26562
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26315
26563
  return function (target, key) {
26316
26564
  decorator(target, key, paramIndex);
26317
26565
  };
@@ -26321,24 +26569,24 @@ let DefaultMathLinePicker = class extends PickerBase {
26321
26569
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
26322
26570
  }
26323
26571
  };
26324
- DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
26572
+ DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
26325
26573
 
26326
26574
  let loadLinePick$1 = !1;
26327
26575
  const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26328
26576
  loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
26329
26577
  });
26330
26578
 
26331
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26579
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26332
26580
  var d,
26333
26581
  c = arguments.length,
26334
26582
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26335
26583
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26584
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26337
26585
  },
26338
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
26586
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
26339
26587
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26340
26588
  },
26341
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26589
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26342
26590
  return function (target, key) {
26343
26591
  decorator(target, key, paramIndex);
26344
26592
  };
@@ -26348,24 +26596,24 @@ let DefaultMathPolygonPicker = class extends PickerBase {
26348
26596
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
26349
26597
  }
26350
26598
  };
26351
- DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26599
+ DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26352
26600
 
26353
26601
  let loadPolygonPick$1 = !1;
26354
26602
  const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26355
26603
  loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
26356
26604
  });
26357
26605
 
26358
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26606
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26359
26607
  var d,
26360
26608
  c = arguments.length,
26361
26609
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26362
26610
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26611
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26364
26612
  },
26365
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
26613
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
26366
26614
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26367
26615
  },
26368
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26616
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26369
26617
  return function (target, key) {
26370
26618
  decorator(target, key, paramIndex);
26371
26619
  };
@@ -26375,7 +26623,7 @@ let DefaultMathPathPicker = class extends PickerBase {
26375
26623
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
26376
26624
  }
26377
26625
  };
26378
- DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
26626
+ DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
26379
26627
 
26380
26628
  let loadPathPick$1 = !1;
26381
26629
  const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26430,17 +26678,17 @@ class RectPickerBase {
26430
26678
  }
26431
26679
  }
26432
26680
 
26433
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26681
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26434
26682
  var d,
26435
26683
  c = arguments.length,
26436
26684
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26437
26685
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26686
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26439
26687
  },
26440
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
26688
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
26441
26689
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26442
26690
  },
26443
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26691
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26444
26692
  return function (target, key) {
26445
26693
  decorator(target, key, paramIndex);
26446
26694
  };
@@ -26450,7 +26698,7 @@ let DefaultMathRectPicker = class extends RectPickerBase {
26450
26698
  super(), this.canvasRenderer = canvasRenderer;
26451
26699
  }
26452
26700
  };
26453
- DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
26701
+ DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
26454
26702
 
26455
26703
  let loadRectPick$1 = !1;
26456
26704
  const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26462,17 +26710,17 @@ const richTextMathPickModule = new ContainerModule((bind, unbind, isBound, rebin
26462
26710
  loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26463
26711
  });
26464
26712
 
26465
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26713
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26466
26714
  var d,
26467
26715
  c = arguments.length,
26468
26716
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26469
26717
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26718
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26471
26719
  },
26472
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
26720
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
26473
26721
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26474
26722
  },
26475
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26723
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
26476
26724
  return function (target, key) {
26477
26725
  decorator(target, key, paramIndex);
26478
26726
  };
@@ -26482,14 +26730,14 @@ let DefaultMathSymbolPicker = class extends PickerBase {
26482
26730
  super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
26483
26731
  }
26484
26732
  };
26485
- DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26733
+ DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26486
26734
 
26487
26735
  let loadSymbolPick$1 = !1;
26488
26736
  const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26489
26737
  loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
26490
26738
  });
26491
26739
 
26492
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26740
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26493
26741
  var d,
26494
26742
  c = arguments.length,
26495
26743
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26504,7 +26752,7 @@ let DefaultMathTextPicker = class {
26504
26752
  return !!text.AABBBounds.containsPoint(point);
26505
26753
  }
26506
26754
  };
26507
- DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
26755
+ DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
26508
26756
 
26509
26757
  let loadTextPick$1 = !1;
26510
26758
  const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26587,14 +26835,14 @@ class CanvasWrapEnableWH {
26587
26835
  }
26588
26836
  }
26589
26837
 
26590
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26838
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26591
26839
  var d,
26592
26840
  c = arguments.length,
26593
26841
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26594
26842
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26843
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26596
26844
  },
26597
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
26845
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
26598
26846
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26599
26847
  };
26600
26848
  function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
@@ -26676,7 +26924,7 @@ let FeishuEnvContribution = class extends BaseEnvContribution {
26676
26924
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
26677
26925
  }
26678
26926
  };
26679
- FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
26927
+ FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
26680
26928
 
26681
26929
  const feishuEnvModule = new ContainerModule(bind => {
26682
26930
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -26691,7 +26939,7 @@ function initFeishuEnv() {
26691
26939
  loadFeishuEnv(container);
26692
26940
  }
26693
26941
 
26694
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26942
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26695
26943
  var d,
26696
26944
  c = arguments.length,
26697
26945
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26752,16 +27000,16 @@ let LynxContext2d = class extends BrowserContext2d {
26752
27000
  }));
26753
27001
  }
26754
27002
  };
26755
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
27003
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
26756
27004
 
26757
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27005
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26758
27006
  var d,
26759
27007
  c = arguments.length,
26760
27008
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26761
27009
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27010
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26763
27011
  },
26764
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
27012
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
26765
27013
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26766
27014
  };
26767
27015
  let LynxCanvas = class extends BaseCanvas {
@@ -26777,19 +27025,19 @@ let LynxCanvas = class extends BaseCanvas {
26777
27025
  }
26778
27026
  release() {}
26779
27027
  };
26780
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
27028
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
26781
27029
 
26782
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27030
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26783
27031
  var d,
26784
27032
  c = arguments.length,
26785
27033
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26786
27034
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27035
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26788
27036
  },
26789
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
27037
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
26790
27038
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26791
27039
  },
26792
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
27040
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
26793
27041
  return function (target, key) {
26794
27042
  decorator(target, key, paramIndex);
26795
27043
  };
@@ -26927,21 +27175,21 @@ let LynxWindowHandlerContribution = class extends BaseWindowHandlerContribution
26927
27175
  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
27176
  }
26929
27177
  };
26930
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
27178
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
26931
27179
  const lynxWindowModule = new ContainerModule(bind => {
26932
27180
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
26933
27181
  });
26934
27182
 
26935
27183
  const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
26936
27184
 
26937
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27185
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26938
27186
  var d,
26939
27187
  c = arguments.length,
26940
27188
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26941
27189
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27190
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26943
27191
  },
26944
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
27192
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
26945
27193
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26946
27194
  };
26947
27195
  let ng = !1;
@@ -27051,7 +27299,7 @@ let LynxEnvContribution = class extends BaseEnvContribution {
27051
27299
  }
27052
27300
  release() {}
27053
27301
  };
27054
- LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
27302
+ LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
27055
27303
 
27056
27304
  const lynxEnvModule = new ContainerModule(bind => {
27057
27305
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -27066,14 +27314,14 @@ function initLynxEnv() {
27066
27314
  loadLynxEnv(container);
27067
27315
  }
27068
27316
 
27069
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27317
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27070
27318
  var d,
27071
27319
  c = arguments.length,
27072
27320
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27073
27321
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27074
27322
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27075
27323
  },
27076
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
27324
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
27077
27325
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27078
27326
  };
27079
27327
  let NodeContext2d = class extends BrowserContext2d {
@@ -27085,16 +27333,16 @@ let NodeContext2d = class extends BrowserContext2d {
27085
27333
  }
27086
27334
  release() {}
27087
27335
  };
27088
- NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
27336
+ NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
27089
27337
 
27090
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27338
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27091
27339
  var d,
27092
27340
  c = arguments.length,
27093
27341
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27094
27342
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27343
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27096
27344
  },
27097
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
27345
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
27098
27346
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27099
27347
  };
27100
27348
  let NodeCanvas = class extends BaseCanvas {
@@ -27108,21 +27356,21 @@ let NodeCanvas = class extends BaseCanvas {
27108
27356
  this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
27109
27357
  }
27110
27358
  };
27111
- NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
27359
+ NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
27112
27360
 
27113
27361
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
27114
27362
 
27115
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27363
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27116
27364
  var d,
27117
27365
  c = arguments.length,
27118
27366
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27119
27367
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27368
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27121
27369
  },
27122
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
27370
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
27123
27371
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27124
27372
  },
27125
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
27373
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27126
27374
  return function (target, key) {
27127
27375
  decorator(target, key, paramIndex);
27128
27376
  };
@@ -27213,12 +27461,12 @@ let NodeWindowHandlerContribution = class extends BaseWindowHandlerContribution
27213
27461
  }
27214
27462
  clearViewBox(color) {}
27215
27463
  };
27216
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27464
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27217
27465
  const nodeWindowModule = new ContainerModule(bind => {
27218
27466
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
27219
27467
  });
27220
27468
 
27221
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27469
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27222
27470
  var d,
27223
27471
  c = arguments.length,
27224
27472
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27304,7 +27552,7 @@ let NodeEnvContribution = class extends BaseEnvContribution {
27304
27552
  release() {}
27305
27553
  createOffscreenCanvas(params) {}
27306
27554
  };
27307
- NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
27555
+ NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
27308
27556
 
27309
27557
  const nodeEnvModule = new ContainerModule(bind => {
27310
27558
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -27318,7 +27566,7 @@ function initNodeEnv() {
27318
27566
  loadNodeEnv(container);
27319
27567
  }
27320
27568
 
27321
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27569
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27322
27570
  var d,
27323
27571
  c = arguments.length,
27324
27572
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27407,16 +27655,16 @@ let TaroContext2d = class extends BrowserContext2d {
27407
27655
  return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
27408
27656
  }
27409
27657
  };
27410
- TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
27658
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
27411
27659
 
27412
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27660
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27413
27661
  var d,
27414
27662
  c = arguments.length,
27415
27663
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27416
27664
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27665
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27418
27666
  },
27419
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
27667
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
27420
27668
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27421
27669
  };
27422
27670
  let TaroCanvas = class extends BaseCanvas {
@@ -27428,21 +27676,21 @@ let TaroCanvas = class extends BaseCanvas {
27428
27676
  }
27429
27677
  release() {}
27430
27678
  };
27431
- TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
27679
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
27432
27680
 
27433
27681
  const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
27434
27682
 
27435
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27683
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27436
27684
  var d,
27437
27685
  c = arguments.length,
27438
27686
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27439
27687
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27688
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27441
27689
  },
27442
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
27690
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
27443
27691
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27444
27692
  },
27445
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27693
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
27446
27694
  return function (target, key) {
27447
27695
  decorator(target, key, paramIndex);
27448
27696
  };
@@ -27588,19 +27836,19 @@ let TaroWindowHandlerContribution = class extends BaseWindowHandlerContribution
27588
27836
  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
27837
  }
27590
27838
  };
27591
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27839
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27592
27840
  const taroWindowModule = new ContainerModule(bind => {
27593
27841
  bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
27594
27842
  });
27595
27843
 
27596
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27844
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27597
27845
  var d,
27598
27846
  c = arguments.length,
27599
27847
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27600
27848
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27849
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27602
27850
  },
27603
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
27851
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
27604
27852
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27605
27853
  };
27606
27854
  function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
@@ -27697,7 +27945,7 @@ let TaroEnvContribution = class extends BaseEnvContribution {
27697
27945
  }
27698
27946
  release() {}
27699
27947
  };
27700
- TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
27948
+ TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
27701
27949
 
27702
27950
  const taroEnvModule = new ContainerModule(bind => {
27703
27951
  taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
@@ -27712,7 +27960,7 @@ function initTaroEnv() {
27712
27960
  loadTaroEnv(container);
27713
27961
  }
27714
27962
 
27715
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27963
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27716
27964
  var d,
27717
27965
  c = arguments.length,
27718
27966
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27725,16 +27973,16 @@ let WxContext2d = class extends BrowserContext2d {
27725
27973
  return null;
27726
27974
  }
27727
27975
  };
27728
- WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
27976
+ WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
27729
27977
 
27730
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27978
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27731
27979
  var d,
27732
27980
  c = arguments.length,
27733
27981
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27734
27982
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27983
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27736
27984
  },
27737
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
27985
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
27738
27986
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27739
27987
  };
27740
27988
  let WxCanvas = class extends BaseCanvas {
@@ -27746,21 +27994,21 @@ let WxCanvas = class extends BaseCanvas {
27746
27994
  }
27747
27995
  release() {}
27748
27996
  };
27749
- WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
27997
+ WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
27750
27998
 
27751
27999
  const wxCanvasModule = createModule(WxCanvas, WxContext2d);
27752
28000
 
27753
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28001
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27754
28002
  var d,
27755
28003
  c = arguments.length,
27756
28004
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27757
28005
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28006
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27759
28007
  },
27760
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
28008
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
27761
28009
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27762
28010
  },
27763
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
28011
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
27764
28012
  return function (target, key) {
27765
28013
  decorator(target, key, paramIndex);
27766
28014
  };
@@ -27897,19 +28145,19 @@ let WxWindowHandlerContribution = class extends BaseWindowHandlerContribution {
27897
28145
  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
28146
  }
27899
28147
  };
27900
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
28148
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
27901
28149
  const wxWindowModule = new ContainerModule(bind => {
27902
28150
  bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
27903
28151
  });
27904
28152
 
27905
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28153
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27906
28154
  var d,
27907
28155
  c = arguments.length,
27908
28156
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27909
28157
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28158
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27911
28159
  },
27912
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
28160
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
27913
28161
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27914
28162
  },
27915
28163
  __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28023,7 +28271,7 @@ let WxEnvContribution = class extends BaseEnvContribution {
28023
28271
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28024
28272
  }
28025
28273
  };
28026
- WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
28274
+ WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
28027
28275
 
28028
28276
  const wxEnvModule = new ContainerModule(bind => {
28029
28277
  wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
@@ -28051,7 +28299,7 @@ function initAllEnv() {
28051
28299
  loadAllEnv(container);
28052
28300
  }
28053
28301
 
28054
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28302
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28055
28303
  var d,
28056
28304
  c = arguments.length,
28057
28305
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28059,16 +28307,16 @@ var __decorate$q = undefined && undefined.__decorate || function (decorators, ta
28059
28307
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28060
28308
  };
28061
28309
  let TTContext2d = class extends FeishuContext2d {};
28062
- TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
28310
+ TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
28063
28311
 
28064
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28312
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28065
28313
  var d,
28066
28314
  c = arguments.length,
28067
28315
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28068
28316
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28317
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28070
28318
  },
28071
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
28319
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
28072
28320
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28073
28321
  };
28074
28322
  let TTCanvas = class extends BaseCanvas {
@@ -28080,21 +28328,21 @@ let TTCanvas = class extends BaseCanvas {
28080
28328
  }
28081
28329
  release() {}
28082
28330
  };
28083
- TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
28331
+ TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
28084
28332
 
28085
28333
  const ttCanvasModule = createModule(TTCanvas, TTContext2d);
28086
28334
 
28087
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28335
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28088
28336
  var d,
28089
28337
  c = arguments.length,
28090
28338
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28091
28339
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28340
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28093
28341
  },
28094
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
28342
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
28095
28343
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28096
28344
  },
28097
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
28345
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28098
28346
  return function (target, key) {
28099
28347
  decorator(target, key, paramIndex);
28100
28348
  };
@@ -28230,19 +28478,19 @@ let TTWindowHandlerContribution = class extends BaseWindowHandlerContribution {
28230
28478
  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
28479
  }
28232
28480
  };
28233
- TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
28481
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
28234
28482
  const ttWindowModule = new ContainerModule(bind => {
28235
28483
  bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
28236
28484
  });
28237
28485
 
28238
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28486
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28239
28487
  var d,
28240
28488
  c = arguments.length,
28241
28489
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28242
28490
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28491
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28244
28492
  },
28245
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
28493
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
28246
28494
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28247
28495
  },
28248
28496
  __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28352,7 +28600,7 @@ let TTEnvContribution = class extends BaseEnvContribution {
28352
28600
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28353
28601
  }
28354
28602
  };
28355
- TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
28603
+ TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
28356
28604
 
28357
28605
  const ttEnvModule = new ContainerModule(bind => {
28358
28606
  ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
@@ -28367,7 +28615,7 @@ function initTTEnv() {
28367
28615
  loadTTEnv(container);
28368
28616
  }
28369
28617
 
28370
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28618
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28371
28619
  var d,
28372
28620
  c = arguments.length,
28373
28621
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28452,16 +28700,16 @@ let HarmonyContext2d = class extends BrowserContext2d {
28452
28700
  }
28453
28701
  draw() {}
28454
28702
  };
28455
- HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
28703
+ HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
28456
28704
 
28457
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28705
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28458
28706
  var d,
28459
28707
  c = arguments.length,
28460
28708
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28461
28709
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28462
28710
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28463
28711
  },
28464
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
28712
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
28465
28713
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28466
28714
  };
28467
28715
  let HarmonyCanvas = class extends BaseCanvas {
@@ -28474,19 +28722,19 @@ let HarmonyCanvas = class extends BaseCanvas {
28474
28722
  resize(width, height) {}
28475
28723
  release() {}
28476
28724
  };
28477
- HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
28725
+ HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
28478
28726
 
28479
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28727
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28480
28728
  var d,
28481
28729
  c = arguments.length,
28482
28730
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28483
28731
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28732
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28485
28733
  },
28486
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
28734
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
28487
28735
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28488
28736
  },
28489
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28737
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
28490
28738
  return function (target, key) {
28491
28739
  decorator(target, key, paramIndex);
28492
28740
  };
@@ -28623,21 +28871,21 @@ let HarmonyWindowHandlerContribution = class extends BaseWindowHandlerContributi
28623
28871
  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
28872
  }
28625
28873
  };
28626
- HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28874
+ HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28627
28875
  const harmonyWindowModule = new ContainerModule(bind => {
28628
28876
  bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
28629
28877
  });
28630
28878
 
28631
28879
  const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
28632
28880
 
28633
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28881
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28634
28882
  var d,
28635
28883
  c = arguments.length,
28636
28884
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28637
28885
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28886
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28639
28887
  },
28640
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
28888
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
28641
28889
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28642
28890
  };
28643
28891
  function createCanvas(width, height, id) {
@@ -28718,7 +28966,7 @@ let HarmonyEnvContribution = class extends BaseEnvContribution {
28718
28966
  }
28719
28967
  release() {}
28720
28968
  };
28721
- HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
28969
+ HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
28722
28970
 
28723
28971
  const harmonyEnvModule = new ContainerModule(bind => {
28724
28972
  harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
@@ -28733,17 +28981,17 @@ function initHarmonyEnv() {
28733
28981
  loadHarmonyEnv(container);
28734
28982
  }
28735
28983
 
28736
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28984
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28737
28985
  var d,
28738
28986
  c = arguments.length,
28739
28987
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28740
28988
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28989
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28742
28990
  },
28743
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
28991
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
28744
28992
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28745
28993
  },
28746
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
28994
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
28747
28995
  return function (target, key) {
28748
28996
  decorator(target, key, paramIndex);
28749
28997
  };
@@ -28753,24 +29001,24 @@ let DefaultCanvasArcPicker = class extends PickerBase {
28753
29001
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
28754
29002
  }
28755
29003
  };
28756
- DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
29004
+ DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
28757
29005
 
28758
29006
  let loadArcPick = !1;
28759
29007
  const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28760
29008
  loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
28761
29009
  });
28762
29010
 
28763
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29011
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28764
29012
  var d,
28765
29013
  c = arguments.length,
28766
29014
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28767
29015
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29016
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28769
29017
  },
28770
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
29018
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
28771
29019
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28772
29020
  },
28773
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
29021
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
28774
29022
  return function (target, key) {
28775
29023
  decorator(target, key, paramIndex);
28776
29024
  };
@@ -28780,7 +29028,7 @@ let DefaultCanvasRectPicker = class extends RectPickerBase {
28780
29028
  super(), this.canvasRenderer = canvasRenderer;
28781
29029
  }
28782
29030
  };
28783
- DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
29031
+ DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
28784
29032
 
28785
29033
  let loadRectPick = !1;
28786
29034
  const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28822,17 +29070,17 @@ class BaseLinePicker extends BaseRender {
28822
29070
  }
28823
29071
  }
28824
29072
 
28825
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29073
+ var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28826
29074
  var d,
28827
29075
  c = arguments.length,
28828
29076
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28829
29077
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29078
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28831
29079
  },
28832
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
29080
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
28833
29081
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28834
29082
  },
28835
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
29083
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
28836
29084
  return function (target, key) {
28837
29085
  decorator(target, key, paramIndex);
28838
29086
  };
@@ -28842,24 +29090,24 @@ let DefaultCanvasLinePicker = class extends BaseLinePicker {
28842
29090
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
28843
29091
  }
28844
29092
  };
28845
- DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
29093
+ DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
28846
29094
 
28847
29095
  let loadLinePick = !1;
28848
29096
  const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28849
29097
  loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
28850
29098
  });
28851
29099
 
28852
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29100
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28853
29101
  var d,
28854
29102
  c = arguments.length,
28855
29103
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28856
29104
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29105
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28858
29106
  },
28859
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
29107
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
28860
29108
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28861
29109
  },
28862
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
29110
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
28863
29111
  return function (target, key) {
28864
29112
  decorator(target, key, paramIndex);
28865
29113
  };
@@ -28869,7 +29117,7 @@ let DefaultCanvasAreaPicker = class extends PickerBase {
28869
29117
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
28870
29118
  }
28871
29119
  };
28872
- DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
29120
+ DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
28873
29121
 
28874
29122
  let loadAreaPick = !1;
28875
29123
  const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28903,17 +29151,17 @@ class Base3dPicker extends BaseRender {
28903
29151
  }
28904
29152
  }
28905
29153
 
28906
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29154
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28907
29155
  var d,
28908
29156
  c = arguments.length,
28909
29157
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28910
29158
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29159
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28912
29160
  },
28913
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
29161
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
28914
29162
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28915
29163
  },
28916
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
29164
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
28917
29165
  return function (target, key) {
28918
29166
  decorator(target, key, paramIndex);
28919
29167
  };
@@ -28958,24 +29206,24 @@ let DefaultCanvasSymbolPicker = class extends Base3dPicker {
28958
29206
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
28959
29207
  }
28960
29208
  };
28961
- DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
29209
+ DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
28962
29210
 
28963
29211
  let loadSymbolPick = !1;
28964
29212
  const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28965
29213
  loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
28966
29214
  });
28967
29215
 
28968
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29216
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28969
29217
  var d,
28970
29218
  c = arguments.length,
28971
29219
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28972
29220
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29221
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28974
29222
  },
28975
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
29223
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
28976
29224
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28977
29225
  },
28978
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
29226
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
28979
29227
  return function (target, key) {
28980
29228
  decorator(target, key, paramIndex);
28981
29229
  };
@@ -28985,24 +29233,24 @@ let DefaultCanvasCirclePicker = class extends PickerBase {
28985
29233
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
28986
29234
  }
28987
29235
  };
28988
- DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
29236
+ DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
28989
29237
 
28990
29238
  let loadCirclePick = !1;
28991
29239
  const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28992
29240
  loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
28993
29241
  });
28994
29242
 
28995
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29243
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28996
29244
  var d,
28997
29245
  c = arguments.length,
28998
29246
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28999
29247
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29248
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29001
29249
  },
29002
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
29250
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29003
29251
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29004
29252
  },
29005
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
29253
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29006
29254
  return function (target, key) {
29007
29255
  decorator(target, key, paramIndex);
29008
29256
  };
@@ -29055,24 +29303,24 @@ let DefaultCanvasTextPicker = class extends Base3dPicker {
29055
29303
  }, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
29056
29304
  }
29057
29305
  };
29058
- DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29306
+ DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29059
29307
 
29060
29308
  let loadTextPick = !1;
29061
29309
  const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29062
29310
  loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
29063
29311
  });
29064
29312
 
29065
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29313
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29066
29314
  var d,
29067
29315
  c = arguments.length,
29068
29316
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29069
29317
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29318
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29071
29319
  },
29072
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29320
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29073
29321
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29074
29322
  },
29075
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29323
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29076
29324
  return function (target, key) {
29077
29325
  decorator(target, key, paramIndex);
29078
29326
  };
@@ -29082,24 +29330,24 @@ let DefaultCanvasPathPicker = class extends BaseLinePicker {
29082
29330
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
29083
29331
  }
29084
29332
  };
29085
- DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29333
+ DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29086
29334
 
29087
29335
  let loadPathPick = !1;
29088
29336
  const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29089
29337
  loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
29090
29338
  });
29091
29339
 
29092
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29340
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29093
29341
  var d,
29094
29342
  c = arguments.length,
29095
29343
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29096
29344
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29345
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29098
29346
  },
29099
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29347
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29100
29348
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29101
29349
  },
29102
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29350
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29103
29351
  return function (target, key) {
29104
29352
  decorator(target, key, paramIndex);
29105
29353
  };
@@ -29109,24 +29357,24 @@ let DefaultCanvasPolygonPicker = class extends PickerBase {
29109
29357
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
29110
29358
  }
29111
29359
  };
29112
- DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29360
+ DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29113
29361
 
29114
29362
  let loadPolygonPick = !1;
29115
29363
  const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29116
29364
  loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
29117
29365
  });
29118
29366
 
29119
- var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29367
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29120
29368
  var d,
29121
29369
  c = arguments.length,
29122
29370
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29123
29371
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29372
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29125
29373
  },
29126
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29374
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29127
29375
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29128
29376
  },
29129
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29377
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29130
29378
  return function (target, key) {
29131
29379
  decorator(target, key, paramIndex);
29132
29380
  };
@@ -29136,24 +29384,24 @@ let DefaultCanvasGlyphPicker = class extends GlyphPickerBase {
29136
29384
  super(), this.canvasRenderer = canvasRenderer;
29137
29385
  }
29138
29386
  };
29139
- DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29387
+ DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29140
29388
 
29141
29389
  let loadGlyphPick = !1;
29142
29390
  const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29143
29391
  loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
29144
29392
  });
29145
29393
 
29146
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29394
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29147
29395
  var d,
29148
29396
  c = arguments.length,
29149
29397
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29150
29398
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29399
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29152
29400
  },
29153
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29401
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29154
29402
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29155
29403
  },
29156
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29404
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29157
29405
  return function (target, key) {
29158
29406
  decorator(target, key, paramIndex);
29159
29407
  };
@@ -29166,14 +29414,14 @@ let DefaultCanvasRichTextPicker = class {
29166
29414
  return !!richtext.AABBBounds.containsPoint(point);
29167
29415
  }
29168
29416
  };
29169
- DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29417
+ DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29170
29418
 
29171
29419
  let loadRichtextPick = !1;
29172
29420
  const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29173
29421
  loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
29174
29422
  });
29175
29423
 
29176
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29424
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29177
29425
  var d,
29178
29426
  c = arguments.length,
29179
29427
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29191,24 +29439,24 @@ let DefaultCanvasImagePicker = class {
29191
29439
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
29192
29440
  }
29193
29441
  };
29194
- DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
29442
+ DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
29195
29443
 
29196
29444
  let loadImagePick = !1;
29197
29445
  const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29198
29446
  loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
29199
29447
  });
29200
29448
 
29201
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29449
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29202
29450
  var d,
29203
29451
  c = arguments.length,
29204
29452
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29205
29453
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29454
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29207
29455
  },
29208
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29456
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29209
29457
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29210
29458
  },
29211
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29459
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29212
29460
  return function (target, key) {
29213
29461
  decorator(target, key, paramIndex);
29214
29462
  };
@@ -29218,24 +29466,24 @@ let DefaultCanvasRect3dPicker = class extends Base3dPicker {
29218
29466
  super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
29219
29467
  }
29220
29468
  };
29221
- DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29469
+ DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29222
29470
 
29223
29471
  let loadRect3dPick = !1;
29224
29472
  const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29225
29473
  loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
29226
29474
  });
29227
29475
 
29228
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29476
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29229
29477
  var d,
29230
29478
  c = arguments.length,
29231
29479
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29232
29480
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29481
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29234
29482
  },
29235
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29483
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29236
29484
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29237
29485
  },
29238
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29486
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29239
29487
  return function (target, key) {
29240
29488
  decorator(target, key, paramIndex);
29241
29489
  };
@@ -29245,24 +29493,24 @@ let DefaultCanvasArc3dPicker = class extends Base3dPicker {
29245
29493
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
29246
29494
  }
29247
29495
  };
29248
- DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29496
+ DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29249
29497
 
29250
29498
  let loadArc3dPick = !1;
29251
29499
  const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29252
29500
  loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
29253
29501
  });
29254
29502
 
29255
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29503
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29256
29504
  var d,
29257
29505
  c = arguments.length,
29258
29506
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29259
29507
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29508
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29261
29509
  },
29262
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29510
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29263
29511
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29264
29512
  },
29265
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29513
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29266
29514
  return function (target, key) {
29267
29515
  decorator(target, key, paramIndex);
29268
29516
  };
@@ -29272,724 +29520,15 @@ let DefaultCanvasPyramid3dPicker = class extends Base3dPicker {
29272
29520
  super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
29273
29521
  }
29274
29522
  };
29275
- DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29523
+ DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29276
29524
 
29277
29525
  let loadPyramid3dPick = !1;
29278
29526
  const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29279
29527
  loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
29280
29528
  });
29281
29529
 
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
29530
  const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29877
29531
 
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
29532
  var lottie = {exports: {}};
29994
29533
 
29995
29534
  (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 +30430,7 @@ const registerWrapText = _registerWrapText;
30891
30430
 
30892
30431
  const roughModule = _roughModule;
30893
30432
 
30894
- const version = "0.22.0-vstory.1";
30433
+ const version = "0.22.0-vstory.2";
30895
30434
  preLoadAllModule();
30896
30435
  if (isBrowserEnv()) {
30897
30436
  loadBrowserEnv(container);
@@ -30924,4 +30463,4 @@ registerReactAttributePlugin();
30924
30463
  registerDirectionalLight();
30925
30464
  registerOrthoCamera();
30926
30465
 
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 };
30466
+ 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 };