@visactor/vrender 0.22.0-vstory.10 → 0.22.0-vstory.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +1297 -637
- package/dist/index.js +1301 -636
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
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$
|
|
574
|
+
var __decorate$1L = 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$
|
|
581
|
+
__metadata$1j = 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$
|
|
584
|
+
__param$V = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
585
585
|
return function (target, key) {
|
|
586
586
|
decorator(target, key, paramIndex);
|
|
587
587
|
};
|
|
@@ -615,6 +615,12 @@ 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
|
+
}
|
|
618
624
|
get devicePixelRatio() {
|
|
619
625
|
return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
|
|
620
626
|
}
|
|
@@ -649,7 +655,7 @@ let DefaultGlobal = class {
|
|
|
649
655
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
650
656
|
}
|
|
651
657
|
constructor(contributions) {
|
|
652
|
-
this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
658
|
+
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
653
659
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
654
660
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
655
661
|
}
|
|
@@ -777,7 +783,7 @@ let DefaultGlobal = class {
|
|
|
777
783
|
return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
|
|
778
784
|
}
|
|
779
785
|
};
|
|
780
|
-
DefaultGlobal = __decorate$
|
|
786
|
+
DefaultGlobal = __decorate$1L([injectable(), __param$V(0, inject(ContributionProvider)), __param$V(0, named(EnvContribution)), __metadata$1j("design:paramtypes", [Object])], DefaultGlobal);
|
|
781
787
|
|
|
782
788
|
var MeasureModeEnum;
|
|
783
789
|
!function (MeasureModeEnum) {
|
|
@@ -3464,7 +3470,7 @@ let Step$1 = class Step {
|
|
|
3464
3470
|
default:
|
|
3465
3471
|
if (this._t <= 0) this.context.lineTo(this._x, y, !1 !== this._lastDefined && !1 !== p.defined, this.lastPoint), this.context.lineTo(x, y, !1 !== this._lastDefined && !1 !== p.defined, p);else {
|
|
3466
3472
|
const x1 = this._x * (1 - this._t) + x * this._t;
|
|
3467
|
-
this.context.lineTo(x1, this._y, !1 !== this._lastDefined && !1 !== p.defined, this.lastPoint), this.context.lineTo(x1, y, !1 !== this._lastDefined && !1 !== p.defined, p);
|
|
3473
|
+
.5 === this._t ? this.context.lineTo(x1, this._y, !1 !== this._lastDefined, this.lastPoint) : this.context.lineTo(x1, this._y, !1 !== this._lastDefined && !1 !== p.defined, this.lastPoint), this.context.lineTo(x1, y, !1 !== this._lastDefined && !1 !== p.defined, p);
|
|
3468
3474
|
}
|
|
3469
3475
|
}
|
|
3470
3476
|
this._lastDefined = p.defined, this._x = x, this._y = y, this.lastPoint = p;
|
|
@@ -4294,6 +4300,7 @@ const DefaultTextAttribute = Object.assign(Object.assign(Object.assign({}, Defau
|
|
|
4294
4300
|
const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
|
|
4295
4301
|
editable: !1,
|
|
4296
4302
|
editOptions: null,
|
|
4303
|
+
ascentDescentMode: "actual",
|
|
4297
4304
|
width: 300,
|
|
4298
4305
|
height: 300,
|
|
4299
4306
|
ellipsis: !0,
|
|
@@ -4341,7 +4348,7 @@ const DefaultRichTextIconAttribute = Object.assign(Object.assign({}, DefaultImag
|
|
|
4341
4348
|
class Application {}
|
|
4342
4349
|
const application = new Application();
|
|
4343
4350
|
|
|
4344
|
-
const parse = function () {
|
|
4351
|
+
const parse$1 = function () {
|
|
4345
4352
|
const tokens = {
|
|
4346
4353
|
linearGradient: /^(linear\-gradient)/i,
|
|
4347
4354
|
radialGradient: /^(radial\-gradient)/i,
|
|
@@ -4494,7 +4501,7 @@ class GradientParser {
|
|
|
4494
4501
|
}
|
|
4495
4502
|
static Parse(c) {
|
|
4496
4503
|
if (GradientParser.IsGradientStr(c)) try {
|
|
4497
|
-
const datum = parse(c)[0];
|
|
4504
|
+
const datum = parse$1(c)[0];
|
|
4498
4505
|
if (datum) {
|
|
4499
4506
|
if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
|
|
4500
4507
|
if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
|
|
@@ -4741,17 +4748,20 @@ function testLetter2(string, index) {
|
|
|
4741
4748
|
return i + 1;
|
|
4742
4749
|
}
|
|
4743
4750
|
function measureTextCanvas(text, character) {
|
|
4751
|
+
let mode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "actual";
|
|
4744
4752
|
const measurement = application.graphicUtil.textMeasure.measureText(text, character),
|
|
4745
4753
|
result = {
|
|
4746
4754
|
ascent: 0,
|
|
4747
4755
|
height: 0,
|
|
4748
4756
|
descent: 0,
|
|
4749
4757
|
width: 0
|
|
4750
|
-
}
|
|
4751
|
-
|
|
4758
|
+
},
|
|
4759
|
+
ascent = "actual" === mode ? measurement.actualBoundingBoxAscent : measurement.fontBoundingBoxAscent,
|
|
4760
|
+
descent = "actual" === mode ? measurement.actualBoundingBoxDescent : measurement.fontBoundingBoxDescent;
|
|
4761
|
+
return "number" != typeof ascent || "number" != typeof descent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(ascent + descent), result.ascent = Math.floor(ascent), result.descent = result.height - result.ascent), result;
|
|
4752
4762
|
}
|
|
4753
4763
|
|
|
4754
|
-
var __decorate$
|
|
4764
|
+
var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
4755
4765
|
var d,
|
|
4756
4766
|
c = arguments.length,
|
|
4757
4767
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5133,9 +5143,9 @@ let ATextMeasure = class {
|
|
|
5133
5143
|
return data.str = data.result, data.width += suffixWidth, data;
|
|
5134
5144
|
}
|
|
5135
5145
|
};
|
|
5136
|
-
ATextMeasure = __decorate$
|
|
5146
|
+
ATextMeasure = __decorate$1K([injectable()], ATextMeasure);
|
|
5137
5147
|
|
|
5138
|
-
var __decorate$
|
|
5148
|
+
var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5139
5149
|
var d,
|
|
5140
5150
|
c = arguments.length,
|
|
5141
5151
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5144,7 +5154,7 @@ var __decorate$1H = undefined && undefined.__decorate || function (decorators, t
|
|
|
5144
5154
|
};
|
|
5145
5155
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
5146
5156
|
let DefaultTextMeasureContribution = class extends ATextMeasure {};
|
|
5147
|
-
DefaultTextMeasureContribution = __decorate$
|
|
5157
|
+
DefaultTextMeasureContribution = __decorate$1J([injectable()], DefaultTextMeasureContribution);
|
|
5148
5158
|
|
|
5149
5159
|
const container = new Container();
|
|
5150
5160
|
|
|
@@ -5558,14 +5568,14 @@ class DefaultCanvasAllocate {
|
|
|
5558
5568
|
}
|
|
5559
5569
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
5560
5570
|
|
|
5561
|
-
var __decorate$
|
|
5571
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5562
5572
|
var d,
|
|
5563
5573
|
c = arguments.length,
|
|
5564
5574
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5565
5575
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5566
5576
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5567
5577
|
},
|
|
5568
|
-
__metadata$
|
|
5578
|
+
__metadata$1i = undefined && undefined.__metadata || function (k, v) {
|
|
5569
5579
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5570
5580
|
};
|
|
5571
5581
|
const VWindow = Symbol.for("VWindow");
|
|
@@ -5702,19 +5712,19 @@ let DefaultWindow = class {
|
|
|
5702
5712
|
return this._handler.getTopLeft(baseWindow);
|
|
5703
5713
|
}
|
|
5704
5714
|
};
|
|
5705
|
-
DefaultWindow = __decorate$
|
|
5715
|
+
DefaultWindow = __decorate$1I([injectable(), __metadata$1i("design:paramtypes", [])], DefaultWindow);
|
|
5706
5716
|
|
|
5707
|
-
var __decorate$
|
|
5717
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5708
5718
|
var d,
|
|
5709
5719
|
c = arguments.length,
|
|
5710
5720
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5711
5721
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5712
5722
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5713
5723
|
},
|
|
5714
|
-
__metadata$
|
|
5724
|
+
__metadata$1h = undefined && undefined.__metadata || function (k, v) {
|
|
5715
5725
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5716
5726
|
},
|
|
5717
|
-
__param$
|
|
5727
|
+
__param$U = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
5718
5728
|
return function (target, key) {
|
|
5719
5729
|
decorator(target, key, paramIndex);
|
|
5720
5730
|
};
|
|
@@ -5809,7 +5819,7 @@ let DefaultGraphicUtil = class {
|
|
|
5809
5819
|
return c.nativeCanvas ? c.nativeCanvas : null;
|
|
5810
5820
|
}
|
|
5811
5821
|
};
|
|
5812
|
-
DefaultGraphicUtil = __decorate$
|
|
5822
|
+
DefaultGraphicUtil = __decorate$1H([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(TextMeasureContribution)), __metadata$1h("design:paramtypes", [Object])], DefaultGraphicUtil);
|
|
5813
5823
|
var TransformMode;
|
|
5814
5824
|
!function (TransformMode) {
|
|
5815
5825
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -5867,7 +5877,7 @@ let DefaultTransformUtil = class {
|
|
|
5867
5877
|
return this;
|
|
5868
5878
|
}
|
|
5869
5879
|
};
|
|
5870
|
-
DefaultTransformUtil = __decorate$
|
|
5880
|
+
DefaultTransformUtil = __decorate$1H([injectable(), __metadata$1h("design:paramtypes", [])], DefaultTransformUtil);
|
|
5871
5881
|
|
|
5872
5882
|
const defaultThemeObj = {
|
|
5873
5883
|
arc: DefaultArcAttribute,
|
|
@@ -7380,7 +7390,7 @@ class Animate {
|
|
|
7380
7390
|
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Generator.GenAutoIncrementId();
|
|
7381
7391
|
let timeline = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTimeline;
|
|
7382
7392
|
let slience = arguments.length > 2 ? arguments[2] : undefined;
|
|
7383
|
-
this.id = id, this.timeline = timeline, this.status = AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this), this.slience = slience;
|
|
7393
|
+
this.id = id, this.timeline = timeline || defaultTimeline, this.status = AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this), this.slience = slience;
|
|
7384
7394
|
}
|
|
7385
7395
|
setTimeline(timeline) {
|
|
7386
7396
|
timeline !== this.timeline && (this.timeline.removeAnimate(this, !1), timeline.addAnimate(this));
|
|
@@ -7870,7 +7880,8 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
7870
7880
|
}
|
|
7871
7881
|
onEnd() {}
|
|
7872
7882
|
onUpdate(end, ratio, out) {
|
|
7873
|
-
|
|
7883
|
+
var _a;
|
|
7884
|
+
!1 !== this.valid && (out.text = end ? null === (_a = this.to) || void 0 === _a ? void 0 : _a.text : (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(this.decimalLength));
|
|
7874
7885
|
}
|
|
7875
7886
|
}
|
|
7876
7887
|
var Direction;
|
|
@@ -9716,7 +9727,7 @@ class ResourceLoader {
|
|
|
9716
9727
|
}
|
|
9717
9728
|
static GetFile(url, type) {
|
|
9718
9729
|
let data = ResourceLoader.cache.get(url);
|
|
9719
|
-
return data ? "
|
|
9730
|
+
return data ? "fail" === data.loadState ? Promise.reject() : "init" === data.loadState || "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
|
|
9720
9731
|
type: type,
|
|
9721
9732
|
loadState: "init"
|
|
9722
9733
|
}, 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));
|
|
@@ -11170,14 +11181,14 @@ const DynamicLayerHandlerContribution = Symbol.for("DynamicLayerHandlerContribut
|
|
|
11170
11181
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
11171
11182
|
|
|
11172
11183
|
var DefaultLayerService_1,
|
|
11173
|
-
__decorate$
|
|
11184
|
+
__decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11174
11185
|
var d,
|
|
11175
11186
|
c = arguments.length,
|
|
11176
11187
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11177
11188
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11178
11189
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11179
11190
|
},
|
|
11180
|
-
__metadata$
|
|
11191
|
+
__metadata$1g = undefined && undefined.__metadata || function (k, v) {
|
|
11181
11192
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11182
11193
|
};
|
|
11183
11194
|
let DefaultLayerService = DefaultLayerService_1 = class {
|
|
@@ -11241,7 +11252,7 @@ let DefaultLayerService = DefaultLayerService_1 = class {
|
|
|
11241
11252
|
this.layerMap.delete(stage);
|
|
11242
11253
|
}
|
|
11243
11254
|
};
|
|
11244
|
-
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
11255
|
+
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1G([injectable(), __metadata$1g("design:paramtypes", [])], DefaultLayerService);
|
|
11245
11256
|
|
|
11246
11257
|
var coreModule = new ContainerModule(bind => {
|
|
11247
11258
|
bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
|
|
@@ -11780,17 +11791,17 @@ class DefaultMat4Allocate {
|
|
|
11780
11791
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
11781
11792
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
11782
11793
|
|
|
11783
|
-
var __decorate$
|
|
11794
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11784
11795
|
var d,
|
|
11785
11796
|
c = arguments.length,
|
|
11786
11797
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11787
11798
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11788
11799
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11789
11800
|
},
|
|
11790
|
-
__metadata$
|
|
11801
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
11791
11802
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11792
11803
|
},
|
|
11793
|
-
__param$
|
|
11804
|
+
__param$T = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
11794
11805
|
return function (target, key) {
|
|
11795
11806
|
decorator(target, key, paramIndex);
|
|
11796
11807
|
};
|
|
@@ -12002,7 +12013,7 @@ let DefaultGraphicService = class {
|
|
|
12002
12013
|
};
|
|
12003
12014
|
}
|
|
12004
12015
|
};
|
|
12005
|
-
DefaultGraphicService = __decorate$
|
|
12016
|
+
DefaultGraphicService = __decorate$1F([injectable(), __param$T(0, inject(GraphicCreator$1)), __metadata$1f("design:paramtypes", [Object])], DefaultGraphicService);
|
|
12006
12017
|
|
|
12007
12018
|
const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
|
|
12008
12019
|
const {
|
|
@@ -13440,7 +13451,7 @@ let Line$1 = class Line extends Graphic {
|
|
|
13440
13451
|
} = attribute,
|
|
13441
13452
|
b = aabbBounds;
|
|
13442
13453
|
return points.forEach(p => {
|
|
13443
|
-
!1 === p.defined && "
|
|
13454
|
+
!1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
|
|
13444
13455
|
}), b;
|
|
13445
13456
|
}
|
|
13446
13457
|
updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) {
|
|
@@ -13451,7 +13462,7 @@ let Line$1 = class Line extends Graphic {
|
|
|
13451
13462
|
b = aabbBounds;
|
|
13452
13463
|
return segments.forEach(s => {
|
|
13453
13464
|
s.points.forEach(p => {
|
|
13454
|
-
!1 === p.defined && "
|
|
13465
|
+
!1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
|
|
13455
13466
|
});
|
|
13456
13467
|
}), b;
|
|
13457
13468
|
}
|
|
@@ -13882,16 +13893,20 @@ class Frame {
|
|
|
13882
13893
|
}
|
|
13883
13894
|
|
|
13884
13895
|
function getFixedLRTB(left, right, top, bottom) {
|
|
13896
|
+
const leftInt = Math.round(left),
|
|
13897
|
+
topInt = Math.round(top),
|
|
13898
|
+
rightInt = Math.round(right),
|
|
13899
|
+
bottomInt = Math.round(bottom);
|
|
13885
13900
|
return {
|
|
13886
|
-
left:
|
|
13887
|
-
top:
|
|
13888
|
-
right:
|
|
13889
|
-
bottom:
|
|
13901
|
+
left: left > leftInt ? leftInt : leftInt - .5,
|
|
13902
|
+
top: top > topInt ? topInt : topInt - .5,
|
|
13903
|
+
right: rightInt > right ? rightInt : rightInt + .5,
|
|
13904
|
+
bottom: bottomInt > bottom ? bottomInt : bottomInt + .5
|
|
13890
13905
|
};
|
|
13891
13906
|
}
|
|
13892
13907
|
class Paragraph {
|
|
13893
|
-
constructor(text, newLine, character) {
|
|
13894
|
-
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
|
|
13908
|
+
constructor(text, newLine, character, ascentDescentMode) {
|
|
13909
|
+
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic", this.ascentDescentMode = ascentDescentMode;
|
|
13895
13910
|
const lineHeight = calculateLineHeight(character.lineHeight, this.fontSize);
|
|
13896
13911
|
this.lineHeight = "number" == typeof lineHeight ? lineHeight > this.fontSize ? lineHeight : this.fontSize : Math.floor(1.2 * this.fontSize), this.height = this.lineHeight;
|
|
13897
13912
|
const {
|
|
@@ -13899,7 +13914,7 @@ class Paragraph {
|
|
|
13899
13914
|
height: height,
|
|
13900
13915
|
descent: descent,
|
|
13901
13916
|
width: width
|
|
13902
|
-
} = measureTextCanvas(text, character);
|
|
13917
|
+
} = measureTextCanvas(text, character, this.ascentDescentMode);
|
|
13903
13918
|
let halfDetaHeight = 0,
|
|
13904
13919
|
deltaAscent = 0,
|
|
13905
13920
|
deltaDescent = 0;
|
|
@@ -13908,7 +13923,7 @@ class Paragraph {
|
|
|
13908
13923
|
updateWidth() {
|
|
13909
13924
|
const {
|
|
13910
13925
|
width: width
|
|
13911
|
-
} = measureTextCanvas(this.text, this.character);
|
|
13926
|
+
} = measureTextCanvas(this.text, this.character, this.ascentDescentMode);
|
|
13912
13927
|
this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
|
|
13913
13928
|
}
|
|
13914
13929
|
drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
@@ -13925,16 +13940,24 @@ class Paragraph {
|
|
|
13925
13940
|
if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
|
|
13926
13941
|
const {
|
|
13927
13942
|
width: width
|
|
13928
|
-
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
13943
|
+
} = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
|
|
13929
13944
|
"vertical" === direction || (left -= this.ellipsisWidth - width);
|
|
13930
13945
|
}
|
|
13931
13946
|
}
|
|
13932
13947
|
}
|
|
13948
|
+
switch (this.character.script) {
|
|
13949
|
+
case "super":
|
|
13950
|
+
baseline -= this.ascent * (1 / 3);
|
|
13951
|
+
break;
|
|
13952
|
+
case "sub":
|
|
13953
|
+
baseline += this.descent / 2;
|
|
13954
|
+
}
|
|
13955
|
+
"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);
|
|
13956
|
+
const fillStyle = ctx.fillStyle,
|
|
13957
|
+
globalAlpha = ctx.globalAlpha;
|
|
13958
|
+
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
|
|
13933
13959
|
const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
|
|
13934
|
-
|
|
13935
|
-
fillStyle: this.character.background,
|
|
13936
|
-
globalAlpha: this.character.backgroundOpacity
|
|
13937
|
-
});
|
|
13960
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
|
|
13938
13961
|
}
|
|
13939
13962
|
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13940
13963
|
let baseline = top + ascent,
|
|
@@ -13949,7 +13972,7 @@ class Paragraph {
|
|
|
13949
13972
|
if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
|
|
13950
13973
|
const {
|
|
13951
13974
|
width: width
|
|
13952
|
-
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
13975
|
+
} = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
|
|
13953
13976
|
"vertical" === direction || (left -= this.ellipsisWidth - width);
|
|
13954
13977
|
}
|
|
13955
13978
|
}
|
|
@@ -13969,21 +13992,21 @@ class Paragraph {
|
|
|
13969
13992
|
if (this.character.underline) {
|
|
13970
13993
|
const top = 1 + baseline,
|
|
13971
13994
|
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13972
|
-
ctx.fillRect(lrtb.left,
|
|
13995
|
+
ctx.fillRect(lrtb.left, 1 + baseline, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
|
|
13973
13996
|
}
|
|
13974
13997
|
if (this.character.lineThrough) {
|
|
13975
13998
|
const top = 1 + baseline - this.ascent / 2,
|
|
13976
13999
|
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,
|
|
14000
|
+
ctx.fillRect(lrtb.left, 1 + baseline - this.ascent / 2, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
|
|
13978
14001
|
}
|
|
13979
14002
|
} else if ("underline" === this.character.textDecoration) {
|
|
13980
14003
|
const top = 1 + baseline,
|
|
13981
14004
|
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,
|
|
14005
|
+
ctx.fillRect(lrtb.left, 1 + baseline, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
|
|
13983
14006
|
} else if ("line-through" === this.character.textDecoration) {
|
|
13984
14007
|
const top = 1 + baseline - this.ascent / 2,
|
|
13985
14008
|
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13986
|
-
ctx.fillRect(lrtb.left,
|
|
14009
|
+
ctx.fillRect(lrtb.left, 1 + baseline - this.ascent / 2, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
|
|
13987
14010
|
}
|
|
13988
14011
|
"vertical" === direction && ctx.restore();
|
|
13989
14012
|
}
|
|
@@ -13997,7 +14020,7 @@ class Paragraph {
|
|
|
13997
14020
|
text = text.slice(0, index), text += this.ellipsisStr;
|
|
13998
14021
|
const {
|
|
13999
14022
|
width: measureWidth
|
|
14000
|
-
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
14023
|
+
} = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
|
|
14001
14024
|
return width + this.ellipsisWidth - measureWidth;
|
|
14002
14025
|
}
|
|
14003
14026
|
return width;
|
|
@@ -14006,7 +14029,7 @@ class Paragraph {
|
|
|
14006
14029
|
function seperateParagraph(paragraph, index) {
|
|
14007
14030
|
const text1 = paragraph.text.slice(0, index),
|
|
14008
14031
|
text2 = paragraph.text.slice(index);
|
|
14009
|
-
return [new Paragraph(text1, paragraph.newLine, paragraph.character), new Paragraph(text2, !0, paragraph.character)];
|
|
14032
|
+
return [new Paragraph(text1, paragraph.newLine, paragraph.character, paragraph.ascentDescentMode), new Paragraph(text2, !0, paragraph.character, paragraph.ascentDescentMode)];
|
|
14010
14033
|
}
|
|
14011
14034
|
|
|
14012
14035
|
const IMAGE_UPDATE_TAG_KEY = ["width", "height", "image", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
@@ -14195,7 +14218,7 @@ class Line {
|
|
|
14195
14218
|
paragraph.ellipsisStr = ellipsis;
|
|
14196
14219
|
const {
|
|
14197
14220
|
width: width
|
|
14198
|
-
} = measureTextCanvas(ellipsis, paragraph.character),
|
|
14221
|
+
} = measureTextCanvas(ellipsis, paragraph.character, paragraph.ascentDescentMode),
|
|
14199
14222
|
ellipsisWidth = width || 0;
|
|
14200
14223
|
if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
|
|
14201
14224
|
lastLine && (paragraph.ellipsis = "add");
|
|
@@ -14208,19 +14231,8 @@ class Line {
|
|
|
14208
14231
|
paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
|
|
14209
14232
|
}
|
|
14210
14233
|
}
|
|
14211
|
-
let fillStyle = "",
|
|
14212
|
-
globalAlpha = -1,
|
|
14213
|
-
currBgList = [];
|
|
14214
|
-
const bgList = [currBgList];
|
|
14215
14234
|
this.paragraphs.forEach((paragraph, index) => {
|
|
14216
|
-
|
|
14217
|
-
const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14218
|
-
data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
|
|
14219
|
-
}), bgList.forEach(bg => {
|
|
14220
|
-
if (0 === bg.length) return;
|
|
14221
|
-
const data = bg[0],
|
|
14222
|
-
end = bg[bg.length - 1];
|
|
14223
|
-
ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
|
|
14235
|
+
paragraph instanceof RichTextIcon || paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14224
14236
|
}), this.paragraphs.forEach((paragraph, index) => {
|
|
14225
14237
|
if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
|
|
14226
14238
|
x: x + paragraph._x,
|
|
@@ -14242,7 +14254,7 @@ class Line {
|
|
|
14242
14254
|
if (paragraph instanceof RichTextIcon) break;
|
|
14243
14255
|
const {
|
|
14244
14256
|
width: width
|
|
14245
|
-
} = measureTextCanvas(ellipsis, paragraph.character),
|
|
14257
|
+
} = measureTextCanvas(ellipsis, paragraph.character, paragraph.ascentDescentMode),
|
|
14246
14258
|
ellipsisWidth = width || 0;
|
|
14247
14259
|
if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
|
|
14248
14260
|
paragraph.ellipsis = "add", paragraph.ellipsisWidth = ellipsisWidth;
|
|
@@ -14383,13 +14395,7 @@ class RichText extends Graphic {
|
|
|
14383
14395
|
}
|
|
14384
14396
|
return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
|
|
14385
14397
|
}
|
|
14386
|
-
static splitEmoji(text) {
|
|
14387
|
-
return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
|
|
14388
|
-
}
|
|
14389
14398
|
static splitText(text) {
|
|
14390
|
-
try {
|
|
14391
|
-
return this.splitEmoji(text);
|
|
14392
|
-
} catch (e) {}
|
|
14393
14399
|
return Array.from(text);
|
|
14394
14400
|
}
|
|
14395
14401
|
static TransformTextConfig2SingleCharacter(textConfig) {
|
|
@@ -14515,7 +14521,8 @@ class RichText extends Graphic {
|
|
|
14515
14521
|
layoutDirection: layoutDirection,
|
|
14516
14522
|
singleLine: singleLine,
|
|
14517
14523
|
disableAutoWrapLine: disableAutoWrapLine,
|
|
14518
|
-
editable: editable
|
|
14524
|
+
editable: editable,
|
|
14525
|
+
ascentDescentMode: ascentDescentMode
|
|
14519
14526
|
} = this.attribute;
|
|
14520
14527
|
let {
|
|
14521
14528
|
textConfig: _tc = []
|
|
@@ -14538,8 +14545,8 @@ class RichText extends Graphic {
|
|
|
14538
14545
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
14539
14546
|
if (isNumber$1(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
14540
14547
|
const textParts = richTextConfig.text.split("\n");
|
|
14541
|
-
for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j], 0 !== j, richTextConfig));
|
|
14542
|
-
} else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig));
|
|
14548
|
+
for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j], 0 !== j, richTextConfig, ascentDescentMode));
|
|
14549
|
+
} else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig, ascentDescentMode));
|
|
14543
14550
|
}
|
|
14544
14551
|
const maxWidthFinite = "number" == typeof maxWidth && Number.isFinite(maxWidth) && maxWidth > 0,
|
|
14545
14552
|
maxHeightFinite = "number" == typeof maxHeight && Number.isFinite(maxHeight) && maxHeight > 0,
|
|
@@ -15403,17 +15410,17 @@ class BaseRender {
|
|
|
15403
15410
|
}
|
|
15404
15411
|
}
|
|
15405
15412
|
|
|
15406
|
-
var __decorate$
|
|
15413
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15407
15414
|
var d,
|
|
15408
15415
|
c = arguments.length,
|
|
15409
15416
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
15410
15417
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
15411
15418
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15412
15419
|
},
|
|
15413
|
-
__metadata$
|
|
15420
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
15414
15421
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15415
15422
|
},
|
|
15416
|
-
__param$
|
|
15423
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
15417
15424
|
return function (target, key) {
|
|
15418
15425
|
decorator(target, key, paramIndex);
|
|
15419
15426
|
};
|
|
@@ -15510,7 +15517,7 @@ let DefaultBaseInteractiveRenderContribution = class {
|
|
|
15510
15517
|
});
|
|
15511
15518
|
}
|
|
15512
15519
|
};
|
|
15513
|
-
DefaultBaseInteractiveRenderContribution = __decorate$
|
|
15520
|
+
DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
15514
15521
|
|
|
15515
15522
|
function formatRatio(ratio) {
|
|
15516
15523
|
return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
|
|
@@ -15858,7 +15865,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
15858
15865
|
return !edgeCb && path.closePath(), path;
|
|
15859
15866
|
}
|
|
15860
15867
|
|
|
15861
|
-
var __decorate$
|
|
15868
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15862
15869
|
var d,
|
|
15863
15870
|
c = arguments.length,
|
|
15864
15871
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15923,7 +15930,7 @@ let SplitRectBeforeRenderContribution = class {
|
|
|
15923
15930
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
15924
15931
|
}
|
|
15925
15932
|
};
|
|
15926
|
-
SplitRectBeforeRenderContribution = __decorate$
|
|
15933
|
+
SplitRectBeforeRenderContribution = __decorate$1D([injectable()], SplitRectBeforeRenderContribution);
|
|
15927
15934
|
let SplitRectAfterRenderContribution = class {
|
|
15928
15935
|
constructor() {
|
|
15929
15936
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -15960,7 +15967,7 @@ let SplitRectAfterRenderContribution = class {
|
|
|
15960
15967
|
}
|
|
15961
15968
|
}
|
|
15962
15969
|
};
|
|
15963
|
-
SplitRectAfterRenderContribution = __decorate$
|
|
15970
|
+
SplitRectAfterRenderContribution = __decorate$1D([injectable()], SplitRectAfterRenderContribution);
|
|
15964
15971
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
15965
15972
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15966
15973
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -15969,8 +15976,8 @@ class DefaultImageRenderContribution extends DefaultRectRenderContribution {
|
|
|
15969
15976
|
constructor() {
|
|
15970
15977
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15971
15978
|
}
|
|
15972
|
-
drawShape(
|
|
15973
|
-
return super.drawShape(
|
|
15979
|
+
drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15980
|
+
return super.drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15974
15981
|
}
|
|
15975
15982
|
}
|
|
15976
15983
|
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
@@ -16065,17 +16072,17 @@ class DefaultAreaTextureRenderContribution extends DefaultBaseTextureRenderContr
|
|
|
16065
16072
|
}
|
|
16066
16073
|
}
|
|
16067
16074
|
|
|
16068
|
-
var __decorate$
|
|
16075
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16069
16076
|
var d,
|
|
16070
16077
|
c = arguments.length,
|
|
16071
16078
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16072
16079
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16073
16080
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16074
16081
|
},
|
|
16075
|
-
__metadata$
|
|
16082
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
16076
16083
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16077
16084
|
},
|
|
16078
|
-
__param$
|
|
16085
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16079
16086
|
return function (target, key) {
|
|
16080
16087
|
decorator(target, key, paramIndex);
|
|
16081
16088
|
};
|
|
@@ -16239,19 +16246,19 @@ let DefaultCanvasArcRender = class extends BaseRender {
|
|
|
16239
16246
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
16240
16247
|
}
|
|
16241
16248
|
};
|
|
16242
|
-
DefaultCanvasArcRender = __decorate$
|
|
16249
|
+
DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
16243
16250
|
|
|
16244
|
-
var __decorate$
|
|
16251
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16245
16252
|
var d,
|
|
16246
16253
|
c = arguments.length,
|
|
16247
16254
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16248
16255
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16249
16256
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16250
16257
|
},
|
|
16251
|
-
__metadata$
|
|
16258
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
16252
16259
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16253
16260
|
},
|
|
16254
|
-
__param$
|
|
16261
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16255
16262
|
return function (target, key) {
|
|
16256
16263
|
decorator(target, key, paramIndex);
|
|
16257
16264
|
};
|
|
@@ -16292,7 +16299,7 @@ let DefaultCanvasCircleRender = class extends BaseRender {
|
|
|
16292
16299
|
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
16293
16300
|
}
|
|
16294
16301
|
};
|
|
16295
|
-
DefaultCanvasCircleRender = __decorate$
|
|
16302
|
+
DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
16296
16303
|
|
|
16297
16304
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
16298
16305
|
if (!curve.p1) return;
|
|
@@ -16416,7 +16423,7 @@ function drawIncrementalAreaSegments(path, lastSeg, segments, params) {
|
|
|
16416
16423
|
});
|
|
16417
16424
|
}
|
|
16418
16425
|
|
|
16419
|
-
var __decorate$
|
|
16426
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16420
16427
|
var d,
|
|
16421
16428
|
c = arguments.length,
|
|
16422
16429
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16432,7 +16439,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16432
16439
|
this._draw(line, lineAttribute, !1, drawContext, params);
|
|
16433
16440
|
}
|
|
16434
16441
|
drawSegmentItem(context, cache, fill, stroke, fillOpacity, strokeOpacity, attribute, defaultAttribute, clipRange, clipRangeByDimension, offsetX, offsetY, line, fillCb, strokeCb) {
|
|
16435
|
-
var _a
|
|
16442
|
+
var _a;
|
|
16436
16443
|
if (!cache) return;
|
|
16437
16444
|
context.beginPath();
|
|
16438
16445
|
const z = null !== (_a = this.z) && void 0 !== _a ? _a : 0;
|
|
@@ -16445,27 +16452,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16445
16452
|
x: originX = 0,
|
|
16446
16453
|
x: originY = 0
|
|
16447
16454
|
} = attribute;
|
|
16448
|
-
!1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), !1 !== stroke && (strokeCb ? strokeCb(context, attribute, defaultAttribute) : strokeOpacity && (context.setStrokeStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke()));
|
|
16449
|
-
let {
|
|
16450
|
-
connectedType: connectedType,
|
|
16451
|
-
connectedX: connectedX,
|
|
16452
|
-
connectedY: connectedY,
|
|
16453
|
-
connectedStyle: connectedStyle
|
|
16454
|
-
} = attribute;
|
|
16455
|
-
if (isArray$1(defaultAttribute) ? (connectedType = null !== (_b = null != connectedType ? connectedType : defaultAttribute[0].connectedType) && void 0 !== _b ? _b : defaultAttribute[1].connectedType, connectedX = null !== (_c = null != connectedX ? connectedX : defaultAttribute[0].connectedX) && void 0 !== _c ? _c : defaultAttribute[1].connectedX, connectedY = null !== (_d = null != connectedY ? connectedY : defaultAttribute[0].connectedY) && void 0 !== _d ? _d : defaultAttribute[1].connectedY, connectedStyle = null !== (_e = null != connectedStyle ? connectedStyle : defaultAttribute[0].connectedStyle) && void 0 !== _e ? _e : defaultAttribute[1].connectedStyle) : (connectedType = null != connectedType ? connectedType : defaultAttribute.connectedType, connectedX = null != connectedX ? connectedX : defaultAttribute.connectedX, connectedY = null != connectedY ? connectedY : defaultAttribute.connectedY, connectedStyle = null != connectedStyle ? connectedStyle : defaultAttribute.connectedStyle), "connect" !== connectedType && "zero" !== connectedType && (connectedType = "none"), "none" !== connectedType) {
|
|
16456
|
-
context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, cache, clipRange, clipRangeByDimension, {
|
|
16457
|
-
offsetX: offsetX,
|
|
16458
|
-
offsetY: offsetY,
|
|
16459
|
-
offsetZ: z,
|
|
16460
|
-
drawConnect: !0,
|
|
16461
|
-
mode: connectedType,
|
|
16462
|
-
zeroX: connectedX,
|
|
16463
|
-
zeroY: connectedY
|
|
16464
|
-
});
|
|
16465
|
-
const da = [];
|
|
16466
|
-
isArray$1(defaultAttribute) ? defaultAttribute.forEach(i => da.push(i)) : da.push(defaultAttribute), da.push(attribute), !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(line, connectedStyle, originX - offsetX, originY - offsetY, da), context.fill())), !1 !== stroke && (strokeCb ? strokeCb(context, attribute, defaultAttribute) : strokeOpacity && (context.setStrokeStyle(line, connectedStyle, originX - offsetX, originY - offsetY, da), context.stroke()));
|
|
16467
|
-
}
|
|
16468
|
-
return !1;
|
|
16455
|
+
return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), !1 !== stroke && (strokeCb ? strokeCb(context, attribute, defaultAttribute) : strokeOpacity && (context.setStrokeStyle(line, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke())), !1;
|
|
16469
16456
|
}
|
|
16470
16457
|
drawLinearLineHighPerformance(line, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, lineAttribute, drawContext, params, fillCb, strokeCb) {
|
|
16471
16458
|
var _a;
|
|
@@ -16497,7 +16484,8 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16497
16484
|
segments: segments,
|
|
16498
16485
|
points: points,
|
|
16499
16486
|
closePath: closePath,
|
|
16500
|
-
curveTension = lineAttribute.curveTension
|
|
16487
|
+
curveTension = lineAttribute.curveTension,
|
|
16488
|
+
connectedType = lineAttribute.connectedType
|
|
16501
16489
|
} = line.attribute;
|
|
16502
16490
|
if (!this.valid(line, lineAttribute, fillCb, strokeCb)) return;
|
|
16503
16491
|
let {
|
|
@@ -16509,6 +16497,9 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16509
16497
|
clipRangeByDimension = lineAttribute.clipRangeByDimension
|
|
16510
16498
|
} = line.attribute;
|
|
16511
16499
|
if (1 === clipRange && !segments && !points.some(p => !1 === p.defined) && "linear" === curveType) return this.drawLinearLineHighPerformance(line, context, !!fill, !!stroke, fillOpacity, strokeOpacity, x, y, lineAttribute, drawContext, params, fillCb, strokeCb);
|
|
16500
|
+
function parsePoint(points, connectedType) {
|
|
16501
|
+
return "none" === connectedType ? points : points.filter(p => !1 !== p.defined);
|
|
16502
|
+
}
|
|
16512
16503
|
if (line.shouldUpdateShape()) {
|
|
16513
16504
|
const {
|
|
16514
16505
|
points: points,
|
|
@@ -16530,7 +16521,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16530
16521
|
y: lastSeg.endY,
|
|
16531
16522
|
defined: lastSeg.curves[lastSeg.curves.length - 1].defined
|
|
16532
16523
|
} : index > 1 && (startPoint.x = lastSeg.endX, startPoint.y = lastSeg.endY, startPoint.defined = lastSeg.curves[lastSeg.curves.length - 1].defined);
|
|
16533
|
-
const data = calcLineCache(seg.points, curveType, {
|
|
16524
|
+
const data = calcLineCache(parsePoint(seg.points, connectedType), curveType, {
|
|
16534
16525
|
startPoint: startPoint,
|
|
16535
16526
|
curveTension: curveTension
|
|
16536
16527
|
});
|
|
@@ -16549,7 +16540,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16549
16540
|
}
|
|
16550
16541
|
} else {
|
|
16551
16542
|
if (!points || !points.length) return line.cache = null, void line.clearUpdateShapeTag();
|
|
16552
|
-
line.cache = calcLineCache(_points, curveType, {
|
|
16543
|
+
line.cache = calcLineCache(parsePoint(_points, connectedType), curveType, {
|
|
16553
16544
|
curveTension: curveTension
|
|
16554
16545
|
});
|
|
16555
16546
|
}
|
|
@@ -16577,15 +16568,10 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16577
16568
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
16578
16569
|
}
|
|
16579
16570
|
};
|
|
16580
|
-
DefaultCanvasLineRender = __decorate$
|
|
16571
|
+
DefaultCanvasLineRender = __decorate$1A([injectable()], DefaultCanvasLineRender);
|
|
16581
16572
|
|
|
16582
16573
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
16583
16574
|
var _a;
|
|
16584
|
-
const {
|
|
16585
|
-
drawConnect = !1,
|
|
16586
|
-
mode = "none"
|
|
16587
|
-
} = params || {};
|
|
16588
|
-
if (drawConnect && "none" === mode) return;
|
|
16589
16575
|
const {
|
|
16590
16576
|
top: top,
|
|
16591
16577
|
bottom: bottom
|
|
@@ -16595,34 +16581,11 @@ function drawAreaSegments(path, segPath, percent, params) {
|
|
|
16595
16581
|
const topList = [],
|
|
16596
16582
|
bottomList = [];
|
|
16597
16583
|
let lastDefined = !0;
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
defined0 = !0;
|
|
16602
|
-
const n = top.curves.length;
|
|
16603
|
-
top.curves.forEach((curve, i) => {
|
|
16604
|
-
const bototmCurve = bottom.curves[n - i - 1];
|
|
16605
|
-
let currentTopCurve = curve,
|
|
16606
|
-
currentBottomCurve = bototmCurve;
|
|
16607
|
-
if (curve.originP1 === curve.originP2) return lastCurve = curve, void (lastBottomCurve = bototmCurve);
|
|
16608
|
-
if (lastCurve && lastCurve.originP1 === lastCurve.originP2 && (currentTopCurve = lastCurve, currentBottomCurve = lastBottomCurve), curve.defined) defined0 || (topList.push(currentTopCurve), bottomList.push(currentBottomCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0, defined0 = !defined0);else {
|
|
16609
|
-
const {
|
|
16610
|
-
originP1: originP1,
|
|
16611
|
-
originP2: originP2
|
|
16612
|
-
} = curve;
|
|
16613
|
-
let validTopCurve, validBottomCurve;
|
|
16614
|
-
originP1 && !1 !== originP1.defined ? (validTopCurve = currentTopCurve, validBottomCurve = currentBottomCurve) : originP1 && !1 !== originP2.defined && (validTopCurve = curve, validBottomCurve = bototmCurve), defined0 ? (defined0 = !defined0, topList.push(validTopCurve || curve), bottomList.push(validBottomCurve || bototmCurve)) : validTopCurve && (defined0 = !defined0, topList.push(validTopCurve || curve), bottomList.push(validBottomCurve || bototmCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0);
|
|
16615
|
-
}
|
|
16616
|
-
lastCurve = curve;
|
|
16617
|
-
}), drawAreaConnectBlock(path, topList, bottomList, params);
|
|
16618
|
-
} else {
|
|
16619
|
-
for (let i = 0, n = top.curves.length; i < n; i++) {
|
|
16620
|
-
const topCurve = top.curves[i];
|
|
16621
|
-
lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1])), lastDefined = !lastDefined) : lastDefined && (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1]));
|
|
16622
|
-
}
|
|
16623
|
-
drawAreaBlock(path, topList, bottomList, params);
|
|
16584
|
+
for (let i = 0, n = top.curves.length; i < n; i++) {
|
|
16585
|
+
const topCurve = top.curves[i];
|
|
16586
|
+
lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1])), lastDefined = !lastDefined) : lastDefined && (topList.push(topCurve), bottomList.push(bottom.curves[n - i - 1]));
|
|
16624
16587
|
}
|
|
16625
|
-
return;
|
|
16588
|
+
return void drawAreaBlock(path, topList, bottomList, params);
|
|
16626
16589
|
}
|
|
16627
16590
|
if (percent <= 0) return;
|
|
16628
16591
|
let {
|
|
@@ -16640,51 +16603,17 @@ function drawAreaSegments(path, segPath, percent, params) {
|
|
|
16640
16603
|
lastDefined = !0;
|
|
16641
16604
|
const topList = [],
|
|
16642
16605
|
bottomList = [];
|
|
16643
|
-
let lastTopCurve,
|
|
16644
|
-
lastBottomCurve,
|
|
16645
|
-
defined0 = !0;
|
|
16646
16606
|
for (let i = 0, n = top.curves.length; i < n; i++) {
|
|
16647
16607
|
const topCurve = top.curves[i],
|
|
16648
16608
|
curCurveLength = topCurve.getLength(direction),
|
|
16649
16609
|
percent = (totalDrawLength - drawedLengthUntilLast) / curCurveLength;
|
|
16650
16610
|
if (percent < 0) break;
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
if (topCurve.originP1 === topCurve.originP2) {
|
|
16656
|
-
lastTopCurve = topCurve, lastBottomCurve = bototmCurve;
|
|
16657
|
-
continue;
|
|
16658
|
-
}
|
|
16659
|
-
if (lastTopCurve && lastTopCurve.originP1 === lastTopCurve.originP2 && (currentTopCurve = lastTopCurve, currentBottomCurve = lastBottomCurve), topCurve.defined) defined0 || (topList.push(currentTopCurve), bottomList.push(currentBottomCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0, defined0 = !defined0);else {
|
|
16660
|
-
const {
|
|
16661
|
-
originP1: originP1,
|
|
16662
|
-
originP2: originP2
|
|
16663
|
-
} = topCurve;
|
|
16664
|
-
let validTopCurve, validBottomCurve;
|
|
16665
|
-
originP1 && !1 !== originP1.defined ? (validTopCurve = currentTopCurve, validBottomCurve = currentBottomCurve) : originP1 && !1 !== originP2.defined && (validTopCurve = topCurve, validBottomCurve = bototmCurve), defined0 ? (defined0 = !defined0, topList.push(validTopCurve || topCurve), bottomList.push(validBottomCurve || bototmCurve)) : validTopCurve && (defined0 = !defined0, topList.push(validTopCurve || topCurve), bottomList.push(validBottomCurve || bototmCurve), drawAreaConnectBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0);
|
|
16666
|
-
}
|
|
16667
|
-
lastTopCurve = topCurve;
|
|
16668
|
-
} else {
|
|
16669
|
-
let tc = null,
|
|
16670
|
-
bc = null;
|
|
16671
|
-
lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (tc = topCurve, bc = bottom.curves[n - i - 1]), lastDefined = !lastDefined) : lastDefined && (tc = topCurve, bc = bottom.curves[n - i - 1]), tc && bc && (percent < 1 && (tc = tc.p2 && tc.p3 ? divideCubic(tc, percent)[0] : divideLinear(tc, percent)[0], bc = bc.p2 && bc.p3 ? divideCubic(bc, 1 - percent)[1] : divideLinear(bc, 1 - percent)[1]), tc.defined = lastDefined, bc.defined = lastDefined, topList.push(tc), bottomList.push(bc)), tc = null, bc = null;
|
|
16672
|
-
}
|
|
16611
|
+
drawedLengthUntilLast += curCurveLength;
|
|
16612
|
+
let tc = null,
|
|
16613
|
+
bc = null;
|
|
16614
|
+
lastDefined !== topCurve.defined ? (lastDefined ? (drawAreaBlock(path, topList, bottomList, params), topList.length = 0, bottomList.length = 0) : (tc = topCurve, bc = bottom.curves[n - i - 1]), lastDefined = !lastDefined) : lastDefined && (tc = topCurve, bc = bottom.curves[n - i - 1]), tc && bc && (percent < 1 && (tc = tc.p2 && tc.p3 ? divideCubic(tc, percent)[0] : divideLinear(tc, percent)[0], bc = bc.p2 && bc.p3 ? divideCubic(bc, 1 - percent)[1] : divideLinear(bc, 1 - percent)[1]), tc.defined = lastDefined, bc.defined = lastDefined, topList.push(tc), bottomList.push(bc)), tc = null, bc = null;
|
|
16673
16615
|
}
|
|
16674
|
-
|
|
16675
|
-
}
|
|
16676
|
-
function drawAreaConnectBlock(path, topList, bottomList, params) {
|
|
16677
|
-
if (topList.length < 2) return;
|
|
16678
|
-
const {
|
|
16679
|
-
offsetX = 0,
|
|
16680
|
-
offsetY = 0,
|
|
16681
|
-
offsetZ = 0,
|
|
16682
|
-
mode: mode
|
|
16683
|
-
} = params || {};
|
|
16684
|
-
let curve = topList[0];
|
|
16685
|
-
path.moveTo(curve.p0.x + offsetX, curve.p0.y + offsetY, offsetZ), curve = topList[topList.length - 1];
|
|
16686
|
-
let end = curve.p3 || curve.p1;
|
|
16687
|
-
path.lineTo(end.x + offsetX, end.y + offsetY, offsetZ), curve = bottomList[bottomList.length - 1], path.lineTo(curve.p0.x + offsetX, curve.p0.y + offsetY, offsetZ), curve = bottomList[0], end = curve.p3 || curve.p1, path.lineTo(end.x + offsetX, end.y + offsetY, offsetZ), path.closePath();
|
|
16616
|
+
drawAreaBlock(path, topList, bottomList, params);
|
|
16688
16617
|
}
|
|
16689
16618
|
function drawAreaBlock(path, topList, bottomList, params) {
|
|
16690
16619
|
const {
|
|
@@ -16706,17 +16635,17 @@ function drawAreaBlock(path, topList, bottomList, params) {
|
|
|
16706
16635
|
const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
16707
16636
|
const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16708
16637
|
|
|
16709
|
-
var __decorate$
|
|
16638
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16710
16639
|
var d,
|
|
16711
16640
|
c = arguments.length,
|
|
16712
16641
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16713
16642
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16714
16643
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16715
16644
|
},
|
|
16716
|
-
__metadata$
|
|
16645
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
16717
16646
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16718
16647
|
},
|
|
16719
|
-
__param$
|
|
16648
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16720
16649
|
return function (target, key) {
|
|
16721
16650
|
decorator(target, key, paramIndex);
|
|
16722
16651
|
};
|
|
@@ -16785,7 +16714,8 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16785
16714
|
fillOpacity = areaAttribute.fillOpacity,
|
|
16786
16715
|
z = areaAttribute.z,
|
|
16787
16716
|
strokeOpacity = areaAttribute.strokeOpacity,
|
|
16788
|
-
curveTension = areaAttribute.curveTension
|
|
16717
|
+
curveTension = areaAttribute.curveTension,
|
|
16718
|
+
connectedType = areaAttribute.connectedType
|
|
16789
16719
|
} = area.attribute,
|
|
16790
16720
|
data = this.valid(area, areaAttribute, fillCb, strokeCb);
|
|
16791
16721
|
if (!data) return;
|
|
@@ -16802,6 +16732,9 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16802
16732
|
let {
|
|
16803
16733
|
curveType = areaAttribute.curveType
|
|
16804
16734
|
} = area.attribute;
|
|
16735
|
+
function parsePoint(points, connectedType) {
|
|
16736
|
+
return "connect" !== connectedType ? points : points.filter(p => !1 !== p.defined);
|
|
16737
|
+
}
|
|
16805
16738
|
if (closePath && "linear" === curveType && (curveType = "linearClosed"), 1 === clipRange && !segments && !points.some(p => !1 === p.defined) && "linear" === curveType) return this.drawLinearAreaHighPerformance(area, context, !!fill, doStroke, fillOpacity, strokeOpacity, x, y, areaAttribute, drawContext, params, fillCb, strokeCb);
|
|
16806
16739
|
if (area.shouldUpdateShape()) {
|
|
16807
16740
|
if (segments && segments.length) {
|
|
@@ -16815,7 +16748,7 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16815
16748
|
x: lastTopSeg.endX,
|
|
16816
16749
|
y: lastTopSeg.endY
|
|
16817
16750
|
} : index > 1 && (startPoint.x = lastTopSeg.endX, startPoint.y = lastTopSeg.endY);
|
|
16818
|
-
const data = calcLineCache(seg.points, curveType, {
|
|
16751
|
+
const data = calcLineCache(parsePoint(seg.points, connectedType), curveType, {
|
|
16819
16752
|
startPoint: startPoint,
|
|
16820
16753
|
curveTension: curveTension
|
|
16821
16754
|
});
|
|
@@ -16838,7 +16771,7 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16838
16771
|
y: null !== (_d = endPoint.y1) && void 0 !== _d ? _d : endPoint.y
|
|
16839
16772
|
});
|
|
16840
16773
|
}
|
|
16841
|
-
bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType, {
|
|
16774
|
+
bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(parsePoint(bottomPoints, connectedType), "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType, {
|
|
16842
16775
|
curveTension: curveTension
|
|
16843
16776
|
}), bottomCaches.unshift(lastBottomSeg));
|
|
16844
16777
|
}
|
|
@@ -16849,11 +16782,11 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16849
16782
|
} else {
|
|
16850
16783
|
if (!points || !points.length) return area.cacheArea = null, void area.clearUpdateShapeTag();
|
|
16851
16784
|
{
|
|
16852
|
-
const topPoints = points,
|
|
16785
|
+
const topPoints = parsePoint(points, connectedType),
|
|
16853
16786
|
bottomPoints = [];
|
|
16854
|
-
for (let i =
|
|
16855
|
-
x: null !== (_e =
|
|
16856
|
-
y: null !== (_f =
|
|
16787
|
+
for (let i = topPoints.length - 1; i >= 0; i--) bottomPoints.push({
|
|
16788
|
+
x: null !== (_e = topPoints[i].x1) && void 0 !== _e ? _e : topPoints[i].x,
|
|
16789
|
+
y: null !== (_f = topPoints[i].y1) && void 0 !== _f ? _f : topPoints[i].y
|
|
16857
16790
|
});
|
|
16858
16791
|
const topCache = calcLineCache(topPoints, curveType, {
|
|
16859
16792
|
curveTension: curveTension
|
|
@@ -16895,20 +16828,10 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16895
16828
|
this._draw(area, areaAttribute, !1, drawContext, params);
|
|
16896
16829
|
}
|
|
16897
16830
|
drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb) {
|
|
16898
|
-
|
|
16899
|
-
return ret = ret || this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, !1, fillCb, strokeCb), ret = ret || this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, !0, fillCb, strokeCb), ret;
|
|
16831
|
+
return this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb);
|
|
16900
16832
|
}
|
|
16901
|
-
_drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext,
|
|
16902
|
-
var _a, _b, _c, _d;
|
|
16833
|
+
_drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb) {
|
|
16903
16834
|
if (!(cache && cache.top && cache.bottom && cache.top.curves && cache.top.curves.length && cache.bottom.curves && cache.bottom.curves.length)) return;
|
|
16904
|
-
let {
|
|
16905
|
-
connectedType: connectedType,
|
|
16906
|
-
connectedX: connectedX,
|
|
16907
|
-
connectedY: connectedY,
|
|
16908
|
-
connectedStyle: connectedStyle
|
|
16909
|
-
} = attribute;
|
|
16910
|
-
const da = [];
|
|
16911
|
-
if (connect && (isArray$1(defaultAttribute) ? (connectedType = null !== (_a = null != connectedType ? connectedType : defaultAttribute[0].connectedType) && void 0 !== _a ? _a : defaultAttribute[1].connectedType, connectedX = null !== (_b = null != connectedX ? connectedX : defaultAttribute[0].connectedX) && void 0 !== _b ? _b : defaultAttribute[1].connectedX, connectedY = null !== (_c = null != connectedY ? connectedY : defaultAttribute[0].connectedY) && void 0 !== _c ? _c : defaultAttribute[1].connectedY, connectedStyle = null !== (_d = null != connectedStyle ? connectedStyle : defaultAttribute[0].connectedStyle) && void 0 !== _d ? _d : defaultAttribute[1].connectedStyle) : (connectedType = null != connectedType ? connectedType : defaultAttribute.connectedType, connectedX = null != connectedX ? connectedX : defaultAttribute.connectedX, connectedY = null != connectedY ? connectedY : defaultAttribute.connectedY, connectedStyle = null != connectedStyle ? connectedStyle : defaultAttribute.connectedStyle), "connect" !== connectedType && "zero" !== connectedType && (connectedType = "none"), isArray$1(defaultAttribute) ? defaultAttribute.forEach(i => da.push(i)) : da.push(defaultAttribute), da.push(attribute)), connect && "none" === connectedType) return !1;
|
|
16912
16835
|
context.beginPath();
|
|
16913
16836
|
const {
|
|
16914
16837
|
points: points,
|
|
@@ -16927,11 +16850,7 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16927
16850
|
offsetX: offsetX,
|
|
16928
16851
|
offsetY: offsetY,
|
|
16929
16852
|
offsetZ: offsetZ,
|
|
16930
|
-
direction: direction
|
|
16931
|
-
drawConnect: connect,
|
|
16932
|
-
mode: connectedType,
|
|
16933
|
-
zeroX: connectedX,
|
|
16934
|
-
zeroY: connectedY
|
|
16853
|
+
direction: direction
|
|
16935
16854
|
}), this.beforeRenderStep(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
|
|
16936
16855
|
attribute: attribute
|
|
16937
16856
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute);
|
|
@@ -16939,7 +16858,7 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16939
16858
|
x: originX = 0,
|
|
16940
16859
|
x: originY = 0
|
|
16941
16860
|
} = attribute;
|
|
16942
|
-
return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area,
|
|
16861
|
+
return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.fill())), this.afterRenderStep(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
|
|
16943
16862
|
attribute: attribute
|
|
16944
16863
|
}), (() => {
|
|
16945
16864
|
if (!1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
|
|
@@ -16949,32 +16868,28 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16949
16868
|
isArray$1(stroke) && (stroke[0] || stroke[2]) && !1 === stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, direction === Direction$1.ROW ? "x" : "y", {
|
|
16950
16869
|
offsetX: offsetX,
|
|
16951
16870
|
offsetY: offsetY,
|
|
16952
|
-
offsetZ: offsetZ
|
|
16953
|
-
|
|
16954
|
-
mode: connectedType,
|
|
16955
|
-
zeroX: connectedX,
|
|
16956
|
-
zeroY: connectedY
|
|
16957
|
-
})), context.setStrokeStyle(area, connect ? connectedStyle : attribute, originX - offsetX, originY - offsetY, connect ? da : defaultAttribute), context.stroke();
|
|
16871
|
+
offsetZ: offsetZ
|
|
16872
|
+
})), context.setStrokeStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke();
|
|
16958
16873
|
}
|
|
16959
16874
|
})(), !1;
|
|
16960
16875
|
}
|
|
16961
16876
|
};
|
|
16962
|
-
DefaultCanvasAreaRender = __decorate$
|
|
16877
|
+
DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
16963
16878
|
|
|
16964
16879
|
const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
16965
16880
|
const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16966
16881
|
|
|
16967
|
-
var __decorate$
|
|
16882
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16968
16883
|
var d,
|
|
16969
16884
|
c = arguments.length,
|
|
16970
16885
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16971
16886
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16972
16887
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16973
16888
|
},
|
|
16974
|
-
__metadata$
|
|
16889
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
16975
16890
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16976
16891
|
},
|
|
16977
|
-
__param$
|
|
16892
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16978
16893
|
return function (target, key) {
|
|
16979
16894
|
decorator(target, key, paramIndex);
|
|
16980
16895
|
};
|
|
@@ -17018,19 +16933,19 @@ let DefaultCanvasPathRender = class extends BaseRender {
|
|
|
17018
16933
|
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17019
16934
|
}
|
|
17020
16935
|
};
|
|
17021
|
-
DefaultCanvasPathRender = __decorate$
|
|
16936
|
+
DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
17022
16937
|
|
|
17023
|
-
var __decorate$
|
|
16938
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17024
16939
|
var d,
|
|
17025
16940
|
c = arguments.length,
|
|
17026
16941
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17027
16942
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17028
16943
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17029
16944
|
},
|
|
17030
|
-
__metadata$
|
|
16945
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
17031
16946
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17032
16947
|
},
|
|
17033
|
-
__param$
|
|
16948
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17034
16949
|
return function (target, key) {
|
|
17035
16950
|
decorator(target, key, paramIndex);
|
|
17036
16951
|
};
|
|
@@ -17090,19 +17005,19 @@ let DefaultCanvasRectRender = class extends BaseRender {
|
|
|
17090
17005
|
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17091
17006
|
}
|
|
17092
17007
|
};
|
|
17093
|
-
DefaultCanvasRectRender = __decorate$
|
|
17008
|
+
DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
17094
17009
|
|
|
17095
|
-
var __decorate$
|
|
17010
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17096
17011
|
var d,
|
|
17097
17012
|
c = arguments.length,
|
|
17098
17013
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17099
17014
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17100
17015
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17101
17016
|
},
|
|
17102
|
-
__metadata$
|
|
17017
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
17103
17018
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17104
17019
|
},
|
|
17105
|
-
__param$
|
|
17020
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17106
17021
|
return function (target, key) {
|
|
17107
17022
|
decorator(target, key, paramIndex);
|
|
17108
17023
|
};
|
|
@@ -17173,7 +17088,7 @@ let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
|
17173
17088
|
this._draw(symbol, symbolAttribute, !1, drawContext, params);
|
|
17174
17089
|
}
|
|
17175
17090
|
};
|
|
17176
|
-
DefaultCanvasSymbolRender = __decorate$
|
|
17091
|
+
DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
17177
17092
|
|
|
17178
17093
|
class DefaultBoundsAllocate {
|
|
17179
17094
|
constructor() {
|
|
@@ -17262,17 +17177,17 @@ class DefaultTextBackgroundRenderContribution extends DefaultBaseBackgroundRende
|
|
|
17262
17177
|
}
|
|
17263
17178
|
const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
17264
17179
|
|
|
17265
|
-
var __decorate$
|
|
17180
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17266
17181
|
var d,
|
|
17267
17182
|
c = arguments.length,
|
|
17268
17183
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17269
17184
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17270
17185
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17271
17186
|
},
|
|
17272
|
-
__metadata$
|
|
17187
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
17273
17188
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17274
17189
|
},
|
|
17275
|
-
__param$
|
|
17190
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17276
17191
|
return function (target, key) {
|
|
17277
17192
|
decorator(target, key, paramIndex);
|
|
17278
17193
|
};
|
|
@@ -17411,9 +17326,9 @@ let DefaultCanvasTextRender = class extends BaseRender {
|
|
|
17411
17326
|
}
|
|
17412
17327
|
}
|
|
17413
17328
|
};
|
|
17414
|
-
DefaultCanvasTextRender = __decorate$
|
|
17329
|
+
DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
17415
17330
|
|
|
17416
|
-
var __decorate$
|
|
17331
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17417
17332
|
var d,
|
|
17418
17333
|
c = arguments.length,
|
|
17419
17334
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17421,7 +17336,7 @@ var __decorate$1s = undefined && undefined.__decorate || function (decorators, t
|
|
|
17421
17336
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17422
17337
|
};
|
|
17423
17338
|
let AbstractGraphicRender = class {};
|
|
17424
|
-
AbstractGraphicRender = __decorate$
|
|
17339
|
+
AbstractGraphicRender = __decorate$1u([injectable()], AbstractGraphicRender);
|
|
17425
17340
|
|
|
17426
17341
|
function drawPolygon(path, points, x, y) {
|
|
17427
17342
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -17477,17 +17392,17 @@ function getProportionPoint(point, segment, length, dx, dy) {
|
|
|
17477
17392
|
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
17478
17393
|
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
17479
17394
|
|
|
17480
|
-
var __decorate$
|
|
17395
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17481
17396
|
var d,
|
|
17482
17397
|
c = arguments.length,
|
|
17483
17398
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17484
17399
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17485
17400
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17486
17401
|
},
|
|
17487
|
-
__metadata$
|
|
17402
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
17488
17403
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17489
17404
|
},
|
|
17490
|
-
__param$
|
|
17405
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17491
17406
|
return function (target, key) {
|
|
17492
17407
|
decorator(target, key, paramIndex);
|
|
17493
17408
|
};
|
|
@@ -17528,19 +17443,19 @@ let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
|
17528
17443
|
this._draw(polygon, polygonAttribute, !1, drawContext, params);
|
|
17529
17444
|
}
|
|
17530
17445
|
};
|
|
17531
|
-
DefaultCanvasPolygonRender = __decorate$
|
|
17446
|
+
DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
17532
17447
|
|
|
17533
|
-
var __decorate$
|
|
17448
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17534
17449
|
var d,
|
|
17535
17450
|
c = arguments.length,
|
|
17536
17451
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17537
17452
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17538
17453
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17539
17454
|
},
|
|
17540
|
-
__metadata$
|
|
17455
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
17541
17456
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17542
17457
|
},
|
|
17543
|
-
__param$
|
|
17458
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17544
17459
|
return function (target, key) {
|
|
17545
17460
|
decorator(target, key, paramIndex);
|
|
17546
17461
|
};
|
|
@@ -17635,19 +17550,19 @@ let DefaultCanvasGroupRender = class {
|
|
|
17635
17550
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
17636
17551
|
}
|
|
17637
17552
|
};
|
|
17638
|
-
DefaultCanvasGroupRender = __decorate$
|
|
17553
|
+
DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
17639
17554
|
|
|
17640
|
-
var __decorate$
|
|
17555
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17641
17556
|
var d,
|
|
17642
17557
|
c = arguments.length,
|
|
17643
17558
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17644
17559
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17645
17560
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17646
17561
|
},
|
|
17647
|
-
__metadata$
|
|
17562
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
17648
17563
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17649
17564
|
},
|
|
17650
|
-
__param$
|
|
17565
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17651
17566
|
return function (target, key) {
|
|
17652
17567
|
decorator(target, key, paramIndex);
|
|
17653
17568
|
};
|
|
@@ -17715,7 +17630,7 @@ let DefaultCanvasImageRender = class extends BaseRender {
|
|
|
17715
17630
|
this._draw(image, imageAttribute, !1, drawContext);
|
|
17716
17631
|
}
|
|
17717
17632
|
};
|
|
17718
|
-
DefaultCanvasImageRender = __decorate$
|
|
17633
|
+
DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
17719
17634
|
|
|
17720
17635
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
17721
17636
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -17783,14 +17698,14 @@ const draw3dItem = (context, graphic, callback, output) => {
|
|
|
17783
17698
|
return result;
|
|
17784
17699
|
};
|
|
17785
17700
|
|
|
17786
|
-
var __decorate$
|
|
17701
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17787
17702
|
var d,
|
|
17788
17703
|
c = arguments.length,
|
|
17789
17704
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17790
17705
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17791
17706
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17792
17707
|
},
|
|
17793
|
-
__metadata$
|
|
17708
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
17794
17709
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17795
17710
|
};
|
|
17796
17711
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
@@ -17850,7 +17765,7 @@ let CommonDrawItemInterceptorContribution = class {
|
|
|
17850
17765
|
return !1;
|
|
17851
17766
|
}
|
|
17852
17767
|
};
|
|
17853
|
-
CommonDrawItemInterceptorContribution = __decorate$
|
|
17768
|
+
CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
|
|
17854
17769
|
class InteractiveDrawItemInterceptorContribution {
|
|
17855
17770
|
constructor() {
|
|
17856
17771
|
this.order = 1;
|
|
@@ -17941,17 +17856,17 @@ class Canvas3DDrawItemInterceptor {
|
|
|
17941
17856
|
}
|
|
17942
17857
|
}
|
|
17943
17858
|
|
|
17944
|
-
var __decorate$
|
|
17859
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17945
17860
|
var d,
|
|
17946
17861
|
c = arguments.length,
|
|
17947
17862
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17948
17863
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17949
17864
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17950
17865
|
},
|
|
17951
|
-
__metadata$
|
|
17866
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
17952
17867
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17953
17868
|
},
|
|
17954
|
-
__param$
|
|
17869
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17955
17870
|
return function (target, key) {
|
|
17956
17871
|
decorator(target, key, paramIndex);
|
|
17957
17872
|
};
|
|
@@ -17989,7 +17904,7 @@ let DefaultRenderService = class {
|
|
|
17989
17904
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
|
|
17990
17905
|
}
|
|
17991
17906
|
};
|
|
17992
|
-
DefaultRenderService = __decorate$
|
|
17907
|
+
DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], DefaultRenderService);
|
|
17993
17908
|
|
|
17994
17909
|
var renderModule$1 = new ContainerModule(bind => {
|
|
17995
17910
|
bind(RenderService).to(DefaultRenderService);
|
|
@@ -18002,7 +17917,7 @@ const GlobalPickerService = Symbol.for("GlobalPickerService");
|
|
|
18002
17917
|
const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
18003
17918
|
const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
|
|
18004
17919
|
|
|
18005
|
-
var __decorate$
|
|
17920
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18006
17921
|
var d,
|
|
18007
17922
|
c = arguments.length,
|
|
18008
17923
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18024,7 +17939,7 @@ let ShadowPickServiceInterceptorContribution = class {
|
|
|
18024
17939
|
return result;
|
|
18025
17940
|
}
|
|
18026
17941
|
};
|
|
18027
|
-
ShadowPickServiceInterceptorContribution = __decorate$
|
|
17942
|
+
ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], ShadowPickServiceInterceptorContribution);
|
|
18028
17943
|
let ShadowRootPickItemInterceptorContribution = class {
|
|
18029
17944
|
constructor() {
|
|
18030
17945
|
this.order = 1;
|
|
@@ -18055,7 +17970,7 @@ let ShadowRootPickItemInterceptorContribution = class {
|
|
|
18055
17970
|
return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
|
|
18056
17971
|
}
|
|
18057
17972
|
};
|
|
18058
|
-
ShadowRootPickItemInterceptorContribution = __decorate$
|
|
17973
|
+
ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], ShadowRootPickItemInterceptorContribution);
|
|
18059
17974
|
let InteractivePickItemInterceptorContribution = class {
|
|
18060
17975
|
constructor() {
|
|
18061
17976
|
this.order = 1;
|
|
@@ -18074,7 +17989,7 @@ let InteractivePickItemInterceptorContribution = class {
|
|
|
18074
17989
|
return null;
|
|
18075
17990
|
}
|
|
18076
17991
|
};
|
|
18077
|
-
InteractivePickItemInterceptorContribution = __decorate$
|
|
17992
|
+
InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], InteractivePickItemInterceptorContribution);
|
|
18078
17993
|
let Canvas3DPickItemInterceptor = class {
|
|
18079
17994
|
constructor() {
|
|
18080
17995
|
this.order = 1;
|
|
@@ -18094,7 +18009,7 @@ let Canvas3DPickItemInterceptor = class {
|
|
|
18094
18009
|
context.setTransformForCurrent();
|
|
18095
18010
|
}
|
|
18096
18011
|
};
|
|
18097
|
-
Canvas3DPickItemInterceptor = __decorate$
|
|
18012
|
+
Canvas3DPickItemInterceptor = __decorate$1o([injectable()], Canvas3DPickItemInterceptor);
|
|
18098
18013
|
|
|
18099
18014
|
var pickModule = new ContainerModule((bind, unbind, isBound) => {
|
|
18100
18015
|
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);
|
|
@@ -18107,17 +18022,17 @@ var graphicModule = new ContainerModule(bind => {
|
|
|
18107
18022
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
18108
18023
|
const PluginService = Symbol.for("PluginService");
|
|
18109
18024
|
|
|
18110
|
-
var __decorate$
|
|
18025
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18111
18026
|
var d,
|
|
18112
18027
|
c = arguments.length,
|
|
18113
18028
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18114
18029
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18115
18030
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18116
18031
|
},
|
|
18117
|
-
__metadata$
|
|
18032
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
18118
18033
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18119
18034
|
},
|
|
18120
|
-
__param$
|
|
18035
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18121
18036
|
return function (target, key) {
|
|
18122
18037
|
decorator(target, key, paramIndex);
|
|
18123
18038
|
};
|
|
@@ -18157,7 +18072,7 @@ let DefaultPluginService = class {
|
|
|
18157
18072
|
}), this.onRegisterPlugin = [];
|
|
18158
18073
|
}
|
|
18159
18074
|
};
|
|
18160
|
-
DefaultPluginService = __decorate$
|
|
18075
|
+
DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
|
|
18161
18076
|
|
|
18162
18077
|
var pluginModule = new ContainerModule(bind => {
|
|
18163
18078
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -18171,14 +18086,14 @@ var textMeasureModules = new ContainerModule(bind => {
|
|
|
18171
18086
|
bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
18172
18087
|
});
|
|
18173
18088
|
|
|
18174
|
-
var __decorate$
|
|
18089
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18175
18090
|
var d,
|
|
18176
18091
|
c = arguments.length,
|
|
18177
18092
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18178
18093
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18179
18094
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18180
18095
|
},
|
|
18181
|
-
__metadata
|
|
18096
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
18182
18097
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18183
18098
|
};
|
|
18184
18099
|
let CanvasLayerHandlerContribution = class {
|
|
@@ -18248,7 +18163,7 @@ let CanvasLayerHandlerContribution = class {
|
|
|
18248
18163
|
this.canvas.release();
|
|
18249
18164
|
}
|
|
18250
18165
|
};
|
|
18251
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
18166
|
+
CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
18252
18167
|
|
|
18253
18168
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
18254
18169
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -18367,17 +18282,17 @@ function findNextGraphic(graphic, id, defaultZIndex) {
|
|
|
18367
18282
|
return result;
|
|
18368
18283
|
}
|
|
18369
18284
|
|
|
18370
|
-
var __decorate$
|
|
18285
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18371
18286
|
var d,
|
|
18372
18287
|
c = arguments.length,
|
|
18373
18288
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18374
18289
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18375
18290
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18376
18291
|
},
|
|
18377
|
-
__metadata
|
|
18292
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
18378
18293
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18379
18294
|
},
|
|
18380
|
-
__param$
|
|
18295
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18381
18296
|
return function (target, key) {
|
|
18382
18297
|
decorator(target, key, paramIndex);
|
|
18383
18298
|
};
|
|
@@ -18576,9 +18491,9 @@ let DefaultDrawContribution = class {
|
|
|
18576
18491
|
}
|
|
18577
18492
|
afterDraw(renderService, drawParams) {}
|
|
18578
18493
|
};
|
|
18579
|
-
DefaultDrawContribution = __decorate$
|
|
18494
|
+
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);
|
|
18580
18495
|
|
|
18581
|
-
var __decorate$
|
|
18496
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18582
18497
|
var d,
|
|
18583
18498
|
c = arguments.length,
|
|
18584
18499
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18629,9 +18544,9 @@ let DefaultIncrementalCanvasLineRender = class extends DefaultCanvasLineRender {
|
|
|
18629
18544
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
18630
18545
|
}
|
|
18631
18546
|
};
|
|
18632
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
18547
|
+
DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
|
|
18633
18548
|
|
|
18634
|
-
var __decorate$
|
|
18549
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18635
18550
|
var d,
|
|
18636
18551
|
c = arguments.length,
|
|
18637
18552
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18674,20 +18589,20 @@ let DefaultIncrementalCanvasAreaRender = class extends DefaultCanvasAreaRender {
|
|
|
18674
18589
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
18675
18590
|
}
|
|
18676
18591
|
};
|
|
18677
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
18592
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
18678
18593
|
|
|
18679
18594
|
var STATUS,
|
|
18680
|
-
__decorate$
|
|
18595
|
+
__decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18681
18596
|
var d,
|
|
18682
18597
|
c = arguments.length,
|
|
18683
18598
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18684
18599
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18685
18600
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18686
18601
|
},
|
|
18687
|
-
__metadata$
|
|
18602
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
18688
18603
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18689
18604
|
},
|
|
18690
|
-
__param$
|
|
18605
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18691
18606
|
return function (target, key) {
|
|
18692
18607
|
decorator(target, key, paramIndex);
|
|
18693
18608
|
};
|
|
@@ -18817,7 +18732,7 @@ let DefaultIncrementalDrawContribution = class extends DefaultDrawContribution {
|
|
|
18817
18732
|
});
|
|
18818
18733
|
}
|
|
18819
18734
|
};
|
|
18820
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
18735
|
+
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);
|
|
18821
18736
|
|
|
18822
18737
|
var renderModule = new ContainerModule(bind => {
|
|
18823
18738
|
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);
|
|
@@ -19513,14 +19428,14 @@ function createStage(params) {
|
|
|
19513
19428
|
return new Stage(params);
|
|
19514
19429
|
}
|
|
19515
19430
|
|
|
19516
|
-
var __decorate$
|
|
19431
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19517
19432
|
var d,
|
|
19518
19433
|
c = arguments.length,
|
|
19519
19434
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19520
19435
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19521
19436
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19522
19437
|
},
|
|
19523
|
-
__metadata$
|
|
19438
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
19524
19439
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19525
19440
|
};
|
|
19526
19441
|
const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -19730,7 +19645,7 @@ let EmptyContext2d = class {
|
|
|
19730
19645
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
19731
19646
|
}
|
|
19732
19647
|
};
|
|
19733
|
-
EmptyContext2d = __decorate$
|
|
19648
|
+
EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], EmptyContext2d);
|
|
19734
19649
|
|
|
19735
19650
|
const DefaultConfig = {
|
|
19736
19651
|
WIDTH: 500,
|
|
@@ -19829,7 +19744,7 @@ class BaseCanvas {
|
|
|
19829
19744
|
}
|
|
19830
19745
|
BaseCanvas.env = "browser";
|
|
19831
19746
|
|
|
19832
|
-
var __decorate$
|
|
19747
|
+
var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19833
19748
|
var d,
|
|
19834
19749
|
c = arguments.length,
|
|
19835
19750
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19943,16 +19858,16 @@ let BaseEnvContribution = class {
|
|
|
19943
19858
|
return Promise.resolve(null);
|
|
19944
19859
|
}
|
|
19945
19860
|
};
|
|
19946
|
-
BaseEnvContribution = __decorate$
|
|
19861
|
+
BaseEnvContribution = __decorate$1g([injectable()], BaseEnvContribution);
|
|
19947
19862
|
|
|
19948
|
-
var __decorate$
|
|
19863
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19949
19864
|
var d,
|
|
19950
19865
|
c = arguments.length,
|
|
19951
19866
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19952
19867
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19953
19868
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19954
19869
|
},
|
|
19955
|
-
__metadata$
|
|
19870
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
19956
19871
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19957
19872
|
};
|
|
19958
19873
|
let BaseWindowHandlerContribution = class {
|
|
@@ -19991,7 +19906,7 @@ let BaseWindowHandlerContribution = class {
|
|
|
19991
19906
|
return this.modelMatrix;
|
|
19992
19907
|
}
|
|
19993
19908
|
};
|
|
19994
|
-
BaseWindowHandlerContribution = __decorate$
|
|
19909
|
+
BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], BaseWindowHandlerContribution);
|
|
19995
19910
|
|
|
19996
19911
|
class DirectionalLight {
|
|
19997
19912
|
constructor(dir, color) {
|
|
@@ -20082,17 +19997,17 @@ const registerOrthoCamera = () => {
|
|
|
20082
19997
|
Factory.registerPlugin("OrthoCamera", OrthoCamera);
|
|
20083
19998
|
};
|
|
20084
19999
|
|
|
20085
|
-
var __decorate$
|
|
20000
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20086
20001
|
var d,
|
|
20087
20002
|
c = arguments.length,
|
|
20088
20003
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20089
20004
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20090
20005
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20091
20006
|
},
|
|
20092
|
-
__metadata$
|
|
20007
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
20093
20008
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20094
20009
|
},
|
|
20095
|
-
__param$
|
|
20010
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20096
20011
|
return function (target, key) {
|
|
20097
20012
|
decorator(target, key, paramIndex);
|
|
20098
20013
|
};
|
|
@@ -20197,16 +20112,16 @@ let DefaultPickService = class {
|
|
|
20197
20112
|
return picker || null;
|
|
20198
20113
|
}
|
|
20199
20114
|
};
|
|
20200
|
-
DefaultPickService = __decorate$
|
|
20115
|
+
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);
|
|
20201
20116
|
|
|
20202
|
-
var __decorate$
|
|
20117
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20203
20118
|
var d,
|
|
20204
20119
|
c = arguments.length,
|
|
20205
20120
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20206
20121
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20207
20122
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20208
20123
|
},
|
|
20209
|
-
__metadata$
|
|
20124
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
20210
20125
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20211
20126
|
};
|
|
20212
20127
|
let DefaultGlobalPickerService = class {
|
|
@@ -20271,7 +20186,7 @@ let DefaultGlobalPickerService = class {
|
|
|
20271
20186
|
} : null;
|
|
20272
20187
|
}
|
|
20273
20188
|
};
|
|
20274
|
-
DefaultGlobalPickerService = __decorate$
|
|
20189
|
+
DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], DefaultGlobalPickerService);
|
|
20275
20190
|
|
|
20276
20191
|
function simplifyRadialDist(points, sqTolerance) {
|
|
20277
20192
|
let deltaX,
|
|
@@ -20352,13 +20267,17 @@ class EditModule {
|
|
|
20352
20267
|
} = this.currRt.attribute;
|
|
20353
20268
|
if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
|
|
20354
20269
|
const config = textConfig[0];
|
|
20355
|
-
textConfig.unshift(Object.assign(Object.assign(Object.assign({
|
|
20270
|
+
textConfig.unshift(Object.assign(Object.assign(Object.assign({
|
|
20271
|
+
fill: "black"
|
|
20272
|
+
}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
|
|
20356
20273
|
text: ""
|
|
20357
20274
|
}));
|
|
20358
20275
|
} else {
|
|
20359
20276
|
const configIdx = this.composingConfigIdx,
|
|
20360
20277
|
lastConfig = textConfig[configIdx] || textConfig[configIdx - 1];
|
|
20361
|
-
textConfig.splice(configIdx, 0, Object.assign(Object.assign({
|
|
20278
|
+
textConfig.splice(configIdx, 0, Object.assign(Object.assign({
|
|
20279
|
+
fill: "black"
|
|
20280
|
+
}, lastConfig), {
|
|
20362
20281
|
text: ""
|
|
20363
20282
|
}));
|
|
20364
20283
|
}
|
|
@@ -20430,9 +20349,9 @@ class EditModule {
|
|
|
20430
20349
|
textConfig.splice(configIdx, 1);
|
|
20431
20350
|
const text = lastConfig.text,
|
|
20432
20351
|
textList = text ? Array.from(text.toString()) : [];
|
|
20433
|
-
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign(
|
|
20352
|
+
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
|
|
20434
20353
|
fill: "black"
|
|
20435
|
-
}
|
|
20354
|
+
}, lastConfig), {
|
|
20436
20355
|
isComposing: !1,
|
|
20437
20356
|
text: textList[i]
|
|
20438
20357
|
}));
|
|
@@ -20552,13 +20471,13 @@ class RichTextEditPlugin {
|
|
|
20552
20471
|
}, this.handleFocusOut = () => {
|
|
20553
20472
|
throw new Error("不会走到这里 handleFocusOut");
|
|
20554
20473
|
}, this.handleMove = e => {
|
|
20555
|
-
this.
|
|
20556
|
-
}, this.handleEnter =
|
|
20474
|
+
this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
|
|
20475
|
+
}, this.handleEnter = e => {
|
|
20557
20476
|
this.editing = !0, this.pluginService.stage.setCursor("text");
|
|
20558
|
-
}, this.handleLeave =
|
|
20477
|
+
}, this.handleLeave = e => {
|
|
20559
20478
|
this.editing = !1, this.pluginService.stage.setCursor("default");
|
|
20560
20479
|
}, this.handlePointerDown = e => {
|
|
20561
|
-
this.editing
|
|
20480
|
+
this.editing ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20562
20481
|
}, this.handlePointerUp = e => {
|
|
20563
20482
|
this.pointerDown = !1;
|
|
20564
20483
|
}, this.handleDBLClick = e => {
|
|
@@ -20632,11 +20551,9 @@ class RichTextEditPlugin {
|
|
|
20632
20551
|
const cache = currRt.getFrameCache();
|
|
20633
20552
|
if (!cache) return;
|
|
20634
20553
|
const {
|
|
20635
|
-
|
|
20636
|
-
|
|
20637
|
-
|
|
20638
|
-
if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
|
|
20639
|
-
const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20554
|
+
lines: lines
|
|
20555
|
+
} = cache,
|
|
20556
|
+
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20640
20557
|
return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
|
|
20641
20558
|
}
|
|
20642
20559
|
return !1;
|
|
@@ -20711,9 +20628,6 @@ class RichTextEditPlugin {
|
|
|
20711
20628
|
placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
|
|
20712
20629
|
x: 0,
|
|
20713
20630
|
y: 0,
|
|
20714
|
-
pickable: !1,
|
|
20715
|
-
editable: !1,
|
|
20716
|
-
editOptions: null,
|
|
20717
20631
|
angle: 0,
|
|
20718
20632
|
_debug_bounds: !1,
|
|
20719
20633
|
textConfig: [textConfigItem]
|
|
@@ -20729,15 +20643,15 @@ class RichTextEditPlugin {
|
|
|
20729
20643
|
} = editOptions;
|
|
20730
20644
|
if (!editOptions || !boundsStrokeWhenInput) return;
|
|
20731
20645
|
const {
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20646
|
+
attribute: attribute
|
|
20647
|
+
} = this.currRt,
|
|
20648
|
+
b = this.currRt.AABBBounds;
|
|
20649
|
+
let h = b.height();
|
|
20736
20650
|
if (!attribute.textConfig.length && this.editLine) {
|
|
20737
20651
|
const {
|
|
20738
20652
|
points: points
|
|
20739
20653
|
} = this.editLine.attribute;
|
|
20740
|
-
h = points[1].y - points[0].y
|
|
20654
|
+
h = points[1].y - points[0].y;
|
|
20741
20655
|
}
|
|
20742
20656
|
this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
|
|
20743
20657
|
x: 0,
|
|
@@ -20758,7 +20672,7 @@ class RichTextEditPlugin {
|
|
|
20758
20672
|
editOptions: editOptions
|
|
20759
20673
|
} = this.currRt.attribute;
|
|
20760
20674
|
if (textConfig && textConfig.length) return;
|
|
20761
|
-
if (!
|
|
20675
|
+
if (!editOptions || !editOptions.placeholder) return;
|
|
20762
20676
|
const {
|
|
20763
20677
|
placeholder: placeholder
|
|
20764
20678
|
} = editOptions;
|
|
@@ -20849,18 +20763,21 @@ class RichTextEditPlugin {
|
|
|
20849
20763
|
}
|
|
20850
20764
|
deFocus() {
|
|
20851
20765
|
let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20852
|
-
const currRt = this.currRt;
|
|
20853
|
-
if (!currRt) return;
|
|
20854
20766
|
this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
|
|
20855
20767
|
trulyDeFocus: trulyDeFocus
|
|
20856
|
-
}))
|
|
20768
|
+
}));
|
|
20769
|
+
const target = this.currRt;
|
|
20770
|
+
if (!target) return;
|
|
20771
|
+
trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), target.detachShadow());
|
|
20772
|
+
const currRt = this.currRt;
|
|
20773
|
+
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;
|
|
20857
20774
|
const textConfig = currRt.attribute.textConfig;
|
|
20858
20775
|
let lastConfig = textConfig[textConfig.length - 1],
|
|
20859
20776
|
cleared = !1;
|
|
20860
20777
|
for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
|
|
20861
20778
|
cleared && currRt.setAttributes({
|
|
20862
20779
|
textConfig: textConfig
|
|
20863
|
-
})
|
|
20780
|
+
});
|
|
20864
20781
|
}
|
|
20865
20782
|
addAnimateToLine(line) {
|
|
20866
20783
|
line.animates && line.animates.forEach(animate => {
|
|
@@ -20908,63 +20825,61 @@ class RichTextEditPlugin {
|
|
|
20908
20825
|
},
|
|
20909
20826
|
line0Info = this.getLineByPoint(cache, startCursorPos),
|
|
20910
20827
|
line1Info = this.getLineByPoint(cache, endCursorPos);
|
|
20911
|
-
if (
|
|
20912
|
-
|
|
20913
|
-
|
|
20828
|
+
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({
|
|
20829
|
+
x: startCursorPos.x,
|
|
20830
|
+
y: line0Info.top,
|
|
20831
|
+
width: endCursorPos.x - startCursorPos.x,
|
|
20832
|
+
height: line0Info.height,
|
|
20833
|
+
fill: "#336df4",
|
|
20834
|
+
fillOpacity: .2
|
|
20835
|
+
});else {
|
|
20836
|
+
this.editBg.setAttributes({
|
|
20837
|
+
x: 0,
|
|
20914
20838
|
y: line0Info.top,
|
|
20915
|
-
width:
|
|
20916
|
-
height:
|
|
20917
|
-
|
|
20918
|
-
|
|
20919
|
-
|
|
20920
|
-
|
|
20921
|
-
|
|
20922
|
-
|
|
20923
|
-
|
|
20924
|
-
|
|
20925
|
-
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
|
|
20936
|
-
|
|
20937
|
-
|
|
20938
|
-
|
|
20939
|
-
|
|
20940
|
-
|
|
20941
|
-
|
|
20942
|
-
|
|
20943
|
-
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
this.editBg.add(createRect({
|
|
20955
|
-
x: p0.left,
|
|
20956
|
-
y: y,
|
|
20957
|
-
width: p1.left + p1.width - p0.left,
|
|
20958
|
-
height: line.height,
|
|
20959
|
-
fill: "#336df4",
|
|
20960
|
-
fillOpacity: .2
|
|
20961
|
-
}));
|
|
20962
|
-
}
|
|
20963
|
-
y += line.height;
|
|
20839
|
+
width: 0,
|
|
20840
|
+
height: 0
|
|
20841
|
+
});
|
|
20842
|
+
const startIdx = cache.lines.findIndex(item => item === line0Info),
|
|
20843
|
+
endIdx = cache.lines.findIndex(item => item === line1Info);
|
|
20844
|
+
let y = 0;
|
|
20845
|
+
for (let i = startIdx; i <= endIdx; i++) {
|
|
20846
|
+
const line = cache.lines[i];
|
|
20847
|
+
if (i === startIdx) {
|
|
20848
|
+
const p = line.paragraphs[line.paragraphs.length - 1];
|
|
20849
|
+
this.editBg.add(createRect({
|
|
20850
|
+
x: startCursorPos.x,
|
|
20851
|
+
y: y,
|
|
20852
|
+
width: p.left + p.width - startCursorPos.x,
|
|
20853
|
+
height: line.height,
|
|
20854
|
+
fill: "#336df4",
|
|
20855
|
+
fillOpacity: .2
|
|
20856
|
+
}));
|
|
20857
|
+
} else if (i === endIdx) {
|
|
20858
|
+
const p = line.paragraphs[0];
|
|
20859
|
+
this.editBg.add(createRect({
|
|
20860
|
+
x: p.left,
|
|
20861
|
+
y: y,
|
|
20862
|
+
width: endCursorPos.x - p.left,
|
|
20863
|
+
height: line.height,
|
|
20864
|
+
fill: "#336df4",
|
|
20865
|
+
fillOpacity: .2
|
|
20866
|
+
}));
|
|
20867
|
+
} else {
|
|
20868
|
+
const p0 = line.paragraphs[0],
|
|
20869
|
+
p1 = line.paragraphs[line.paragraphs.length - 1];
|
|
20870
|
+
this.editBg.add(createRect({
|
|
20871
|
+
x: p0.left,
|
|
20872
|
+
y: y,
|
|
20873
|
+
width: p1.left + p1.width - p0.left,
|
|
20874
|
+
height: line.height,
|
|
20875
|
+
fill: "#336df4",
|
|
20876
|
+
fillOpacity: .2
|
|
20877
|
+
}));
|
|
20964
20878
|
}
|
|
20879
|
+
y += line.height;
|
|
20965
20880
|
}
|
|
20966
|
-
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20967
20881
|
}
|
|
20882
|
+
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20968
20883
|
}
|
|
20969
20884
|
hideSelection() {
|
|
20970
20885
|
this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
|
|
@@ -21008,10 +20923,7 @@ class RichTextEditPlugin {
|
|
|
21008
20923
|
return -1;
|
|
21009
20924
|
}
|
|
21010
20925
|
isRichtext(e) {
|
|
21011
|
-
return !(!e.target || "richtext" !== e.target.type);
|
|
21012
|
-
}
|
|
21013
|
-
isEditableRichtext(e) {
|
|
21014
|
-
return this.isRichtext(e) && !!e.target.attribute.editable;
|
|
20926
|
+
return !(!e.target || "richtext" !== e.target.type || !e.target.attribute.editable);
|
|
21015
20927
|
}
|
|
21016
20928
|
triggerRender() {
|
|
21017
20929
|
this.pluginService.stage.renderNextFrame();
|
|
@@ -21157,7 +21069,7 @@ class RichTextEditPlugin {
|
|
|
21157
21069
|
target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
|
|
21158
21070
|
}
|
|
21159
21071
|
_forceFocusByEvent(e) {
|
|
21160
|
-
this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21072
|
+
this.handleEnter(e), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21161
21073
|
}
|
|
21162
21074
|
_forceFocusByCursorIndex(cursorIndex) {
|
|
21163
21075
|
const richtext = this.currRt;
|
|
@@ -21361,7 +21273,7 @@ const polygonModule = new ContainerModule(bind => {
|
|
|
21361
21273
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
21362
21274
|
});
|
|
21363
21275
|
|
|
21364
|
-
var __decorate$
|
|
21276
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21365
21277
|
var d,
|
|
21366
21278
|
c = arguments.length,
|
|
21367
21279
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21393,21 +21305,21 @@ let DefaultCanvasGlyphRender = class {
|
|
|
21393
21305
|
}), context.highPerformanceRestore();
|
|
21394
21306
|
}
|
|
21395
21307
|
};
|
|
21396
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
21308
|
+
DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
|
|
21397
21309
|
|
|
21398
21310
|
let loadGlyphModule = !1;
|
|
21399
21311
|
const glyphModule = new ContainerModule(bind => {
|
|
21400
21312
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
21401
21313
|
});
|
|
21402
21314
|
|
|
21403
|
-
var __decorate$
|
|
21315
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21404
21316
|
var d,
|
|
21405
21317
|
c = arguments.length,
|
|
21406
21318
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21407
21319
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21408
21320
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21409
21321
|
},
|
|
21410
|
-
__metadata$
|
|
21322
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
21411
21323
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21412
21324
|
};
|
|
21413
21325
|
let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
@@ -21461,7 +21373,7 @@ let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
|
21461
21373
|
this._draw(richtext, richtextAttribute, !1, drawContext);
|
|
21462
21374
|
}
|
|
21463
21375
|
};
|
|
21464
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
21376
|
+
DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
21465
21377
|
|
|
21466
21378
|
let loadRichtextModule = !1;
|
|
21467
21379
|
const richtextModule = new ContainerModule(bind => {
|
|
@@ -21545,7 +21457,7 @@ class Base3dRender extends BaseRender {
|
|
|
21545
21457
|
}
|
|
21546
21458
|
}
|
|
21547
21459
|
|
|
21548
|
-
var __decorate$
|
|
21460
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21549
21461
|
var d,
|
|
21550
21462
|
c = arguments.length,
|
|
21551
21463
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21601,14 +21513,14 @@ let DefaultCanvasRect3dRender = class extends Base3dRender {
|
|
|
21601
21513
|
this._draw(rect, rectAttribute, !1, drawContext);
|
|
21602
21514
|
}
|
|
21603
21515
|
};
|
|
21604
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
21516
|
+
DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
|
|
21605
21517
|
|
|
21606
21518
|
let loadRect3dModule = !1;
|
|
21607
21519
|
const rect3dModule = new ContainerModule(bind => {
|
|
21608
21520
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
21609
21521
|
});
|
|
21610
21522
|
|
|
21611
|
-
var __decorate$
|
|
21523
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21612
21524
|
var d,
|
|
21613
21525
|
c = arguments.length,
|
|
21614
21526
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21735,14 +21647,14 @@ let DefaultCanvasArc3DRender = class extends BaseRender {
|
|
|
21735
21647
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
21736
21648
|
}
|
|
21737
21649
|
};
|
|
21738
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
21650
|
+
DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
|
|
21739
21651
|
|
|
21740
21652
|
let loadArc3dModule = !1;
|
|
21741
21653
|
const arc3dModule = new ContainerModule(bind => {
|
|
21742
21654
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
21743
21655
|
});
|
|
21744
21656
|
|
|
21745
|
-
var __decorate$
|
|
21657
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21746
21658
|
var d,
|
|
21747
21659
|
c = arguments.length,
|
|
21748
21660
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21779,7 +21691,7 @@ let DefaultCanvasPyramid3dRender = class extends Base3dRender {
|
|
|
21779
21691
|
this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
|
|
21780
21692
|
}
|
|
21781
21693
|
};
|
|
21782
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
21694
|
+
DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
|
|
21783
21695
|
|
|
21784
21696
|
let loadPyramid3dModule = !1;
|
|
21785
21697
|
const pyramid3dModule = new ContainerModule(bind => {
|
|
@@ -23902,17 +23814,17 @@ class RoughBaseRender {
|
|
|
23902
23814
|
}
|
|
23903
23815
|
}
|
|
23904
23816
|
|
|
23905
|
-
var __decorate$
|
|
23817
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23906
23818
|
var d,
|
|
23907
23819
|
c = arguments.length,
|
|
23908
23820
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23909
23821
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23910
23822
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23911
23823
|
},
|
|
23912
|
-
__metadata$
|
|
23824
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
23913
23825
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23914
23826
|
},
|
|
23915
|
-
__param$
|
|
23827
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23916
23828
|
return function (target, key) {
|
|
23917
23829
|
decorator(target, key, paramIndex);
|
|
23918
23830
|
};
|
|
@@ -23998,9 +23910,9 @@ let RoughCanvasArcRender = class extends RoughBaseRender {
|
|
|
23998
23910
|
}), context.highPerformanceRestore();
|
|
23999
23911
|
}
|
|
24000
23912
|
};
|
|
24001
|
-
RoughCanvasArcRender = __decorate$
|
|
23913
|
+
RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
24002
23914
|
|
|
24003
|
-
var __decorate$
|
|
23915
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24004
23916
|
var d,
|
|
24005
23917
|
c = arguments.length,
|
|
24006
23918
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24078,19 +23990,19 @@ let RoughCanvasAreaRender = class extends DefaultCanvasAreaRender {
|
|
|
24078
23990
|
}), context.highPerformanceRestore(), !1;
|
|
24079
23991
|
}
|
|
24080
23992
|
};
|
|
24081
|
-
RoughCanvasAreaRender = __decorate$
|
|
23993
|
+
RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
|
|
24082
23994
|
|
|
24083
|
-
var __decorate$
|
|
23995
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24084
23996
|
var d,
|
|
24085
23997
|
c = arguments.length,
|
|
24086
23998
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24087
23999
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24088
24000
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24089
24001
|
},
|
|
24090
|
-
__metadata$
|
|
24002
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
24091
24003
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24092
24004
|
},
|
|
24093
|
-
__param$
|
|
24005
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24094
24006
|
return function (target, key) {
|
|
24095
24007
|
decorator(target, key, paramIndex);
|
|
24096
24008
|
};
|
|
@@ -24127,9 +24039,9 @@ let RoughCanvasCircleRender = class extends RoughBaseRender {
|
|
|
24127
24039
|
});
|
|
24128
24040
|
}
|
|
24129
24041
|
};
|
|
24130
|
-
RoughCanvasCircleRender = __decorate$
|
|
24042
|
+
RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
24131
24043
|
|
|
24132
|
-
var __decorate$
|
|
24044
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24133
24045
|
var d,
|
|
24134
24046
|
c = arguments.length,
|
|
24135
24047
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24208,19 +24120,19 @@ let RoughCanvasLineRender = class extends DefaultCanvasLineRender {
|
|
|
24208
24120
|
}), context.highPerformanceRestore(), !1;
|
|
24209
24121
|
}
|
|
24210
24122
|
};
|
|
24211
|
-
RoughCanvasLineRender = __decorate$
|
|
24123
|
+
RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
|
|
24212
24124
|
|
|
24213
|
-
var __decorate$
|
|
24125
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24214
24126
|
var d,
|
|
24215
24127
|
c = arguments.length,
|
|
24216
24128
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24217
24129
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24218
24130
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24219
24131
|
},
|
|
24220
|
-
__metadata$
|
|
24132
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
24221
24133
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24222
24134
|
},
|
|
24223
|
-
__param$
|
|
24135
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24224
24136
|
return function (target, key) {
|
|
24225
24137
|
decorator(target, key, paramIndex);
|
|
24226
24138
|
};
|
|
@@ -24294,19 +24206,19 @@ let RoughCanvasPathRender = class extends RoughBaseRender {
|
|
|
24294
24206
|
}), context.highPerformanceRestore();
|
|
24295
24207
|
}
|
|
24296
24208
|
};
|
|
24297
|
-
RoughCanvasPathRender = __decorate$
|
|
24209
|
+
RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
24298
24210
|
|
|
24299
|
-
var __decorate$
|
|
24211
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24300
24212
|
var d,
|
|
24301
24213
|
c = arguments.length,
|
|
24302
24214
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24303
24215
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24304
24216
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24305
24217
|
},
|
|
24306
|
-
__metadata$
|
|
24218
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
24307
24219
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24308
24220
|
},
|
|
24309
|
-
__param$
|
|
24221
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24310
24222
|
return function (target, key) {
|
|
24311
24223
|
decorator(target, key, paramIndex);
|
|
24312
24224
|
};
|
|
@@ -24397,19 +24309,19 @@ let RoughCanvasRectRender = class extends RoughBaseRender {
|
|
|
24397
24309
|
}), context.highPerformanceRestore();
|
|
24398
24310
|
}
|
|
24399
24311
|
};
|
|
24400
|
-
RoughCanvasRectRender = __decorate$
|
|
24312
|
+
RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
24401
24313
|
|
|
24402
|
-
var __decorate
|
|
24314
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24403
24315
|
var d,
|
|
24404
24316
|
c = arguments.length,
|
|
24405
24317
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24406
24318
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24407
24319
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24408
24320
|
},
|
|
24409
|
-
__metadata$
|
|
24321
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
24410
24322
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24411
24323
|
},
|
|
24412
|
-
__param$
|
|
24324
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24413
24325
|
return function (target, key) {
|
|
24414
24326
|
decorator(target, key, paramIndex);
|
|
24415
24327
|
};
|
|
@@ -24501,7 +24413,7 @@ let RoughCanvasSymbolRender = class extends BaseRender {
|
|
|
24501
24413
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24502
24414
|
}
|
|
24503
24415
|
};
|
|
24504
|
-
RoughCanvasSymbolRender = __decorate
|
|
24416
|
+
RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
24505
24417
|
|
|
24506
24418
|
var _roughModule = new ContainerModule(bind => {
|
|
24507
24419
|
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);
|
|
@@ -24524,6 +24436,7 @@ const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
|
|
|
24524
24436
|
const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
|
|
24525
24437
|
const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
|
|
24526
24438
|
const CanvasImagePicker = Symbol.for("CanvasImagePicker");
|
|
24439
|
+
const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
|
|
24527
24440
|
const CanvasLinePicker = Symbol.for("CanvasLinePicker");
|
|
24528
24441
|
const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
|
|
24529
24442
|
const CanvasPathPicker = Symbol.for("CanvasPathPicker");
|
|
@@ -24664,9 +24577,11 @@ function jsx(type, config) {
|
|
|
24664
24577
|
name: name,
|
|
24665
24578
|
id: id,
|
|
24666
24579
|
attribute: attribute,
|
|
24667
|
-
stateProxy: stateProxy
|
|
24580
|
+
stateProxy: stateProxy,
|
|
24581
|
+
animation: animation,
|
|
24582
|
+
timeline: timeline
|
|
24668
24583
|
} = _a,
|
|
24669
|
-
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
|
|
24584
|
+
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
|
|
24670
24585
|
let c = type;
|
|
24671
24586
|
isString$1(type) && (c = graphicCreator[type]);
|
|
24672
24587
|
const childrenList = [];
|
|
@@ -24675,7 +24590,13 @@ function jsx(type, config) {
|
|
|
24675
24590
|
}
|
|
24676
24591
|
children.length && flatten(1 === children.length ? children[0] : children, childrenList);
|
|
24677
24592
|
const g = "Group" === c.name ? new c(attribute) : c(config);
|
|
24678
|
-
|
|
24593
|
+
if (parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), name && (g.name = name), isArray$1(animation)) {
|
|
24594
|
+
const animate = g.animate();
|
|
24595
|
+
timeline && animate.setTimeline(timeline), animation.forEach(item => {
|
|
24596
|
+
animate[item[0]](...item.slice(1));
|
|
24597
|
+
});
|
|
24598
|
+
}
|
|
24599
|
+
return g;
|
|
24679
24600
|
}
|
|
24680
24601
|
function parseToGraphic$1(g, childrenList, props) {
|
|
24681
24602
|
let out,
|
|
@@ -25005,14 +24926,14 @@ class Gesture extends EventEmitter {
|
|
|
25005
24926
|
}
|
|
25006
24927
|
}
|
|
25007
24928
|
|
|
25008
|
-
var __decorate$
|
|
24929
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25009
24930
|
var d,
|
|
25010
24931
|
c = arguments.length,
|
|
25011
24932
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25012
24933
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25013
24934
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25014
24935
|
},
|
|
25015
|
-
__metadata$
|
|
24936
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
25016
24937
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25017
24938
|
};
|
|
25018
24939
|
const outP = [0, 0, 0],
|
|
@@ -25524,16 +25445,16 @@ let BrowserContext2d = class {
|
|
|
25524
25445
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25525
25446
|
}
|
|
25526
25447
|
};
|
|
25527
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
25448
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
25528
25449
|
|
|
25529
|
-
var __decorate
|
|
25450
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25530
25451
|
var d,
|
|
25531
25452
|
c = arguments.length,
|
|
25532
25453
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25533
25454
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25534
25455
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25535
25456
|
},
|
|
25536
|
-
__metadata$
|
|
25457
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
25537
25458
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25538
25459
|
};
|
|
25539
25460
|
let BrowserCanvas = class extends BaseCanvas {
|
|
@@ -25595,7 +25516,7 @@ let BrowserCanvas = class extends BaseCanvas {
|
|
|
25595
25516
|
this._context.dpr = this._dpr;
|
|
25596
25517
|
}
|
|
25597
25518
|
};
|
|
25598
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate
|
|
25519
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
|
|
25599
25520
|
|
|
25600
25521
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
25601
25522
|
return new ContainerModule(bind => {
|
|
@@ -25605,17 +25526,17 @@ function createModule(CanvasConstructor, ContextConstructor) {
|
|
|
25605
25526
|
|
|
25606
25527
|
const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
25607
25528
|
|
|
25608
|
-
var __decorate$
|
|
25529
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25609
25530
|
var d,
|
|
25610
25531
|
c = arguments.length,
|
|
25611
25532
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25612
25533
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25613
25534
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25614
25535
|
},
|
|
25615
|
-
__metadata$
|
|
25536
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
25616
25537
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25617
25538
|
},
|
|
25618
|
-
__param$
|
|
25539
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25619
25540
|
return function (target, key) {
|
|
25620
25541
|
decorator(target, key, paramIndex);
|
|
25621
25542
|
};
|
|
@@ -25666,9 +25587,9 @@ let DefaultCanvasPickerService = class extends DefaultPickService {
|
|
|
25666
25587
|
return data;
|
|
25667
25588
|
}
|
|
25668
25589
|
};
|
|
25669
|
-
DefaultCanvasPickerService = __decorate$
|
|
25590
|
+
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);
|
|
25670
25591
|
|
|
25671
|
-
var __decorate$
|
|
25592
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25672
25593
|
var d,
|
|
25673
25594
|
c = arguments.length,
|
|
25674
25595
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25683,7 +25604,7 @@ let DefaultCanvasGroupPicker = class {
|
|
|
25683
25604
|
return !1;
|
|
25684
25605
|
}
|
|
25685
25606
|
};
|
|
25686
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
25607
|
+
DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
|
|
25687
25608
|
|
|
25688
25609
|
const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
25689
25610
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -25699,14 +25620,14 @@ function loadCanvasPicker(c) {
|
|
|
25699
25620
|
}
|
|
25700
25621
|
|
|
25701
25622
|
var BrowserWindowHandlerContribution_1,
|
|
25702
|
-
__decorate$
|
|
25623
|
+
__decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25703
25624
|
var d,
|
|
25704
25625
|
c = arguments.length,
|
|
25705
25626
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25706
25627
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25707
25628
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25708
25629
|
},
|
|
25709
|
-
__metadata$
|
|
25630
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
25710
25631
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25711
25632
|
};
|
|
25712
25633
|
let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
|
|
@@ -25864,19 +25785,19 @@ let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = clas
|
|
|
25864
25785
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
25865
25786
|
}
|
|
25866
25787
|
};
|
|
25867
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$
|
|
25788
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
25868
25789
|
const browserWindowModule = new ContainerModule(bind => {
|
|
25869
25790
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
25870
25791
|
});
|
|
25871
25792
|
|
|
25872
|
-
var __decorate$
|
|
25793
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25873
25794
|
var d,
|
|
25874
25795
|
c = arguments.length,
|
|
25875
25796
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25876
25797
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25877
25798
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25878
25799
|
},
|
|
25879
|
-
__metadata$
|
|
25800
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
25880
25801
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25881
25802
|
},
|
|
25882
25803
|
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -25930,7 +25851,7 @@ class DynamicB {
|
|
|
25930
25851
|
function createImageElement$1(src) {
|
|
25931
25852
|
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
25932
25853
|
const img = document.createElement("img");
|
|
25933
|
-
if (img.crossOrigin = "anonymous", isSvg) {
|
|
25854
|
+
if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
|
|
25934
25855
|
const data = new Blob([src], {
|
|
25935
25856
|
type: "image/svg+xml"
|
|
25936
25857
|
});
|
|
@@ -26123,7 +26044,7 @@ let BrowserEnvContribution = class extends BaseEnvContribution {
|
|
|
26123
26044
|
return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
|
|
26124
26045
|
}
|
|
26125
26046
|
};
|
|
26126
|
-
BrowserEnvContribution = __decorate$
|
|
26047
|
+
BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], BrowserEnvContribution);
|
|
26127
26048
|
|
|
26128
26049
|
const browserEnvModule = new ContainerModule(bind => {
|
|
26129
26050
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
@@ -26138,7 +26059,7 @@ function initBrowserEnv() {
|
|
|
26138
26059
|
loadBrowserEnv(container);
|
|
26139
26060
|
}
|
|
26140
26061
|
|
|
26141
|
-
var __decorate$
|
|
26062
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26142
26063
|
var d,
|
|
26143
26064
|
c = arguments.length,
|
|
26144
26065
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26183,16 +26104,16 @@ let FeishuContext2d = class extends BrowserContext2d {
|
|
|
26183
26104
|
return null;
|
|
26184
26105
|
}
|
|
26185
26106
|
};
|
|
26186
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
26107
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
|
|
26187
26108
|
|
|
26188
|
-
var __decorate$
|
|
26109
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26189
26110
|
var d,
|
|
26190
26111
|
c = arguments.length,
|
|
26191
26112
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26192
26113
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26193
26114
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26194
26115
|
},
|
|
26195
|
-
__metadata$
|
|
26116
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
26196
26117
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26197
26118
|
};
|
|
26198
26119
|
let FeishuCanvas = class extends BaseCanvas {
|
|
@@ -26204,21 +26125,21 @@ let FeishuCanvas = class extends BaseCanvas {
|
|
|
26204
26125
|
}
|
|
26205
26126
|
release() {}
|
|
26206
26127
|
};
|
|
26207
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
26128
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
|
|
26208
26129
|
|
|
26209
26130
|
const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
26210
26131
|
|
|
26211
|
-
var __decorate$
|
|
26132
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26212
26133
|
var d,
|
|
26213
26134
|
c = arguments.length,
|
|
26214
26135
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26215
26136
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26216
26137
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26217
26138
|
},
|
|
26218
|
-
__metadata$
|
|
26139
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
26219
26140
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26220
26141
|
},
|
|
26221
|
-
__param$
|
|
26142
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26222
26143
|
return function (target, key) {
|
|
26223
26144
|
decorator(target, key, paramIndex);
|
|
26224
26145
|
};
|
|
@@ -26354,22 +26275,22 @@ let FeishuWindowHandlerContribution = class extends BaseWindowHandlerContributio
|
|
|
26354
26275
|
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();
|
|
26355
26276
|
}
|
|
26356
26277
|
};
|
|
26357
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
26278
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
26358
26279
|
const feishuWindowModule = new ContainerModule(bind => {
|
|
26359
26280
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
26360
26281
|
});
|
|
26361
26282
|
|
|
26362
|
-
var __decorate$
|
|
26283
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26363
26284
|
var d,
|
|
26364
26285
|
c = arguments.length,
|
|
26365
26286
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26366
26287
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26367
26288
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26368
26289
|
},
|
|
26369
|
-
__metadata$
|
|
26290
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
26370
26291
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26371
26292
|
},
|
|
26372
|
-
__param$
|
|
26293
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26373
26294
|
return function (target, key) {
|
|
26374
26295
|
decorator(target, key, paramIndex);
|
|
26375
26296
|
};
|
|
@@ -26400,7 +26321,7 @@ let DefaultMathPickerService = class extends DefaultPickService {
|
|
|
26400
26321
|
} : null;
|
|
26401
26322
|
}
|
|
26402
26323
|
};
|
|
26403
|
-
DefaultMathPickerService = __decorate$
|
|
26324
|
+
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);
|
|
26404
26325
|
|
|
26405
26326
|
const m = new ContainerModule(bind => {
|
|
26406
26327
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -26437,17 +26358,17 @@ class PickerBase {
|
|
|
26437
26358
|
}
|
|
26438
26359
|
}
|
|
26439
26360
|
|
|
26440
|
-
var __decorate$
|
|
26361
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26441
26362
|
var d,
|
|
26442
26363
|
c = arguments.length,
|
|
26443
26364
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26444
26365
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26445
26366
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26446
26367
|
},
|
|
26447
|
-
__metadata$
|
|
26368
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
26448
26369
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26449
26370
|
},
|
|
26450
|
-
__param$
|
|
26371
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26451
26372
|
return function (target, key) {
|
|
26452
26373
|
decorator(target, key, paramIndex);
|
|
26453
26374
|
};
|
|
@@ -26457,24 +26378,24 @@ let DefaultMathArcPicker = class extends PickerBase {
|
|
|
26457
26378
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
26458
26379
|
}
|
|
26459
26380
|
};
|
|
26460
|
-
DefaultMathArcPicker = __decorate$
|
|
26381
|
+
DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
26461
26382
|
|
|
26462
26383
|
let loadArcPick$1 = !1;
|
|
26463
26384
|
const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26464
26385
|
loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
|
|
26465
26386
|
});
|
|
26466
26387
|
|
|
26467
|
-
var __decorate$
|
|
26388
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26468
26389
|
var d,
|
|
26469
26390
|
c = arguments.length,
|
|
26470
26391
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26471
26392
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26472
26393
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26473
26394
|
},
|
|
26474
|
-
__metadata$
|
|
26395
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
26475
26396
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26476
26397
|
},
|
|
26477
|
-
__param$
|
|
26398
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26478
26399
|
return function (target, key) {
|
|
26479
26400
|
decorator(target, key, paramIndex);
|
|
26480
26401
|
};
|
|
@@ -26484,24 +26405,24 @@ let DefaultMathAreaPicker = class extends PickerBase {
|
|
|
26484
26405
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
26485
26406
|
}
|
|
26486
26407
|
};
|
|
26487
|
-
DefaultMathAreaPicker = __decorate$
|
|
26408
|
+
DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
|
|
26488
26409
|
|
|
26489
26410
|
let loadAreaPick$1 = !1;
|
|
26490
26411
|
const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26491
26412
|
loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
|
|
26492
26413
|
});
|
|
26493
26414
|
|
|
26494
|
-
var __decorate$
|
|
26415
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26495
26416
|
var d,
|
|
26496
26417
|
c = arguments.length,
|
|
26497
26418
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26498
26419
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26499
26420
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26500
26421
|
},
|
|
26501
|
-
__metadata$
|
|
26422
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
26502
26423
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26503
26424
|
},
|
|
26504
|
-
__param$
|
|
26425
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26505
26426
|
return function (target, key) {
|
|
26506
26427
|
decorator(target, key, paramIndex);
|
|
26507
26428
|
};
|
|
@@ -26511,7 +26432,7 @@ let DefaultMathCirclePicker = class extends PickerBase {
|
|
|
26511
26432
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
26512
26433
|
}
|
|
26513
26434
|
};
|
|
26514
|
-
DefaultMathCirclePicker = __decorate$
|
|
26435
|
+
DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
26515
26436
|
|
|
26516
26437
|
let loadCirclePick$1 = !1;
|
|
26517
26438
|
const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26542,17 +26463,17 @@ class GlyphPickerBase {
|
|
|
26542
26463
|
}
|
|
26543
26464
|
}
|
|
26544
26465
|
|
|
26545
|
-
var __decorate$
|
|
26466
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26546
26467
|
var d,
|
|
26547
26468
|
c = arguments.length,
|
|
26548
26469
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26549
26470
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26550
26471
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26551
26472
|
},
|
|
26552
|
-
__metadata$
|
|
26473
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
26553
26474
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26554
26475
|
},
|
|
26555
|
-
__param$
|
|
26476
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26556
26477
|
return function (target, key) {
|
|
26557
26478
|
decorator(target, key, paramIndex);
|
|
26558
26479
|
};
|
|
@@ -26562,14 +26483,14 @@ let DefaultMathGlyphPicker = class extends GlyphPickerBase {
|
|
|
26562
26483
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26563
26484
|
}
|
|
26564
26485
|
};
|
|
26565
|
-
DefaultMathGlyphPicker = __decorate$
|
|
26486
|
+
DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
26566
26487
|
|
|
26567
26488
|
let loadGlyphPick$1 = !1;
|
|
26568
26489
|
const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26569
26490
|
loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
|
|
26570
26491
|
});
|
|
26571
26492
|
|
|
26572
|
-
var __decorate$
|
|
26493
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26573
26494
|
var d,
|
|
26574
26495
|
c = arguments.length,
|
|
26575
26496
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26587,24 +26508,24 @@ let DefaultMathImagePicker = class {
|
|
|
26587
26508
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
26588
26509
|
}
|
|
26589
26510
|
};
|
|
26590
|
-
DefaultMathImagePicker = __decorate$
|
|
26511
|
+
DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
|
|
26591
26512
|
|
|
26592
26513
|
let loadImagePick$1 = !1;
|
|
26593
26514
|
const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26594
26515
|
loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26595
26516
|
});
|
|
26596
26517
|
|
|
26597
|
-
var __decorate$
|
|
26518
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26598
26519
|
var d,
|
|
26599
26520
|
c = arguments.length,
|
|
26600
26521
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26601
26522
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26602
26523
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26603
26524
|
},
|
|
26604
|
-
__metadata$
|
|
26525
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
26605
26526
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26606
26527
|
},
|
|
26607
|
-
__param$
|
|
26528
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26608
26529
|
return function (target, key) {
|
|
26609
26530
|
decorator(target, key, paramIndex);
|
|
26610
26531
|
};
|
|
@@ -26614,24 +26535,24 @@ let DefaultMathLinePicker = class extends PickerBase {
|
|
|
26614
26535
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
26615
26536
|
}
|
|
26616
26537
|
};
|
|
26617
|
-
DefaultMathLinePicker = __decorate$
|
|
26538
|
+
DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
26618
26539
|
|
|
26619
26540
|
let loadLinePick$1 = !1;
|
|
26620
26541
|
const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26621
26542
|
loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
|
|
26622
26543
|
});
|
|
26623
26544
|
|
|
26624
|
-
var __decorate$
|
|
26545
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26625
26546
|
var d,
|
|
26626
26547
|
c = arguments.length,
|
|
26627
26548
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26628
26549
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26629
26550
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26630
26551
|
},
|
|
26631
|
-
__metadata$
|
|
26552
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
26632
26553
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26633
26554
|
},
|
|
26634
|
-
__param$
|
|
26555
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26635
26556
|
return function (target, key) {
|
|
26636
26557
|
decorator(target, key, paramIndex);
|
|
26637
26558
|
};
|
|
@@ -26641,24 +26562,24 @@ let DefaultMathPolygonPicker = class extends PickerBase {
|
|
|
26641
26562
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
26642
26563
|
}
|
|
26643
26564
|
};
|
|
26644
|
-
DefaultMathPolygonPicker = __decorate$
|
|
26565
|
+
DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
26645
26566
|
|
|
26646
26567
|
let loadPolygonPick$1 = !1;
|
|
26647
26568
|
const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26648
26569
|
loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
|
|
26649
26570
|
});
|
|
26650
26571
|
|
|
26651
|
-
var __decorate$
|
|
26572
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26652
26573
|
var d,
|
|
26653
26574
|
c = arguments.length,
|
|
26654
26575
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26655
26576
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26656
26577
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26657
26578
|
},
|
|
26658
|
-
__metadata$
|
|
26579
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
26659
26580
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26660
26581
|
},
|
|
26661
|
-
__param$
|
|
26582
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26662
26583
|
return function (target, key) {
|
|
26663
26584
|
decorator(target, key, paramIndex);
|
|
26664
26585
|
};
|
|
@@ -26668,7 +26589,7 @@ let DefaultMathPathPicker = class extends PickerBase {
|
|
|
26668
26589
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
26669
26590
|
}
|
|
26670
26591
|
};
|
|
26671
|
-
DefaultMathPathPicker = __decorate$
|
|
26592
|
+
DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
26672
26593
|
|
|
26673
26594
|
let loadPathPick$1 = !1;
|
|
26674
26595
|
const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26723,17 +26644,17 @@ class RectPickerBase {
|
|
|
26723
26644
|
}
|
|
26724
26645
|
}
|
|
26725
26646
|
|
|
26726
|
-
var __decorate$
|
|
26647
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26727
26648
|
var d,
|
|
26728
26649
|
c = arguments.length,
|
|
26729
26650
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26730
26651
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26731
26652
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26732
26653
|
},
|
|
26733
|
-
__metadata$
|
|
26654
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
26734
26655
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26735
26656
|
},
|
|
26736
|
-
__param$
|
|
26657
|
+
__param$n = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26737
26658
|
return function (target, key) {
|
|
26738
26659
|
decorator(target, key, paramIndex);
|
|
26739
26660
|
};
|
|
@@ -26743,7 +26664,7 @@ let DefaultMathRectPicker = class extends RectPickerBase {
|
|
|
26743
26664
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26744
26665
|
}
|
|
26745
26666
|
};
|
|
26746
|
-
DefaultMathRectPicker = __decorate$
|
|
26667
|
+
DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
26747
26668
|
|
|
26748
26669
|
let loadRectPick$1 = !1;
|
|
26749
26670
|
const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26755,17 +26676,17 @@ const richTextMathPickModule = new ContainerModule((bind, unbind, isBound, rebin
|
|
|
26755
26676
|
loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26756
26677
|
});
|
|
26757
26678
|
|
|
26758
|
-
var __decorate$
|
|
26679
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26759
26680
|
var d,
|
|
26760
26681
|
c = arguments.length,
|
|
26761
26682
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26762
26683
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26763
26684
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26764
26685
|
},
|
|
26765
|
-
__metadata$
|
|
26686
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
26766
26687
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26767
26688
|
},
|
|
26768
|
-
__param$
|
|
26689
|
+
__param$m = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26769
26690
|
return function (target, key) {
|
|
26770
26691
|
decorator(target, key, paramIndex);
|
|
26771
26692
|
};
|
|
@@ -26775,14 +26696,14 @@ let DefaultMathSymbolPicker = class extends PickerBase {
|
|
|
26775
26696
|
super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
26776
26697
|
}
|
|
26777
26698
|
};
|
|
26778
|
-
DefaultMathSymbolPicker = __decorate$
|
|
26699
|
+
DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
26779
26700
|
|
|
26780
26701
|
let loadSymbolPick$1 = !1;
|
|
26781
26702
|
const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26782
26703
|
loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
|
|
26783
26704
|
});
|
|
26784
26705
|
|
|
26785
|
-
var __decorate$
|
|
26706
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26786
26707
|
var d,
|
|
26787
26708
|
c = arguments.length,
|
|
26788
26709
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26797,7 +26718,7 @@ let DefaultMathTextPicker = class {
|
|
|
26797
26718
|
return !!text.AABBBounds.containsPoint(point);
|
|
26798
26719
|
}
|
|
26799
26720
|
};
|
|
26800
|
-
DefaultMathTextPicker = __decorate$
|
|
26721
|
+
DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
|
|
26801
26722
|
|
|
26802
26723
|
let loadTextPick$1 = !1;
|
|
26803
26724
|
const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26880,19 +26801,20 @@ class CanvasWrapEnableWH {
|
|
|
26880
26801
|
}
|
|
26881
26802
|
}
|
|
26882
26803
|
|
|
26883
|
-
var __decorate$
|
|
26804
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26884
26805
|
var d,
|
|
26885
26806
|
c = arguments.length,
|
|
26886
26807
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26887
26808
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26888
26809
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26889
26810
|
},
|
|
26890
|
-
__metadata$
|
|
26811
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
26891
26812
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26892
26813
|
};
|
|
26893
26814
|
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
26894
26815
|
const dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
|
|
26895
26816
|
canvasIdLists.forEach((id, i) => {
|
|
26817
|
+
if (canvasMap.has(id)) return;
|
|
26896
26818
|
const ctx = tt.createCanvasContext(id),
|
|
26897
26819
|
canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
|
|
26898
26820
|
ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
|
|
@@ -26969,7 +26891,7 @@ let FeishuEnvContribution = class extends BaseEnvContribution {
|
|
|
26969
26891
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
26970
26892
|
}
|
|
26971
26893
|
};
|
|
26972
|
-
FeishuEnvContribution = __decorate$
|
|
26894
|
+
FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
|
|
26973
26895
|
|
|
26974
26896
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
26975
26897
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -26984,7 +26906,7 @@ function initFeishuEnv() {
|
|
|
26984
26906
|
loadFeishuEnv(container);
|
|
26985
26907
|
}
|
|
26986
26908
|
|
|
26987
|
-
var __decorate$
|
|
26909
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26988
26910
|
var d,
|
|
26989
26911
|
c = arguments.length,
|
|
26990
26912
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27031,7 +26953,13 @@ let LynxContext2d = class extends BrowserContext2d {
|
|
|
27031
26953
|
measureText(text) {
|
|
27032
26954
|
let method = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : application.global.measureTextMethod;
|
|
27033
26955
|
this.setTransform(1, 0, 0, 1, 0, 0, !0, application.global.devicePixelRatio);
|
|
27034
|
-
return
|
|
26956
|
+
return {
|
|
26957
|
+
width: super.measureText(text, method).width,
|
|
26958
|
+
fontBoundingBoxDescent: void 0,
|
|
26959
|
+
fontBoundingBoxAscent: void 0,
|
|
26960
|
+
actualBoundingBoxAscent: void 0,
|
|
26961
|
+
actualBoundingBoxDescent: void 0
|
|
26962
|
+
};
|
|
27035
26963
|
}
|
|
27036
26964
|
createPattern(image, repetition) {
|
|
27037
26965
|
return null;
|
|
@@ -27045,16 +26973,16 @@ let LynxContext2d = class extends BrowserContext2d {
|
|
|
27045
26973
|
}));
|
|
27046
26974
|
}
|
|
27047
26975
|
};
|
|
27048
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
26976
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
|
|
27049
26977
|
|
|
27050
|
-
var __decorate$
|
|
26978
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27051
26979
|
var d,
|
|
27052
26980
|
c = arguments.length,
|
|
27053
26981
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27054
26982
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27055
26983
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27056
26984
|
},
|
|
27057
|
-
__metadata$
|
|
26985
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
27058
26986
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27059
26987
|
};
|
|
27060
26988
|
let LynxCanvas = class extends BaseCanvas {
|
|
@@ -27070,19 +26998,19 @@ let LynxCanvas = class extends BaseCanvas {
|
|
|
27070
26998
|
}
|
|
27071
26999
|
release() {}
|
|
27072
27000
|
};
|
|
27073
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
27001
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
|
|
27074
27002
|
|
|
27075
|
-
var __decorate$
|
|
27003
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27076
27004
|
var d,
|
|
27077
27005
|
c = arguments.length,
|
|
27078
27006
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27079
27007
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27080
27008
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27081
27009
|
},
|
|
27082
|
-
__metadata$
|
|
27010
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
27083
27011
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27084
27012
|
},
|
|
27085
|
-
__param$
|
|
27013
|
+
__param$l = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27086
27014
|
return function (target, key) {
|
|
27087
27015
|
decorator(target, key, paramIndex);
|
|
27088
27016
|
};
|
|
@@ -27220,21 +27148,21 @@ let LynxWindowHandlerContribution = class extends BaseWindowHandlerContribution
|
|
|
27220
27148
|
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();
|
|
27221
27149
|
}
|
|
27222
27150
|
};
|
|
27223
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
27151
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
27224
27152
|
const lynxWindowModule = new ContainerModule(bind => {
|
|
27225
27153
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
|
|
27226
27154
|
});
|
|
27227
27155
|
|
|
27228
27156
|
const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
27229
27157
|
|
|
27230
|
-
var __decorate$
|
|
27158
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27231
27159
|
var d,
|
|
27232
27160
|
c = arguments.length,
|
|
27233
27161
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27234
27162
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27235
27163
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27236
27164
|
},
|
|
27237
|
-
__metadata$
|
|
27165
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
27238
27166
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27239
27167
|
};
|
|
27240
27168
|
let ng = !1;
|
|
@@ -27344,7 +27272,7 @@ let LynxEnvContribution = class extends BaseEnvContribution {
|
|
|
27344
27272
|
}
|
|
27345
27273
|
release() {}
|
|
27346
27274
|
};
|
|
27347
|
-
LynxEnvContribution = __decorate$
|
|
27275
|
+
LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
|
|
27348
27276
|
|
|
27349
27277
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
27350
27278
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -27359,14 +27287,14 @@ function initLynxEnv() {
|
|
|
27359
27287
|
loadLynxEnv(container);
|
|
27360
27288
|
}
|
|
27361
27289
|
|
|
27362
|
-
var __decorate$
|
|
27290
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27363
27291
|
var d,
|
|
27364
27292
|
c = arguments.length,
|
|
27365
27293
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27366
27294
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27367
27295
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27368
27296
|
},
|
|
27369
|
-
__metadata$
|
|
27297
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
27370
27298
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27371
27299
|
};
|
|
27372
27300
|
let NodeContext2d = class extends BrowserContext2d {
|
|
@@ -27378,16 +27306,16 @@ let NodeContext2d = class extends BrowserContext2d {
|
|
|
27378
27306
|
}
|
|
27379
27307
|
release() {}
|
|
27380
27308
|
};
|
|
27381
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
27309
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
27382
27310
|
|
|
27383
|
-
var __decorate$
|
|
27311
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27384
27312
|
var d,
|
|
27385
27313
|
c = arguments.length,
|
|
27386
27314
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27387
27315
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27388
27316
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27389
27317
|
},
|
|
27390
|
-
__metadata$
|
|
27318
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
27391
27319
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27392
27320
|
};
|
|
27393
27321
|
let NodeCanvas = class extends BaseCanvas {
|
|
@@ -27401,21 +27329,21 @@ let NodeCanvas = class extends BaseCanvas {
|
|
|
27401
27329
|
this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
27402
27330
|
}
|
|
27403
27331
|
};
|
|
27404
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
27332
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
|
|
27405
27333
|
|
|
27406
27334
|
const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
27407
27335
|
|
|
27408
|
-
var __decorate$
|
|
27336
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27409
27337
|
var d,
|
|
27410
27338
|
c = arguments.length,
|
|
27411
27339
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27412
27340
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27413
27341
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27414
27342
|
},
|
|
27415
|
-
__metadata$
|
|
27343
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
27416
27344
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27417
27345
|
},
|
|
27418
|
-
__param$
|
|
27346
|
+
__param$k = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27419
27347
|
return function (target, key) {
|
|
27420
27348
|
decorator(target, key, paramIndex);
|
|
27421
27349
|
};
|
|
@@ -27506,12 +27434,12 @@ let NodeWindowHandlerContribution = class extends BaseWindowHandlerContribution
|
|
|
27506
27434
|
}
|
|
27507
27435
|
clearViewBox(color) {}
|
|
27508
27436
|
};
|
|
27509
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
27437
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
27510
27438
|
const nodeWindowModule = new ContainerModule(bind => {
|
|
27511
27439
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
27512
27440
|
});
|
|
27513
27441
|
|
|
27514
|
-
var __decorate$
|
|
27442
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27515
27443
|
var d,
|
|
27516
27444
|
c = arguments.length,
|
|
27517
27445
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27597,7 +27525,7 @@ let NodeEnvContribution = class extends BaseEnvContribution {
|
|
|
27597
27525
|
release() {}
|
|
27598
27526
|
createOffscreenCanvas(params) {}
|
|
27599
27527
|
};
|
|
27600
|
-
NodeEnvContribution = __decorate$
|
|
27528
|
+
NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
|
|
27601
27529
|
|
|
27602
27530
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
27603
27531
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -27611,7 +27539,7 @@ function initNodeEnv() {
|
|
|
27611
27539
|
loadNodeEnv(container);
|
|
27612
27540
|
}
|
|
27613
27541
|
|
|
27614
|
-
var __decorate$
|
|
27542
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27615
27543
|
var d,
|
|
27616
27544
|
c = arguments.length,
|
|
27617
27545
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27700,16 +27628,16 @@ let TaroContext2d = class extends BrowserContext2d {
|
|
|
27700
27628
|
return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
|
|
27701
27629
|
}
|
|
27702
27630
|
};
|
|
27703
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
27631
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
|
|
27704
27632
|
|
|
27705
|
-
var __decorate$
|
|
27633
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27706
27634
|
var d,
|
|
27707
27635
|
c = arguments.length,
|
|
27708
27636
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27709
27637
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27710
27638
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27711
27639
|
},
|
|
27712
|
-
__metadata$
|
|
27640
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
27713
27641
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27714
27642
|
};
|
|
27715
27643
|
let TaroCanvas = class extends BaseCanvas {
|
|
@@ -27721,21 +27649,21 @@ let TaroCanvas = class extends BaseCanvas {
|
|
|
27721
27649
|
}
|
|
27722
27650
|
release() {}
|
|
27723
27651
|
};
|
|
27724
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
27652
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
|
|
27725
27653
|
|
|
27726
27654
|
const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
27727
27655
|
|
|
27728
|
-
var __decorate$
|
|
27656
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27729
27657
|
var d,
|
|
27730
27658
|
c = arguments.length,
|
|
27731
27659
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27732
27660
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27733
27661
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27734
27662
|
},
|
|
27735
|
-
__metadata$
|
|
27663
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
27736
27664
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27737
27665
|
},
|
|
27738
|
-
__param$
|
|
27666
|
+
__param$j = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27739
27667
|
return function (target, key) {
|
|
27740
27668
|
decorator(target, key, paramIndex);
|
|
27741
27669
|
};
|
|
@@ -27881,19 +27809,19 @@ let TaroWindowHandlerContribution = class extends BaseWindowHandlerContribution
|
|
|
27881
27809
|
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();
|
|
27882
27810
|
}
|
|
27883
27811
|
};
|
|
27884
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
27812
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
27885
27813
|
const taroWindowModule = new ContainerModule(bind => {
|
|
27886
27814
|
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
27887
27815
|
});
|
|
27888
27816
|
|
|
27889
|
-
var __decorate$
|
|
27817
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27890
27818
|
var d,
|
|
27891
27819
|
c = arguments.length,
|
|
27892
27820
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27893
27821
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27894
27822
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27895
27823
|
},
|
|
27896
|
-
__metadata$
|
|
27824
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
27897
27825
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27898
27826
|
};
|
|
27899
27827
|
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
@@ -27990,7 +27918,7 @@ let TaroEnvContribution = class extends BaseEnvContribution {
|
|
|
27990
27918
|
}
|
|
27991
27919
|
release() {}
|
|
27992
27920
|
};
|
|
27993
|
-
TaroEnvContribution = __decorate$
|
|
27921
|
+
TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
|
|
27994
27922
|
|
|
27995
27923
|
const taroEnvModule = new ContainerModule(bind => {
|
|
27996
27924
|
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
@@ -28005,7 +27933,7 @@ function initTaroEnv() {
|
|
|
28005
27933
|
loadTaroEnv(container);
|
|
28006
27934
|
}
|
|
28007
27935
|
|
|
28008
|
-
var __decorate$
|
|
27936
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28009
27937
|
var d,
|
|
28010
27938
|
c = arguments.length,
|
|
28011
27939
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28018,16 +27946,16 @@ let WxContext2d = class extends BrowserContext2d {
|
|
|
28018
27946
|
return null;
|
|
28019
27947
|
}
|
|
28020
27948
|
};
|
|
28021
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
27949
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
|
|
28022
27950
|
|
|
28023
|
-
var __decorate$
|
|
27951
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28024
27952
|
var d,
|
|
28025
27953
|
c = arguments.length,
|
|
28026
27954
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28027
27955
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28028
27956
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28029
27957
|
},
|
|
28030
|
-
__metadata$
|
|
27958
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
28031
27959
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28032
27960
|
};
|
|
28033
27961
|
let WxCanvas = class extends BaseCanvas {
|
|
@@ -28039,21 +27967,21 @@ let WxCanvas = class extends BaseCanvas {
|
|
|
28039
27967
|
}
|
|
28040
27968
|
release() {}
|
|
28041
27969
|
};
|
|
28042
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
27970
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
|
|
28043
27971
|
|
|
28044
27972
|
const wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
28045
27973
|
|
|
28046
|
-
var __decorate$
|
|
27974
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28047
27975
|
var d,
|
|
28048
27976
|
c = arguments.length,
|
|
28049
27977
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28050
27978
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28051
27979
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28052
27980
|
},
|
|
28053
|
-
__metadata$
|
|
27981
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
28054
27982
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28055
27983
|
},
|
|
28056
|
-
__param$
|
|
27984
|
+
__param$i = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28057
27985
|
return function (target, key) {
|
|
28058
27986
|
decorator(target, key, paramIndex);
|
|
28059
27987
|
};
|
|
@@ -28190,19 +28118,19 @@ let WxWindowHandlerContribution = class extends BaseWindowHandlerContribution {
|
|
|
28190
28118
|
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();
|
|
28191
28119
|
}
|
|
28192
28120
|
};
|
|
28193
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
28121
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
28194
28122
|
const wxWindowModule = new ContainerModule(bind => {
|
|
28195
28123
|
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
28196
28124
|
});
|
|
28197
28125
|
|
|
28198
|
-
var __decorate$
|
|
28126
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28199
28127
|
var d,
|
|
28200
28128
|
c = arguments.length,
|
|
28201
28129
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28202
28130
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28203
28131
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28204
28132
|
},
|
|
28205
|
-
__metadata$
|
|
28133
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
28206
28134
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28207
28135
|
},
|
|
28208
28136
|
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28235,7 +28163,7 @@ function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCan
|
|
|
28235
28163
|
const dpr = wx.getSystemInfoSync().pixelRatio;
|
|
28236
28164
|
for (let i = 0; i < canvasIdLists.length; i++) {
|
|
28237
28165
|
const id = canvasIdLists[i];
|
|
28238
|
-
yield new Promise(resolve => {
|
|
28166
|
+
canvasMap.has(id) || (yield new Promise(resolve => {
|
|
28239
28167
|
let data = wx.createSelectorQuery();
|
|
28240
28168
|
component && (data = data.in(component)), data.select(`#${id}`).fields({
|
|
28241
28169
|
node: !0,
|
|
@@ -28247,7 +28175,7 @@ function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCan
|
|
|
28247
28175
|
height = res[0].height;
|
|
28248
28176
|
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
28249
28177
|
});
|
|
28250
|
-
});
|
|
28178
|
+
}));
|
|
28251
28179
|
}
|
|
28252
28180
|
});
|
|
28253
28181
|
}
|
|
@@ -28316,7 +28244,7 @@ let WxEnvContribution = class extends BaseEnvContribution {
|
|
|
28316
28244
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28317
28245
|
}
|
|
28318
28246
|
};
|
|
28319
|
-
WxEnvContribution = __decorate$
|
|
28247
|
+
WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
|
|
28320
28248
|
|
|
28321
28249
|
const wxEnvModule = new ContainerModule(bind => {
|
|
28322
28250
|
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
@@ -28344,7 +28272,7 @@ function initAllEnv() {
|
|
|
28344
28272
|
loadAllEnv(container);
|
|
28345
28273
|
}
|
|
28346
28274
|
|
|
28347
|
-
var __decorate$
|
|
28275
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28348
28276
|
var d,
|
|
28349
28277
|
c = arguments.length,
|
|
28350
28278
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28352,16 +28280,16 @@ var __decorate$o = undefined && undefined.__decorate || function (decorators, ta
|
|
|
28352
28280
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28353
28281
|
};
|
|
28354
28282
|
let TTContext2d = class extends FeishuContext2d {};
|
|
28355
|
-
TTContext2d.env = "tt", TTContext2d = __decorate$
|
|
28283
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
|
|
28356
28284
|
|
|
28357
|
-
var __decorate$
|
|
28285
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28358
28286
|
var d,
|
|
28359
28287
|
c = arguments.length,
|
|
28360
28288
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28361
28289
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28362
28290
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28363
28291
|
},
|
|
28364
|
-
__metadata$
|
|
28292
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
28365
28293
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28366
28294
|
};
|
|
28367
28295
|
let TTCanvas = class extends BaseCanvas {
|
|
@@ -28373,21 +28301,21 @@ let TTCanvas = class extends BaseCanvas {
|
|
|
28373
28301
|
}
|
|
28374
28302
|
release() {}
|
|
28375
28303
|
};
|
|
28376
|
-
TTCanvas.env = "tt", TTCanvas = __decorate$
|
|
28304
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
|
|
28377
28305
|
|
|
28378
28306
|
const ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
28379
28307
|
|
|
28380
|
-
var __decorate$
|
|
28308
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28381
28309
|
var d,
|
|
28382
28310
|
c = arguments.length,
|
|
28383
28311
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28384
28312
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28385
28313
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28386
28314
|
},
|
|
28387
|
-
__metadata$
|
|
28315
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
28388
28316
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28389
28317
|
},
|
|
28390
|
-
__param$
|
|
28318
|
+
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28391
28319
|
return function (target, key) {
|
|
28392
28320
|
decorator(target, key, paramIndex);
|
|
28393
28321
|
};
|
|
@@ -28523,19 +28451,19 @@ let TTWindowHandlerContribution = class extends BaseWindowHandlerContribution {
|
|
|
28523
28451
|
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();
|
|
28524
28452
|
}
|
|
28525
28453
|
};
|
|
28526
|
-
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$
|
|
28454
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
28527
28455
|
const ttWindowModule = new ContainerModule(bind => {
|
|
28528
28456
|
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
28529
28457
|
});
|
|
28530
28458
|
|
|
28531
|
-
var __decorate$
|
|
28459
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28532
28460
|
var d,
|
|
28533
28461
|
c = arguments.length,
|
|
28534
28462
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28535
28463
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28536
28464
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28537
28465
|
},
|
|
28538
|
-
__metadata$
|
|
28466
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
28539
28467
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28540
28468
|
},
|
|
28541
28469
|
__awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28568,7 +28496,7 @@ function makeUpCanvas(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanva
|
|
|
28568
28496
|
const dpr = tt.getSystemInfoSync().pixelRatio;
|
|
28569
28497
|
for (let i = 0; i < canvasIdLists.length; i++) {
|
|
28570
28498
|
const id = canvasIdLists[i];
|
|
28571
|
-
yield new Promise(resolve => {
|
|
28499
|
+
canvasMap.has(id) || (yield new Promise(resolve => {
|
|
28572
28500
|
let data = tt.createSelectorQuery();
|
|
28573
28501
|
component && (data = data.in(component)), data.select(`#${id}`).node().exec(res => {
|
|
28574
28502
|
const canvas = res[0].node,
|
|
@@ -28576,7 +28504,7 @@ function makeUpCanvas(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanva
|
|
|
28576
28504
|
height = canvas.height;
|
|
28577
28505
|
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
28578
28506
|
});
|
|
28579
|
-
});
|
|
28507
|
+
}));
|
|
28580
28508
|
}
|
|
28581
28509
|
});
|
|
28582
28510
|
}
|
|
@@ -28645,7 +28573,7 @@ let TTEnvContribution = class extends BaseEnvContribution {
|
|
|
28645
28573
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28646
28574
|
}
|
|
28647
28575
|
};
|
|
28648
|
-
TTEnvContribution = __decorate$
|
|
28576
|
+
TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
|
|
28649
28577
|
|
|
28650
28578
|
const ttEnvModule = new ContainerModule(bind => {
|
|
28651
28579
|
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
@@ -28660,7 +28588,7 @@ function initTTEnv() {
|
|
|
28660
28588
|
loadTTEnv(container);
|
|
28661
28589
|
}
|
|
28662
28590
|
|
|
28663
|
-
var __decorate$
|
|
28591
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28664
28592
|
var d,
|
|
28665
28593
|
c = arguments.length,
|
|
28666
28594
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28745,16 +28673,16 @@ let HarmonyContext2d = class extends BrowserContext2d {
|
|
|
28745
28673
|
}
|
|
28746
28674
|
draw() {}
|
|
28747
28675
|
};
|
|
28748
|
-
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$
|
|
28676
|
+
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
|
|
28749
28677
|
|
|
28750
|
-
var __decorate$
|
|
28678
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28751
28679
|
var d,
|
|
28752
28680
|
c = arguments.length,
|
|
28753
28681
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28754
28682
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28755
28683
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28756
28684
|
},
|
|
28757
|
-
__metadata$
|
|
28685
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
28758
28686
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28759
28687
|
};
|
|
28760
28688
|
let HarmonyCanvas = class extends BaseCanvas {
|
|
@@ -28767,19 +28695,19 @@ let HarmonyCanvas = class extends BaseCanvas {
|
|
|
28767
28695
|
resize(width, height) {}
|
|
28768
28696
|
release() {}
|
|
28769
28697
|
};
|
|
28770
|
-
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$
|
|
28698
|
+
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
|
|
28771
28699
|
|
|
28772
|
-
var __decorate$
|
|
28700
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28773
28701
|
var d,
|
|
28774
28702
|
c = arguments.length,
|
|
28775
28703
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28776
28704
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28777
28705
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28778
28706
|
},
|
|
28779
|
-
__metadata$
|
|
28707
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
28780
28708
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28781
28709
|
},
|
|
28782
|
-
__param$
|
|
28710
|
+
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28783
28711
|
return function (target, key) {
|
|
28784
28712
|
decorator(target, key, paramIndex);
|
|
28785
28713
|
};
|
|
@@ -28916,21 +28844,21 @@ let HarmonyWindowHandlerContribution = class extends BaseWindowHandlerContributi
|
|
|
28916
28844
|
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();
|
|
28917
28845
|
}
|
|
28918
28846
|
};
|
|
28919
|
-
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$
|
|
28847
|
+
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
|
|
28920
28848
|
const harmonyWindowModule = new ContainerModule(bind => {
|
|
28921
28849
|
bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
|
|
28922
28850
|
});
|
|
28923
28851
|
|
|
28924
28852
|
const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
|
|
28925
28853
|
|
|
28926
|
-
var __decorate$
|
|
28854
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28927
28855
|
var d,
|
|
28928
28856
|
c = arguments.length,
|
|
28929
28857
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28930
28858
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28931
28859
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28932
28860
|
},
|
|
28933
|
-
__metadata$
|
|
28861
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
28934
28862
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28935
28863
|
};
|
|
28936
28864
|
function createCanvas(width, height, id) {
|
|
@@ -29011,7 +28939,7 @@ let HarmonyEnvContribution = class extends BaseEnvContribution {
|
|
|
29011
28939
|
}
|
|
29012
28940
|
release() {}
|
|
29013
28941
|
};
|
|
29014
|
-
HarmonyEnvContribution = __decorate$
|
|
28942
|
+
HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
|
|
29015
28943
|
|
|
29016
28944
|
const harmonyEnvModule = new ContainerModule(bind => {
|
|
29017
28945
|
harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
|
|
@@ -29026,17 +28954,17 @@ function initHarmonyEnv() {
|
|
|
29026
28954
|
loadHarmonyEnv(container);
|
|
29027
28955
|
}
|
|
29028
28956
|
|
|
29029
|
-
var __decorate$
|
|
28957
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29030
28958
|
var d,
|
|
29031
28959
|
c = arguments.length,
|
|
29032
28960
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29033
28961
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29034
28962
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29035
28963
|
},
|
|
29036
|
-
__metadata$
|
|
28964
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
29037
28965
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29038
28966
|
},
|
|
29039
|
-
__param$
|
|
28967
|
+
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29040
28968
|
return function (target, key) {
|
|
29041
28969
|
decorator(target, key, paramIndex);
|
|
29042
28970
|
};
|
|
@@ -29046,24 +28974,24 @@ let DefaultCanvasArcPicker = class extends PickerBase {
|
|
|
29046
28974
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
29047
28975
|
}
|
|
29048
28976
|
};
|
|
29049
|
-
DefaultCanvasArcPicker = __decorate$
|
|
28977
|
+
DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
29050
28978
|
|
|
29051
28979
|
let loadArcPick = !1;
|
|
29052
28980
|
const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29053
28981
|
loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
|
|
29054
28982
|
});
|
|
29055
28983
|
|
|
29056
|
-
var __decorate$
|
|
28984
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29057
28985
|
var d,
|
|
29058
28986
|
c = arguments.length,
|
|
29059
28987
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29060
28988
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29061
28989
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29062
28990
|
},
|
|
29063
|
-
__metadata$
|
|
28991
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
29064
28992
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29065
28993
|
},
|
|
29066
|
-
__param$
|
|
28994
|
+
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29067
28995
|
return function (target, key) {
|
|
29068
28996
|
decorator(target, key, paramIndex);
|
|
29069
28997
|
};
|
|
@@ -29073,7 +29001,7 @@ let DefaultCanvasRectPicker = class extends RectPickerBase {
|
|
|
29073
29001
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29074
29002
|
}
|
|
29075
29003
|
};
|
|
29076
|
-
DefaultCanvasRectPicker = __decorate$
|
|
29004
|
+
DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
29077
29005
|
|
|
29078
29006
|
let loadRectPick = !1;
|
|
29079
29007
|
const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -29115,17 +29043,17 @@ class BaseLinePicker extends BaseRender {
|
|
|
29115
29043
|
}
|
|
29116
29044
|
}
|
|
29117
29045
|
|
|
29118
|
-
var __decorate$
|
|
29046
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29119
29047
|
var d,
|
|
29120
29048
|
c = arguments.length,
|
|
29121
29049
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29122
29050
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29123
29051
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29124
29052
|
},
|
|
29125
|
-
__metadata$
|
|
29053
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
29126
29054
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29127
29055
|
},
|
|
29128
|
-
__param$
|
|
29056
|
+
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29129
29057
|
return function (target, key) {
|
|
29130
29058
|
decorator(target, key, paramIndex);
|
|
29131
29059
|
};
|
|
@@ -29135,24 +29063,24 @@ let DefaultCanvasLinePicker = class extends BaseLinePicker {
|
|
|
29135
29063
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
29136
29064
|
}
|
|
29137
29065
|
};
|
|
29138
|
-
DefaultCanvasLinePicker = __decorate$
|
|
29066
|
+
DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
29139
29067
|
|
|
29140
29068
|
let loadLinePick = !1;
|
|
29141
29069
|
const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29142
29070
|
loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
|
|
29143
29071
|
});
|
|
29144
29072
|
|
|
29145
|
-
var __decorate$
|
|
29073
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29146
29074
|
var d,
|
|
29147
29075
|
c = arguments.length,
|
|
29148
29076
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29149
29077
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29150
29078
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29151
29079
|
},
|
|
29152
|
-
__metadata$
|
|
29080
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
29153
29081
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29154
29082
|
},
|
|
29155
|
-
__param$
|
|
29083
|
+
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29156
29084
|
return function (target, key) {
|
|
29157
29085
|
decorator(target, key, paramIndex);
|
|
29158
29086
|
};
|
|
@@ -29162,7 +29090,7 @@ let DefaultCanvasAreaPicker = class extends PickerBase {
|
|
|
29162
29090
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
29163
29091
|
}
|
|
29164
29092
|
};
|
|
29165
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
29093
|
+
DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
29166
29094
|
|
|
29167
29095
|
let loadAreaPick = !1;
|
|
29168
29096
|
const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -29196,17 +29124,17 @@ class Base3dPicker extends BaseRender {
|
|
|
29196
29124
|
}
|
|
29197
29125
|
}
|
|
29198
29126
|
|
|
29199
|
-
var __decorate$
|
|
29127
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29200
29128
|
var d,
|
|
29201
29129
|
c = arguments.length,
|
|
29202
29130
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29203
29131
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29204
29132
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29205
29133
|
},
|
|
29206
|
-
__metadata$
|
|
29134
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
29207
29135
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29208
29136
|
},
|
|
29209
|
-
__param$
|
|
29137
|
+
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29210
29138
|
return function (target, key) {
|
|
29211
29139
|
decorator(target, key, paramIndex);
|
|
29212
29140
|
};
|
|
@@ -29251,24 +29179,24 @@ let DefaultCanvasSymbolPicker = class extends Base3dPicker {
|
|
|
29251
29179
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29252
29180
|
}
|
|
29253
29181
|
};
|
|
29254
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
29182
|
+
DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
29255
29183
|
|
|
29256
29184
|
let loadSymbolPick = !1;
|
|
29257
29185
|
const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29258
29186
|
loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
|
|
29259
29187
|
});
|
|
29260
29188
|
|
|
29261
|
-
var __decorate$
|
|
29189
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29262
29190
|
var d,
|
|
29263
29191
|
c = arguments.length,
|
|
29264
29192
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29265
29193
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29266
29194
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29267
29195
|
},
|
|
29268
|
-
__metadata$
|
|
29196
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
29269
29197
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29270
29198
|
},
|
|
29271
|
-
__param$
|
|
29199
|
+
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29272
29200
|
return function (target, key) {
|
|
29273
29201
|
decorator(target, key, paramIndex);
|
|
29274
29202
|
};
|
|
@@ -29278,24 +29206,24 @@ let DefaultCanvasCirclePicker = class extends PickerBase {
|
|
|
29278
29206
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
29279
29207
|
}
|
|
29280
29208
|
};
|
|
29281
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
29209
|
+
DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
29282
29210
|
|
|
29283
29211
|
let loadCirclePick = !1;
|
|
29284
29212
|
const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29285
29213
|
loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
|
|
29286
29214
|
});
|
|
29287
29215
|
|
|
29288
|
-
var __decorate$
|
|
29216
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29289
29217
|
var d,
|
|
29290
29218
|
c = arguments.length,
|
|
29291
29219
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29292
29220
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29293
29221
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29294
29222
|
},
|
|
29295
|
-
__metadata$
|
|
29223
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
29296
29224
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29297
29225
|
},
|
|
29298
|
-
__param$
|
|
29226
|
+
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29299
29227
|
return function (target, key) {
|
|
29300
29228
|
decorator(target, key, paramIndex);
|
|
29301
29229
|
};
|
|
@@ -29348,24 +29276,24 @@ let DefaultCanvasTextPicker = class extends Base3dPicker {
|
|
|
29348
29276
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29349
29277
|
}
|
|
29350
29278
|
};
|
|
29351
|
-
DefaultCanvasTextPicker = __decorate$
|
|
29279
|
+
DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
29352
29280
|
|
|
29353
29281
|
let loadTextPick = !1;
|
|
29354
29282
|
const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29355
29283
|
loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
|
|
29356
29284
|
});
|
|
29357
29285
|
|
|
29358
|
-
var __decorate$
|
|
29286
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29359
29287
|
var d,
|
|
29360
29288
|
c = arguments.length,
|
|
29361
29289
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29362
29290
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29363
29291
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29364
29292
|
},
|
|
29365
|
-
__metadata$
|
|
29293
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
29366
29294
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29367
29295
|
},
|
|
29368
|
-
__param$
|
|
29296
|
+
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29369
29297
|
return function (target, key) {
|
|
29370
29298
|
decorator(target, key, paramIndex);
|
|
29371
29299
|
};
|
|
@@ -29375,24 +29303,24 @@ let DefaultCanvasPathPicker = class extends BaseLinePicker {
|
|
|
29375
29303
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
29376
29304
|
}
|
|
29377
29305
|
};
|
|
29378
|
-
DefaultCanvasPathPicker = __decorate$
|
|
29306
|
+
DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
29379
29307
|
|
|
29380
29308
|
let loadPathPick = !1;
|
|
29381
29309
|
const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29382
29310
|
loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
|
|
29383
29311
|
});
|
|
29384
29312
|
|
|
29385
|
-
var __decorate$
|
|
29313
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29386
29314
|
var d,
|
|
29387
29315
|
c = arguments.length,
|
|
29388
29316
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29389
29317
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29390
29318
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29391
29319
|
},
|
|
29392
|
-
__metadata$
|
|
29320
|
+
__metadata$7 = undefined && undefined.__metadata || function (k, v) {
|
|
29393
29321
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29394
29322
|
},
|
|
29395
|
-
__param$
|
|
29323
|
+
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29396
29324
|
return function (target, key) {
|
|
29397
29325
|
decorator(target, key, paramIndex);
|
|
29398
29326
|
};
|
|
@@ -29402,24 +29330,24 @@ let DefaultCanvasPolygonPicker = class extends PickerBase {
|
|
|
29402
29330
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
29403
29331
|
}
|
|
29404
29332
|
};
|
|
29405
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
29333
|
+
DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
29406
29334
|
|
|
29407
29335
|
let loadPolygonPick = !1;
|
|
29408
29336
|
const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29409
29337
|
loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
|
|
29410
29338
|
});
|
|
29411
29339
|
|
|
29412
|
-
var __decorate$
|
|
29340
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29413
29341
|
var d,
|
|
29414
29342
|
c = arguments.length,
|
|
29415
29343
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29416
29344
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29417
29345
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29418
29346
|
},
|
|
29419
|
-
__metadata$
|
|
29347
|
+
__metadata$6 = undefined && undefined.__metadata || function (k, v) {
|
|
29420
29348
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29421
29349
|
},
|
|
29422
|
-
__param$
|
|
29350
|
+
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29423
29351
|
return function (target, key) {
|
|
29424
29352
|
decorator(target, key, paramIndex);
|
|
29425
29353
|
};
|
|
@@ -29429,24 +29357,24 @@ let DefaultCanvasGlyphPicker = class extends GlyphPickerBase {
|
|
|
29429
29357
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29430
29358
|
}
|
|
29431
29359
|
};
|
|
29432
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
29360
|
+
DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
29433
29361
|
|
|
29434
29362
|
let loadGlyphPick = !1;
|
|
29435
29363
|
const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29436
29364
|
loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
|
|
29437
29365
|
});
|
|
29438
29366
|
|
|
29439
|
-
var __decorate$
|
|
29367
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29440
29368
|
var d,
|
|
29441
29369
|
c = arguments.length,
|
|
29442
29370
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29443
29371
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29444
29372
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29445
29373
|
},
|
|
29446
|
-
__metadata$
|
|
29374
|
+
__metadata$5 = undefined && undefined.__metadata || function (k, v) {
|
|
29447
29375
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29448
29376
|
},
|
|
29449
|
-
__param$
|
|
29377
|
+
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29450
29378
|
return function (target, key) {
|
|
29451
29379
|
decorator(target, key, paramIndex);
|
|
29452
29380
|
};
|
|
@@ -29459,14 +29387,14 @@ let DefaultCanvasRichTextPicker = class {
|
|
|
29459
29387
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
29460
29388
|
}
|
|
29461
29389
|
};
|
|
29462
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
29390
|
+
DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
29463
29391
|
|
|
29464
29392
|
let loadRichtextPick = !1;
|
|
29465
29393
|
const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29466
29394
|
loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
|
|
29467
29395
|
});
|
|
29468
29396
|
|
|
29469
|
-
var __decorate$
|
|
29397
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29470
29398
|
var d,
|
|
29471
29399
|
c = arguments.length,
|
|
29472
29400
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29484,24 +29412,24 @@ let DefaultCanvasImagePicker = class {
|
|
|
29484
29412
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
29485
29413
|
}
|
|
29486
29414
|
};
|
|
29487
|
-
DefaultCanvasImagePicker = __decorate$
|
|
29415
|
+
DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
|
|
29488
29416
|
|
|
29489
29417
|
let loadImagePick = !1;
|
|
29490
29418
|
const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29491
29419
|
loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
|
|
29492
29420
|
});
|
|
29493
29421
|
|
|
29494
|
-
var __decorate$
|
|
29422
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29495
29423
|
var d,
|
|
29496
29424
|
c = arguments.length,
|
|
29497
29425
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29498
29426
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29499
29427
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29500
29428
|
},
|
|
29501
|
-
__metadata$
|
|
29429
|
+
__metadata$4 = undefined && undefined.__metadata || function (k, v) {
|
|
29502
29430
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29503
29431
|
},
|
|
29504
|
-
__param$
|
|
29432
|
+
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29505
29433
|
return function (target, key) {
|
|
29506
29434
|
decorator(target, key, paramIndex);
|
|
29507
29435
|
};
|
|
@@ -29511,24 +29439,24 @@ let DefaultCanvasRect3dPicker = class extends Base3dPicker {
|
|
|
29511
29439
|
super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
|
|
29512
29440
|
}
|
|
29513
29441
|
};
|
|
29514
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
29442
|
+
DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
29515
29443
|
|
|
29516
29444
|
let loadRect3dPick = !1;
|
|
29517
29445
|
const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29518
29446
|
loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
|
|
29519
29447
|
});
|
|
29520
29448
|
|
|
29521
|
-
var __decorate$
|
|
29449
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29522
29450
|
var d,
|
|
29523
29451
|
c = arguments.length,
|
|
29524
29452
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29525
29453
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29526
29454
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29527
29455
|
},
|
|
29528
|
-
__metadata$
|
|
29456
|
+
__metadata$3 = undefined && undefined.__metadata || function (k, v) {
|
|
29529
29457
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29530
29458
|
},
|
|
29531
|
-
__param$
|
|
29459
|
+
__param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29532
29460
|
return function (target, key) {
|
|
29533
29461
|
decorator(target, key, paramIndex);
|
|
29534
29462
|
};
|
|
@@ -29538,24 +29466,24 @@ let DefaultCanvasArc3dPicker = class extends Base3dPicker {
|
|
|
29538
29466
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
|
|
29539
29467
|
}
|
|
29540
29468
|
};
|
|
29541
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
29469
|
+
DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
29542
29470
|
|
|
29543
29471
|
let loadArc3dPick = !1;
|
|
29544
29472
|
const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29545
29473
|
loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
|
|
29546
29474
|
});
|
|
29547
29475
|
|
|
29548
|
-
var __decorate$
|
|
29476
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29549
29477
|
var d,
|
|
29550
29478
|
c = arguments.length,
|
|
29551
29479
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29552
29480
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29553
29481
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29554
29482
|
},
|
|
29555
|
-
__metadata$
|
|
29483
|
+
__metadata$2 = undefined && undefined.__metadata || function (k, v) {
|
|
29556
29484
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29557
29485
|
},
|
|
29558
|
-
__param$
|
|
29486
|
+
__param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29559
29487
|
return function (target, key) {
|
|
29560
29488
|
decorator(target, key, paramIndex);
|
|
29561
29489
|
};
|
|
@@ -29565,15 +29493,747 @@ let DefaultCanvasPyramid3dPicker = class extends Base3dPicker {
|
|
|
29565
29493
|
super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
|
|
29566
29494
|
}
|
|
29567
29495
|
};
|
|
29568
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
29496
|
+
DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
29569
29497
|
|
|
29570
29498
|
let loadPyramid3dPick = !1;
|
|
29571
29499
|
const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29572
29500
|
loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
|
|
29573
29501
|
});
|
|
29574
29502
|
|
|
29503
|
+
var lib$1 = {};
|
|
29504
|
+
|
|
29505
|
+
var gif = {};
|
|
29506
|
+
|
|
29507
|
+
var lib = {};
|
|
29508
|
+
|
|
29509
|
+
Object.defineProperty(lib, "__esModule", {
|
|
29510
|
+
value: true
|
|
29511
|
+
});
|
|
29512
|
+
lib.loop = lib.conditional = lib.parse = void 0;
|
|
29513
|
+
var parse = function parse(stream, schema) {
|
|
29514
|
+
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
29515
|
+
var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
|
|
29516
|
+
if (Array.isArray(schema)) {
|
|
29517
|
+
schema.forEach(function (partSchema) {
|
|
29518
|
+
return parse(stream, partSchema, result, parent);
|
|
29519
|
+
});
|
|
29520
|
+
} else if (typeof schema === 'function') {
|
|
29521
|
+
schema(stream, result, parent, parse);
|
|
29522
|
+
} else {
|
|
29523
|
+
var key = Object.keys(schema)[0];
|
|
29524
|
+
if (Array.isArray(schema[key])) {
|
|
29525
|
+
parent[key] = {};
|
|
29526
|
+
parse(stream, schema[key], result, parent[key]);
|
|
29527
|
+
} else {
|
|
29528
|
+
parent[key] = schema[key](stream, result, parent, parse);
|
|
29529
|
+
}
|
|
29530
|
+
}
|
|
29531
|
+
return result;
|
|
29532
|
+
};
|
|
29533
|
+
lib.parse = parse;
|
|
29534
|
+
var conditional = function conditional(schema, conditionFunc) {
|
|
29535
|
+
return function (stream, result, parent, parse) {
|
|
29536
|
+
if (conditionFunc(stream, result, parent)) {
|
|
29537
|
+
parse(stream, schema, result, parent);
|
|
29538
|
+
}
|
|
29539
|
+
};
|
|
29540
|
+
};
|
|
29541
|
+
lib.conditional = conditional;
|
|
29542
|
+
var loop = function loop(schema, continueFunc) {
|
|
29543
|
+
return function (stream, result, parent, parse) {
|
|
29544
|
+
var arr = [];
|
|
29545
|
+
var lastStreamPos = stream.pos;
|
|
29546
|
+
while (continueFunc(stream, result, parent)) {
|
|
29547
|
+
var newParent = {};
|
|
29548
|
+
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
|
|
29549
|
+
// it falls into infinite recursion, null check to avoid the same
|
|
29550
|
+
|
|
29551
|
+
if (stream.pos === lastStreamPos) {
|
|
29552
|
+
break;
|
|
29553
|
+
}
|
|
29554
|
+
lastStreamPos = stream.pos;
|
|
29555
|
+
arr.push(newParent);
|
|
29556
|
+
}
|
|
29557
|
+
return arr;
|
|
29558
|
+
};
|
|
29559
|
+
};
|
|
29560
|
+
lib.loop = loop;
|
|
29561
|
+
|
|
29562
|
+
var uint8 = {};
|
|
29563
|
+
|
|
29564
|
+
Object.defineProperty(uint8, "__esModule", {
|
|
29565
|
+
value: true
|
|
29566
|
+
});
|
|
29567
|
+
uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
|
|
29568
|
+
|
|
29569
|
+
// Default stream and parsers for Uint8TypedArray data type
|
|
29570
|
+
var buildStream = function buildStream(uint8Data) {
|
|
29571
|
+
return {
|
|
29572
|
+
data: uint8Data,
|
|
29573
|
+
pos: 0
|
|
29574
|
+
};
|
|
29575
|
+
};
|
|
29576
|
+
uint8.buildStream = buildStream;
|
|
29577
|
+
var readByte = function readByte() {
|
|
29578
|
+
return function (stream) {
|
|
29579
|
+
return stream.data[stream.pos++];
|
|
29580
|
+
};
|
|
29581
|
+
};
|
|
29582
|
+
uint8.readByte = readByte;
|
|
29583
|
+
var peekByte = function peekByte() {
|
|
29584
|
+
var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
29585
|
+
return function (stream) {
|
|
29586
|
+
return stream.data[stream.pos + offset];
|
|
29587
|
+
};
|
|
29588
|
+
};
|
|
29589
|
+
uint8.peekByte = peekByte;
|
|
29590
|
+
var readBytes = function readBytes(length) {
|
|
29591
|
+
return function (stream) {
|
|
29592
|
+
return stream.data.subarray(stream.pos, stream.pos += length);
|
|
29593
|
+
};
|
|
29594
|
+
};
|
|
29595
|
+
uint8.readBytes = readBytes;
|
|
29596
|
+
var peekBytes = function peekBytes(length) {
|
|
29597
|
+
return function (stream) {
|
|
29598
|
+
return stream.data.subarray(stream.pos, stream.pos + length);
|
|
29599
|
+
};
|
|
29600
|
+
};
|
|
29601
|
+
uint8.peekBytes = peekBytes;
|
|
29602
|
+
var readString = function readString(length) {
|
|
29603
|
+
return function (stream) {
|
|
29604
|
+
return Array.from(readBytes(length)(stream)).map(function (value) {
|
|
29605
|
+
return String.fromCharCode(value);
|
|
29606
|
+
}).join('');
|
|
29607
|
+
};
|
|
29608
|
+
};
|
|
29609
|
+
uint8.readString = readString;
|
|
29610
|
+
var readUnsigned = function readUnsigned(littleEndian) {
|
|
29611
|
+
return function (stream) {
|
|
29612
|
+
var bytes = readBytes(2)(stream);
|
|
29613
|
+
return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
|
|
29614
|
+
};
|
|
29615
|
+
};
|
|
29616
|
+
uint8.readUnsigned = readUnsigned;
|
|
29617
|
+
var readArray = function readArray(byteSize, totalOrFunc) {
|
|
29618
|
+
return function (stream, result, parent) {
|
|
29619
|
+
var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
|
|
29620
|
+
var parser = readBytes(byteSize);
|
|
29621
|
+
var arr = new Array(total);
|
|
29622
|
+
for (var i = 0; i < total; i++) {
|
|
29623
|
+
arr[i] = parser(stream);
|
|
29624
|
+
}
|
|
29625
|
+
return arr;
|
|
29626
|
+
};
|
|
29627
|
+
};
|
|
29628
|
+
uint8.readArray = readArray;
|
|
29629
|
+
var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
|
|
29630
|
+
var result = 0;
|
|
29631
|
+
for (var i = 0; i < length; i++) {
|
|
29632
|
+
result += bits[startIndex + i] && Math.pow(2, length - i - 1);
|
|
29633
|
+
}
|
|
29634
|
+
return result;
|
|
29635
|
+
};
|
|
29636
|
+
var readBits = function readBits(schema) {
|
|
29637
|
+
return function (stream) {
|
|
29638
|
+
var _byte = readByte()(stream); // convert the byte to bit array
|
|
29639
|
+
|
|
29640
|
+
var bits = new Array(8);
|
|
29641
|
+
for (var i = 0; i < 8; i++) {
|
|
29642
|
+
bits[7 - i] = !!(_byte & 1 << i);
|
|
29643
|
+
} // convert the bit array to values based on the schema
|
|
29644
|
+
|
|
29645
|
+
return Object.keys(schema).reduce(function (res, key) {
|
|
29646
|
+
var def = schema[key];
|
|
29647
|
+
if (def.length) {
|
|
29648
|
+
res[key] = subBitsTotal(bits, def.index, def.length);
|
|
29649
|
+
} else {
|
|
29650
|
+
res[key] = bits[def.index];
|
|
29651
|
+
}
|
|
29652
|
+
return res;
|
|
29653
|
+
}, {});
|
|
29654
|
+
};
|
|
29655
|
+
};
|
|
29656
|
+
uint8.readBits = readBits;
|
|
29657
|
+
|
|
29658
|
+
(function (exports) {
|
|
29659
|
+
|
|
29660
|
+
Object.defineProperty(exports, "__esModule", {
|
|
29661
|
+
value: true
|
|
29662
|
+
});
|
|
29663
|
+
exports["default"] = void 0;
|
|
29664
|
+
var _ = lib;
|
|
29665
|
+
var _uint = uint8;
|
|
29666
|
+
|
|
29667
|
+
// a set of 0x00 terminated subblocks
|
|
29668
|
+
var subBlocksSchema = {
|
|
29669
|
+
blocks: function blocks(stream) {
|
|
29670
|
+
var terminator = 0x00;
|
|
29671
|
+
var chunks = [];
|
|
29672
|
+
var streamSize = stream.data.length;
|
|
29673
|
+
var total = 0;
|
|
29674
|
+
for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
|
|
29675
|
+
// size becomes undefined for some case when file is corrupted and terminator is not proper
|
|
29676
|
+
// null check to avoid recursion
|
|
29677
|
+
if (!size) break; // catch corrupted files with no terminator
|
|
29678
|
+
|
|
29679
|
+
if (stream.pos + size >= streamSize) {
|
|
29680
|
+
var availableSize = streamSize - stream.pos;
|
|
29681
|
+
chunks.push((0, _uint.readBytes)(availableSize)(stream));
|
|
29682
|
+
total += availableSize;
|
|
29683
|
+
break;
|
|
29684
|
+
}
|
|
29685
|
+
chunks.push((0, _uint.readBytes)(size)(stream));
|
|
29686
|
+
total += size;
|
|
29687
|
+
}
|
|
29688
|
+
var result = new Uint8Array(total);
|
|
29689
|
+
var offset = 0;
|
|
29690
|
+
for (var i = 0; i < chunks.length; i++) {
|
|
29691
|
+
result.set(chunks[i], offset);
|
|
29692
|
+
offset += chunks[i].length;
|
|
29693
|
+
}
|
|
29694
|
+
return result;
|
|
29695
|
+
}
|
|
29696
|
+
}; // global control extension
|
|
29697
|
+
|
|
29698
|
+
var gceSchema = (0, _.conditional)({
|
|
29699
|
+
gce: [{
|
|
29700
|
+
codes: (0, _uint.readBytes)(2)
|
|
29701
|
+
}, {
|
|
29702
|
+
byteSize: (0, _uint.readByte)()
|
|
29703
|
+
}, {
|
|
29704
|
+
extras: (0, _uint.readBits)({
|
|
29705
|
+
future: {
|
|
29706
|
+
index: 0,
|
|
29707
|
+
length: 3
|
|
29708
|
+
},
|
|
29709
|
+
disposal: {
|
|
29710
|
+
index: 3,
|
|
29711
|
+
length: 3
|
|
29712
|
+
},
|
|
29713
|
+
userInput: {
|
|
29714
|
+
index: 6
|
|
29715
|
+
},
|
|
29716
|
+
transparentColorGiven: {
|
|
29717
|
+
index: 7
|
|
29718
|
+
}
|
|
29719
|
+
})
|
|
29720
|
+
}, {
|
|
29721
|
+
delay: (0, _uint.readUnsigned)(true)
|
|
29722
|
+
}, {
|
|
29723
|
+
transparentColorIndex: (0, _uint.readByte)()
|
|
29724
|
+
}, {
|
|
29725
|
+
terminator: (0, _uint.readByte)()
|
|
29726
|
+
}]
|
|
29727
|
+
}, function (stream) {
|
|
29728
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29729
|
+
return codes[0] === 0x21 && codes[1] === 0xf9;
|
|
29730
|
+
}); // image pipeline block
|
|
29731
|
+
|
|
29732
|
+
var imageSchema = (0, _.conditional)({
|
|
29733
|
+
image: [{
|
|
29734
|
+
code: (0, _uint.readByte)()
|
|
29735
|
+
}, {
|
|
29736
|
+
descriptor: [{
|
|
29737
|
+
left: (0, _uint.readUnsigned)(true)
|
|
29738
|
+
}, {
|
|
29739
|
+
top: (0, _uint.readUnsigned)(true)
|
|
29740
|
+
}, {
|
|
29741
|
+
width: (0, _uint.readUnsigned)(true)
|
|
29742
|
+
}, {
|
|
29743
|
+
height: (0, _uint.readUnsigned)(true)
|
|
29744
|
+
}, {
|
|
29745
|
+
lct: (0, _uint.readBits)({
|
|
29746
|
+
exists: {
|
|
29747
|
+
index: 0
|
|
29748
|
+
},
|
|
29749
|
+
interlaced: {
|
|
29750
|
+
index: 1
|
|
29751
|
+
},
|
|
29752
|
+
sort: {
|
|
29753
|
+
index: 2
|
|
29754
|
+
},
|
|
29755
|
+
future: {
|
|
29756
|
+
index: 3,
|
|
29757
|
+
length: 2
|
|
29758
|
+
},
|
|
29759
|
+
size: {
|
|
29760
|
+
index: 5,
|
|
29761
|
+
length: 3
|
|
29762
|
+
}
|
|
29763
|
+
})
|
|
29764
|
+
}]
|
|
29765
|
+
}, (0, _.conditional)({
|
|
29766
|
+
lct: (0, _uint.readArray)(3, function (stream, result, parent) {
|
|
29767
|
+
return Math.pow(2, parent.descriptor.lct.size + 1);
|
|
29768
|
+
})
|
|
29769
|
+
}, function (stream, result, parent) {
|
|
29770
|
+
return parent.descriptor.lct.exists;
|
|
29771
|
+
}), {
|
|
29772
|
+
data: [{
|
|
29773
|
+
minCodeSize: (0, _uint.readByte)()
|
|
29774
|
+
}, subBlocksSchema]
|
|
29775
|
+
}]
|
|
29776
|
+
}, function (stream) {
|
|
29777
|
+
return (0, _uint.peekByte)()(stream) === 0x2c;
|
|
29778
|
+
}); // plain text block
|
|
29779
|
+
|
|
29780
|
+
var textSchema = (0, _.conditional)({
|
|
29781
|
+
text: [{
|
|
29782
|
+
codes: (0, _uint.readBytes)(2)
|
|
29783
|
+
}, {
|
|
29784
|
+
blockSize: (0, _uint.readByte)()
|
|
29785
|
+
}, {
|
|
29786
|
+
preData: function preData(stream, result, parent) {
|
|
29787
|
+
return (0, _uint.readBytes)(parent.text.blockSize)(stream);
|
|
29788
|
+
}
|
|
29789
|
+
}, subBlocksSchema]
|
|
29790
|
+
}, function (stream) {
|
|
29791
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29792
|
+
return codes[0] === 0x21 && codes[1] === 0x01;
|
|
29793
|
+
}); // application block
|
|
29794
|
+
|
|
29795
|
+
var applicationSchema = (0, _.conditional)({
|
|
29796
|
+
application: [{
|
|
29797
|
+
codes: (0, _uint.readBytes)(2)
|
|
29798
|
+
}, {
|
|
29799
|
+
blockSize: (0, _uint.readByte)()
|
|
29800
|
+
}, {
|
|
29801
|
+
id: function id(stream, result, parent) {
|
|
29802
|
+
return (0, _uint.readString)(parent.blockSize)(stream);
|
|
29803
|
+
}
|
|
29804
|
+
}, subBlocksSchema]
|
|
29805
|
+
}, function (stream) {
|
|
29806
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29807
|
+
return codes[0] === 0x21 && codes[1] === 0xff;
|
|
29808
|
+
}); // comment block
|
|
29809
|
+
|
|
29810
|
+
var commentSchema = (0, _.conditional)({
|
|
29811
|
+
comment: [{
|
|
29812
|
+
codes: (0, _uint.readBytes)(2)
|
|
29813
|
+
}, subBlocksSchema]
|
|
29814
|
+
}, function (stream) {
|
|
29815
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29816
|
+
return codes[0] === 0x21 && codes[1] === 0xfe;
|
|
29817
|
+
});
|
|
29818
|
+
var schema = [{
|
|
29819
|
+
header: [{
|
|
29820
|
+
signature: (0, _uint.readString)(3)
|
|
29821
|
+
}, {
|
|
29822
|
+
version: (0, _uint.readString)(3)
|
|
29823
|
+
}]
|
|
29824
|
+
}, {
|
|
29825
|
+
lsd: [{
|
|
29826
|
+
width: (0, _uint.readUnsigned)(true)
|
|
29827
|
+
}, {
|
|
29828
|
+
height: (0, _uint.readUnsigned)(true)
|
|
29829
|
+
}, {
|
|
29830
|
+
gct: (0, _uint.readBits)({
|
|
29831
|
+
exists: {
|
|
29832
|
+
index: 0
|
|
29833
|
+
},
|
|
29834
|
+
resolution: {
|
|
29835
|
+
index: 1,
|
|
29836
|
+
length: 3
|
|
29837
|
+
},
|
|
29838
|
+
sort: {
|
|
29839
|
+
index: 4
|
|
29840
|
+
},
|
|
29841
|
+
size: {
|
|
29842
|
+
index: 5,
|
|
29843
|
+
length: 3
|
|
29844
|
+
}
|
|
29845
|
+
})
|
|
29846
|
+
}, {
|
|
29847
|
+
backgroundColorIndex: (0, _uint.readByte)()
|
|
29848
|
+
}, {
|
|
29849
|
+
pixelAspectRatio: (0, _uint.readByte)()
|
|
29850
|
+
}]
|
|
29851
|
+
}, (0, _.conditional)({
|
|
29852
|
+
gct: (0, _uint.readArray)(3, function (stream, result) {
|
|
29853
|
+
return Math.pow(2, result.lsd.gct.size + 1);
|
|
29854
|
+
})
|
|
29855
|
+
}, function (stream, result) {
|
|
29856
|
+
return result.lsd.gct.exists;
|
|
29857
|
+
}),
|
|
29858
|
+
// content frames
|
|
29859
|
+
{
|
|
29860
|
+
frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
|
|
29861
|
+
var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
|
|
29862
|
+
// of an ext or image block to avoid infinite loops
|
|
29863
|
+
//var terminator = 0x3B;
|
|
29864
|
+
//return nextCode !== terminator;
|
|
29865
|
+
|
|
29866
|
+
return nextCode === 0x21 || nextCode === 0x2c;
|
|
29867
|
+
})
|
|
29868
|
+
}];
|
|
29869
|
+
var _default = schema;
|
|
29870
|
+
exports["default"] = _default;
|
|
29871
|
+
})(gif);
|
|
29872
|
+
|
|
29873
|
+
var deinterlace$1 = {};
|
|
29874
|
+
|
|
29875
|
+
Object.defineProperty(deinterlace$1, "__esModule", {
|
|
29876
|
+
value: true
|
|
29877
|
+
});
|
|
29878
|
+
deinterlace$1.deinterlace = void 0;
|
|
29879
|
+
|
|
29880
|
+
/**
|
|
29881
|
+
* Deinterlace function from https://github.com/shachaf/jsgif
|
|
29882
|
+
*/
|
|
29883
|
+
var deinterlace = function deinterlace(pixels, width) {
|
|
29884
|
+
var newPixels = new Array(pixels.length);
|
|
29885
|
+
var rows = pixels.length / width;
|
|
29886
|
+
var cpRow = function cpRow(toRow, fromRow) {
|
|
29887
|
+
var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
|
|
29888
|
+
newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
|
|
29889
|
+
}; // See appendix E.
|
|
29890
|
+
|
|
29891
|
+
var offsets = [0, 4, 2, 1];
|
|
29892
|
+
var steps = [8, 8, 4, 2];
|
|
29893
|
+
var fromRow = 0;
|
|
29894
|
+
for (var pass = 0; pass < 4; pass++) {
|
|
29895
|
+
for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
|
|
29896
|
+
cpRow(toRow, fromRow);
|
|
29897
|
+
fromRow++;
|
|
29898
|
+
}
|
|
29899
|
+
}
|
|
29900
|
+
return newPixels;
|
|
29901
|
+
};
|
|
29902
|
+
deinterlace$1.deinterlace = deinterlace;
|
|
29903
|
+
|
|
29904
|
+
var lzw$1 = {};
|
|
29905
|
+
|
|
29906
|
+
Object.defineProperty(lzw$1, "__esModule", {
|
|
29907
|
+
value: true
|
|
29908
|
+
});
|
|
29909
|
+
lzw$1.lzw = void 0;
|
|
29910
|
+
|
|
29911
|
+
/**
|
|
29912
|
+
* javascript port of java LZW decompression
|
|
29913
|
+
* Original java author url: https://gist.github.com/devunwired/4479231
|
|
29914
|
+
*/
|
|
29915
|
+
var lzw = function lzw(minCodeSize, data, pixelCount) {
|
|
29916
|
+
var MAX_STACK_SIZE = 4096;
|
|
29917
|
+
var nullCode = -1;
|
|
29918
|
+
var npix = pixelCount;
|
|
29919
|
+
var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
|
|
29920
|
+
var dstPixels = new Array(pixelCount);
|
|
29921
|
+
var prefix = new Array(MAX_STACK_SIZE);
|
|
29922
|
+
var suffix = new Array(MAX_STACK_SIZE);
|
|
29923
|
+
var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
|
|
29924
|
+
|
|
29925
|
+
data_size = minCodeSize;
|
|
29926
|
+
clear = 1 << data_size;
|
|
29927
|
+
end_of_information = clear + 1;
|
|
29928
|
+
available = clear + 2;
|
|
29929
|
+
old_code = nullCode;
|
|
29930
|
+
code_size = data_size + 1;
|
|
29931
|
+
code_mask = (1 << code_size) - 1;
|
|
29932
|
+
for (code = 0; code < clear; code++) {
|
|
29933
|
+
prefix[code] = 0;
|
|
29934
|
+
suffix[code] = code;
|
|
29935
|
+
} // Decode GIF pixel stream.
|
|
29936
|
+
|
|
29937
|
+
var datum, bits, first, top, pi, bi;
|
|
29938
|
+
datum = bits = first = top = pi = bi = 0;
|
|
29939
|
+
for (i = 0; i < npix;) {
|
|
29940
|
+
if (top === 0) {
|
|
29941
|
+
if (bits < code_size) {
|
|
29942
|
+
// get the next byte
|
|
29943
|
+
datum += data[bi] << bits;
|
|
29944
|
+
bits += 8;
|
|
29945
|
+
bi++;
|
|
29946
|
+
continue;
|
|
29947
|
+
} // Get the next code.
|
|
29948
|
+
|
|
29949
|
+
code = datum & code_mask;
|
|
29950
|
+
datum >>= code_size;
|
|
29951
|
+
bits -= code_size; // Interpret the code
|
|
29952
|
+
|
|
29953
|
+
if (code > available || code == end_of_information) {
|
|
29954
|
+
break;
|
|
29955
|
+
}
|
|
29956
|
+
if (code == clear) {
|
|
29957
|
+
// Reset decoder.
|
|
29958
|
+
code_size = data_size + 1;
|
|
29959
|
+
code_mask = (1 << code_size) - 1;
|
|
29960
|
+
available = clear + 2;
|
|
29961
|
+
old_code = nullCode;
|
|
29962
|
+
continue;
|
|
29963
|
+
}
|
|
29964
|
+
if (old_code == nullCode) {
|
|
29965
|
+
pixelStack[top++] = suffix[code];
|
|
29966
|
+
old_code = code;
|
|
29967
|
+
first = code;
|
|
29968
|
+
continue;
|
|
29969
|
+
}
|
|
29970
|
+
in_code = code;
|
|
29971
|
+
if (code == available) {
|
|
29972
|
+
pixelStack[top++] = first;
|
|
29973
|
+
code = old_code;
|
|
29974
|
+
}
|
|
29975
|
+
while (code > clear) {
|
|
29976
|
+
pixelStack[top++] = suffix[code];
|
|
29977
|
+
code = prefix[code];
|
|
29978
|
+
}
|
|
29979
|
+
first = suffix[code] & 0xff;
|
|
29980
|
+
pixelStack[top++] = first; // add a new string to the table, but only if space is available
|
|
29981
|
+
// if not, just continue with current table until a clear code is found
|
|
29982
|
+
// (deferred clear code implementation as per GIF spec)
|
|
29983
|
+
|
|
29984
|
+
if (available < MAX_STACK_SIZE) {
|
|
29985
|
+
prefix[available] = old_code;
|
|
29986
|
+
suffix[available] = first;
|
|
29987
|
+
available++;
|
|
29988
|
+
if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
|
|
29989
|
+
code_size++;
|
|
29990
|
+
code_mask += available;
|
|
29991
|
+
}
|
|
29992
|
+
}
|
|
29993
|
+
old_code = in_code;
|
|
29994
|
+
} // Pop a pixel off the pixel stack.
|
|
29995
|
+
|
|
29996
|
+
top--;
|
|
29997
|
+
dstPixels[pi++] = pixelStack[top];
|
|
29998
|
+
i++;
|
|
29999
|
+
}
|
|
30000
|
+
for (i = pi; i < npix; i++) {
|
|
30001
|
+
dstPixels[i] = 0; // clear missing pixels
|
|
30002
|
+
}
|
|
30003
|
+
|
|
30004
|
+
return dstPixels;
|
|
30005
|
+
};
|
|
30006
|
+
lzw$1.lzw = lzw;
|
|
30007
|
+
|
|
30008
|
+
Object.defineProperty(lib$1, "__esModule", {
|
|
30009
|
+
value: true
|
|
30010
|
+
});
|
|
30011
|
+
var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
|
|
30012
|
+
var _gif = _interopRequireDefault(gif);
|
|
30013
|
+
var _jsBinarySchemaParser = lib;
|
|
30014
|
+
var _uint = uint8;
|
|
30015
|
+
var _deinterlace = deinterlace$1;
|
|
30016
|
+
var _lzw = lzw$1;
|
|
30017
|
+
function _interopRequireDefault(obj) {
|
|
30018
|
+
return obj && obj.__esModule ? obj : {
|
|
30019
|
+
"default": obj
|
|
30020
|
+
};
|
|
30021
|
+
}
|
|
30022
|
+
var parseGIF = function parseGIF(arrayBuffer) {
|
|
30023
|
+
var byteData = new Uint8Array(arrayBuffer);
|
|
30024
|
+
return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
|
|
30025
|
+
};
|
|
30026
|
+
var parseGIF_1 = lib$1.parseGIF = parseGIF;
|
|
30027
|
+
var generatePatch = function generatePatch(image) {
|
|
30028
|
+
var totalPixels = image.pixels.length;
|
|
30029
|
+
var patchData = new Uint8ClampedArray(totalPixels * 4);
|
|
30030
|
+
for (var i = 0; i < totalPixels; i++) {
|
|
30031
|
+
var pos = i * 4;
|
|
30032
|
+
var colorIndex = image.pixels[i];
|
|
30033
|
+
var color = image.colorTable[colorIndex] || [0, 0, 0];
|
|
30034
|
+
patchData[pos] = color[0];
|
|
30035
|
+
patchData[pos + 1] = color[1];
|
|
30036
|
+
patchData[pos + 2] = color[2];
|
|
30037
|
+
patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
|
|
30038
|
+
}
|
|
30039
|
+
return patchData;
|
|
30040
|
+
};
|
|
30041
|
+
var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
|
|
30042
|
+
if (!frame.image) {
|
|
30043
|
+
console.warn('gif frame does not have associated image.');
|
|
30044
|
+
return;
|
|
30045
|
+
}
|
|
30046
|
+
var image = frame.image; // get the number of pixels
|
|
30047
|
+
|
|
30048
|
+
var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
|
|
30049
|
+
|
|
30050
|
+
var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
|
|
30051
|
+
|
|
30052
|
+
if (image.descriptor.lct.interlaced) {
|
|
30053
|
+
pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
|
|
30054
|
+
}
|
|
30055
|
+
var resultImage = {
|
|
30056
|
+
pixels: pixels,
|
|
30057
|
+
dims: {
|
|
30058
|
+
top: frame.image.descriptor.top,
|
|
30059
|
+
left: frame.image.descriptor.left,
|
|
30060
|
+
width: frame.image.descriptor.width,
|
|
30061
|
+
height: frame.image.descriptor.height
|
|
30062
|
+
}
|
|
30063
|
+
}; // color table
|
|
30064
|
+
|
|
30065
|
+
if (image.descriptor.lct && image.descriptor.lct.exists) {
|
|
30066
|
+
resultImage.colorTable = image.lct;
|
|
30067
|
+
} else {
|
|
30068
|
+
resultImage.colorTable = gct;
|
|
30069
|
+
} // add per frame relevant gce information
|
|
30070
|
+
|
|
30071
|
+
if (frame.gce) {
|
|
30072
|
+
resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
|
|
30073
|
+
|
|
30074
|
+
resultImage.disposalType = frame.gce.extras.disposal; // transparency
|
|
30075
|
+
|
|
30076
|
+
if (frame.gce.extras.transparentColorGiven) {
|
|
30077
|
+
resultImage.transparentIndex = frame.gce.transparentColorIndex;
|
|
30078
|
+
}
|
|
30079
|
+
} // create canvas usable imagedata if desired
|
|
30080
|
+
|
|
30081
|
+
if (buildImagePatch) {
|
|
30082
|
+
resultImage.patch = generatePatch(resultImage);
|
|
30083
|
+
}
|
|
30084
|
+
return resultImage;
|
|
30085
|
+
};
|
|
30086
|
+
lib$1.decompressFrame = decompressFrame;
|
|
30087
|
+
var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
|
|
30088
|
+
return parsedGif.frames.filter(function (f) {
|
|
30089
|
+
return f.image;
|
|
30090
|
+
}).map(function (f) {
|
|
30091
|
+
return decompressFrame(f, parsedGif.gct, buildImagePatches);
|
|
30092
|
+
});
|
|
30093
|
+
};
|
|
30094
|
+
decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
|
|
30095
|
+
|
|
30096
|
+
const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29575
30097
|
const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29576
30098
|
|
|
30099
|
+
class GifImage extends Image$1 {
|
|
30100
|
+
constructor(params) {
|
|
30101
|
+
super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
|
|
30102
|
+
}
|
|
30103
|
+
loadGif() {
|
|
30104
|
+
if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
|
|
30105
|
+
const gif = parseGIF_1(res),
|
|
30106
|
+
frames = decompressFrames_1(gif, !0);
|
|
30107
|
+
this.renderGIF(frames);
|
|
30108
|
+
}).catch(e => {
|
|
30109
|
+
console.error("Gif load error: ", e);
|
|
30110
|
+
});else if (this.attribute.gifImage instanceof ArrayBuffer) {
|
|
30111
|
+
const gif = parseGIF_1(this.attribute.gifImage),
|
|
30112
|
+
frames = decompressFrames_1(gif, !0);
|
|
30113
|
+
this.renderGIF(frames);
|
|
30114
|
+
}
|
|
30115
|
+
}
|
|
30116
|
+
renderGIF(frames) {
|
|
30117
|
+
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();
|
|
30118
|
+
const animation = this.animate();
|
|
30119
|
+
this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
|
|
30120
|
+
}
|
|
30121
|
+
renderFrame(context, x, y) {
|
|
30122
|
+
const frame = this.loadedFrames[this.frameIndex || 0];
|
|
30123
|
+
2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
|
|
30124
|
+
const diff = new Date().getTime() - this.lastTime;
|
|
30125
|
+
frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
|
|
30126
|
+
}
|
|
30127
|
+
drawPatch(frame) {
|
|
30128
|
+
const dims = frame.dims;
|
|
30129
|
+
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);
|
|
30130
|
+
}
|
|
30131
|
+
manipulate(context, x, y) {
|
|
30132
|
+
context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
|
|
30133
|
+
}
|
|
30134
|
+
setAttribute(key, value, forceUpdateTag, context) {
|
|
30135
|
+
super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
|
|
30136
|
+
}
|
|
30137
|
+
setAttributes(params, forceUpdateTag, context) {
|
|
30138
|
+
super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
|
|
30139
|
+
}
|
|
30140
|
+
}
|
|
30141
|
+
function createGifImage(attributes) {
|
|
30142
|
+
return new GifImage(attributes);
|
|
30143
|
+
}
|
|
30144
|
+
|
|
30145
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30146
|
+
var d,
|
|
30147
|
+
c = arguments.length,
|
|
30148
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30149
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30150
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30151
|
+
};
|
|
30152
|
+
let DefaultCanvasGifImagePicker = class {
|
|
30153
|
+
constructor() {
|
|
30154
|
+
this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
|
|
30155
|
+
}
|
|
30156
|
+
contains(gifImage, point, params) {
|
|
30157
|
+
const {
|
|
30158
|
+
pickContext: pickContext
|
|
30159
|
+
} = null != params ? params : {};
|
|
30160
|
+
return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
|
|
30161
|
+
}
|
|
30162
|
+
};
|
|
30163
|
+
DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
|
|
30164
|
+
|
|
30165
|
+
let loadGifImagePick = !1;
|
|
30166
|
+
const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
30167
|
+
loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
|
|
30168
|
+
});
|
|
30169
|
+
|
|
30170
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30171
|
+
var d,
|
|
30172
|
+
c = arguments.length,
|
|
30173
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30174
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30175
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30176
|
+
},
|
|
30177
|
+
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
30178
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30179
|
+
},
|
|
30180
|
+
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30181
|
+
return function (target, key) {
|
|
30182
|
+
decorator(target, key, paramIndex);
|
|
30183
|
+
};
|
|
30184
|
+
};
|
|
30185
|
+
let DefaultCanvasGifImageRender = class extends DefaultCanvasImageRender {
|
|
30186
|
+
constructor(imageRenderContribitions) {
|
|
30187
|
+
super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
|
|
30188
|
+
}
|
|
30189
|
+
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
30190
|
+
const imageAttribute = getTheme(image).image,
|
|
30191
|
+
{
|
|
30192
|
+
x: originX = imageAttribute.x,
|
|
30193
|
+
y: originY = imageAttribute.y,
|
|
30194
|
+
fillStrokeOrder = imageAttribute.fillStrokeOrder
|
|
30195
|
+
} = image.attribute,
|
|
30196
|
+
data = this.valid(image, imageAttribute, fillCb);
|
|
30197
|
+
if (!data) return;
|
|
30198
|
+
const {
|
|
30199
|
+
fVisible: fVisible,
|
|
30200
|
+
sVisible: sVisible,
|
|
30201
|
+
doFill: doFill,
|
|
30202
|
+
doStroke: doStroke
|
|
30203
|
+
} = data,
|
|
30204
|
+
_runFill = () => {
|
|
30205
|
+
doFill && fillCb && fillCb(context, image.attribute, imageAttribute);
|
|
30206
|
+
},
|
|
30207
|
+
_runStroke = () => {
|
|
30208
|
+
doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke()));
|
|
30209
|
+
};
|
|
30210
|
+
fillStrokeOrder ? (_runStroke(), context.save(), context.clip(), this.beforeRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb), _runFill(), context.restore()) : (context.save(), context.clip(), this.beforeRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb), _runFill(), context.restore(), _runStroke()), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
30211
|
+
}
|
|
30212
|
+
draw(image, renderService, drawContext) {
|
|
30213
|
+
const {
|
|
30214
|
+
context: context
|
|
30215
|
+
} = renderService.drawParams;
|
|
30216
|
+
if (!context) return;
|
|
30217
|
+
const imageAttribute = getTheme(image).image;
|
|
30218
|
+
this._draw(image, imageAttribute, !1, drawContext);
|
|
30219
|
+
}
|
|
30220
|
+
};
|
|
30221
|
+
DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
|
|
30222
|
+
class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
|
|
30223
|
+
constructor() {
|
|
30224
|
+
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
30225
|
+
}
|
|
30226
|
+
drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
30227
|
+
image.renderFrame && image.playing && image.renderFrame(context, x, y);
|
|
30228
|
+
}
|
|
30229
|
+
}
|
|
30230
|
+
const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
|
|
30231
|
+
|
|
30232
|
+
let loadGifImageModule = !1;
|
|
30233
|
+
const gifImageModule = new ContainerModule(bind => {
|
|
30234
|
+
loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
|
|
30235
|
+
});
|
|
30236
|
+
|
|
29577
30237
|
var lottie = {exports: {}};
|
|
29578
30238
|
|
|
29579
30239
|
(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:{}}
|
|
@@ -30475,7 +31135,7 @@ const registerWrapText = _registerWrapText;
|
|
|
30475
31135
|
|
|
30476
31136
|
const roughModule = _roughModule;
|
|
30477
31137
|
|
|
30478
|
-
const version = "0.22.0-vstory.
|
|
31138
|
+
const version = "0.22.0-vstory.12";
|
|
30479
31139
|
preLoadAllModule();
|
|
30480
31140
|
if (isBrowserEnv()) {
|
|
30481
31141
|
loadBrowserEnv(container);
|
|
@@ -30508,4 +31168,4 @@ registerReactAttributePlugin();
|
|
|
30508
31168
|
registerDirectionalLight();
|
|
30509
31169
|
registerOrthoCamera();
|
|
30510
31170
|
|
|
30511
|
-
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 };
|
|
31171
|
+
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_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, 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, getDefaultCharacterConfig, 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 };
|