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

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);
@@ -4753,10 +4748,10 @@ function measureTextCanvas(text, character) {
4753
4748
  descent: 0,
4754
4749
  width: 0
4755
4750
  };
4756
- 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;
4751
+ return "number" != typeof measurement.fontBoundingBoxAscent || "number" != typeof measurement.fontBoundingBoxDescent ? (result.width = measurement.width, result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = measurement.width, result.height = Math.floor(measurement.fontBoundingBoxAscent + measurement.fontBoundingBoxDescent), result.ascent = Math.floor(measurement.fontBoundingBoxAscent), result.descent = result.height - result.ascent), result;
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;
@@ -10117,14 +10113,14 @@ class Graphic extends Node {
10117
10113
  null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame), null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove), animate.interpolateFunc = params.interpolate;
10118
10114
  }
10119
10115
  return this.animates.set(animate.id, animate), animate.onRemove(() => {
10120
- this.animates.delete(animate.id);
10116
+ animate.stop(), this.animates.delete(animate.id);
10121
10117
  }), animate;
10122
10118
  }
10123
10119
  onAttributeUpdate(context) {
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));
@@ -10321,7 +10317,7 @@ class Graphic extends Node {
10321
10317
  if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
10322
10318
  const timeline = stage.getTimeline();
10323
10319
  this.animates.forEach(a => {
10324
- a.setTimeline(timeline);
10320
+ a.timeline === defaultTimeline && a.setTimeline(timeline);
10325
10321
  });
10326
10322
  }
10327
10323
  this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
@@ -10425,7 +10421,7 @@ class Graphic extends Node {
10425
10421
  return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
10426
10422
  }
10427
10423
  detachShadow() {
10428
- this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
10424
+ this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
10429
10425
  }
10430
10426
  toJson() {
10431
10427
  return {
@@ -10477,7 +10473,7 @@ class Graphic extends Node {
10477
10473
  });
10478
10474
  }
10479
10475
  release() {
10480
- this.releaseStatus = "released", application.graphicService.onRelease(this);
10476
+ this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
10481
10477
  }
10482
10478
  _emitCustomEvent(type, context) {
10483
10479
  var _a, _b;
@@ -10916,7 +10912,7 @@ class Group extends Graphic {
10916
10912
  application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
10917
10913
  const selfChange = this.shouldSelfChangeUpdateAABBBounds(),
10918
10914
  bounds = this.doUpdateAABBBounds();
10919
- return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), bounds;
10915
+ return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
10920
10916
  }
10921
10917
  doUpdateLocalMatrix() {
10922
10918
  const {
@@ -11053,6 +11049,11 @@ class Group extends Graphic {
11053
11049
  getNoWorkAnimateAttr() {
11054
11050
  return Group.NOWORK_ANIMATE_ATTR;
11055
11051
  }
11052
+ release(all) {
11053
+ all && this.forEachChildren(g => {
11054
+ g.release(all);
11055
+ }), super.release();
11056
+ }
11056
11057
  }
11057
11058
  Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
11058
11059
  function createGroup(attributes) {
@@ -11174,14 +11175,14 @@ const DynamicLayerHandlerContribution = Symbol.for("DynamicLayerHandlerContribut
11174
11175
  const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
11175
11176
 
11176
11177
  var DefaultLayerService_1,
11177
- __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11178
+ __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11178
11179
  var d,
11179
11180
  c = arguments.length,
11180
11181
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11181
11182
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
11183
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11183
11184
  },
11184
- __metadata$1g = undefined && undefined.__metadata || function (k, v) {
11185
+ __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11185
11186
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11186
11187
  };
11187
11188
  let DefaultLayerService = DefaultLayerService_1 = class {
@@ -11245,7 +11246,7 @@ let DefaultLayerService = DefaultLayerService_1 = class {
11245
11246
  this.layerMap.delete(stage);
11246
11247
  }
11247
11248
  };
11248
- DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1G([injectable(), __metadata$1g("design:paramtypes", [])], DefaultLayerService);
11249
+ DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], DefaultLayerService);
11249
11250
 
11250
11251
  var coreModule = new ContainerModule(bind => {
11251
11252
  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 +11785,17 @@ class DefaultMat4Allocate {
11784
11785
  const matrixAllocate = new DefaultMatrixAllocate();
11785
11786
  const mat4Allocate = new DefaultMat4Allocate();
11786
11787
 
11787
- var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11788
+ var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11788
11789
  var d,
11789
11790
  c = arguments.length,
11790
11791
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
11791
11792
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
11793
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11793
11794
  },
11794
- __metadata$1f = undefined && undefined.__metadata || function (k, v) {
11795
+ __metadata$1e = undefined && undefined.__metadata || function (k, v) {
11795
11796
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
11796
11797
  },
11797
- __param$T = undefined && undefined.__param || function (paramIndex, decorator) {
11798
+ __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
11798
11799
  return function (target, key) {
11799
11800
  decorator(target, key, paramIndex);
11800
11801
  };
@@ -12006,7 +12007,7 @@ let DefaultGraphicService = class {
12006
12007
  };
12007
12008
  }
12008
12009
  };
12009
- DefaultGraphicService = __decorate$1F([injectable(), __param$T(0, inject(GraphicCreator$1)), __metadata$1f("design:paramtypes", [Object])], DefaultGraphicService);
12010
+ DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], DefaultGraphicService);
12010
12011
 
12011
12012
  const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
12012
12013
  const {
@@ -13243,7 +13244,7 @@ class CustomSymbolClass {
13243
13244
  return isNumber$1(size) ? size : Math.min(size[0], size[1]);
13244
13245
  }
13245
13246
  drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
13246
- return this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
13247
+ return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
13247
13248
  item.path.drawWithClipRange(ctx, size, x, y, clipRange), cb && cb(item.path, item.attribute);
13248
13249
  }), !1) : (this.path.drawWithClipRange(ctx, size, x, y, clipRange), !1);
13249
13250
  }
@@ -13885,6 +13886,14 @@ class Frame {
13885
13886
  }
13886
13887
  }
13887
13888
 
13889
+ function getFixedLRTB(left, right, top, bottom) {
13890
+ return {
13891
+ left: Math.round(left),
13892
+ top: Math.round(top),
13893
+ right: Math.round(right),
13894
+ bottom: Math.round(bottom)
13895
+ };
13896
+ }
13888
13897
  class Paragraph {
13889
13898
  constructor(text, newLine, character) {
13890
13899
  this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
@@ -13907,7 +13916,32 @@ class Paragraph {
13907
13916
  } = measureTextCanvas(this.text, this.character);
13908
13917
  this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
13909
13918
  }
13910
- draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign) {
13919
+ drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13920
+ if (!this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
13921
+ let baseline = top + ascent,
13922
+ text = this.text,
13923
+ left = this.left + deltaLeft;
13924
+ baseline += this.top;
13925
+ let direction = this.direction;
13926
+ if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
13927
+ if ("hide" === this.ellipsis) return;
13928
+ if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
13929
+ const index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
13930
+ if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
13931
+ const {
13932
+ width: width
13933
+ } = measureTextCanvas(this.text.slice(index), this.character);
13934
+ "vertical" === direction || (left -= this.ellipsisWidth - width);
13935
+ }
13936
+ }
13937
+ }
13938
+ const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
13939
+ return Object.assign(Object.assign({}, lrtb), {
13940
+ fillStyle: this.character.background,
13941
+ globalAlpha: this.character.backgroundOpacity
13942
+ });
13943
+ }
13944
+ draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
13911
13945
  let baseline = top + ascent,
13912
13946
  text = this.text,
13913
13947
  left = this.left + deltaLeft;
@@ -13932,15 +13966,31 @@ class Paragraph {
13932
13966
  case "sub":
13933
13967
  baseline += this.descent / 2;
13934
13968
  }
13935
- if ("vertical" === direction && (ctx.save(), ctx.rotateAbout(Math.PI / 2, left, baseline), ctx.translate(-this.heightOrigin || -this.lineHeight / 2, -this.descent / 2), ctx.translate(left, baseline), left = 0, baseline = 0), this.character.fill && this.character.background && (!this.character.backgroundOpacity || this.character.backgroundOpacity > 0)) {
13936
- const fillStyle = ctx.fillStyle,
13937
- globalAlpha = ctx.globalAlpha;
13938
- ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity), ctx.fillRect(left, top, this.widthOrigin || this.width, this.lineHeight), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
13939
- }
13969
+ "vertical" === direction && (ctx.save(), ctx.rotateAbout(Math.PI / 2, left, baseline), ctx.translate(-this.heightOrigin || -this.lineHeight / 2, -this.descent / 2), ctx.translate(left, baseline), left = 0, baseline = 0);
13940
13970
  const {
13941
13971
  lineWidth = 1
13942
13972
  } = 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();
13973
+ 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) {
13974
+ if (this.character.underline) {
13975
+ const top = 1 + baseline,
13976
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13977
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13978
+ }
13979
+ if (this.character.lineThrough) {
13980
+ const top = 1 + baseline - this.ascent / 2,
13981
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13982
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13983
+ }
13984
+ } else if ("underline" === this.character.textDecoration) {
13985
+ const top = 1 + baseline,
13986
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13987
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13988
+ } else if ("line-through" === this.character.textDecoration) {
13989
+ const top = 1 + baseline - this.ascent / 2,
13990
+ lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
13991
+ ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
13992
+ }
13993
+ "vertical" === direction && ctx.restore();
13944
13994
  }
13945
13995
  getWidthWithEllips(direction) {
13946
13996
  let text = this.text;
@@ -14163,7 +14213,20 @@ class Line {
14163
14213
  paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
14164
14214
  }
14165
14215
  }
14216
+ let fillStyle = "",
14217
+ globalAlpha = -1,
14218
+ currBgList = [];
14219
+ const bgList = [currBgList];
14166
14220
  this.paragraphs.forEach((paragraph, index) => {
14221
+ if (paragraph instanceof RichTextIcon) return;
14222
+ const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14223
+ data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
14224
+ }), bgList.forEach(bg => {
14225
+ if (0 === bg.length) return;
14226
+ const data = bg[0],
14227
+ end = bg[bg.length - 1];
14228
+ ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
14229
+ }), this.paragraphs.forEach((paragraph, index) => {
14167
14230
  if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
14168
14231
  x: x + paragraph._x,
14169
14232
  y: y + paragraph._y
@@ -14174,7 +14237,7 @@ class Line {
14174
14237
  x2: this.left + this.actualWidth,
14175
14238
  y2: this.top + this.height
14176
14239
  };
14177
- applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
14240
+ applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
14178
14241
  });
14179
14242
  }
14180
14243
  getWidthWithEllips(ellipsis) {
@@ -14325,7 +14388,13 @@ class RichText extends Graphic {
14325
14388
  }
14326
14389
  return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
14327
14390
  }
14391
+ static splitEmoji(text) {
14392
+ return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
14393
+ }
14328
14394
  static splitText(text) {
14395
+ try {
14396
+ return this.splitEmoji(text);
14397
+ } catch (e) {}
14329
14398
  return Array.from(text);
14330
14399
  }
14331
14400
  static TransformTextConfig2SingleCharacter(textConfig) {
@@ -14341,13 +14410,15 @@ class RichText extends Graphic {
14341
14410
  }), tc;
14342
14411
  }
14343
14412
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
14413
+ var _a, _b;
14344
14414
  const {
14345
14415
  width = richtextTheme.width,
14346
14416
  height = richtextTheme.height,
14347
14417
  maxWidth = richtextTheme.maxWidth,
14348
14418
  maxHeight = richtextTheme.maxHeight,
14349
14419
  textAlign = richtextTheme.textAlign,
14350
- textBaseline = richtextTheme.textBaseline
14420
+ textBaseline = richtextTheme.textBaseline,
14421
+ editOptions: editOptions
14351
14422
  } = attribute;
14352
14423
  if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
14353
14424
  const frameCache = this.getFrameCache(),
@@ -14359,6 +14430,7 @@ class RichText extends Graphic {
14359
14430
  contentHeight = height || actualHeight || 0;
14360
14431
  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
14432
  }
14433
+ 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
14434
  let deltaY = 0;
14363
14435
  switch (textBaseline) {
14364
14436
  case "top":
@@ -15336,17 +15408,17 @@ class BaseRender {
15336
15408
  }
15337
15409
  }
15338
15410
 
15339
- var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15411
+ var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15340
15412
  var d,
15341
15413
  c = arguments.length,
15342
15414
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15343
15415
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
15416
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15345
15417
  },
15346
- __metadata$1e = undefined && undefined.__metadata || function (k, v) {
15418
+ __metadata$1d = undefined && undefined.__metadata || function (k, v) {
15347
15419
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15348
15420
  },
15349
- __param$S = undefined && undefined.__param || function (paramIndex, decorator) {
15421
+ __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
15350
15422
  return function (target, key) {
15351
15423
  decorator(target, key, paramIndex);
15352
15424
  };
@@ -15443,7 +15515,7 @@ let DefaultBaseInteractiveRenderContribution = class {
15443
15515
  });
15444
15516
  }
15445
15517
  };
15446
- DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15518
+ DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
15447
15519
 
15448
15520
  function formatRatio(ratio) {
15449
15521
  return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
@@ -15791,7 +15863,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
15791
15863
  return !edgeCb && path.closePath(), path;
15792
15864
  }
15793
15865
 
15794
- var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15866
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15795
15867
  var d,
15796
15868
  c = arguments.length,
15797
15869
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15856,7 +15928,7 @@ let SplitRectBeforeRenderContribution = class {
15856
15928
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
15857
15929
  }
15858
15930
  };
15859
- SplitRectBeforeRenderContribution = __decorate$1D([injectable()], SplitRectBeforeRenderContribution);
15931
+ SplitRectBeforeRenderContribution = __decorate$1B([injectable()], SplitRectBeforeRenderContribution);
15860
15932
  let SplitRectAfterRenderContribution = class {
15861
15933
  constructor() {
15862
15934
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -15893,7 +15965,7 @@ let SplitRectAfterRenderContribution = class {
15893
15965
  }
15894
15966
  }
15895
15967
  };
15896
- SplitRectAfterRenderContribution = __decorate$1D([injectable()], SplitRectAfterRenderContribution);
15968
+ SplitRectAfterRenderContribution = __decorate$1B([injectable()], SplitRectAfterRenderContribution);
15897
15969
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
15898
15970
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
15899
15971
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -15902,8 +15974,8 @@ class DefaultImageRenderContribution extends DefaultRectRenderContribution {
15902
15974
  constructor() {
15903
15975
  super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
15904
15976
  }
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);
15977
+ drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
15978
+ return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
15907
15979
  }
15908
15980
  }
15909
15981
  const defaultImageRenderContribution = new DefaultImageRenderContribution();
@@ -15998,17 +16070,17 @@ class DefaultAreaTextureRenderContribution extends DefaultBaseTextureRenderContr
15998
16070
  }
15999
16071
  }
16000
16072
 
16001
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16073
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16002
16074
  var d,
16003
16075
  c = arguments.length,
16004
16076
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16005
16077
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16078
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16007
16079
  },
16008
- __metadata$1d = undefined && undefined.__metadata || function (k, v) {
16080
+ __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16009
16081
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16010
16082
  },
16011
- __param$R = undefined && undefined.__param || function (paramIndex, decorator) {
16083
+ __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16012
16084
  return function (target, key) {
16013
16085
  decorator(target, key, paramIndex);
16014
16086
  };
@@ -16172,19 +16244,19 @@ let DefaultCanvasArcRender = class extends BaseRender {
16172
16244
  this._draw(arc, arcAttribute, !1, drawContext, params);
16173
16245
  }
16174
16246
  };
16175
- DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultCanvasArcRender);
16247
+ DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasArcRender);
16176
16248
 
16177
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16249
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16178
16250
  var d,
16179
16251
  c = arguments.length,
16180
16252
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16181
16253
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16254
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16183
16255
  },
16184
- __metadata$1c = undefined && undefined.__metadata || function (k, v) {
16256
+ __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16185
16257
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16186
16258
  },
16187
- __param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
16259
+ __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16188
16260
  return function (target, key) {
16189
16261
  decorator(target, key, paramIndex);
16190
16262
  };
@@ -16225,7 +16297,7 @@ let DefaultCanvasCircleRender = class extends BaseRender {
16225
16297
  this._draw(circle, circleAttribute, !1, drawContext, params);
16226
16298
  }
16227
16299
  };
16228
- DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasCircleRender);
16300
+ DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasCircleRender);
16229
16301
 
16230
16302
  function drawSegItem(ctx, curve, endPercent, params) {
16231
16303
  if (!curve.p1) return;
@@ -16349,7 +16421,7 @@ function drawIncrementalAreaSegments(path, lastSeg, segments, params) {
16349
16421
  });
16350
16422
  }
16351
16423
 
16352
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16424
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16353
16425
  var d,
16354
16426
  c = arguments.length,
16355
16427
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16510,7 +16582,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
16510
16582
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
16511
16583
  }
16512
16584
  };
16513
- DefaultCanvasLineRender = __decorate$1A([injectable()], DefaultCanvasLineRender);
16585
+ DefaultCanvasLineRender = __decorate$1y([injectable()], DefaultCanvasLineRender);
16514
16586
 
16515
16587
  function drawAreaSegments(path, segPath, percent, params) {
16516
16588
  var _a;
@@ -16639,17 +16711,17 @@ function drawAreaBlock(path, topList, bottomList, params) {
16639
16711
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
16640
16712
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16641
16713
 
16642
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16714
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16643
16715
  var d,
16644
16716
  c = arguments.length,
16645
16717
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16646
16718
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16719
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16648
16720
  },
16649
- __metadata$1b = undefined && undefined.__metadata || function (k, v) {
16721
+ __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16650
16722
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16651
16723
  },
16652
- __param$P = undefined && undefined.__param || function (paramIndex, decorator) {
16724
+ __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16653
16725
  return function (target, key) {
16654
16726
  decorator(target, key, paramIndex);
16655
16727
  };
@@ -16892,22 +16964,22 @@ let DefaultCanvasAreaRender = class extends BaseRender {
16892
16964
  })(), !1;
16893
16965
  }
16894
16966
  };
16895
- DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasAreaRender);
16967
+ DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasAreaRender);
16896
16968
 
16897
16969
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
16898
16970
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
16899
16971
 
16900
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16972
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16901
16973
  var d,
16902
16974
  c = arguments.length,
16903
16975
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16904
16976
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16977
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16906
16978
  },
16907
- __metadata$1a = undefined && undefined.__metadata || function (k, v) {
16979
+ __metadata$19 = undefined && undefined.__metadata || function (k, v) {
16908
16980
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16909
16981
  },
16910
- __param$O = undefined && undefined.__param || function (paramIndex, decorator) {
16982
+ __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
16911
16983
  return function (target, key) {
16912
16984
  decorator(target, key, paramIndex);
16913
16985
  };
@@ -16951,19 +17023,19 @@ let DefaultCanvasPathRender = class extends BaseRender {
16951
17023
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
16952
17024
  }
16953
17025
  };
16954
- DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasPathRender);
17026
+ DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasPathRender);
16955
17027
 
16956
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17028
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16957
17029
  var d,
16958
17030
  c = arguments.length,
16959
17031
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16960
17032
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17033
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16962
17034
  },
16963
- __metadata$19 = undefined && undefined.__metadata || function (k, v) {
17035
+ __metadata$18 = undefined && undefined.__metadata || function (k, v) {
16964
17036
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16965
17037
  },
16966
- __param$N = undefined && undefined.__param || function (paramIndex, decorator) {
17038
+ __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
16967
17039
  return function (target, key) {
16968
17040
  decorator(target, key, paramIndex);
16969
17041
  };
@@ -17023,19 +17095,19 @@ let DefaultCanvasRectRender = class extends BaseRender {
17023
17095
  this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
17024
17096
  }
17025
17097
  };
17026
- DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasRectRender);
17098
+ DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasRectRender);
17027
17099
 
17028
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17100
+ var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17029
17101
  var d,
17030
17102
  c = arguments.length,
17031
17103
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17032
17104
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17105
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17034
17106
  },
17035
- __metadata$18 = undefined && undefined.__metadata || function (k, v) {
17107
+ __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17036
17108
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17037
17109
  },
17038
- __param$M = undefined && undefined.__param || function (paramIndex, decorator) {
17110
+ __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17039
17111
  return function (target, key) {
17040
17112
  decorator(target, key, paramIndex);
17041
17113
  };
@@ -17106,7 +17178,7 @@ let DefaultCanvasSymbolRender = class extends BaseRender {
17106
17178
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
17107
17179
  }
17108
17180
  };
17109
- DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
17181
+ DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
17110
17182
 
17111
17183
  class DefaultBoundsAllocate {
17112
17184
  constructor() {
@@ -17195,17 +17267,17 @@ class DefaultTextBackgroundRenderContribution extends DefaultBaseBackgroundRende
17195
17267
  }
17196
17268
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
17197
17269
 
17198
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17270
+ var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17199
17271
  var d,
17200
17272
  c = arguments.length,
17201
17273
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17202
17274
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17275
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17204
17276
  },
17205
- __metadata$17 = undefined && undefined.__metadata || function (k, v) {
17277
+ __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17206
17278
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17207
17279
  },
17208
- __param$L = undefined && undefined.__param || function (paramIndex, decorator) {
17280
+ __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17209
17281
  return function (target, key) {
17210
17282
  decorator(target, key, paramIndex);
17211
17283
  };
@@ -17344,9 +17416,9 @@ let DefaultCanvasTextRender = class extends BaseRender {
17344
17416
  }
17345
17417
  }
17346
17418
  };
17347
- DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasTextRender);
17419
+ DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasTextRender);
17348
17420
 
17349
- var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17421
+ var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17350
17422
  var d,
17351
17423
  c = arguments.length,
17352
17424
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17354,7 +17426,7 @@ var __decorate$1u = undefined && undefined.__decorate || function (decorators, t
17354
17426
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17355
17427
  };
17356
17428
  let AbstractGraphicRender = class {};
17357
- AbstractGraphicRender = __decorate$1u([injectable()], AbstractGraphicRender);
17429
+ AbstractGraphicRender = __decorate$1s([injectable()], AbstractGraphicRender);
17358
17430
 
17359
17431
  function drawPolygon(path, points, x, y) {
17360
17432
  path.moveTo(points[0].x + x, points[0].y + y);
@@ -17410,17 +17482,17 @@ function getProportionPoint(point, segment, length, dx, dy) {
17410
17482
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
17411
17483
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
17412
17484
 
17413
- var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17485
+ var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17414
17486
  var d,
17415
17487
  c = arguments.length,
17416
17488
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17417
17489
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17490
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17419
17491
  },
17420
- __metadata$16 = undefined && undefined.__metadata || function (k, v) {
17492
+ __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17421
17493
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17422
17494
  },
17423
- __param$K = undefined && undefined.__param || function (paramIndex, decorator) {
17495
+ __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17424
17496
  return function (target, key) {
17425
17497
  decorator(target, key, paramIndex);
17426
17498
  };
@@ -17461,19 +17533,19 @@ let DefaultCanvasPolygonRender = class extends BaseRender {
17461
17533
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
17462
17534
  }
17463
17535
  };
17464
- DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
17536
+ DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
17465
17537
 
17466
- var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17538
+ var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17467
17539
  var d,
17468
17540
  c = arguments.length,
17469
17541
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17470
17542
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17543
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17472
17544
  },
17473
- __metadata$15 = undefined && undefined.__metadata || function (k, v) {
17545
+ __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17474
17546
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17475
17547
  },
17476
- __param$J = undefined && undefined.__param || function (paramIndex, decorator) {
17548
+ __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17477
17549
  return function (target, key) {
17478
17550
  decorator(target, key, paramIndex);
17479
17551
  };
@@ -17568,19 +17640,19 @@ let DefaultCanvasGroupRender = class {
17568
17640
  }) : clip ? context.restore() : context.highPerformanceRestore();
17569
17641
  }
17570
17642
  };
17571
- DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17643
+ DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasGroupRender);
17572
17644
 
17573
- var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17645
+ var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17574
17646
  var d,
17575
17647
  c = arguments.length,
17576
17648
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17577
17649
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17650
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17579
17651
  },
17580
- __metadata$14 = undefined && undefined.__metadata || function (k, v) {
17652
+ __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17581
17653
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17582
17654
  },
17583
- __param$I = undefined && undefined.__param || function (paramIndex, decorator) {
17655
+ __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17584
17656
  return function (target, key) {
17585
17657
  decorator(target, key, paramIndex);
17586
17658
  };
@@ -17648,7 +17720,7 @@ let DefaultCanvasImageRender = class extends BaseRender {
17648
17720
  this._draw(image, imageAttribute, !1, drawContext);
17649
17721
  }
17650
17722
  };
17651
- DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasImageRender);
17723
+ DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultCanvasImageRender);
17652
17724
 
17653
17725
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
17654
17726
  const ArcRender = Symbol.for("ArcRender");
@@ -17716,14 +17788,14 @@ const draw3dItem = (context, graphic, callback, output) => {
17716
17788
  return result;
17717
17789
  };
17718
17790
 
17719
- var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17791
+ var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17720
17792
  var d,
17721
17793
  c = arguments.length,
17722
17794
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17723
17795
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17796
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17725
17797
  },
17726
- __metadata$13 = undefined && undefined.__metadata || function (k, v) {
17798
+ __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17727
17799
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17728
17800
  };
17729
17801
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -17783,7 +17855,7 @@ let CommonDrawItemInterceptorContribution = class {
17783
17855
  return !1;
17784
17856
  }
17785
17857
  };
17786
- CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
17858
+ CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
17787
17859
  class InteractiveDrawItemInterceptorContribution {
17788
17860
  constructor() {
17789
17861
  this.order = 1;
@@ -17874,17 +17946,17 @@ class Canvas3DDrawItemInterceptor {
17874
17946
  }
17875
17947
  }
17876
17948
 
17877
- var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17949
+ var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17878
17950
  var d,
17879
17951
  c = arguments.length,
17880
17952
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17881
17953
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17954
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17883
17955
  },
17884
- __metadata$12 = undefined && undefined.__metadata || function (k, v) {
17956
+ __metadata$11 = undefined && undefined.__metadata || function (k, v) {
17885
17957
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17886
17958
  },
17887
- __param$H = undefined && undefined.__param || function (paramIndex, decorator) {
17959
+ __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
17888
17960
  return function (target, key) {
17889
17961
  decorator(target, key, paramIndex);
17890
17962
  };
@@ -17922,7 +17994,7 @@ let DefaultRenderService = class {
17922
17994
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
17923
17995
  }
17924
17996
  };
17925
- DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], DefaultRenderService);
17997
+ DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], DefaultRenderService);
17926
17998
 
17927
17999
  var renderModule$1 = new ContainerModule(bind => {
17928
18000
  bind(RenderService).to(DefaultRenderService);
@@ -17935,7 +18007,7 @@ const GlobalPickerService = Symbol.for("GlobalPickerService");
17935
18007
  const PickItemInterceptor = Symbol.for("PickItemInterceptor");
17936
18008
  const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
17937
18009
 
17938
- var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18010
+ var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17939
18011
  var d,
17940
18012
  c = arguments.length,
17941
18013
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17957,7 +18029,7 @@ let ShadowPickServiceInterceptorContribution = class {
17957
18029
  return result;
17958
18030
  }
17959
18031
  };
17960
- ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], ShadowPickServiceInterceptorContribution);
18032
+ ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], ShadowPickServiceInterceptorContribution);
17961
18033
  let ShadowRootPickItemInterceptorContribution = class {
17962
18034
  constructor() {
17963
18035
  this.order = 1;
@@ -17988,7 +18060,7 @@ let ShadowRootPickItemInterceptorContribution = class {
17988
18060
  return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
17989
18061
  }
17990
18062
  };
17991
- ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], ShadowRootPickItemInterceptorContribution);
18063
+ ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], ShadowRootPickItemInterceptorContribution);
17992
18064
  let InteractivePickItemInterceptorContribution = class {
17993
18065
  constructor() {
17994
18066
  this.order = 1;
@@ -18007,7 +18079,7 @@ let InteractivePickItemInterceptorContribution = class {
18007
18079
  return null;
18008
18080
  }
18009
18081
  };
18010
- InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], InteractivePickItemInterceptorContribution);
18082
+ InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], InteractivePickItemInterceptorContribution);
18011
18083
  let Canvas3DPickItemInterceptor = class {
18012
18084
  constructor() {
18013
18085
  this.order = 1;
@@ -18027,7 +18099,7 @@ let Canvas3DPickItemInterceptor = class {
18027
18099
  context.setTransformForCurrent();
18028
18100
  }
18029
18101
  };
18030
- Canvas3DPickItemInterceptor = __decorate$1o([injectable()], Canvas3DPickItemInterceptor);
18102
+ Canvas3DPickItemInterceptor = __decorate$1m([injectable()], Canvas3DPickItemInterceptor);
18031
18103
 
18032
18104
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
18033
18105
  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 +18112,17 @@ var graphicModule = new ContainerModule(bind => {
18040
18112
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
18041
18113
  const PluginService = Symbol.for("PluginService");
18042
18114
 
18043
- var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18115
+ var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18044
18116
  var d,
18045
18117
  c = arguments.length,
18046
18118
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18047
18119
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18120
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18049
18121
  },
18050
- __metadata$11 = undefined && undefined.__metadata || function (k, v) {
18122
+ __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18051
18123
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18052
18124
  },
18053
- __param$G = undefined && undefined.__param || function (paramIndex, decorator) {
18125
+ __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18054
18126
  return function (target, key) {
18055
18127
  decorator(target, key, paramIndex);
18056
18128
  };
@@ -18090,7 +18162,7 @@ let DefaultPluginService = class {
18090
18162
  }), this.onRegisterPlugin = [];
18091
18163
  }
18092
18164
  };
18093
- DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
18165
+ DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
18094
18166
 
18095
18167
  var pluginModule = new ContainerModule(bind => {
18096
18168
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -18104,14 +18176,14 @@ var textMeasureModules = new ContainerModule(bind => {
18104
18176
  bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
18105
18177
  });
18106
18178
 
18107
- var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18179
+ var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18108
18180
  var d,
18109
18181
  c = arguments.length,
18110
18182
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18111
18183
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18184
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18113
18185
  },
18114
- __metadata$10 = undefined && undefined.__metadata || function (k, v) {
18186
+ __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18115
18187
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18116
18188
  };
18117
18189
  let CanvasLayerHandlerContribution = class {
@@ -18181,7 +18253,7 @@ let CanvasLayerHandlerContribution = class {
18181
18253
  this.canvas.release();
18182
18254
  }
18183
18255
  };
18184
- CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
18256
+ CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
18185
18257
 
18186
18258
  var layerHandlerModules = new ContainerModule(bind => {
18187
18259
  bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -18300,17 +18372,17 @@ function findNextGraphic(graphic, id, defaultZIndex) {
18300
18372
  return result;
18301
18373
  }
18302
18374
 
18303
- var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18375
+ var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18304
18376
  var d,
18305
18377
  c = arguments.length,
18306
18378
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18307
18379
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18380
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18309
18381
  },
18310
- __metadata$$ = undefined && undefined.__metadata || function (k, v) {
18382
+ __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18311
18383
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18312
18384
  },
18313
- __param$F = undefined && undefined.__param || function (paramIndex, decorator) {
18385
+ __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18314
18386
  return function (target, key) {
18315
18387
  decorator(target, key, paramIndex);
18316
18388
  };
@@ -18368,7 +18440,7 @@ let DefaultDrawContribution = class {
18368
18440
  renderGroup(group, drawContext, parentMatrix, skipSort) {
18369
18441
  if (drawContext.break || !1 === group.attribute.visibleAll) return;
18370
18442
  if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext.break = !0, void this._increaseRender(group, drawContext);
18371
- if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
18443
+ if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1) && "empty" !== group.attribute.boundsMode) return;
18372
18444
  let tempBounds,
18373
18445
  nextM = parentMatrix;
18374
18446
  if (this.useDirtyBounds) {
@@ -18449,7 +18521,7 @@ let DefaultDrawContribution = class {
18449
18521
  } = graphic.parent.attribute;
18450
18522
  (scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
18451
18523
  }
18452
- if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
18524
+ 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
18525
  if (retrans && graphic.parent) {
18454
18526
  const {
18455
18527
  scrollX = 0,
@@ -18509,9 +18581,9 @@ let DefaultDrawContribution = class {
18509
18581
  }
18510
18582
  afterDraw(renderService, drawParams) {}
18511
18583
  };
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);
18584
+ 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
18585
 
18514
- var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18586
+ var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18515
18587
  var d,
18516
18588
  c = arguments.length,
18517
18589
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18562,9 +18634,9 @@ let DefaultIncrementalCanvasLineRender = class extends DefaultCanvasLineRender {
18562
18634
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
18563
18635
  }
18564
18636
  };
18565
- DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
18637
+ DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
18566
18638
 
18567
- var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18639
+ var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18568
18640
  var d,
18569
18641
  c = arguments.length,
18570
18642
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -18607,20 +18679,20 @@ let DefaultIncrementalCanvasAreaRender = class extends DefaultCanvasAreaRender {
18607
18679
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
18608
18680
  }
18609
18681
  };
18610
- DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
18682
+ DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
18611
18683
 
18612
18684
  var STATUS,
18613
- __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18685
+ __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18614
18686
  var d,
18615
18687
  c = arguments.length,
18616
18688
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18617
18689
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18690
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18619
18691
  },
18620
- __metadata$_ = undefined && undefined.__metadata || function (k, v) {
18692
+ __metadata$Z = undefined && undefined.__metadata || function (k, v) {
18621
18693
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18622
18694
  },
18623
- __param$E = undefined && undefined.__param || function (paramIndex, decorator) {
18695
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
18624
18696
  return function (target, key) {
18625
18697
  decorator(target, key, paramIndex);
18626
18698
  };
@@ -18750,7 +18822,7 @@ let DefaultIncrementalDrawContribution = class extends DefaultDrawContribution {
18750
18822
  });
18751
18823
  }
18752
18824
  };
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);
18825
+ 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
18826
 
18755
18827
  var renderModule = new ContainerModule(bind => {
18756
18828
  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 +19518,14 @@ function createStage(params) {
19446
19518
  return new Stage(params);
19447
19519
  }
19448
19520
 
19449
- var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19521
+ var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19450
19522
  var d,
19451
19523
  c = arguments.length,
19452
19524
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19453
19525
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
19526
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19455
19527
  },
19456
- __metadata$Z = undefined && undefined.__metadata || function (k, v) {
19528
+ __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19457
19529
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19458
19530
  };
19459
19531
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -19663,7 +19735,7 @@ let EmptyContext2d = class {
19663
19735
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
19664
19736
  }
19665
19737
  };
19666
- EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], EmptyContext2d);
19738
+ EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], EmptyContext2d);
19667
19739
 
19668
19740
  const DefaultConfig = {
19669
19741
  WIDTH: 500,
@@ -19762,7 +19834,7 @@ class BaseCanvas {
19762
19834
  }
19763
19835
  BaseCanvas.env = "browser";
19764
19836
 
19765
- var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19837
+ var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19766
19838
  var d,
19767
19839
  c = arguments.length,
19768
19840
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19876,16 +19948,16 @@ let BaseEnvContribution = class {
19876
19948
  return Promise.resolve(null);
19877
19949
  }
19878
19950
  };
19879
- BaseEnvContribution = __decorate$1g([injectable()], BaseEnvContribution);
19951
+ BaseEnvContribution = __decorate$1e([injectable()], BaseEnvContribution);
19880
19952
 
19881
- var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19953
+ var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19882
19954
  var d,
19883
19955
  c = arguments.length,
19884
19956
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19885
19957
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
19958
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19887
19959
  },
19888
- __metadata$Y = undefined && undefined.__metadata || function (k, v) {
19960
+ __metadata$X = undefined && undefined.__metadata || function (k, v) {
19889
19961
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19890
19962
  };
19891
19963
  let BaseWindowHandlerContribution = class {
@@ -19924,7 +19996,7 @@ let BaseWindowHandlerContribution = class {
19924
19996
  return this.modelMatrix;
19925
19997
  }
19926
19998
  };
19927
- BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], BaseWindowHandlerContribution);
19999
+ BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], BaseWindowHandlerContribution);
19928
20000
 
19929
20001
  class DirectionalLight {
19930
20002
  constructor(dir, color) {
@@ -20015,17 +20087,17 @@ const registerOrthoCamera = () => {
20015
20087
  Factory.registerPlugin("OrthoCamera", OrthoCamera);
20016
20088
  };
20017
20089
 
20018
- var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20090
+ var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20019
20091
  var d,
20020
20092
  c = arguments.length,
20021
20093
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20022
20094
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
20095
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20024
20096
  },
20025
- __metadata$X = undefined && undefined.__metadata || function (k, v) {
20097
+ __metadata$W = undefined && undefined.__metadata || function (k, v) {
20026
20098
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20027
20099
  },
20028
- __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
20100
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
20029
20101
  return function (target, key) {
20030
20102
  decorator(target, key, paramIndex);
20031
20103
  };
@@ -20130,16 +20202,16 @@ let DefaultPickService = class {
20130
20202
  return picker || null;
20131
20203
  }
20132
20204
  };
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);
20205
+ 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
20206
 
20135
- var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20207
+ var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20136
20208
  var d,
20137
20209
  c = arguments.length,
20138
20210
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20139
20211
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
20212
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20141
20213
  },
20142
- __metadata$W = undefined && undefined.__metadata || function (k, v) {
20214
+ __metadata$V = undefined && undefined.__metadata || function (k, v) {
20143
20215
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20144
20216
  };
20145
20217
  let DefaultGlobalPickerService = class {
@@ -20204,7 +20276,7 @@ let DefaultGlobalPickerService = class {
20204
20276
  } : null;
20205
20277
  }
20206
20278
  };
20207
- DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], DefaultGlobalPickerService);
20279
+ DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultGlobalPickerService);
20208
20280
 
20209
20281
  function simplifyRadialDist(points, sqTolerance) {
20210
20282
  let deltaX,
@@ -20229,6 +20301,24 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
20229
20301
  }
20230
20302
  return t;
20231
20303
  };
20304
+ function getDefaultCharacterConfig(attribute) {
20305
+ const {
20306
+ fill = "black",
20307
+ stroke = !1,
20308
+ fontWeight = "normal",
20309
+ fontFamily = "Arial"
20310
+ } = attribute;
20311
+ let {
20312
+ fontSize = 12
20313
+ } = attribute;
20314
+ return isFinite(fontSize) || (fontSize = 12), {
20315
+ fill: fill,
20316
+ stroke: stroke,
20317
+ fontSize: fontSize,
20318
+ fontWeight: fontWeight,
20319
+ fontFamily: fontFamily
20320
+ };
20321
+ }
20232
20322
  function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
20233
20323
  if (cursorIndex < 0) return 0;
20234
20324
  const intCursorIndex = Math.round(cursorIndex);
@@ -20267,9 +20357,7 @@ class EditModule {
20267
20357
  } = this.currRt.attribute;
20268
20358
  if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
20269
20359
  const config = textConfig[0];
20270
- textConfig.unshift(Object.assign(Object.assign({
20271
- fill: "black"
20272
- }, config), {
20360
+ textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
20273
20361
  text: ""
20274
20362
  }));
20275
20363
  } else {
@@ -20286,26 +20374,20 @@ class EditModule {
20286
20374
  cb(text, this.isComposing, this.cursorIndex, this.currRt);
20287
20375
  });
20288
20376
  }, this.handleInput = ev => {
20289
- var _a, _b, _c, _d;
20290
20377
  if (!this.currRt) return;
20291
20378
  if ("historyUndo" === ev.inputType) return;
20292
- const _e = this.currRt.attribute,
20379
+ const _a = this.currRt.attribute,
20293
20380
  {
20294
20381
  textConfig = []
20295
- } = _e,
20296
- rest = __rest$1(_e, ["textConfig"]);
20382
+ } = _a,
20383
+ rest = __rest$1(_a, ["textConfig"]);
20297
20384
  if ("Backspace" === ev.type && !textConfig.length) return;
20298
20385
  let str = ev.data;
20299
20386
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
20300
20387
  const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
20301
20388
  endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
20302
20389
  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
- });
20390
+ lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
20309
20391
  let nextConfig = lastConfig;
20310
20392
  startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
20311
20393
  let nextConfigIdx = startIdx;
@@ -20353,9 +20435,9 @@ class EditModule {
20353
20435
  textConfig.splice(configIdx, 1);
20354
20436
  const text = lastConfig.text,
20355
20437
  textList = text ? Array.from(text.toString()) : [];
20356
- for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
20438
+ for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
20357
20439
  fill: "black"
20358
- }, lastConfig), {
20440
+ }), lastConfig), {
20359
20441
  isComposing: !1,
20360
20442
  text: textList[i]
20361
20443
  }));
@@ -20401,25 +20483,27 @@ class Selection {
20401
20483
  if (!this.rt) return null;
20402
20484
  let idx = Math.round(cursorIdx);
20403
20485
  const config = this.rt.attribute.textConfig;
20486
+ if (!config.length) return null;
20404
20487
  for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
20405
20488
  return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
20406
20489
  }
20407
20490
  getFormat(key) {
20408
20491
  return this.getAllFormat(key)[0];
20409
20492
  }
20410
- getAllFormat(key) {
20493
+ getAllFormat(key, includeUndefined) {
20411
20494
  const valSet = new Set(),
20412
20495
  minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx),
20413
20496
  maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);
20414
20497
  if (minCursorIdx === maxCursorIdx) return [this._getFormat(key, minCursorIdx)];
20415
20498
  for (let i = Math.ceil(minCursorIdx); i <= Math.floor(maxCursorIdx); i++) {
20416
20499
  const val = this._getFormat(key, i);
20417
- val && valSet.add(val);
20500
+ (includeUndefined || void 0 !== val) && valSet.add(val);
20418
20501
  }
20419
20502
  return Array.from(valSet.values());
20420
20503
  }
20421
20504
  }
20422
20505
  const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
20506
+ const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
20423
20507
  const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
20424
20508
  class RichTextEditPlugin {
20425
20509
  static tryUpdateRichtext(richtext) {
@@ -20439,45 +20523,57 @@ class RichTextEditPlugin {
20439
20523
  return new Selection(0, textConfig.length - 1, rt);
20440
20524
  }
20441
20525
  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 => {
20526
+ 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) => {
20527
+ const rt = p.currRt;
20528
+ if (!rt) return;
20529
+ const selectionData = p.getSelection();
20530
+ if (!selectionData) return;
20531
+ const {
20532
+ selectionStartCursorIdx: selectionStartCursorIdx,
20533
+ curCursorIdx: curCursorIdx
20534
+ } = selectionData,
20535
+ minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
20536
+ maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
20537
+ minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
20538
+ maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
20539
+ config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
20540
+ this._formatTextCommand(payload, config, rt);
20541
+ }, this.formatAllTextCommandCb = (payload, p) => {
20542
+ const rt = p.currRt;
20543
+ if (!rt) return;
20544
+ const config = rt.attribute.textConfig;
20545
+ this._formatTextCommand(payload, config, rt);
20546
+ }, this.handleKeyDown = e => {
20443
20547
  this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
20444
20548
  }, this.handleInput = (text, isComposing, cursorIdx, rt) => {
20445
- this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
20549
+ this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
20446
20550
  }, this.handleChange = (text, isComposing, cursorIdx, rt) => {
20447
- this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20551
+ if (!this.currRt) return;
20552
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
20448
20553
  const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
20449
20554
  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));
20555
+ }, this.handleFocusIn = () => {
20556
+ throw new Error("不会走到这里 handleFocusIn");
20557
+ }, this.handleFocusOut = () => {
20558
+ throw new Error("不会走到这里 handleFocusOut");
20452
20559
  }, this.handleMove = e => {
20453
- this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
20454
- }, this.handleEnter = e => {
20560
+ this.currRt && !this.currRt.attribute.editable && this.deFocus(!0), this.isEditableRichtext(e) ? (this.handleEnter(), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1)) : this.handleLeave();
20561
+ }, this.handleEnter = () => {
20455
20562
  this.editing = !0, this.pluginService.stage.setCursor("text");
20456
- }, this.handleLeave = e => {
20563
+ }, this.handleLeave = () => {
20457
20564
  this.editing = !1, this.pluginService.stage.setCursor("default");
20458
20565
  }, 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));
20566
+ this.editing && this.isEditableRichtext(e) ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
20460
20567
  }, this.handlePointerUp = e => {
20461
20568
  this.pointerDown = !1;
20462
20569
  }, this.handleDBLClick = e => {
20463
20570
  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;
20571
+ }, 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
20572
  }
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);
20573
+ _formatTextCommand(payload, config, rt) {
20480
20574
  "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);
20575
+ const cache = rt.getFrameCache();
20576
+ cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
20481
20577
  }
20482
20578
  dispatchCommand(command, payload) {
20483
20579
  const cbs = this.commandCbs.get(command);
@@ -20486,9 +20582,19 @@ class RichTextEditPlugin {
20486
20582
  registerCommand(command, cb) {
20487
20583
  (this.commandCbs.get(command) || []).push(cb);
20488
20584
  }
20585
+ removeCommand(command, cb) {
20586
+ const cbs = this.commandCbs.get(command) || [],
20587
+ idx = cbs.indexOf(cb);
20588
+ idx > -1 && cbs.splice(idx, 1);
20589
+ }
20489
20590
  registerUpdateListener(cb) {
20490
20591
  (this.updateCbs || []).push(cb);
20491
20592
  }
20593
+ removeUpdateListener(cb) {
20594
+ const cbs = this.updateCbs || [],
20595
+ idx = cbs.indexOf(cb);
20596
+ idx > -1 && cbs.splice(idx, 1);
20597
+ }
20492
20598
  activate(context) {
20493
20599
  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
20600
  }
@@ -20508,7 +20614,10 @@ class RichTextEditPlugin {
20508
20614
  lines: lines
20509
20615
  } = cache,
20510
20616
  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;
20617
+ 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);
20618
+ }
20619
+ selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
20620
+ this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
20512
20621
  const {
20513
20622
  x: x,
20514
20623
  y1: y1,
@@ -20528,9 +20637,11 @@ class RichTextEditPlugin {
20528
20637
  const cache = currRt.getFrameCache();
20529
20638
  if (!cache) return;
20530
20639
  const {
20531
- lines: lines
20532
- } = cache,
20533
- totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20640
+ lines: lines
20641
+ } = cache;
20642
+ if (0 === lines.length) return;
20643
+ if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
20644
+ const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20534
20645
  return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
20535
20646
  }
20536
20647
  return !1;
@@ -20551,7 +20662,7 @@ class RichTextEditPlugin {
20551
20662
  } = cache,
20552
20663
  totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
20553
20664
  if (x) {
20554
- x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1);
20665
+ x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1), this.selectionStartCursorIdx = this.curCursorIdx;
20555
20666
  const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);
20556
20667
  this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();
20557
20668
  }
@@ -20579,61 +20690,192 @@ class RichTextEditPlugin {
20579
20690
  }
20580
20691
  return !0;
20581
20692
  }
20693
+ tryShowShadowPlaceholder() {
20694
+ if (!this.currRt) return;
20695
+ const shadowRoot = this.currRt.shadowRoot;
20696
+ if (shadowRoot) {
20697
+ const placeholder = shadowRoot.getElementsByType("richtext")[0];
20698
+ placeholder && shadowRoot.removeChild(placeholder);
20699
+ }
20700
+ const {
20701
+ textConfig: textConfig,
20702
+ editOptions: editOptions
20703
+ } = this.currRt.attribute;
20704
+ if (textConfig && textConfig.length) return;
20705
+ if (!editOptions || !editOptions.placeholder) return;
20706
+ const {
20707
+ placeholder: placeholder,
20708
+ placeholderColor = "rgba(0, 0, 0, 0.6)",
20709
+ placeholderFontFamily: placeholderFontFamily,
20710
+ placeholderFontSize: placeholderFontSize
20711
+ } = editOptions,
20712
+ shadow = this.getShadow(this.currRt),
20713
+ textConfigItem = Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
20714
+ text: placeholder
20715
+ });
20716
+ placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
20717
+ x: 0,
20718
+ y: 0,
20719
+ pickable: !1,
20720
+ editable: !1,
20721
+ editOptions: null,
20722
+ angle: 0,
20723
+ _debug_bounds: !1,
20724
+ textConfig: [textConfigItem]
20725
+ })), shadow.add(this.shadowPlaceHolder);
20726
+ }
20727
+ tryShowInputBounds() {
20728
+ if (!this.currRt || !this.focusing) return;
20729
+ const {
20730
+ editOptions = {}
20731
+ } = this.currRt.attribute,
20732
+ {
20733
+ boundsStrokeWhenInput: boundsStrokeWhenInput
20734
+ } = editOptions;
20735
+ if (!editOptions || !boundsStrokeWhenInput) return;
20736
+ const {
20737
+ attribute: attribute
20738
+ } = this.currRt;
20739
+ let b = this.currRt.AABBBounds,
20740
+ h = b.height();
20741
+ if (!attribute.textConfig.length && this.editLine) {
20742
+ const {
20743
+ points: points
20744
+ } = this.editLine.attribute;
20745
+ h = points[1].y - points[0].y, b = getRichTextBounds(Object.assign({}, this.shadowPlaceHolder.attribute));
20746
+ }
20747
+ this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
20748
+ x: 0,
20749
+ y: 0,
20750
+ width: b.width(),
20751
+ height: h,
20752
+ fill: !1,
20753
+ stroke: boundsStrokeWhenInput,
20754
+ lineWidth: 1,
20755
+ zIndex: -1
20756
+ });
20757
+ this.getShadow(this.currRt).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
20758
+ }
20759
+ trySyncPlaceholderToTextConfig() {
20760
+ if (!this.currRt) return;
20761
+ const {
20762
+ textConfig: textConfig,
20763
+ editOptions: editOptions
20764
+ } = this.currRt.attribute;
20765
+ if (textConfig && textConfig.length) return;
20766
+ if (!(editOptions && editOptions.placeholder && editOptions.syncPlaceHolderToTextConfig)) return;
20767
+ const {
20768
+ placeholder: placeholder
20769
+ } = editOptions;
20770
+ this.currRt.setAttributes({
20771
+ textConfig: [Object.assign({
20772
+ text: placeholder
20773
+ }, getDefaultCharacterConfig(this.currRt.attribute))]
20774
+ });
20775
+ }
20582
20776
  deactivate(context) {
20583
20777
  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
20778
  }
20585
- onFocus(e) {
20586
- this.deFocus(), this.currRt = e.target;
20779
+ onFocus(e, data) {
20780
+ this.updateCbs && this.updateCbs.forEach(cb => cb("beforeOnfocus", this)), this.deFocus(!1), this.focusing = !0;
20587
20781
  const target = e.target;
20588
- RichTextEditPlugin.tryUpdateRichtext(target);
20589
- const shadowRoot = target.attachShadow(),
20782
+ if (!target || "richtext" !== target.type) return;
20783
+ this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
20784
+ const shadowRoot = this.getShadow(target),
20590
20785
  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);
20786
+ if (cache) {
20787
+ if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
20788
+ shadowRootIdx: 1,
20789
+ pickable: !1,
20790
+ x: this.deltaX,
20791
+ y: this.deltaY
20792
+ }), !this.editLine) {
20793
+ const line = createLine({
20794
+ x: 0,
20795
+ y: 0,
20796
+ lineWidth: 1,
20797
+ stroke: "black"
20798
+ });
20799
+ this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
20800
+ const g = createGroup({
20801
+ x: 0,
20802
+ y: 0,
20803
+ width: 0,
20804
+ height: 0
20805
+ });
20806
+ this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20807
+ }
20808
+ if (data = data || this.computedCursorPosByEvent(e, cache)) {
20809
+ const {
20810
+ x: x,
20811
+ y1: y1,
20812
+ y2: y2,
20813
+ cursorIndex: cursorIndex
20814
+ } = data;
20815
+ this.startCursorPos = {
20816
+ x: x,
20817
+ y: (y1 + y2) / 2
20818
+ }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20819
+ } else {
20820
+ const x = 0,
20821
+ y1 = 0,
20822
+ y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
20823
+ textConfig: [{
20824
+ text: "a"
20825
+ }]
20826
+ })).height();
20827
+ this.startCursorPos = {
20828
+ x: x,
20829
+ y: (y1 + y2) / 2
20830
+ }, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
20831
+ }
20832
+ this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
20625
20833
  }
20626
20834
  }
20835
+ offsetLineBgAndShadowBounds() {
20836
+ const rt = this.currRt,
20837
+ {
20838
+ textBaseline: textBaseline
20839
+ } = rt.attribute;
20840
+ let b,
20841
+ dy = 0,
20842
+ attr = rt.attribute;
20843
+ "middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
20844
+ textConfig: [{
20845
+ text: "a"
20846
+ }]
20847
+ })), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
20848
+ dy: dy
20849
+ }), this.editBg && this.editBg.setAttributes({
20850
+ dy: dy
20851
+ }), this.shadowBounds && this.shadowBounds.setAttributes({
20852
+ dy: dy
20853
+ });
20854
+ }
20627
20855
  deFocus() {
20628
- 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));
20856
+ let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20857
+ const currRt = this.currRt;
20858
+ if (!currRt) return;
20859
+ this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
20860
+ trulyDeFocus: trulyDeFocus
20861
+ })), trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), currRt.detachShadow()), this.currRt = null, this.editLine && (this.editLine.parent && this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent && this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null), trulyDeFocus && (this.shadowBounds && (this.shadowBounds.parent && this.shadowBounds.parent.removeChild(this.shadowBounds), this.shadowBounds.release(), this.shadowBounds = null), this.shadowPlaceHolder && (this.shadowPlaceHolder.parent && this.shadowPlaceHolder.parent.removeChild(this.shadowPlaceHolder), this.shadowPlaceHolder.release(), this.shadowPlaceHolder = null)), this.focusing = !1;
20862
+ const textConfig = currRt.attribute.textConfig;
20863
+ let lastConfig = textConfig[textConfig.length - 1],
20864
+ cleared = !1;
20865
+ for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
20866
+ cleared && currRt.setAttributes({
20867
+ textConfig: textConfig
20868
+ }), currRt.removeEventListener("pointerleave", this.handleLeave);
20630
20869
  }
20631
20870
  addAnimateToLine(line) {
20632
- line.animates && line.animates.forEach(animate => {
20871
+ line.setAttributes({
20872
+ opacity: 1
20873
+ }), line.animates && line.animates.forEach(animate => {
20633
20874
  animate.stop(), animate.release();
20634
20875
  });
20635
- const animate = line.animate();
20636
- animate.setTimeline(this.timeline), animate.to({
20876
+ line.animate({
20877
+ timeline: this.timeline
20878
+ }).to({
20637
20879
  opacity: 1
20638
20880
  }, 10, "linear").wait(700).to({
20639
20881
  opacity: 0
@@ -20673,67 +20915,75 @@ class RichTextEditPlugin {
20673
20915
  },
20674
20916
  line0Info = this.getLineByPoint(cache, startCursorPos),
20675
20917
  line1Info = this.getLineByPoint(cache, endCursorPos);
20676
- if ((startCursorPos.y > endCursorPos.y || startCursorPos.y === endCursorPos.y && startCursorPos.x > endCursorPos.x) && ([startCursorPos, endCursorPos] = [endCursorPos, startCursorPos], [line1Info, line0Info] = [line0Info, line1Info]), this.hideSelection(), line0Info === line1Info) this.editBg.setAttributes({
20677
- x: startCursorPos.x,
20678
- y: line0Info.top,
20679
- width: endCursorPos.x - startCursorPos.x,
20680
- height: line0Info.height,
20681
- fill: "#336df4",
20682
- fillOpacity: .2
20683
- });else {
20684
- this.editBg.setAttributes({
20685
- x: 0,
20918
+ if (line0Info && line1Info) {
20919
+ if ((startCursorPos.y > endCursorPos.y || startCursorPos.y === endCursorPos.y && startCursorPos.x > endCursorPos.x) && ([startCursorPos, endCursorPos] = [endCursorPos, startCursorPos], [line1Info, line0Info] = [line0Info, line1Info]), this.hideSelection(), line0Info === line1Info) this.editBg.setAttributes({
20920
+ x: startCursorPos.x,
20686
20921
  y: line0Info.top,
20687
- width: 0,
20688
- height: 0
20689
- });
20690
- const startIdx = cache.lines.findIndex(item => item === line0Info),
20691
- endIdx = cache.lines.findIndex(item => item === line1Info);
20692
- let y = 0;
20693
- for (let i = startIdx; i <= endIdx; i++) {
20694
- const line = cache.lines[i];
20695
- if (i === startIdx) {
20696
- const p = line.paragraphs[line.paragraphs.length - 1];
20697
- this.editBg.add(createRect({
20698
- x: startCursorPos.x,
20699
- y: y,
20700
- width: p.left + p.width - startCursorPos.x,
20701
- height: line.height,
20702
- fill: "#336df4",
20703
- fillOpacity: .2
20704
- }));
20705
- } else if (i === endIdx) {
20706
- const p = line.paragraphs[0];
20707
- this.editBg.add(createRect({
20708
- x: p.left,
20709
- y: y,
20710
- width: endCursorPos.x - p.left,
20711
- height: line.height,
20712
- fill: "#336df4",
20713
- fillOpacity: .2
20714
- }));
20715
- } else {
20716
- const p0 = line.paragraphs[0],
20717
- p1 = line.paragraphs[line.paragraphs.length - 1];
20718
- this.editBg.add(createRect({
20719
- x: p0.left,
20720
- y: y,
20721
- width: p1.left + p1.width - p0.left,
20722
- height: line.height,
20723
- fill: "#336df4",
20724
- fillOpacity: .2
20725
- }));
20922
+ width: endCursorPos.x - startCursorPos.x,
20923
+ height: line0Info.height,
20924
+ fill: "#336df4",
20925
+ fillOpacity: .2
20926
+ });else {
20927
+ this.editBg.setAttributes({
20928
+ x: 0,
20929
+ y: line0Info.top,
20930
+ width: 0,
20931
+ height: 0
20932
+ });
20933
+ const startIdx = cache.lines.findIndex(item => item === line0Info),
20934
+ endIdx = cache.lines.findIndex(item => item === line1Info);
20935
+ let y = 0;
20936
+ for (let i = startIdx; i <= endIdx; i++) {
20937
+ const line = cache.lines[i];
20938
+ if (i === startIdx) {
20939
+ const p = line.paragraphs[line.paragraphs.length - 1];
20940
+ this.editBg.add(createRect({
20941
+ x: startCursorPos.x,
20942
+ y: y,
20943
+ width: p.left + p.width - startCursorPos.x,
20944
+ height: line.height,
20945
+ fill: "#336df4",
20946
+ fillOpacity: .2
20947
+ }));
20948
+ } else if (i === endIdx) {
20949
+ const p = line.paragraphs[0];
20950
+ this.editBg.add(createRect({
20951
+ x: p.left,
20952
+ y: y,
20953
+ width: endCursorPos.x - p.left,
20954
+ height: line.height,
20955
+ fill: "#336df4",
20956
+ fillOpacity: .2
20957
+ }));
20958
+ } else {
20959
+ const p0 = line.paragraphs[0],
20960
+ p1 = line.paragraphs[line.paragraphs.length - 1];
20961
+ this.editBg.add(createRect({
20962
+ x: p0.left,
20963
+ y: y,
20964
+ width: p1.left + p1.width - p0.left,
20965
+ height: line.height,
20966
+ fill: "#336df4",
20967
+ fillOpacity: .2
20968
+ }));
20969
+ }
20970
+ y += line.height;
20726
20971
  }
20727
- y += line.height;
20728
20972
  }
20973
+ this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20729
20974
  }
20730
- this.setCursorAndTextArea(currCursorData.x, currCursorData.y1 + 2, currCursorData.y2 - 2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
20731
20975
  }
20732
20976
  hideSelection() {
20733
20977
  this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
20734
20978
  fill: "transparent"
20735
20979
  }));
20736
20980
  }
20981
+ getShadow(rt) {
20982
+ const sr = rt.shadowRoot || rt.attachShadow();
20983
+ return sr.setAttributes({
20984
+ boundsMode: "empty"
20985
+ }), sr;
20986
+ }
20737
20987
  getLineByPoint(cache, p1) {
20738
20988
  let lineInfo = cache.lines[0];
20739
20989
  for (let i = 0; i < cache.lines.length && !(lineInfo.top <= p1.y && lineInfo.top + lineInfo.height >= p1.y); i++) lineInfo = cache.lines[i + 1];
@@ -20765,7 +21015,10 @@ class RichTextEditPlugin {
20765
21015
  return -1;
20766
21016
  }
20767
21017
  isRichtext(e) {
20768
- return !(!e.target || "richtext" !== e.target.type || !e.target.attribute.editable);
21018
+ return !(!e.target || "richtext" !== e.target.type);
21019
+ }
21020
+ isEditableRichtext(e) {
21021
+ return this.isRichtext(e) && !!e.target.attribute.editable;
20769
21022
  }
20770
21023
  triggerRender() {
20771
21024
  this.pluginService.stage.renderNextFrame();
@@ -20783,7 +21036,18 @@ class RichTextEditPlugin {
20783
21036
  x: 0,
20784
21037
  y: 0
20785
21038
  };
20786
- return e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY, p1;
21039
+ e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
21040
+ const rt = this.currRt,
21041
+ {
21042
+ textBaseline: textBaseline
21043
+ } = rt.attribute;
21044
+ let dy = 0;
21045
+ if ("middle" === textBaseline) {
21046
+ dy = getRichTextBounds(rt.attribute).height() / 2;
21047
+ } else if ("bottom" === textBaseline) {
21048
+ dy = getRichTextBounds(rt.attribute).height();
21049
+ }
21050
+ return p1.y += dy, p1;
20787
21051
  }
20788
21052
  setCursorAndTextArea(x, y1, y2, rt) {
20789
21053
  this.editLine.setAttributes({
@@ -20807,7 +21071,7 @@ class RichTextEditPlugin {
20807
21071
  left: left,
20808
21072
  top: top
20809
21073
  } = this.pluginService.stage.window.getBoundingClientRect();
20810
- out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
21074
+ out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
20811
21075
  }
20812
21076
  computedCursorPosByEvent(e, cache) {
20813
21077
  const p1 = this.getEventPosition(e),
@@ -20818,9 +21082,8 @@ class RichTextEditPlugin {
20818
21082
  delta: delta
20819
21083
  } = this.getColumnAndIndexByLinePoint(lineInfo, p1);
20820
21084
  if (!columnInfo) return;
20821
- let y1 = lineInfo.top,
21085
+ const y1 = lineInfo.top,
20822
21086
  y2 = lineInfo.top + lineInfo.height;
20823
- y1 += 2, y2 -= 2;
20824
21087
  let cursorIndex = this.getColumnIndex(cache, columnInfo);
20825
21088
  cursorIndex += delta;
20826
21089
  return {
@@ -20839,21 +21102,36 @@ class RichTextEditPlugin {
20839
21102
  cache = rt.getFrameCache(),
20840
21103
  column = this.getColumnByIndex(cache, idx),
20841
21104
  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
- };
21105
+ if (!column) {
21106
+ if (!cache.lines.length) {
21107
+ return {
21108
+ x: 0,
21109
+ y1: 0,
21110
+ y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
21111
+ textConfig: [{
21112
+ text: "a"
21113
+ }]
21114
+ })).height()
21115
+ };
21116
+ }
21117
+ return {
21118
+ x: 0,
21119
+ y1: 0,
21120
+ y2: height
21121
+ };
21122
+ }
20847
21123
  const {
20848
- lineInfo: lineInfo,
20849
- columnInfo: columnInfo
20850
- } = column;
20851
- let y1 = lineInfo.top,
21124
+ lineInfo: lineInfo,
21125
+ columnInfo: columnInfo
21126
+ } = column,
21127
+ y1 = lineInfo.top,
20852
21128
  y2 = lineInfo.top + lineInfo.height;
20853
- return y1 += 2, y2 -= 2, {
21129
+ return {
20854
21130
  x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
20855
21131
  y1: y1,
20856
- y2: y2
21132
+ y2: y2,
21133
+ lineInfo: lineInfo,
21134
+ columnInfo: columnInfo
20857
21135
  };
20858
21136
  }
20859
21137
  getColumnByIndex(cache, index) {
@@ -20877,6 +21155,37 @@ class RichTextEditPlugin {
20877
21155
  let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
20878
21156
  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
21157
  }
21158
+ forceFocus(params) {
21159
+ const {
21160
+ target: target,
21161
+ e: e,
21162
+ cursorIndex: cursorIndex
21163
+ } = params;
21164
+ target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
21165
+ }
21166
+ _forceFocusByEvent(e) {
21167
+ this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
21168
+ }
21169
+ _forceFocusByCursorIndex(cursorIndex) {
21170
+ const richtext = this.currRt;
21171
+ if (!richtext) return;
21172
+ let x = 0,
21173
+ y1 = 0,
21174
+ y2 = 2,
21175
+ lineInfo = null,
21176
+ columnInfo = null;
21177
+ const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
21178
+ x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
21179
+ target: this.currRt
21180
+ }, {
21181
+ x: x,
21182
+ y1: y1,
21183
+ y2: y2,
21184
+ cursorIndex: cursorIndex,
21185
+ lineInfo: lineInfo,
21186
+ columnInfo: columnInfo
21187
+ });
21188
+ }
20880
21189
  }
20881
21190
 
20882
21191
  class DefaultGraphicAllocate {
@@ -21059,7 +21368,7 @@ const polygonModule = new ContainerModule(bind => {
21059
21368
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21060
21369
  });
21061
21370
 
21062
- var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21371
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21063
21372
  var d,
21064
21373
  c = arguments.length,
21065
21374
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21091,21 +21400,21 @@ let DefaultCanvasGlyphRender = class {
21091
21400
  }), context.highPerformanceRestore();
21092
21401
  }
21093
21402
  };
21094
- DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
21403
+ DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
21095
21404
 
21096
21405
  let loadGlyphModule = !1;
21097
21406
  const glyphModule = new ContainerModule(bind => {
21098
21407
  loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21099
21408
  });
21100
21409
 
21101
- var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21410
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21102
21411
  var d,
21103
21412
  c = arguments.length,
21104
21413
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
21105
21414
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
21415
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21107
21416
  },
21108
- __metadata$V = undefined && undefined.__metadata || function (k, v) {
21417
+ __metadata$U = undefined && undefined.__metadata || function (k, v) {
21109
21418
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
21110
21419
  };
21111
21420
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -21159,7 +21468,7 @@ let DefaultCanvasRichTextRender = class extends BaseRender {
21159
21468
  this._draw(richtext, richtextAttribute, !1, drawContext);
21160
21469
  }
21161
21470
  };
21162
- DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
21471
+ DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
21163
21472
 
21164
21473
  let loadRichtextModule = !1;
21165
21474
  const richtextModule = new ContainerModule(bind => {
@@ -21243,7 +21552,7 @@ class Base3dRender extends BaseRender {
21243
21552
  }
21244
21553
  }
21245
21554
 
21246
- var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21555
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21247
21556
  var d,
21248
21557
  c = arguments.length,
21249
21558
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21299,14 +21608,14 @@ let DefaultCanvasRect3dRender = class extends Base3dRender {
21299
21608
  this._draw(rect, rectAttribute, !1, drawContext);
21300
21609
  }
21301
21610
  };
21302
- DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
21611
+ DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
21303
21612
 
21304
21613
  let loadRect3dModule = !1;
21305
21614
  const rect3dModule = new ContainerModule(bind => {
21306
21615
  loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21307
21616
  });
21308
21617
 
21309
- var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21618
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21310
21619
  var d,
21311
21620
  c = arguments.length,
21312
21621
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21433,14 +21742,14 @@ let DefaultCanvasArc3DRender = class extends BaseRender {
21433
21742
  this._draw(arc, arcAttribute, !1, drawContext, params);
21434
21743
  }
21435
21744
  };
21436
- DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
21745
+ DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
21437
21746
 
21438
21747
  let loadArc3dModule = !1;
21439
21748
  const arc3dModule = new ContainerModule(bind => {
21440
21749
  loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21441
21750
  });
21442
21751
 
21443
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21752
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
21444
21753
  var d,
21445
21754
  c = arguments.length,
21446
21755
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -21477,7 +21786,7 @@ let DefaultCanvasPyramid3dRender = class extends Base3dRender {
21477
21786
  this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
21478
21787
  }
21479
21788
  };
21480
- DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
21789
+ DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
21481
21790
 
21482
21791
  let loadPyramid3dModule = !1;
21483
21792
  const pyramid3dModule = new ContainerModule(bind => {
@@ -23600,17 +23909,17 @@ class RoughBaseRender {
23600
23909
  }
23601
23910
  }
23602
23911
 
23603
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23912
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23604
23913
  var d,
23605
23914
  c = arguments.length,
23606
23915
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23607
23916
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
23917
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23609
23918
  },
23610
- __metadata$U = undefined && undefined.__metadata || function (k, v) {
23919
+ __metadata$T = undefined && undefined.__metadata || function (k, v) {
23611
23920
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23612
23921
  },
23613
- __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
23922
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
23614
23923
  return function (target, key) {
23615
23924
  decorator(target, key, paramIndex);
23616
23925
  };
@@ -23696,9 +24005,9 @@ let RoughCanvasArcRender = class extends RoughBaseRender {
23696
24005
  }), context.highPerformanceRestore();
23697
24006
  }
23698
24007
  };
23699
- RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
24008
+ RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
23700
24009
 
23701
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24010
+ var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23702
24011
  var d,
23703
24012
  c = arguments.length,
23704
24013
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23776,19 +24085,19 @@ let RoughCanvasAreaRender = class extends DefaultCanvasAreaRender {
23776
24085
  }), context.highPerformanceRestore(), !1;
23777
24086
  }
23778
24087
  };
23779
- RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
24088
+ RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
23780
24089
 
23781
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24090
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23782
24091
  var d,
23783
24092
  c = arguments.length,
23784
24093
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23785
24094
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24095
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23787
24096
  },
23788
- __metadata$T = undefined && undefined.__metadata || function (k, v) {
24097
+ __metadata$S = undefined && undefined.__metadata || function (k, v) {
23789
24098
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23790
24099
  },
23791
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
24100
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
23792
24101
  return function (target, key) {
23793
24102
  decorator(target, key, paramIndex);
23794
24103
  };
@@ -23825,9 +24134,9 @@ let RoughCanvasCircleRender = class extends RoughBaseRender {
23825
24134
  });
23826
24135
  }
23827
24136
  };
23828
- RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
24137
+ RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
23829
24138
 
23830
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24139
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23831
24140
  var d,
23832
24141
  c = arguments.length,
23833
24142
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -23906,19 +24215,19 @@ let RoughCanvasLineRender = class extends DefaultCanvasLineRender {
23906
24215
  }), context.highPerformanceRestore(), !1;
23907
24216
  }
23908
24217
  };
23909
- RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
24218
+ RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
23910
24219
 
23911
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24220
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23912
24221
  var d,
23913
24222
  c = arguments.length,
23914
24223
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
23915
24224
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24225
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23917
24226
  },
23918
- __metadata$S = undefined && undefined.__metadata || function (k, v) {
24227
+ __metadata$R = undefined && undefined.__metadata || function (k, v) {
23919
24228
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
23920
24229
  },
23921
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
24230
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
23922
24231
  return function (target, key) {
23923
24232
  decorator(target, key, paramIndex);
23924
24233
  };
@@ -23992,19 +24301,19 @@ let RoughCanvasPathRender = class extends RoughBaseRender {
23992
24301
  }), context.highPerformanceRestore();
23993
24302
  }
23994
24303
  };
23995
- RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
24304
+ RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
23996
24305
 
23997
- var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24306
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
23998
24307
  var d,
23999
24308
  c = arguments.length,
24000
24309
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24001
24310
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24311
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24003
24312
  },
24004
- __metadata$R = undefined && undefined.__metadata || function (k, v) {
24313
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24005
24314
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24006
24315
  },
24007
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
24316
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24008
24317
  return function (target, key) {
24009
24318
  decorator(target, key, paramIndex);
24010
24319
  };
@@ -24095,19 +24404,19 @@ let RoughCanvasRectRender = class extends RoughBaseRender {
24095
24404
  }), context.highPerformanceRestore();
24096
24405
  }
24097
24406
  };
24098
- RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
24407
+ RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
24099
24408
 
24100
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24409
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24101
24410
  var d,
24102
24411
  c = arguments.length,
24103
24412
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24104
24413
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24414
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24106
24415
  },
24107
- __metadata$Q = undefined && undefined.__metadata || function (k, v) {
24416
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
24108
24417
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24109
24418
  },
24110
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
24419
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
24111
24420
  return function (target, key) {
24112
24421
  decorator(target, key, paramIndex);
24113
24422
  };
@@ -24199,7 +24508,7 @@ let RoughCanvasSymbolRender = class extends BaseRender {
24199
24508
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
24200
24509
  }
24201
24510
  };
24202
- RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24511
+ RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
24203
24512
 
24204
24513
  var _roughModule = new ContainerModule(bind => {
24205
24514
  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 +24531,6 @@ const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
24222
24531
  const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
24223
24532
  const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
24224
24533
  const CanvasImagePicker = Symbol.for("CanvasImagePicker");
24225
- const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
24226
24534
  const CanvasLinePicker = Symbol.for("CanvasLinePicker");
24227
24535
  const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
24228
24536
  const CanvasPathPicker = Symbol.for("CanvasPathPicker");
@@ -24363,11 +24671,9 @@ function jsx(type, config) {
24363
24671
  name: name,
24364
24672
  id: id,
24365
24673
  attribute: attribute,
24366
- stateProxy: stateProxy,
24367
- animation: animation,
24368
- timeline: timeline
24674
+ stateProxy: stateProxy
24369
24675
  } = _a,
24370
- props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
24676
+ props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
24371
24677
  let c = type;
24372
24678
  isString$1(type) && (c = graphicCreator[type]);
24373
24679
  const childrenList = [];
@@ -24376,13 +24682,7 @@ function jsx(type, config) {
24376
24682
  }
24377
24683
  children.length && flatten(1 === children.length ? children[0] : children, childrenList);
24378
24684
  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;
24685
+ return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
24386
24686
  }
24387
24687
  function parseToGraphic$1(g, childrenList, props) {
24388
24688
  let out,
@@ -24712,14 +25012,14 @@ class Gesture extends EventEmitter {
24712
25012
  }
24713
25013
  }
24714
25014
 
24715
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25015
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
24716
25016
  var d,
24717
25017
  c = arguments.length,
24718
25018
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
24719
25019
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25020
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24721
25021
  },
24722
- __metadata$P = undefined && undefined.__metadata || function (k, v) {
25022
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
24723
25023
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24724
25024
  };
24725
25025
  const outP = [0, 0, 0],
@@ -25231,16 +25531,16 @@ let BrowserContext2d = class {
25231
25531
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
25232
25532
  }
25233
25533
  };
25234
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
25534
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
25235
25535
 
25236
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25536
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25237
25537
  var d,
25238
25538
  c = arguments.length,
25239
25539
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25240
25540
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25541
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25242
25542
  },
25243
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
25543
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
25244
25544
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25245
25545
  };
25246
25546
  let BrowserCanvas = class extends BaseCanvas {
@@ -25302,7 +25602,7 @@ let BrowserCanvas = class extends BaseCanvas {
25302
25602
  this._context.dpr = this._dpr;
25303
25603
  }
25304
25604
  };
25305
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
25605
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
25306
25606
 
25307
25607
  function createModule(CanvasConstructor, ContextConstructor) {
25308
25608
  return new ContainerModule(bind => {
@@ -25312,17 +25612,17 @@ function createModule(CanvasConstructor, ContextConstructor) {
25312
25612
 
25313
25613
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
25314
25614
 
25315
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25615
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25316
25616
  var d,
25317
25617
  c = arguments.length,
25318
25618
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25319
25619
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25620
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25321
25621
  },
25322
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
25622
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
25323
25623
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25324
25624
  },
25325
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
25625
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
25326
25626
  return function (target, key) {
25327
25627
  decorator(target, key, paramIndex);
25328
25628
  };
@@ -25373,9 +25673,9 @@ let DefaultCanvasPickerService = class extends DefaultPickService {
25373
25673
  return data;
25374
25674
  }
25375
25675
  };
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);
25676
+ 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
25677
 
25378
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25678
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25379
25679
  var d,
25380
25680
  c = arguments.length,
25381
25681
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25390,7 +25690,7 @@ let DefaultCanvasGroupPicker = class {
25390
25690
  return !1;
25391
25691
  }
25392
25692
  };
25393
- DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
25693
+ DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
25394
25694
 
25395
25695
  const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
25396
25696
  m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -25406,14 +25706,14 @@ function loadCanvasPicker(c) {
25406
25706
  }
25407
25707
 
25408
25708
  var BrowserWindowHandlerContribution_1,
25409
- __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25709
+ __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25410
25710
  var d,
25411
25711
  c = arguments.length,
25412
25712
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25413
25713
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25714
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25415
25715
  },
25416
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
25716
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
25417
25717
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25418
25718
  };
25419
25719
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
@@ -25571,19 +25871,19 @@ let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = clas
25571
25871
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
25572
25872
  }
25573
25873
  };
25574
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
25874
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
25575
25875
  const browserWindowModule = new ContainerModule(bind => {
25576
25876
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
25577
25877
  });
25578
25878
 
25579
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25879
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25580
25880
  var d,
25581
25881
  c = arguments.length,
25582
25882
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25583
25883
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25884
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25585
25885
  },
25586
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
25886
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
25587
25887
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25588
25888
  },
25589
25889
  __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -25637,7 +25937,7 @@ class DynamicB {
25637
25937
  function createImageElement$1(src) {
25638
25938
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
25639
25939
  const img = document.createElement("img");
25640
- if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
25940
+ if (img.crossOrigin = "anonymous", isSvg) {
25641
25941
  const data = new Blob([src], {
25642
25942
  type: "image/svg+xml"
25643
25943
  });
@@ -25830,7 +26130,7 @@ let BrowserEnvContribution = class extends BaseEnvContribution {
25830
26130
  return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
25831
26131
  }
25832
26132
  };
25833
- BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], BrowserEnvContribution);
26133
+ BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], BrowserEnvContribution);
25834
26134
 
25835
26135
  const browserEnvModule = new ContainerModule(bind => {
25836
26136
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
@@ -25845,7 +26145,7 @@ function initBrowserEnv() {
25845
26145
  loadBrowserEnv(container);
25846
26146
  }
25847
26147
 
25848
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26148
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25849
26149
  var d,
25850
26150
  c = arguments.length,
25851
26151
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -25890,16 +26190,16 @@ let FeishuContext2d = class extends BrowserContext2d {
25890
26190
  return null;
25891
26191
  }
25892
26192
  };
25893
- FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
26193
+ FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
25894
26194
 
25895
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26195
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25896
26196
  var d,
25897
26197
  c = arguments.length,
25898
26198
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25899
26199
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
25900
26200
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25901
26201
  },
25902
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
26202
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
25903
26203
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25904
26204
  };
25905
26205
  let FeishuCanvas = class extends BaseCanvas {
@@ -25911,21 +26211,21 @@ let FeishuCanvas = class extends BaseCanvas {
25911
26211
  }
25912
26212
  release() {}
25913
26213
  };
25914
- FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
26214
+ FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
25915
26215
 
25916
26216
  const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
25917
26217
 
25918
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26218
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
25919
26219
  var d,
25920
26220
  c = arguments.length,
25921
26221
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
25922
26222
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26223
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25924
26224
  },
25925
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
26225
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
25926
26226
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25927
26227
  },
25928
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
26228
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
25929
26229
  return function (target, key) {
25930
26230
  decorator(target, key, paramIndex);
25931
26231
  };
@@ -26061,22 +26361,22 @@ let FeishuWindowHandlerContribution = class extends BaseWindowHandlerContributio
26061
26361
  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
26362
  }
26063
26363
  };
26064
- FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26364
+ FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
26065
26365
  const feishuWindowModule = new ContainerModule(bind => {
26066
26366
  bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
26067
26367
  });
26068
26368
 
26069
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26369
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26070
26370
  var d,
26071
26371
  c = arguments.length,
26072
26372
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26073
26373
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26374
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26075
26375
  },
26076
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
26376
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
26077
26377
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26078
26378
  },
26079
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
26379
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26080
26380
  return function (target, key) {
26081
26381
  decorator(target, key, paramIndex);
26082
26382
  };
@@ -26107,7 +26407,7 @@ let DefaultMathPickerService = class extends DefaultPickService {
26107
26407
  } : null;
26108
26408
  }
26109
26409
  };
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);
26410
+ 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
26411
 
26112
26412
  const m = new ContainerModule(bind => {
26113
26413
  m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
@@ -26144,17 +26444,17 @@ class PickerBase {
26144
26444
  }
26145
26445
  }
26146
26446
 
26147
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26447
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26148
26448
  var d,
26149
26449
  c = arguments.length,
26150
26450
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26151
26451
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26452
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26153
26453
  },
26154
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
26454
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
26155
26455
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26156
26456
  },
26157
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
26457
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26158
26458
  return function (target, key) {
26159
26459
  decorator(target, key, paramIndex);
26160
26460
  };
@@ -26164,24 +26464,24 @@ let DefaultMathArcPicker = class extends PickerBase {
26164
26464
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
26165
26465
  }
26166
26466
  };
26167
- DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
26467
+ DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
26168
26468
 
26169
26469
  let loadArcPick$1 = !1;
26170
26470
  const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26171
26471
  loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
26172
26472
  });
26173
26473
 
26174
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26474
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26175
26475
  var d,
26176
26476
  c = arguments.length,
26177
26477
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26178
26478
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26479
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26180
26480
  },
26181
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
26481
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
26182
26482
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26183
26483
  },
26184
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
26484
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26185
26485
  return function (target, key) {
26186
26486
  decorator(target, key, paramIndex);
26187
26487
  };
@@ -26191,24 +26491,24 @@ let DefaultMathAreaPicker = class extends PickerBase {
26191
26491
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
26192
26492
  }
26193
26493
  };
26194
- DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
26494
+ DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
26195
26495
 
26196
26496
  let loadAreaPick$1 = !1;
26197
26497
  const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26198
26498
  loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
26199
26499
  });
26200
26500
 
26201
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26501
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26202
26502
  var d,
26203
26503
  c = arguments.length,
26204
26504
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26205
26505
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26506
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26207
26507
  },
26208
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
26508
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
26209
26509
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26210
26510
  },
26211
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
26511
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26212
26512
  return function (target, key) {
26213
26513
  decorator(target, key, paramIndex);
26214
26514
  };
@@ -26218,7 +26518,7 @@ let DefaultMathCirclePicker = class extends PickerBase {
26218
26518
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
26219
26519
  }
26220
26520
  };
26221
- DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
26521
+ DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
26222
26522
 
26223
26523
  let loadCirclePick$1 = !1;
26224
26524
  const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26249,17 +26549,17 @@ class GlyphPickerBase {
26249
26549
  }
26250
26550
  }
26251
26551
 
26252
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26552
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26253
26553
  var d,
26254
26554
  c = arguments.length,
26255
26555
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26256
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);
26257
26557
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26258
26558
  },
26259
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
26559
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
26260
26560
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26261
26561
  },
26262
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
26562
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26263
26563
  return function (target, key) {
26264
26564
  decorator(target, key, paramIndex);
26265
26565
  };
@@ -26269,14 +26569,14 @@ let DefaultMathGlyphPicker = class extends GlyphPickerBase {
26269
26569
  super(), this.canvasRenderer = canvasRenderer;
26270
26570
  }
26271
26571
  };
26272
- DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26572
+ DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
26273
26573
 
26274
26574
  let loadGlyphPick$1 = !1;
26275
26575
  const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26276
26576
  loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
26277
26577
  });
26278
26578
 
26279
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26579
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26280
26580
  var d,
26281
26581
  c = arguments.length,
26282
26582
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26294,24 +26594,24 @@ let DefaultMathImagePicker = class {
26294
26594
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
26295
26595
  }
26296
26596
  };
26297
- DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
26597
+ DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
26298
26598
 
26299
26599
  let loadImagePick$1 = !1;
26300
26600
  const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26301
26601
  loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26302
26602
  });
26303
26603
 
26304
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26604
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26305
26605
  var d,
26306
26606
  c = arguments.length,
26307
26607
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26308
26608
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26609
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26310
26610
  },
26311
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
26611
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
26312
26612
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26313
26613
  },
26314
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
26614
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26315
26615
  return function (target, key) {
26316
26616
  decorator(target, key, paramIndex);
26317
26617
  };
@@ -26321,24 +26621,24 @@ let DefaultMathLinePicker = class extends PickerBase {
26321
26621
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
26322
26622
  }
26323
26623
  };
26324
- DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
26624
+ DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
26325
26625
 
26326
26626
  let loadLinePick$1 = !1;
26327
26627
  const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26328
26628
  loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
26329
26629
  });
26330
26630
 
26331
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26631
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26332
26632
  var d,
26333
26633
  c = arguments.length,
26334
26634
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26335
26635
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26636
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26337
26637
  },
26338
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
26638
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
26339
26639
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26340
26640
  },
26341
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
26641
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26342
26642
  return function (target, key) {
26343
26643
  decorator(target, key, paramIndex);
26344
26644
  };
@@ -26348,24 +26648,24 @@ let DefaultMathPolygonPicker = class extends PickerBase {
26348
26648
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
26349
26649
  }
26350
26650
  };
26351
- DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26651
+ DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
26352
26652
 
26353
26653
  let loadPolygonPick$1 = !1;
26354
26654
  const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26355
26655
  loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
26356
26656
  });
26357
26657
 
26358
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26658
+ var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26359
26659
  var d,
26360
26660
  c = arguments.length,
26361
26661
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26362
26662
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26663
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26364
26664
  },
26365
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
26665
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
26366
26666
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26367
26667
  },
26368
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
26668
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26369
26669
  return function (target, key) {
26370
26670
  decorator(target, key, paramIndex);
26371
26671
  };
@@ -26375,7 +26675,7 @@ let DefaultMathPathPicker = class extends PickerBase {
26375
26675
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
26376
26676
  }
26377
26677
  };
26378
- DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
26678
+ DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
26379
26679
 
26380
26680
  let loadPathPick$1 = !1;
26381
26681
  const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26430,17 +26730,17 @@ class RectPickerBase {
26430
26730
  }
26431
26731
  }
26432
26732
 
26433
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26733
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26434
26734
  var d,
26435
26735
  c = arguments.length,
26436
26736
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26437
26737
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26738
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26439
26739
  },
26440
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
26740
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
26441
26741
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26442
26742
  },
26443
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
26743
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26444
26744
  return function (target, key) {
26445
26745
  decorator(target, key, paramIndex);
26446
26746
  };
@@ -26450,7 +26750,7 @@ let DefaultMathRectPicker = class extends RectPickerBase {
26450
26750
  super(), this.canvasRenderer = canvasRenderer;
26451
26751
  }
26452
26752
  };
26453
- DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
26753
+ DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
26454
26754
 
26455
26755
  let loadRectPick$1 = !1;
26456
26756
  const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26462,17 +26762,17 @@ const richTextMathPickModule = new ContainerModule((bind, unbind, isBound, rebin
26462
26762
  loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
26463
26763
  });
26464
26764
 
26465
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26765
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26466
26766
  var d,
26467
26767
  c = arguments.length,
26468
26768
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26469
26769
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26770
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26471
26771
  },
26472
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
26772
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
26473
26773
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26474
26774
  },
26475
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
26775
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
26476
26776
  return function (target, key) {
26477
26777
  decorator(target, key, paramIndex);
26478
26778
  };
@@ -26482,14 +26782,14 @@ let DefaultMathSymbolPicker = class extends PickerBase {
26482
26782
  super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
26483
26783
  }
26484
26784
  };
26485
- DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26785
+ DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
26486
26786
 
26487
26787
  let loadSymbolPick$1 = !1;
26488
26788
  const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
26489
26789
  loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
26490
26790
  });
26491
26791
 
26492
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26792
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26493
26793
  var d,
26494
26794
  c = arguments.length,
26495
26795
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26504,7 +26804,7 @@ let DefaultMathTextPicker = class {
26504
26804
  return !!text.AABBBounds.containsPoint(point);
26505
26805
  }
26506
26806
  };
26507
- DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
26807
+ DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
26508
26808
 
26509
26809
  let loadTextPick$1 = !1;
26510
26810
  const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -26587,14 +26887,14 @@ class CanvasWrapEnableWH {
26587
26887
  }
26588
26888
  }
26589
26889
 
26590
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26890
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26591
26891
  var d,
26592
26892
  c = arguments.length,
26593
26893
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26594
26894
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26895
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26596
26896
  },
26597
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
26897
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
26598
26898
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26599
26899
  };
26600
26900
  function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
@@ -26676,7 +26976,7 @@ let FeishuEnvContribution = class extends BaseEnvContribution {
26676
26976
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
26677
26977
  }
26678
26978
  };
26679
- FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
26979
+ FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
26680
26980
 
26681
26981
  const feishuEnvModule = new ContainerModule(bind => {
26682
26982
  feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
@@ -26691,7 +26991,7 @@ function initFeishuEnv() {
26691
26991
  loadFeishuEnv(container);
26692
26992
  }
26693
26993
 
26694
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26994
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26695
26995
  var d,
26696
26996
  c = arguments.length,
26697
26997
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -26752,16 +27052,16 @@ let LynxContext2d = class extends BrowserContext2d {
26752
27052
  }));
26753
27053
  }
26754
27054
  };
26755
- LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
27055
+ LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
26756
27056
 
26757
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27057
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26758
27058
  var d,
26759
27059
  c = arguments.length,
26760
27060
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26761
27061
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27062
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26763
27063
  },
26764
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
27064
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
26765
27065
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26766
27066
  };
26767
27067
  let LynxCanvas = class extends BaseCanvas {
@@ -26777,19 +27077,19 @@ let LynxCanvas = class extends BaseCanvas {
26777
27077
  }
26778
27078
  release() {}
26779
27079
  };
26780
- LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
27080
+ LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
26781
27081
 
26782
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27082
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26783
27083
  var d,
26784
27084
  c = arguments.length,
26785
27085
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26786
27086
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27087
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26788
27088
  },
26789
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
27089
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
26790
27090
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26791
27091
  },
26792
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
27092
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
26793
27093
  return function (target, key) {
26794
27094
  decorator(target, key, paramIndex);
26795
27095
  };
@@ -26927,21 +27227,21 @@ let LynxWindowHandlerContribution = class extends BaseWindowHandlerContribution
26927
27227
  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
27228
  }
26929
27229
  };
26930
- LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
27230
+ LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
26931
27231
  const lynxWindowModule = new ContainerModule(bind => {
26932
27232
  bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
26933
27233
  });
26934
27234
 
26935
27235
  const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
26936
27236
 
26937
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27237
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
26938
27238
  var d,
26939
27239
  c = arguments.length,
26940
27240
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
26941
27241
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27242
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26943
27243
  },
26944
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
27244
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
26945
27245
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
26946
27246
  };
26947
27247
  let ng = !1;
@@ -27051,7 +27351,7 @@ let LynxEnvContribution = class extends BaseEnvContribution {
27051
27351
  }
27052
27352
  release() {}
27053
27353
  };
27054
- LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
27354
+ LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
27055
27355
 
27056
27356
  const lynxEnvModule = new ContainerModule(bind => {
27057
27357
  lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
@@ -27066,14 +27366,14 @@ function initLynxEnv() {
27066
27366
  loadLynxEnv(container);
27067
27367
  }
27068
27368
 
27069
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27369
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27070
27370
  var d,
27071
27371
  c = arguments.length,
27072
27372
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27073
27373
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27374
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27075
27375
  },
27076
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
27376
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
27077
27377
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27078
27378
  };
27079
27379
  let NodeContext2d = class extends BrowserContext2d {
@@ -27085,16 +27385,16 @@ let NodeContext2d = class extends BrowserContext2d {
27085
27385
  }
27086
27386
  release() {}
27087
27387
  };
27088
- NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
27388
+ NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
27089
27389
 
27090
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27390
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27091
27391
  var d,
27092
27392
  c = arguments.length,
27093
27393
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27094
27394
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27395
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27096
27396
  },
27097
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
27397
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
27098
27398
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27099
27399
  };
27100
27400
  let NodeCanvas = class extends BaseCanvas {
@@ -27108,21 +27408,21 @@ let NodeCanvas = class extends BaseCanvas {
27108
27408
  this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
27109
27409
  }
27110
27410
  };
27111
- NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
27411
+ NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
27112
27412
 
27113
27413
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
27114
27414
 
27115
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27415
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27116
27416
  var d,
27117
27417
  c = arguments.length,
27118
27418
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27119
27419
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27420
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27121
27421
  },
27122
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
27422
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
27123
27423
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27124
27424
  },
27125
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
27425
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27126
27426
  return function (target, key) {
27127
27427
  decorator(target, key, paramIndex);
27128
27428
  };
@@ -27213,12 +27513,12 @@ let NodeWindowHandlerContribution = class extends BaseWindowHandlerContribution
27213
27513
  }
27214
27514
  clearViewBox(color) {}
27215
27515
  };
27216
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27516
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
27217
27517
  const nodeWindowModule = new ContainerModule(bind => {
27218
27518
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
27219
27519
  });
27220
27520
 
27221
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27521
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27222
27522
  var d,
27223
27523
  c = arguments.length,
27224
27524
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27304,7 +27604,7 @@ let NodeEnvContribution = class extends BaseEnvContribution {
27304
27604
  release() {}
27305
27605
  createOffscreenCanvas(params) {}
27306
27606
  };
27307
- NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
27607
+ NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
27308
27608
 
27309
27609
  const nodeEnvModule = new ContainerModule(bind => {
27310
27610
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -27318,7 +27618,7 @@ function initNodeEnv() {
27318
27618
  loadNodeEnv(container);
27319
27619
  }
27320
27620
 
27321
- var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27621
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27322
27622
  var d,
27323
27623
  c = arguments.length,
27324
27624
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27407,16 +27707,16 @@ let TaroContext2d = class extends BrowserContext2d {
27407
27707
  return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
27408
27708
  }
27409
27709
  };
27410
- TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
27710
+ TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
27411
27711
 
27412
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27712
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27413
27713
  var d,
27414
27714
  c = arguments.length,
27415
27715
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27416
27716
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27417
27717
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27418
27718
  },
27419
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
27719
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
27420
27720
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27421
27721
  };
27422
27722
  let TaroCanvas = class extends BaseCanvas {
@@ -27428,21 +27728,21 @@ let TaroCanvas = class extends BaseCanvas {
27428
27728
  }
27429
27729
  release() {}
27430
27730
  };
27431
- TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
27731
+ TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
27432
27732
 
27433
27733
  const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
27434
27734
 
27435
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27735
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27436
27736
  var d,
27437
27737
  c = arguments.length,
27438
27738
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27439
27739
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27740
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27441
27741
  },
27442
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
27742
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
27443
27743
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27444
27744
  },
27445
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
27745
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
27446
27746
  return function (target, key) {
27447
27747
  decorator(target, key, paramIndex);
27448
27748
  };
@@ -27588,19 +27888,19 @@ let TaroWindowHandlerContribution = class extends BaseWindowHandlerContribution
27588
27888
  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
27889
  }
27590
27890
  };
27591
- TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27891
+ TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
27592
27892
  const taroWindowModule = new ContainerModule(bind => {
27593
27893
  bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
27594
27894
  });
27595
27895
 
27596
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27896
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27597
27897
  var d,
27598
27898
  c = arguments.length,
27599
27899
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27600
27900
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27601
27901
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27602
27902
  },
27603
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
27903
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
27604
27904
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27605
27905
  };
27606
27906
  function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
@@ -27697,7 +27997,7 @@ let TaroEnvContribution = class extends BaseEnvContribution {
27697
27997
  }
27698
27998
  release() {}
27699
27999
  };
27700
- TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
28000
+ TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
27701
28001
 
27702
28002
  const taroEnvModule = new ContainerModule(bind => {
27703
28003
  taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
@@ -27712,7 +28012,7 @@ function initTaroEnv() {
27712
28012
  loadTaroEnv(container);
27713
28013
  }
27714
28014
 
27715
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28015
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27716
28016
  var d,
27717
28017
  c = arguments.length,
27718
28018
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -27725,16 +28025,16 @@ let WxContext2d = class extends BrowserContext2d {
27725
28025
  return null;
27726
28026
  }
27727
28027
  };
27728
- WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
28028
+ WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
27729
28029
 
27730
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28030
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27731
28031
  var d,
27732
28032
  c = arguments.length,
27733
28033
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27734
28034
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
27735
28035
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27736
28036
  },
27737
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
28037
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
27738
28038
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27739
28039
  };
27740
28040
  let WxCanvas = class extends BaseCanvas {
@@ -27746,21 +28046,21 @@ let WxCanvas = class extends BaseCanvas {
27746
28046
  }
27747
28047
  release() {}
27748
28048
  };
27749
- WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
28049
+ WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
27750
28050
 
27751
28051
  const wxCanvasModule = createModule(WxCanvas, WxContext2d);
27752
28052
 
27753
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28053
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27754
28054
  var d,
27755
28055
  c = arguments.length,
27756
28056
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27757
28057
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28058
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27759
28059
  },
27760
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
28060
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
27761
28061
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27762
28062
  },
27763
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
28063
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
27764
28064
  return function (target, key) {
27765
28065
  decorator(target, key, paramIndex);
27766
28066
  };
@@ -27897,19 +28197,19 @@ let WxWindowHandlerContribution = class extends BaseWindowHandlerContribution {
27897
28197
  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
28198
  }
27899
28199
  };
27900
- WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
28200
+ WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
27901
28201
  const wxWindowModule = new ContainerModule(bind => {
27902
28202
  bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
27903
28203
  });
27904
28204
 
27905
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28205
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
27906
28206
  var d,
27907
28207
  c = arguments.length,
27908
28208
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
27909
28209
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28210
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27911
28211
  },
27912
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
28212
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
27913
28213
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
27914
28214
  },
27915
28215
  __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28023,7 +28323,7 @@ let WxEnvContribution = class extends BaseEnvContribution {
28023
28323
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28024
28324
  }
28025
28325
  };
28026
- WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
28326
+ WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
28027
28327
 
28028
28328
  const wxEnvModule = new ContainerModule(bind => {
28029
28329
  wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
@@ -28051,7 +28351,7 @@ function initAllEnv() {
28051
28351
  loadAllEnv(container);
28052
28352
  }
28053
28353
 
28054
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28354
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28055
28355
  var d,
28056
28356
  c = arguments.length,
28057
28357
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28059,16 +28359,16 @@ var __decorate$q = undefined && undefined.__decorate || function (decorators, ta
28059
28359
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28060
28360
  };
28061
28361
  let TTContext2d = class extends FeishuContext2d {};
28062
- TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
28362
+ TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
28063
28363
 
28064
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28364
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28065
28365
  var d,
28066
28366
  c = arguments.length,
28067
28367
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28068
28368
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
28069
28369
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28070
28370
  },
28071
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
28371
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
28072
28372
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28073
28373
  };
28074
28374
  let TTCanvas = class extends BaseCanvas {
@@ -28080,21 +28380,21 @@ let TTCanvas = class extends BaseCanvas {
28080
28380
  }
28081
28381
  release() {}
28082
28382
  };
28083
- TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
28383
+ TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
28084
28384
 
28085
28385
  const ttCanvasModule = createModule(TTCanvas, TTContext2d);
28086
28386
 
28087
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28387
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28088
28388
  var d,
28089
28389
  c = arguments.length,
28090
28390
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28091
28391
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28392
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28093
28393
  },
28094
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
28394
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
28095
28395
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28096
28396
  },
28097
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
28397
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28098
28398
  return function (target, key) {
28099
28399
  decorator(target, key, paramIndex);
28100
28400
  };
@@ -28230,19 +28530,19 @@ let TTWindowHandlerContribution = class extends BaseWindowHandlerContribution {
28230
28530
  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
28531
  }
28232
28532
  };
28233
- TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
28533
+ TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
28234
28534
  const ttWindowModule = new ContainerModule(bind => {
28235
28535
  bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
28236
28536
  });
28237
28537
 
28238
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28538
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28239
28539
  var d,
28240
28540
  c = arguments.length,
28241
28541
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28242
28542
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28543
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28244
28544
  },
28245
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
28545
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
28246
28546
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28247
28547
  },
28248
28548
  __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -28352,7 +28652,7 @@ let TTEnvContribution = class extends BaseEnvContribution {
28352
28652
  return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
28353
28653
  }
28354
28654
  };
28355
- TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
28655
+ TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
28356
28656
 
28357
28657
  const ttEnvModule = new ContainerModule(bind => {
28358
28658
  ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
@@ -28367,7 +28667,7 @@ function initTTEnv() {
28367
28667
  loadTTEnv(container);
28368
28668
  }
28369
28669
 
28370
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28670
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28371
28671
  var d,
28372
28672
  c = arguments.length,
28373
28673
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -28452,16 +28752,16 @@ let HarmonyContext2d = class extends BrowserContext2d {
28452
28752
  }
28453
28753
  draw() {}
28454
28754
  };
28455
- HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
28755
+ HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
28456
28756
 
28457
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28757
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28458
28758
  var d,
28459
28759
  c = arguments.length,
28460
28760
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28461
28761
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28762
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28463
28763
  },
28464
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
28764
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
28465
28765
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28466
28766
  };
28467
28767
  let HarmonyCanvas = class extends BaseCanvas {
@@ -28474,19 +28774,19 @@ let HarmonyCanvas = class extends BaseCanvas {
28474
28774
  resize(width, height) {}
28475
28775
  release() {}
28476
28776
  };
28477
- HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
28777
+ HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
28478
28778
 
28479
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28779
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28480
28780
  var d,
28481
28781
  c = arguments.length,
28482
28782
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28483
28783
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28784
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28485
28785
  },
28486
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
28786
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
28487
28787
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28488
28788
  },
28489
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
28789
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
28490
28790
  return function (target, key) {
28491
28791
  decorator(target, key, paramIndex);
28492
28792
  };
@@ -28623,21 +28923,21 @@ let HarmonyWindowHandlerContribution = class extends BaseWindowHandlerContributi
28623
28923
  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
28924
  }
28625
28925
  };
28626
- HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28926
+ HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
28627
28927
  const harmonyWindowModule = new ContainerModule(bind => {
28628
28928
  bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
28629
28929
  });
28630
28930
 
28631
28931
  const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
28632
28932
 
28633
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28933
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28634
28934
  var d,
28635
28935
  c = arguments.length,
28636
28936
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28637
28937
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28938
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28639
28939
  },
28640
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
28940
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
28641
28941
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28642
28942
  };
28643
28943
  function createCanvas(width, height, id) {
@@ -28718,7 +29018,7 @@ let HarmonyEnvContribution = class extends BaseEnvContribution {
28718
29018
  }
28719
29019
  release() {}
28720
29020
  };
28721
- HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
29021
+ HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
28722
29022
 
28723
29023
  const harmonyEnvModule = new ContainerModule(bind => {
28724
29024
  harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
@@ -28733,17 +29033,17 @@ function initHarmonyEnv() {
28733
29033
  loadHarmonyEnv(container);
28734
29034
  }
28735
29035
 
28736
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29036
+ var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28737
29037
  var d,
28738
29038
  c = arguments.length,
28739
29039
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28740
29040
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29041
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28742
29042
  },
28743
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
29043
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
28744
29044
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28745
29045
  },
28746
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
29046
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
28747
29047
  return function (target, key) {
28748
29048
  decorator(target, key, paramIndex);
28749
29049
  };
@@ -28753,24 +29053,24 @@ let DefaultCanvasArcPicker = class extends PickerBase {
28753
29053
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
28754
29054
  }
28755
29055
  };
28756
- DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
29056
+ DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
28757
29057
 
28758
29058
  let loadArcPick = !1;
28759
29059
  const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28760
29060
  loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
28761
29061
  });
28762
29062
 
28763
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29063
+ var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28764
29064
  var d,
28765
29065
  c = arguments.length,
28766
29066
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28767
29067
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29068
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28769
29069
  },
28770
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
29070
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
28771
29071
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28772
29072
  },
28773
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
29073
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
28774
29074
  return function (target, key) {
28775
29075
  decorator(target, key, paramIndex);
28776
29076
  };
@@ -28780,7 +29080,7 @@ let DefaultCanvasRectPicker = class extends RectPickerBase {
28780
29080
  super(), this.canvasRenderer = canvasRenderer;
28781
29081
  }
28782
29082
  };
28783
- DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
29083
+ DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
28784
29084
 
28785
29085
  let loadRectPick = !1;
28786
29086
  const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28822,17 +29122,17 @@ class BaseLinePicker extends BaseRender {
28822
29122
  }
28823
29123
  }
28824
29124
 
28825
- var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29125
+ var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28826
29126
  var d,
28827
29127
  c = arguments.length,
28828
29128
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28829
29129
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29130
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28831
29131
  },
28832
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
29132
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
28833
29133
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28834
29134
  },
28835
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
29135
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
28836
29136
  return function (target, key) {
28837
29137
  decorator(target, key, paramIndex);
28838
29138
  };
@@ -28842,24 +29142,24 @@ let DefaultCanvasLinePicker = class extends BaseLinePicker {
28842
29142
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
28843
29143
  }
28844
29144
  };
28845
- DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
29145
+ DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
28846
29146
 
28847
29147
  let loadLinePick = !1;
28848
29148
  const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28849
29149
  loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
28850
29150
  });
28851
29151
 
28852
- var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29152
+ var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28853
29153
  var d,
28854
29154
  c = arguments.length,
28855
29155
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28856
29156
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29157
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28858
29158
  },
28859
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
29159
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
28860
29160
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28861
29161
  },
28862
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
29162
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
28863
29163
  return function (target, key) {
28864
29164
  decorator(target, key, paramIndex);
28865
29165
  };
@@ -28869,7 +29169,7 @@ let DefaultCanvasAreaPicker = class extends PickerBase {
28869
29169
  super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
28870
29170
  }
28871
29171
  };
28872
- DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
29172
+ DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
28873
29173
 
28874
29174
  let loadAreaPick = !1;
28875
29175
  const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -28903,17 +29203,17 @@ class Base3dPicker extends BaseRender {
28903
29203
  }
28904
29204
  }
28905
29205
 
28906
- var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29206
+ var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28907
29207
  var d,
28908
29208
  c = arguments.length,
28909
29209
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28910
29210
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29211
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28912
29212
  },
28913
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
29213
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
28914
29214
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28915
29215
  },
28916
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
29216
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
28917
29217
  return function (target, key) {
28918
29218
  decorator(target, key, paramIndex);
28919
29219
  };
@@ -28958,24 +29258,24 @@ let DefaultCanvasSymbolPicker = class extends Base3dPicker {
28958
29258
  }), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
28959
29259
  }
28960
29260
  };
28961
- DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
29261
+ DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
28962
29262
 
28963
29263
  let loadSymbolPick = !1;
28964
29264
  const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28965
29265
  loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
28966
29266
  });
28967
29267
 
28968
- var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29268
+ var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28969
29269
  var d,
28970
29270
  c = arguments.length,
28971
29271
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28972
29272
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29273
  return c > 3 && r && Object.defineProperty(target, key, r), r;
28974
29274
  },
28975
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
29275
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
28976
29276
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28977
29277
  },
28978
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
29278
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
28979
29279
  return function (target, key) {
28980
29280
  decorator(target, key, paramIndex);
28981
29281
  };
@@ -28985,24 +29285,24 @@ let DefaultCanvasCirclePicker = class extends PickerBase {
28985
29285
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
28986
29286
  }
28987
29287
  };
28988
- DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
29288
+ DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
28989
29289
 
28990
29290
  let loadCirclePick = !1;
28991
29291
  const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
28992
29292
  loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
28993
29293
  });
28994
29294
 
28995
- var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29295
+ var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
28996
29296
  var d,
28997
29297
  c = arguments.length,
28998
29298
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
28999
29299
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29300
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29001
29301
  },
29002
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
29302
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29003
29303
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29004
29304
  },
29005
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
29305
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29006
29306
  return function (target, key) {
29007
29307
  decorator(target, key, paramIndex);
29008
29308
  };
@@ -29055,24 +29355,24 @@ let DefaultCanvasTextPicker = class extends Base3dPicker {
29055
29355
  }, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
29056
29356
  }
29057
29357
  };
29058
- DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29358
+ DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
29059
29359
 
29060
29360
  let loadTextPick = !1;
29061
29361
  const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29062
29362
  loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
29063
29363
  });
29064
29364
 
29065
- var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29365
+ var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29066
29366
  var d,
29067
29367
  c = arguments.length,
29068
29368
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29069
29369
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29370
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29071
29371
  },
29072
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
29372
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29073
29373
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29074
29374
  },
29075
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
29375
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29076
29376
  return function (target, key) {
29077
29377
  decorator(target, key, paramIndex);
29078
29378
  };
@@ -29082,24 +29382,24 @@ let DefaultCanvasPathPicker = class extends BaseLinePicker {
29082
29382
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
29083
29383
  }
29084
29384
  };
29085
- DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29385
+ DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
29086
29386
 
29087
29387
  let loadPathPick = !1;
29088
29388
  const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29089
29389
  loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
29090
29390
  });
29091
29391
 
29092
- var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29392
+ var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29093
29393
  var d,
29094
29394
  c = arguments.length,
29095
29395
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29096
29396
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29397
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29098
29398
  },
29099
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
29399
+ __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29100
29400
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29101
29401
  },
29102
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
29402
+ __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29103
29403
  return function (target, key) {
29104
29404
  decorator(target, key, paramIndex);
29105
29405
  };
@@ -29109,24 +29409,24 @@ let DefaultCanvasPolygonPicker = class extends PickerBase {
29109
29409
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
29110
29410
  }
29111
29411
  };
29112
- DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29412
+ DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
29113
29413
 
29114
29414
  let loadPolygonPick = !1;
29115
29415
  const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29116
29416
  loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
29117
29417
  });
29118
29418
 
29119
- var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29419
+ var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29120
29420
  var d,
29121
29421
  c = arguments.length,
29122
29422
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29123
29423
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29424
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29125
29425
  },
29126
- __metadata$6 = undefined && undefined.__metadata || function (k, v) {
29426
+ __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29127
29427
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29128
29428
  },
29129
- __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
29429
+ __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29130
29430
  return function (target, key) {
29131
29431
  decorator(target, key, paramIndex);
29132
29432
  };
@@ -29136,24 +29436,24 @@ let DefaultCanvasGlyphPicker = class extends GlyphPickerBase {
29136
29436
  super(), this.canvasRenderer = canvasRenderer;
29137
29437
  }
29138
29438
  };
29139
- DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29439
+ DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
29140
29440
 
29141
29441
  let loadGlyphPick = !1;
29142
29442
  const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29143
29443
  loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
29144
29444
  });
29145
29445
 
29146
- var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29446
+ var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29147
29447
  var d,
29148
29448
  c = arguments.length,
29149
29449
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29150
29450
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29451
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29152
29452
  },
29153
- __metadata$5 = undefined && undefined.__metadata || function (k, v) {
29453
+ __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29154
29454
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29155
29455
  },
29156
- __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
29456
+ __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29157
29457
  return function (target, key) {
29158
29458
  decorator(target, key, paramIndex);
29159
29459
  };
@@ -29166,14 +29466,14 @@ let DefaultCanvasRichTextPicker = class {
29166
29466
  return !!richtext.AABBBounds.containsPoint(point);
29167
29467
  }
29168
29468
  };
29169
- DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29469
+ DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
29170
29470
 
29171
29471
  let loadRichtextPick = !1;
29172
29472
  const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29173
29473
  loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
29174
29474
  });
29175
29475
 
29176
- var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29476
+ var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29177
29477
  var d,
29178
29478
  c = arguments.length,
29179
29479
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -29191,24 +29491,24 @@ let DefaultCanvasImagePicker = class {
29191
29491
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
29192
29492
  }
29193
29493
  };
29194
- DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
29494
+ DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
29195
29495
 
29196
29496
  let loadImagePick = !1;
29197
29497
  const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29198
29498
  loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
29199
29499
  });
29200
29500
 
29201
- var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29501
+ var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29202
29502
  var d,
29203
29503
  c = arguments.length,
29204
29504
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29205
29505
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29506
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29207
29507
  },
29208
- __metadata$4 = undefined && undefined.__metadata || function (k, v) {
29508
+ __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29209
29509
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29210
29510
  },
29211
- __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
29511
+ __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29212
29512
  return function (target, key) {
29213
29513
  decorator(target, key, paramIndex);
29214
29514
  };
@@ -29218,24 +29518,24 @@ let DefaultCanvasRect3dPicker = class extends Base3dPicker {
29218
29518
  super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
29219
29519
  }
29220
29520
  };
29221
- DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29521
+ DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
29222
29522
 
29223
29523
  let loadRect3dPick = !1;
29224
29524
  const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29225
29525
  loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
29226
29526
  });
29227
29527
 
29228
- var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29528
+ var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29229
29529
  var d,
29230
29530
  c = arguments.length,
29231
29531
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29232
29532
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29533
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29234
29534
  },
29235
- __metadata$3 = undefined && undefined.__metadata || function (k, v) {
29535
+ __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29236
29536
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29237
29537
  },
29238
- __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
29538
+ __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29239
29539
  return function (target, key) {
29240
29540
  decorator(target, key, paramIndex);
29241
29541
  };
@@ -29245,24 +29545,24 @@ let DefaultCanvasArc3dPicker = class extends Base3dPicker {
29245
29545
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
29246
29546
  }
29247
29547
  };
29248
- DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29548
+ DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
29249
29549
 
29250
29550
  let loadArc3dPick = !1;
29251
29551
  const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29252
29552
  loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
29253
29553
  });
29254
29554
 
29255
- var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29555
+ var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
29256
29556
  var d,
29257
29557
  c = arguments.length,
29258
29558
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
29259
29559
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29560
  return c > 3 && r && Object.defineProperty(target, key, r), r;
29261
29561
  },
29262
- __metadata$2 = undefined && undefined.__metadata || function (k, v) {
29562
+ __metadata$1 = undefined && undefined.__metadata || function (k, v) {
29263
29563
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
29264
29564
  },
29265
- __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
29565
+ __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
29266
29566
  return function (target, key) {
29267
29567
  decorator(target, key, paramIndex);
29268
29568
  };
@@ -29272,724 +29572,15 @@ let DefaultCanvasPyramid3dPicker = class extends Base3dPicker {
29272
29572
  super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
29273
29573
  }
29274
29574
  };
29275
- DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29575
+ DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
29276
29576
 
29277
29577
  let loadPyramid3dPick = !1;
29278
29578
  const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
29279
29579
  loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
29280
29580
  });
29281
29581
 
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
29582
  const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
29877
29583
 
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
29584
  var lottie = {exports: {}};
29994
29585
 
29995
29586
  (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 +30482,7 @@ const registerWrapText = _registerWrapText;
30891
30482
 
30892
30483
  const roughModule = _roughModule;
30893
30484
 
30894
- const version = "0.22.0-vstory.1";
30485
+ const version = "0.22.0-vstory.11";
30895
30486
  preLoadAllModule();
30896
30487
  if (isBrowserEnv()) {
30897
30488
  loadBrowserEnv(container);
@@ -30924,4 +30515,4 @@ registerReactAttributePlugin();
30924
30515
  registerDirectionalLight();
30925
30516
  registerOrthoCamera();
30926
30517
 
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 };
30518
+ 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 };