@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.js
CHANGED
|
@@ -577,17 +577,17 @@
|
|
|
577
577
|
const VGlobal = Symbol.for("VGlobal");
|
|
578
578
|
const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
579
579
|
|
|
580
|
-
var __decorate$
|
|
580
|
+
var __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
581
581
|
var d,
|
|
582
582
|
c = arguments.length,
|
|
583
583
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
584
584
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
585
585
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
586
586
|
},
|
|
587
|
-
__metadata$
|
|
587
|
+
__metadata$1j = undefined && undefined.__metadata || function (k, v) {
|
|
588
588
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
589
589
|
},
|
|
590
|
-
__param$
|
|
590
|
+
__param$V = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
591
591
|
return function (target, key) {
|
|
592
592
|
decorator(target, key, paramIndex);
|
|
593
593
|
};
|
|
@@ -621,6 +621,12 @@
|
|
|
621
621
|
get env() {
|
|
622
622
|
return this._env;
|
|
623
623
|
}
|
|
624
|
+
get isImageAnonymous() {
|
|
625
|
+
return this._isImageAnonymous;
|
|
626
|
+
}
|
|
627
|
+
set isImageAnonymous(isImageAnonymous) {
|
|
628
|
+
this._isImageAnonymous = isImageAnonymous;
|
|
629
|
+
}
|
|
624
630
|
get devicePixelRatio() {
|
|
625
631
|
return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
|
|
626
632
|
}
|
|
@@ -655,7 +661,7 @@
|
|
|
655
661
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
656
662
|
}
|
|
657
663
|
constructor(contributions) {
|
|
658
|
-
this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
664
|
+
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
659
665
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
660
666
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
661
667
|
}
|
|
@@ -783,7 +789,7 @@
|
|
|
783
789
|
return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
|
|
784
790
|
}
|
|
785
791
|
};
|
|
786
|
-
exports.DefaultGlobal = __decorate$
|
|
792
|
+
exports.DefaultGlobal = __decorate$1L([injectable(), __param$V(0, inject(ContributionProvider)), __param$V(0, named(EnvContribution)), __metadata$1j("design:paramtypes", [Object])], exports.DefaultGlobal);
|
|
787
793
|
|
|
788
794
|
exports.MeasureModeEnum = void 0;
|
|
789
795
|
!function (MeasureModeEnum) {
|
|
@@ -3470,7 +3476,7 @@
|
|
|
3470
3476
|
default:
|
|
3471
3477
|
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 {
|
|
3472
3478
|
const x1 = this._x * (1 - this._t) + x * this._t;
|
|
3473
|
-
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);
|
|
3479
|
+
.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);
|
|
3474
3480
|
}
|
|
3475
3481
|
}
|
|
3476
3482
|
this._lastDefined = p.defined, this._x = x, this._y = y, this.lastPoint = p;
|
|
@@ -4300,6 +4306,7 @@
|
|
|
4300
4306
|
const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
|
|
4301
4307
|
editable: !1,
|
|
4302
4308
|
editOptions: null,
|
|
4309
|
+
ascentDescentMode: "actual",
|
|
4303
4310
|
width: 300,
|
|
4304
4311
|
height: 300,
|
|
4305
4312
|
ellipsis: !0,
|
|
@@ -4347,7 +4354,7 @@
|
|
|
4347
4354
|
class Application {}
|
|
4348
4355
|
const application = new Application();
|
|
4349
4356
|
|
|
4350
|
-
const parse = function () {
|
|
4357
|
+
const parse$1 = function () {
|
|
4351
4358
|
const tokens = {
|
|
4352
4359
|
linearGradient: /^(linear\-gradient)/i,
|
|
4353
4360
|
radialGradient: /^(radial\-gradient)/i,
|
|
@@ -4500,7 +4507,7 @@
|
|
|
4500
4507
|
}
|
|
4501
4508
|
static Parse(c) {
|
|
4502
4509
|
if (GradientParser.IsGradientStr(c)) try {
|
|
4503
|
-
const datum = parse(c)[0];
|
|
4510
|
+
const datum = parse$1(c)[0];
|
|
4504
4511
|
if (datum) {
|
|
4505
4512
|
if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
|
|
4506
4513
|
if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
|
|
@@ -4747,17 +4754,20 @@
|
|
|
4747
4754
|
return i + 1;
|
|
4748
4755
|
}
|
|
4749
4756
|
function measureTextCanvas(text, character) {
|
|
4757
|
+
let mode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "actual";
|
|
4750
4758
|
const measurement = application.graphicUtil.textMeasure.measureText(text, character),
|
|
4751
4759
|
result = {
|
|
4752
4760
|
ascent: 0,
|
|
4753
4761
|
height: 0,
|
|
4754
4762
|
descent: 0,
|
|
4755
4763
|
width: 0
|
|
4756
|
-
}
|
|
4757
|
-
|
|
4764
|
+
},
|
|
4765
|
+
ascent = "actual" === mode ? measurement.actualBoundingBoxAscent : measurement.fontBoundingBoxAscent,
|
|
4766
|
+
descent = "actual" === mode ? measurement.actualBoundingBoxDescent : measurement.fontBoundingBoxDescent;
|
|
4767
|
+
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;
|
|
4758
4768
|
}
|
|
4759
4769
|
|
|
4760
|
-
var __decorate$
|
|
4770
|
+
var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
4761
4771
|
var d,
|
|
4762
4772
|
c = arguments.length,
|
|
4763
4773
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5139,9 +5149,9 @@
|
|
|
5139
5149
|
return data.str = data.result, data.width += suffixWidth, data;
|
|
5140
5150
|
}
|
|
5141
5151
|
};
|
|
5142
|
-
ATextMeasure = __decorate$
|
|
5152
|
+
ATextMeasure = __decorate$1K([injectable()], ATextMeasure);
|
|
5143
5153
|
|
|
5144
|
-
var __decorate$
|
|
5154
|
+
var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5145
5155
|
var d,
|
|
5146
5156
|
c = arguments.length,
|
|
5147
5157
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5150,7 +5160,7 @@
|
|
|
5150
5160
|
};
|
|
5151
5161
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
5152
5162
|
exports.DefaultTextMeasureContribution = class DefaultTextMeasureContribution extends ATextMeasure {};
|
|
5153
|
-
exports.DefaultTextMeasureContribution = __decorate$
|
|
5163
|
+
exports.DefaultTextMeasureContribution = __decorate$1J([injectable()], exports.DefaultTextMeasureContribution);
|
|
5154
5164
|
|
|
5155
5165
|
const container = new Container();
|
|
5156
5166
|
|
|
@@ -5564,14 +5574,14 @@
|
|
|
5564
5574
|
}
|
|
5565
5575
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
5566
5576
|
|
|
5567
|
-
var __decorate$
|
|
5577
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5568
5578
|
var d,
|
|
5569
5579
|
c = arguments.length,
|
|
5570
5580
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5571
5581
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5572
5582
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5573
5583
|
},
|
|
5574
|
-
__metadata$
|
|
5584
|
+
__metadata$1i = undefined && undefined.__metadata || function (k, v) {
|
|
5575
5585
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5576
5586
|
};
|
|
5577
5587
|
const VWindow = Symbol.for("VWindow");
|
|
@@ -5708,19 +5718,19 @@
|
|
|
5708
5718
|
return this._handler.getTopLeft(baseWindow);
|
|
5709
5719
|
}
|
|
5710
5720
|
};
|
|
5711
|
-
exports.DefaultWindow = __decorate$
|
|
5721
|
+
exports.DefaultWindow = __decorate$1I([injectable(), __metadata$1i("design:paramtypes", [])], exports.DefaultWindow);
|
|
5712
5722
|
|
|
5713
|
-
var __decorate$
|
|
5723
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5714
5724
|
var d,
|
|
5715
5725
|
c = arguments.length,
|
|
5716
5726
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5717
5727
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5718
5728
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5719
5729
|
},
|
|
5720
|
-
__metadata$
|
|
5730
|
+
__metadata$1h = undefined && undefined.__metadata || function (k, v) {
|
|
5721
5731
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5722
5732
|
},
|
|
5723
|
-
__param$
|
|
5733
|
+
__param$U = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
5724
5734
|
return function (target, key) {
|
|
5725
5735
|
decorator(target, key, paramIndex);
|
|
5726
5736
|
};
|
|
@@ -5815,7 +5825,7 @@
|
|
|
5815
5825
|
return c.nativeCanvas ? c.nativeCanvas : null;
|
|
5816
5826
|
}
|
|
5817
5827
|
};
|
|
5818
|
-
exports.DefaultGraphicUtil = __decorate$
|
|
5828
|
+
exports.DefaultGraphicUtil = __decorate$1H([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(TextMeasureContribution)), __metadata$1h("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
|
|
5819
5829
|
var TransformMode;
|
|
5820
5830
|
!function (TransformMode) {
|
|
5821
5831
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -5873,7 +5883,7 @@
|
|
|
5873
5883
|
return this;
|
|
5874
5884
|
}
|
|
5875
5885
|
};
|
|
5876
|
-
exports.DefaultTransformUtil = __decorate$
|
|
5886
|
+
exports.DefaultTransformUtil = __decorate$1H([injectable(), __metadata$1h("design:paramtypes", [])], exports.DefaultTransformUtil);
|
|
5877
5887
|
|
|
5878
5888
|
const defaultThemeObj = {
|
|
5879
5889
|
arc: DefaultArcAttribute,
|
|
@@ -7386,7 +7396,7 @@
|
|
|
7386
7396
|
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Generator.GenAutoIncrementId();
|
|
7387
7397
|
let timeline = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTimeline;
|
|
7388
7398
|
let slience = arguments.length > 2 ? arguments[2] : undefined;
|
|
7389
|
-
this.id = id, this.timeline = timeline, this.status = exports.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;
|
|
7399
|
+
this.id = id, this.timeline = timeline || defaultTimeline, this.status = exports.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;
|
|
7390
7400
|
}
|
|
7391
7401
|
setTimeline(timeline) {
|
|
7392
7402
|
timeline !== this.timeline && (this.timeline.removeAnimate(this, !1), timeline.addAnimate(this));
|
|
@@ -7876,7 +7886,8 @@
|
|
|
7876
7886
|
}
|
|
7877
7887
|
onEnd() {}
|
|
7878
7888
|
onUpdate(end, ratio, out) {
|
|
7879
|
-
|
|
7889
|
+
var _a;
|
|
7890
|
+
!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));
|
|
7880
7891
|
}
|
|
7881
7892
|
}
|
|
7882
7893
|
var Direction;
|
|
@@ -9722,7 +9733,7 @@
|
|
|
9722
9733
|
}
|
|
9723
9734
|
static GetFile(url, type) {
|
|
9724
9735
|
let data = ResourceLoader.cache.get(url);
|
|
9725
|
-
return data ? "
|
|
9736
|
+
return data ? "fail" === data.loadState ? Promise.reject() : "init" === data.loadState || "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
|
|
9726
9737
|
type: type,
|
|
9727
9738
|
loadState: "init"
|
|
9728
9739
|
}, 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));
|
|
@@ -11176,14 +11187,14 @@
|
|
|
11176
11187
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
11177
11188
|
|
|
11178
11189
|
var DefaultLayerService_1,
|
|
11179
|
-
__decorate$
|
|
11190
|
+
__decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11180
11191
|
var d,
|
|
11181
11192
|
c = arguments.length,
|
|
11182
11193
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11183
11194
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11184
11195
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11185
11196
|
},
|
|
11186
|
-
__metadata$
|
|
11197
|
+
__metadata$1g = undefined && undefined.__metadata || function (k, v) {
|
|
11187
11198
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11188
11199
|
};
|
|
11189
11200
|
exports.DefaultLayerService = DefaultLayerService_1 = class {
|
|
@@ -11247,7 +11258,7 @@
|
|
|
11247
11258
|
this.layerMap.delete(stage);
|
|
11248
11259
|
}
|
|
11249
11260
|
};
|
|
11250
|
-
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
11261
|
+
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1G([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultLayerService);
|
|
11251
11262
|
|
|
11252
11263
|
var coreModule = new ContainerModule(bind => {
|
|
11253
11264
|
bind(VGlobal).to(exports.DefaultGlobal).inSingletonScope(), bind(VWindow).to(exports.DefaultWindow), bind(GraphicUtil).to(exports.DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(exports.DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(exports.DefaultLayerService).inSingletonScope();
|
|
@@ -11786,17 +11797,17 @@
|
|
|
11786
11797
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
11787
11798
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
11788
11799
|
|
|
11789
|
-
var __decorate$
|
|
11800
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11790
11801
|
var d,
|
|
11791
11802
|
c = arguments.length,
|
|
11792
11803
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11793
11804
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11794
11805
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11795
11806
|
},
|
|
11796
|
-
__metadata$
|
|
11807
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
11797
11808
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11798
11809
|
},
|
|
11799
|
-
__param$
|
|
11810
|
+
__param$T = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
11800
11811
|
return function (target, key) {
|
|
11801
11812
|
decorator(target, key, paramIndex);
|
|
11802
11813
|
};
|
|
@@ -12008,7 +12019,7 @@
|
|
|
12008
12019
|
};
|
|
12009
12020
|
}
|
|
12010
12021
|
};
|
|
12011
|
-
exports.DefaultGraphicService = __decorate$
|
|
12022
|
+
exports.DefaultGraphicService = __decorate$1F([injectable(), __param$T(0, inject(GraphicCreator$1)), __metadata$1f("design:paramtypes", [Object])], exports.DefaultGraphicService);
|
|
12012
12023
|
|
|
12013
12024
|
const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
|
|
12014
12025
|
const {
|
|
@@ -13446,7 +13457,7 @@
|
|
|
13446
13457
|
} = attribute,
|
|
13447
13458
|
b = aabbBounds;
|
|
13448
13459
|
return points.forEach(p => {
|
|
13449
|
-
!1 === p.defined && "
|
|
13460
|
+
!1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
|
|
13450
13461
|
}), b;
|
|
13451
13462
|
}
|
|
13452
13463
|
updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) {
|
|
@@ -13457,7 +13468,7 @@
|
|
|
13457
13468
|
b = aabbBounds;
|
|
13458
13469
|
return segments.forEach(s => {
|
|
13459
13470
|
s.points.forEach(p => {
|
|
13460
|
-
!1 === p.defined && "
|
|
13471
|
+
!1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
|
|
13461
13472
|
});
|
|
13462
13473
|
}), b;
|
|
13463
13474
|
}
|
|
@@ -13888,16 +13899,20 @@
|
|
|
13888
13899
|
}
|
|
13889
13900
|
|
|
13890
13901
|
function getFixedLRTB(left, right, top, bottom) {
|
|
13902
|
+
const leftInt = Math.round(left),
|
|
13903
|
+
topInt = Math.round(top),
|
|
13904
|
+
rightInt = Math.round(right),
|
|
13905
|
+
bottomInt = Math.round(bottom);
|
|
13891
13906
|
return {
|
|
13892
|
-
left:
|
|
13893
|
-
top:
|
|
13894
|
-
right:
|
|
13895
|
-
bottom:
|
|
13907
|
+
left: left > leftInt ? leftInt : leftInt - .5,
|
|
13908
|
+
top: top > topInt ? topInt : topInt - .5,
|
|
13909
|
+
right: rightInt > right ? rightInt : rightInt + .5,
|
|
13910
|
+
bottom: bottomInt > bottom ? bottomInt : bottomInt + .5
|
|
13896
13911
|
};
|
|
13897
13912
|
}
|
|
13898
13913
|
class Paragraph {
|
|
13899
|
-
constructor(text, newLine, character) {
|
|
13900
|
-
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
|
|
13914
|
+
constructor(text, newLine, character, ascentDescentMode) {
|
|
13915
|
+
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic", this.ascentDescentMode = ascentDescentMode;
|
|
13901
13916
|
const lineHeight = calculateLineHeight(character.lineHeight, this.fontSize);
|
|
13902
13917
|
this.lineHeight = "number" == typeof lineHeight ? lineHeight > this.fontSize ? lineHeight : this.fontSize : Math.floor(1.2 * this.fontSize), this.height = this.lineHeight;
|
|
13903
13918
|
const {
|
|
@@ -13905,7 +13920,7 @@
|
|
|
13905
13920
|
height: height,
|
|
13906
13921
|
descent: descent,
|
|
13907
13922
|
width: width
|
|
13908
|
-
} = measureTextCanvas(text, character);
|
|
13923
|
+
} = measureTextCanvas(text, character, this.ascentDescentMode);
|
|
13909
13924
|
let halfDetaHeight = 0,
|
|
13910
13925
|
deltaAscent = 0,
|
|
13911
13926
|
deltaDescent = 0;
|
|
@@ -13914,7 +13929,7 @@
|
|
|
13914
13929
|
updateWidth() {
|
|
13915
13930
|
const {
|
|
13916
13931
|
width: width
|
|
13917
|
-
} = measureTextCanvas(this.text, this.character);
|
|
13932
|
+
} = measureTextCanvas(this.text, this.character, this.ascentDescentMode);
|
|
13918
13933
|
this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
|
|
13919
13934
|
}
|
|
13920
13935
|
drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
@@ -13931,16 +13946,24 @@
|
|
|
13931
13946
|
if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
|
|
13932
13947
|
const {
|
|
13933
13948
|
width: width
|
|
13934
|
-
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
13949
|
+
} = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
|
|
13935
13950
|
"vertical" === direction || (left -= this.ellipsisWidth - width);
|
|
13936
13951
|
}
|
|
13937
13952
|
}
|
|
13938
13953
|
}
|
|
13954
|
+
switch (this.character.script) {
|
|
13955
|
+
case "super":
|
|
13956
|
+
baseline -= this.ascent * (1 / 3);
|
|
13957
|
+
break;
|
|
13958
|
+
case "sub":
|
|
13959
|
+
baseline += this.descent / 2;
|
|
13960
|
+
}
|
|
13961
|
+
"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);
|
|
13962
|
+
const fillStyle = ctx.fillStyle,
|
|
13963
|
+
globalAlpha = ctx.globalAlpha;
|
|
13964
|
+
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
|
|
13939
13965
|
const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
|
|
13940
|
-
|
|
13941
|
-
fillStyle: this.character.background,
|
|
13942
|
-
globalAlpha: this.character.backgroundOpacity
|
|
13943
|
-
});
|
|
13966
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
|
|
13944
13967
|
}
|
|
13945
13968
|
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13946
13969
|
let baseline = top + ascent,
|
|
@@ -13955,7 +13978,7 @@
|
|
|
13955
13978
|
if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
|
|
13956
13979
|
const {
|
|
13957
13980
|
width: width
|
|
13958
|
-
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
13981
|
+
} = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
|
|
13959
13982
|
"vertical" === direction || (left -= this.ellipsisWidth - width);
|
|
13960
13983
|
}
|
|
13961
13984
|
}
|
|
@@ -13975,21 +13998,21 @@
|
|
|
13975
13998
|
if (this.character.underline) {
|
|
13976
13999
|
const top = 1 + baseline,
|
|
13977
14000
|
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13978
|
-
ctx.fillRect(lrtb.left,
|
|
14001
|
+
ctx.fillRect(lrtb.left, 1 + baseline, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
|
|
13979
14002
|
}
|
|
13980
14003
|
if (this.character.lineThrough) {
|
|
13981
14004
|
const top = 1 + baseline - this.ascent / 2,
|
|
13982
14005
|
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13983
|
-
ctx.fillRect(lrtb.left,
|
|
14006
|
+
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);
|
|
13984
14007
|
}
|
|
13985
14008
|
} else if ("underline" === this.character.textDecoration) {
|
|
13986
14009
|
const top = 1 + baseline,
|
|
13987
14010
|
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13988
|
-
ctx.fillRect(lrtb.left,
|
|
14011
|
+
ctx.fillRect(lrtb.left, 1 + baseline, lrtb.right - lrtb.left, this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1);
|
|
13989
14012
|
} else if ("line-through" === this.character.textDecoration) {
|
|
13990
14013
|
const top = 1 + baseline - this.ascent / 2,
|
|
13991
14014
|
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13992
|
-
ctx.fillRect(lrtb.left,
|
|
14015
|
+
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);
|
|
13993
14016
|
}
|
|
13994
14017
|
"vertical" === direction && ctx.restore();
|
|
13995
14018
|
}
|
|
@@ -14003,7 +14026,7 @@
|
|
|
14003
14026
|
text = text.slice(0, index), text += this.ellipsisStr;
|
|
14004
14027
|
const {
|
|
14005
14028
|
width: measureWidth
|
|
14006
|
-
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
14029
|
+
} = measureTextCanvas(this.text.slice(index), this.character, this.ascentDescentMode);
|
|
14007
14030
|
return width + this.ellipsisWidth - measureWidth;
|
|
14008
14031
|
}
|
|
14009
14032
|
return width;
|
|
@@ -14012,7 +14035,7 @@
|
|
|
14012
14035
|
function seperateParagraph(paragraph, index) {
|
|
14013
14036
|
const text1 = paragraph.text.slice(0, index),
|
|
14014
14037
|
text2 = paragraph.text.slice(index);
|
|
14015
|
-
return [new Paragraph(text1, paragraph.newLine, paragraph.character), new Paragraph(text2, !0, paragraph.character)];
|
|
14038
|
+
return [new Paragraph(text1, paragraph.newLine, paragraph.character, paragraph.ascentDescentMode), new Paragraph(text2, !0, paragraph.character, paragraph.ascentDescentMode)];
|
|
14016
14039
|
}
|
|
14017
14040
|
|
|
14018
14041
|
const IMAGE_UPDATE_TAG_KEY = ["width", "height", "image", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
@@ -14201,7 +14224,7 @@
|
|
|
14201
14224
|
paragraph.ellipsisStr = ellipsis;
|
|
14202
14225
|
const {
|
|
14203
14226
|
width: width
|
|
14204
|
-
} = measureTextCanvas(ellipsis, paragraph.character),
|
|
14227
|
+
} = measureTextCanvas(ellipsis, paragraph.character, paragraph.ascentDescentMode),
|
|
14205
14228
|
ellipsisWidth = width || 0;
|
|
14206
14229
|
if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
|
|
14207
14230
|
lastLine && (paragraph.ellipsis = "add");
|
|
@@ -14214,19 +14237,8 @@
|
|
|
14214
14237
|
paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
|
|
14215
14238
|
}
|
|
14216
14239
|
}
|
|
14217
|
-
let fillStyle = "",
|
|
14218
|
-
globalAlpha = -1,
|
|
14219
|
-
currBgList = [];
|
|
14220
|
-
const bgList = [currBgList];
|
|
14221
14240
|
this.paragraphs.forEach((paragraph, index) => {
|
|
14222
|
-
|
|
14223
|
-
const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14224
|
-
data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
|
|
14225
|
-
}), bgList.forEach(bg => {
|
|
14226
|
-
if (0 === bg.length) return;
|
|
14227
|
-
const data = bg[0],
|
|
14228
|
-
end = bg[bg.length - 1];
|
|
14229
|
-
ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
|
|
14241
|
+
paragraph instanceof RichTextIcon || paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14230
14242
|
}), this.paragraphs.forEach((paragraph, index) => {
|
|
14231
14243
|
if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
|
|
14232
14244
|
x: x + paragraph._x,
|
|
@@ -14248,7 +14260,7 @@
|
|
|
14248
14260
|
if (paragraph instanceof RichTextIcon) break;
|
|
14249
14261
|
const {
|
|
14250
14262
|
width: width
|
|
14251
|
-
} = measureTextCanvas(ellipsis, paragraph.character),
|
|
14263
|
+
} = measureTextCanvas(ellipsis, paragraph.character, paragraph.ascentDescentMode),
|
|
14252
14264
|
ellipsisWidth = width || 0;
|
|
14253
14265
|
if (ellipsisWidth <= this.blankWidth + otherParagraphWidth) {
|
|
14254
14266
|
paragraph.ellipsis = "add", paragraph.ellipsisWidth = ellipsisWidth;
|
|
@@ -14389,13 +14401,7 @@
|
|
|
14389
14401
|
}
|
|
14390
14402
|
return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
|
|
14391
14403
|
}
|
|
14392
|
-
static splitEmoji(text) {
|
|
14393
|
-
return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
|
|
14394
|
-
}
|
|
14395
14404
|
static splitText(text) {
|
|
14396
|
-
try {
|
|
14397
|
-
return this.splitEmoji(text);
|
|
14398
|
-
} catch (e) {}
|
|
14399
14405
|
return Array.from(text);
|
|
14400
14406
|
}
|
|
14401
14407
|
static TransformTextConfig2SingleCharacter(textConfig) {
|
|
@@ -14521,7 +14527,8 @@
|
|
|
14521
14527
|
layoutDirection: layoutDirection,
|
|
14522
14528
|
singleLine: singleLine,
|
|
14523
14529
|
disableAutoWrapLine: disableAutoWrapLine,
|
|
14524
|
-
editable: editable
|
|
14530
|
+
editable: editable,
|
|
14531
|
+
ascentDescentMode: ascentDescentMode
|
|
14525
14532
|
} = this.attribute;
|
|
14526
14533
|
let {
|
|
14527
14534
|
textConfig: _tc = []
|
|
@@ -14544,8 +14551,8 @@
|
|
|
14544
14551
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
14545
14552
|
if (isNumber$1(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
14546
14553
|
const textParts = richTextConfig.text.split("\n");
|
|
14547
|
-
for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j], 0 !== j, richTextConfig));
|
|
14548
|
-
} else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig));
|
|
14554
|
+
for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j], 0 !== j, richTextConfig, ascentDescentMode));
|
|
14555
|
+
} else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig, ascentDescentMode));
|
|
14549
14556
|
}
|
|
14550
14557
|
const maxWidthFinite = "number" == typeof maxWidth && Number.isFinite(maxWidth) && maxWidth > 0,
|
|
14551
14558
|
maxHeightFinite = "number" == typeof maxHeight && Number.isFinite(maxHeight) && maxHeight > 0,
|
|
@@ -15409,17 +15416,17 @@
|
|
|
15409
15416
|
}
|
|
15410
15417
|
}
|
|
15411
15418
|
|
|
15412
|
-
var __decorate$
|
|
15419
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15413
15420
|
var d,
|
|
15414
15421
|
c = arguments.length,
|
|
15415
15422
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
15416
15423
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
15417
15424
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15418
15425
|
},
|
|
15419
|
-
__metadata$
|
|
15426
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
15420
15427
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15421
15428
|
},
|
|
15422
|
-
__param$
|
|
15429
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
15423
15430
|
return function (target, key) {
|
|
15424
15431
|
decorator(target, key, paramIndex);
|
|
15425
15432
|
};
|
|
@@ -15516,7 +15523,7 @@
|
|
|
15516
15523
|
});
|
|
15517
15524
|
}
|
|
15518
15525
|
};
|
|
15519
|
-
exports.DefaultBaseInteractiveRenderContribution = __decorate$
|
|
15526
|
+
exports.DefaultBaseInteractiveRenderContribution = __decorate$1E([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(InteractiveSubRenderContribution)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
|
|
15520
15527
|
|
|
15521
15528
|
function formatRatio(ratio) {
|
|
15522
15529
|
return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
|
|
@@ -15864,7 +15871,7 @@
|
|
|
15864
15871
|
return !edgeCb && path.closePath(), path;
|
|
15865
15872
|
}
|
|
15866
15873
|
|
|
15867
|
-
var __decorate$
|
|
15874
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15868
15875
|
var d,
|
|
15869
15876
|
c = arguments.length,
|
|
15870
15877
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15929,7 +15936,7 @@
|
|
|
15929
15936
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
15930
15937
|
}
|
|
15931
15938
|
};
|
|
15932
|
-
exports.SplitRectBeforeRenderContribution = __decorate$
|
|
15939
|
+
exports.SplitRectBeforeRenderContribution = __decorate$1D([injectable()], exports.SplitRectBeforeRenderContribution);
|
|
15933
15940
|
exports.SplitRectAfterRenderContribution = class SplitRectAfterRenderContribution {
|
|
15934
15941
|
constructor() {
|
|
15935
15942
|
this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -15966,7 +15973,7 @@
|
|
|
15966
15973
|
}
|
|
15967
15974
|
}
|
|
15968
15975
|
};
|
|
15969
|
-
exports.SplitRectAfterRenderContribution = __decorate$
|
|
15976
|
+
exports.SplitRectAfterRenderContribution = __decorate$1D([injectable()], exports.SplitRectAfterRenderContribution);
|
|
15970
15977
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
15971
15978
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15972
15979
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -15975,8 +15982,8 @@
|
|
|
15975
15982
|
constructor() {
|
|
15976
15983
|
super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15977
15984
|
}
|
|
15978
|
-
drawShape(
|
|
15979
|
-
return super.drawShape(
|
|
15985
|
+
drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15986
|
+
return super.drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15980
15987
|
}
|
|
15981
15988
|
}
|
|
15982
15989
|
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
@@ -16071,17 +16078,17 @@
|
|
|
16071
16078
|
}
|
|
16072
16079
|
}
|
|
16073
16080
|
|
|
16074
|
-
var __decorate$
|
|
16081
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16075
16082
|
var d,
|
|
16076
16083
|
c = arguments.length,
|
|
16077
16084
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16078
16085
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16079
16086
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16080
16087
|
},
|
|
16081
|
-
__metadata$
|
|
16088
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
16082
16089
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16083
16090
|
},
|
|
16084
|
-
__param$
|
|
16091
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16085
16092
|
return function (target, key) {
|
|
16086
16093
|
decorator(target, key, paramIndex);
|
|
16087
16094
|
};
|
|
@@ -16245,19 +16252,19 @@
|
|
|
16245
16252
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
16246
16253
|
}
|
|
16247
16254
|
};
|
|
16248
|
-
exports.DefaultCanvasArcRender = __decorate$
|
|
16255
|
+
exports.DefaultCanvasArcRender = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(ArcRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
|
|
16249
16256
|
|
|
16250
|
-
var __decorate$
|
|
16257
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16251
16258
|
var d,
|
|
16252
16259
|
c = arguments.length,
|
|
16253
16260
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16254
16261
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16255
16262
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16256
16263
|
},
|
|
16257
|
-
__metadata$
|
|
16264
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
16258
16265
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16259
16266
|
},
|
|
16260
|
-
__param$
|
|
16267
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16261
16268
|
return function (target, key) {
|
|
16262
16269
|
decorator(target, key, paramIndex);
|
|
16263
16270
|
};
|
|
@@ -16298,7 +16305,7 @@
|
|
|
16298
16305
|
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
16299
16306
|
}
|
|
16300
16307
|
};
|
|
16301
|
-
exports.DefaultCanvasCircleRender = __decorate$
|
|
16308
|
+
exports.DefaultCanvasCircleRender = __decorate$1B([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(CircleRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
|
|
16302
16309
|
|
|
16303
16310
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
16304
16311
|
if (!curve.p1) return;
|
|
@@ -16422,7 +16429,7 @@
|
|
|
16422
16429
|
});
|
|
16423
16430
|
}
|
|
16424
16431
|
|
|
16425
|
-
var __decorate$
|
|
16432
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16426
16433
|
var d,
|
|
16427
16434
|
c = arguments.length,
|
|
16428
16435
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16438,7 +16445,7 @@
|
|
|
16438
16445
|
this._draw(line, lineAttribute, !1, drawContext, params);
|
|
16439
16446
|
}
|
|
16440
16447
|
drawSegmentItem(context, cache, fill, stroke, fillOpacity, strokeOpacity, attribute, defaultAttribute, clipRange, clipRangeByDimension, offsetX, offsetY, line, fillCb, strokeCb) {
|
|
16441
|
-
var _a
|
|
16448
|
+
var _a;
|
|
16442
16449
|
if (!cache) return;
|
|
16443
16450
|
context.beginPath();
|
|
16444
16451
|
const z = null !== (_a = this.z) && void 0 !== _a ? _a : 0;
|
|
@@ -16451,27 +16458,7 @@
|
|
|
16451
16458
|
x: originX = 0,
|
|
16452
16459
|
x: originY = 0
|
|
16453
16460
|
} = attribute;
|
|
16454
|
-
!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()));
|
|
16455
|
-
let {
|
|
16456
|
-
connectedType: connectedType,
|
|
16457
|
-
connectedX: connectedX,
|
|
16458
|
-
connectedY: connectedY,
|
|
16459
|
-
connectedStyle: connectedStyle
|
|
16460
|
-
} = attribute;
|
|
16461
|
-
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) {
|
|
16462
|
-
context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, cache, clipRange, clipRangeByDimension, {
|
|
16463
|
-
offsetX: offsetX,
|
|
16464
|
-
offsetY: offsetY,
|
|
16465
|
-
offsetZ: z,
|
|
16466
|
-
drawConnect: !0,
|
|
16467
|
-
mode: connectedType,
|
|
16468
|
-
zeroX: connectedX,
|
|
16469
|
-
zeroY: connectedY
|
|
16470
|
-
});
|
|
16471
|
-
const da = [];
|
|
16472
|
-
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()));
|
|
16473
|
-
}
|
|
16474
|
-
return !1;
|
|
16461
|
+
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;
|
|
16475
16462
|
}
|
|
16476
16463
|
drawLinearLineHighPerformance(line, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, lineAttribute, drawContext, params, fillCb, strokeCb) {
|
|
16477
16464
|
var _a;
|
|
@@ -16503,7 +16490,8 @@
|
|
|
16503
16490
|
segments: segments,
|
|
16504
16491
|
points: points,
|
|
16505
16492
|
closePath: closePath,
|
|
16506
|
-
curveTension = lineAttribute.curveTension
|
|
16493
|
+
curveTension = lineAttribute.curveTension,
|
|
16494
|
+
connectedType = lineAttribute.connectedType
|
|
16507
16495
|
} = line.attribute;
|
|
16508
16496
|
if (!this.valid(line, lineAttribute, fillCb, strokeCb)) return;
|
|
16509
16497
|
let {
|
|
@@ -16515,6 +16503,9 @@
|
|
|
16515
16503
|
clipRangeByDimension = lineAttribute.clipRangeByDimension
|
|
16516
16504
|
} = line.attribute;
|
|
16517
16505
|
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);
|
|
16506
|
+
function parsePoint(points, connectedType) {
|
|
16507
|
+
return "none" === connectedType ? points : points.filter(p => !1 !== p.defined);
|
|
16508
|
+
}
|
|
16518
16509
|
if (line.shouldUpdateShape()) {
|
|
16519
16510
|
const {
|
|
16520
16511
|
points: points,
|
|
@@ -16536,7 +16527,7 @@
|
|
|
16536
16527
|
y: lastSeg.endY,
|
|
16537
16528
|
defined: lastSeg.curves[lastSeg.curves.length - 1].defined
|
|
16538
16529
|
} : index > 1 && (startPoint.x = lastSeg.endX, startPoint.y = lastSeg.endY, startPoint.defined = lastSeg.curves[lastSeg.curves.length - 1].defined);
|
|
16539
|
-
const data = calcLineCache(seg.points, curveType, {
|
|
16530
|
+
const data = calcLineCache(parsePoint(seg.points, connectedType), curveType, {
|
|
16540
16531
|
startPoint: startPoint,
|
|
16541
16532
|
curveTension: curveTension
|
|
16542
16533
|
});
|
|
@@ -16555,7 +16546,7 @@
|
|
|
16555
16546
|
}
|
|
16556
16547
|
} else {
|
|
16557
16548
|
if (!points || !points.length) return line.cache = null, void line.clearUpdateShapeTag();
|
|
16558
|
-
line.cache = calcLineCache(_points, curveType, {
|
|
16549
|
+
line.cache = calcLineCache(parsePoint(_points, connectedType), curveType, {
|
|
16559
16550
|
curveTension: curveTension
|
|
16560
16551
|
});
|
|
16561
16552
|
}
|
|
@@ -16583,15 +16574,10 @@
|
|
|
16583
16574
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
16584
16575
|
}
|
|
16585
16576
|
};
|
|
16586
|
-
exports.DefaultCanvasLineRender = __decorate$
|
|
16577
|
+
exports.DefaultCanvasLineRender = __decorate$1A([injectable()], exports.DefaultCanvasLineRender);
|
|
16587
16578
|
|
|
16588
16579
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
16589
16580
|
var _a;
|
|
16590
|
-
const {
|
|
16591
|
-
drawConnect = !1,
|
|
16592
|
-
mode = "none"
|
|
16593
|
-
} = params || {};
|
|
16594
|
-
if (drawConnect && "none" === mode) return;
|
|
16595
16581
|
const {
|
|
16596
16582
|
top: top,
|
|
16597
16583
|
bottom: bottom
|
|
@@ -16601,34 +16587,11 @@
|
|
|
16601
16587
|
const topList = [],
|
|
16602
16588
|
bottomList = [];
|
|
16603
16589
|
let lastDefined = !0;
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
defined0 = !0;
|
|
16608
|
-
const n = top.curves.length;
|
|
16609
|
-
top.curves.forEach((curve, i) => {
|
|
16610
|
-
const bototmCurve = bottom.curves[n - i - 1];
|
|
16611
|
-
let currentTopCurve = curve,
|
|
16612
|
-
currentBottomCurve = bototmCurve;
|
|
16613
|
-
if (curve.originP1 === curve.originP2) return lastCurve = curve, void (lastBottomCurve = bototmCurve);
|
|
16614
|
-
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 {
|
|
16615
|
-
const {
|
|
16616
|
-
originP1: originP1,
|
|
16617
|
-
originP2: originP2
|
|
16618
|
-
} = curve;
|
|
16619
|
-
let validTopCurve, validBottomCurve;
|
|
16620
|
-
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);
|
|
16621
|
-
}
|
|
16622
|
-
lastCurve = curve;
|
|
16623
|
-
}), drawAreaConnectBlock(path, topList, bottomList, params);
|
|
16624
|
-
} else {
|
|
16625
|
-
for (let i = 0, n = top.curves.length; i < n; i++) {
|
|
16626
|
-
const topCurve = top.curves[i];
|
|
16627
|
-
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]));
|
|
16628
|
-
}
|
|
16629
|
-
drawAreaBlock(path, topList, bottomList, params);
|
|
16590
|
+
for (let i = 0, n = top.curves.length; i < n; i++) {
|
|
16591
|
+
const topCurve = top.curves[i];
|
|
16592
|
+
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]));
|
|
16630
16593
|
}
|
|
16631
|
-
return;
|
|
16594
|
+
return void drawAreaBlock(path, topList, bottomList, params);
|
|
16632
16595
|
}
|
|
16633
16596
|
if (percent <= 0) return;
|
|
16634
16597
|
let {
|
|
@@ -16646,51 +16609,17 @@
|
|
|
16646
16609
|
lastDefined = !0;
|
|
16647
16610
|
const topList = [],
|
|
16648
16611
|
bottomList = [];
|
|
16649
|
-
let lastTopCurve,
|
|
16650
|
-
lastBottomCurve,
|
|
16651
|
-
defined0 = !0;
|
|
16652
16612
|
for (let i = 0, n = top.curves.length; i < n; i++) {
|
|
16653
16613
|
const topCurve = top.curves[i],
|
|
16654
16614
|
curCurveLength = topCurve.getLength(direction),
|
|
16655
16615
|
percent = (totalDrawLength - drawedLengthUntilLast) / curCurveLength;
|
|
16656
16616
|
if (percent < 0) break;
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
if (topCurve.originP1 === topCurve.originP2) {
|
|
16662
|
-
lastTopCurve = topCurve, lastBottomCurve = bototmCurve;
|
|
16663
|
-
continue;
|
|
16664
|
-
}
|
|
16665
|
-
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 {
|
|
16666
|
-
const {
|
|
16667
|
-
originP1: originP1,
|
|
16668
|
-
originP2: originP2
|
|
16669
|
-
} = topCurve;
|
|
16670
|
-
let validTopCurve, validBottomCurve;
|
|
16671
|
-
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);
|
|
16672
|
-
}
|
|
16673
|
-
lastTopCurve = topCurve;
|
|
16674
|
-
} else {
|
|
16675
|
-
let tc = null,
|
|
16676
|
-
bc = null;
|
|
16677
|
-
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;
|
|
16678
|
-
}
|
|
16617
|
+
drawedLengthUntilLast += curCurveLength;
|
|
16618
|
+
let tc = null,
|
|
16619
|
+
bc = null;
|
|
16620
|
+
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;
|
|
16679
16621
|
}
|
|
16680
|
-
|
|
16681
|
-
}
|
|
16682
|
-
function drawAreaConnectBlock(path, topList, bottomList, params) {
|
|
16683
|
-
if (topList.length < 2) return;
|
|
16684
|
-
const {
|
|
16685
|
-
offsetX = 0,
|
|
16686
|
-
offsetY = 0,
|
|
16687
|
-
offsetZ = 0,
|
|
16688
|
-
mode: mode
|
|
16689
|
-
} = params || {};
|
|
16690
|
-
let curve = topList[0];
|
|
16691
|
-
path.moveTo(curve.p0.x + offsetX, curve.p0.y + offsetY, offsetZ), curve = topList[topList.length - 1];
|
|
16692
|
-
let end = curve.p3 || curve.p1;
|
|
16693
|
-
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();
|
|
16622
|
+
drawAreaBlock(path, topList, bottomList, params);
|
|
16694
16623
|
}
|
|
16695
16624
|
function drawAreaBlock(path, topList, bottomList, params) {
|
|
16696
16625
|
const {
|
|
@@ -16712,17 +16641,17 @@
|
|
|
16712
16641
|
const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
16713
16642
|
const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16714
16643
|
|
|
16715
|
-
var __decorate$
|
|
16644
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16716
16645
|
var d,
|
|
16717
16646
|
c = arguments.length,
|
|
16718
16647
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16719
16648
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16720
16649
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16721
16650
|
},
|
|
16722
|
-
__metadata$
|
|
16651
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
16723
16652
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16724
16653
|
},
|
|
16725
|
-
__param$
|
|
16654
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16726
16655
|
return function (target, key) {
|
|
16727
16656
|
decorator(target, key, paramIndex);
|
|
16728
16657
|
};
|
|
@@ -16791,7 +16720,8 @@
|
|
|
16791
16720
|
fillOpacity = areaAttribute.fillOpacity,
|
|
16792
16721
|
z = areaAttribute.z,
|
|
16793
16722
|
strokeOpacity = areaAttribute.strokeOpacity,
|
|
16794
|
-
curveTension = areaAttribute.curveTension
|
|
16723
|
+
curveTension = areaAttribute.curveTension,
|
|
16724
|
+
connectedType = areaAttribute.connectedType
|
|
16795
16725
|
} = area.attribute,
|
|
16796
16726
|
data = this.valid(area, areaAttribute, fillCb, strokeCb);
|
|
16797
16727
|
if (!data) return;
|
|
@@ -16808,6 +16738,9 @@
|
|
|
16808
16738
|
let {
|
|
16809
16739
|
curveType = areaAttribute.curveType
|
|
16810
16740
|
} = area.attribute;
|
|
16741
|
+
function parsePoint(points, connectedType) {
|
|
16742
|
+
return "connect" !== connectedType ? points : points.filter(p => !1 !== p.defined);
|
|
16743
|
+
}
|
|
16811
16744
|
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);
|
|
16812
16745
|
if (area.shouldUpdateShape()) {
|
|
16813
16746
|
if (segments && segments.length) {
|
|
@@ -16821,7 +16754,7 @@
|
|
|
16821
16754
|
x: lastTopSeg.endX,
|
|
16822
16755
|
y: lastTopSeg.endY
|
|
16823
16756
|
} : index > 1 && (startPoint.x = lastTopSeg.endX, startPoint.y = lastTopSeg.endY);
|
|
16824
|
-
const data = calcLineCache(seg.points, curveType, {
|
|
16757
|
+
const data = calcLineCache(parsePoint(seg.points, connectedType), curveType, {
|
|
16825
16758
|
startPoint: startPoint,
|
|
16826
16759
|
curveTension: curveTension
|
|
16827
16760
|
});
|
|
@@ -16844,7 +16777,7 @@
|
|
|
16844
16777
|
y: null !== (_d = endPoint.y1) && void 0 !== _d ? _d : endPoint.y
|
|
16845
16778
|
});
|
|
16846
16779
|
}
|
|
16847
|
-
bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType, {
|
|
16780
|
+
bottomPoints.length > 1 && (lastBottomSeg = calcLineCache(parsePoint(bottomPoints, connectedType), "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType, {
|
|
16848
16781
|
curveTension: curveTension
|
|
16849
16782
|
}), bottomCaches.unshift(lastBottomSeg));
|
|
16850
16783
|
}
|
|
@@ -16855,11 +16788,11 @@
|
|
|
16855
16788
|
} else {
|
|
16856
16789
|
if (!points || !points.length) return area.cacheArea = null, void area.clearUpdateShapeTag();
|
|
16857
16790
|
{
|
|
16858
|
-
const topPoints = points,
|
|
16791
|
+
const topPoints = parsePoint(points, connectedType),
|
|
16859
16792
|
bottomPoints = [];
|
|
16860
|
-
for (let i =
|
|
16861
|
-
x: null !== (_e =
|
|
16862
|
-
y: null !== (_f =
|
|
16793
|
+
for (let i = topPoints.length - 1; i >= 0; i--) bottomPoints.push({
|
|
16794
|
+
x: null !== (_e = topPoints[i].x1) && void 0 !== _e ? _e : topPoints[i].x,
|
|
16795
|
+
y: null !== (_f = topPoints[i].y1) && void 0 !== _f ? _f : topPoints[i].y
|
|
16863
16796
|
});
|
|
16864
16797
|
const topCache = calcLineCache(topPoints, curveType, {
|
|
16865
16798
|
curveTension: curveTension
|
|
@@ -16901,20 +16834,10 @@
|
|
|
16901
16834
|
this._draw(area, areaAttribute, !1, drawContext, params);
|
|
16902
16835
|
}
|
|
16903
16836
|
drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb) {
|
|
16904
|
-
|
|
16905
|
-
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;
|
|
16837
|
+
return this._drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb);
|
|
16906
16838
|
}
|
|
16907
|
-
_drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext,
|
|
16908
|
-
var _a, _b, _c, _d;
|
|
16839
|
+
_drawSegmentItem(context, cache, fill, fillOpacity, stroke, strokeOpacity, attribute, defaultAttribute, clipRange, offsetX, offsetY, offsetZ, area, drawContext, fillCb, strokeCb) {
|
|
16909
16840
|
if (!(cache && cache.top && cache.bottom && cache.top.curves && cache.top.curves.length && cache.bottom.curves && cache.bottom.curves.length)) return;
|
|
16910
|
-
let {
|
|
16911
|
-
connectedType: connectedType,
|
|
16912
|
-
connectedX: connectedX,
|
|
16913
|
-
connectedY: connectedY,
|
|
16914
|
-
connectedStyle: connectedStyle
|
|
16915
|
-
} = attribute;
|
|
16916
|
-
const da = [];
|
|
16917
|
-
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;
|
|
16918
16841
|
context.beginPath();
|
|
16919
16842
|
const {
|
|
16920
16843
|
points: points,
|
|
@@ -16933,11 +16856,7 @@
|
|
|
16933
16856
|
offsetX: offsetX,
|
|
16934
16857
|
offsetY: offsetY,
|
|
16935
16858
|
offsetZ: offsetZ,
|
|
16936
|
-
direction: direction
|
|
16937
|
-
drawConnect: connect,
|
|
16938
|
-
mode: connectedType,
|
|
16939
|
-
zeroX: connectedX,
|
|
16940
|
-
zeroY: connectedY
|
|
16859
|
+
direction: direction
|
|
16941
16860
|
}), this.beforeRenderStep(area, context, offsetX, offsetY, !!fillOpacity, !1, fill, !1, defaultAttribute, drawContext, fillCb, null, {
|
|
16942
16861
|
attribute: attribute
|
|
16943
16862
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute);
|
|
@@ -16945,7 +16864,7 @@
|
|
|
16945
16864
|
x: originX = 0,
|
|
16946
16865
|
x: originY = 0
|
|
16947
16866
|
} = attribute;
|
|
16948
|
-
return !1 !== fill && (fillCb ? fillCb(context, attribute, defaultAttribute) : fillOpacity && (context.setCommonStyle(area,
|
|
16867
|
+
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, {
|
|
16949
16868
|
attribute: attribute
|
|
16950
16869
|
}), (() => {
|
|
16951
16870
|
if (!1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
|
|
@@ -16955,32 +16874,28 @@
|
|
|
16955
16874
|
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 === exports.Direction.ROW ? "x" : "y", {
|
|
16956
16875
|
offsetX: offsetX,
|
|
16957
16876
|
offsetY: offsetY,
|
|
16958
|
-
offsetZ: offsetZ
|
|
16959
|
-
|
|
16960
|
-
mode: connectedType,
|
|
16961
|
-
zeroX: connectedX,
|
|
16962
|
-
zeroY: connectedY
|
|
16963
|
-
})), context.setStrokeStyle(area, connect ? connectedStyle : attribute, originX - offsetX, originY - offsetY, connect ? da : defaultAttribute), context.stroke();
|
|
16877
|
+
offsetZ: offsetZ
|
|
16878
|
+
})), context.setStrokeStyle(area, attribute, originX - offsetX, originY - offsetY, defaultAttribute), context.stroke();
|
|
16964
16879
|
}
|
|
16965
16880
|
})(), !1;
|
|
16966
16881
|
}
|
|
16967
16882
|
};
|
|
16968
|
-
exports.DefaultCanvasAreaRender = __decorate$
|
|
16883
|
+
exports.DefaultCanvasAreaRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(AreaRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
|
|
16969
16884
|
|
|
16970
16885
|
const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
16971
16886
|
const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16972
16887
|
|
|
16973
|
-
var __decorate$
|
|
16888
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16974
16889
|
var d,
|
|
16975
16890
|
c = arguments.length,
|
|
16976
16891
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16977
16892
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16978
16893
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16979
16894
|
},
|
|
16980
|
-
__metadata$
|
|
16895
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
16981
16896
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16982
16897
|
},
|
|
16983
|
-
__param$
|
|
16898
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16984
16899
|
return function (target, key) {
|
|
16985
16900
|
decorator(target, key, paramIndex);
|
|
16986
16901
|
};
|
|
@@ -17024,19 +16939,19 @@
|
|
|
17024
16939
|
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17025
16940
|
}
|
|
17026
16941
|
};
|
|
17027
|
-
exports.DefaultCanvasPathRender = __decorate$
|
|
16942
|
+
exports.DefaultCanvasPathRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(PathRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
|
|
17028
16943
|
|
|
17029
|
-
var __decorate$
|
|
16944
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17030
16945
|
var d,
|
|
17031
16946
|
c = arguments.length,
|
|
17032
16947
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17033
16948
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17034
16949
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17035
16950
|
},
|
|
17036
|
-
__metadata$
|
|
16951
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
17037
16952
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17038
16953
|
},
|
|
17039
|
-
__param$
|
|
16954
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17040
16955
|
return function (target, key) {
|
|
17041
16956
|
decorator(target, key, paramIndex);
|
|
17042
16957
|
};
|
|
@@ -17096,19 +17011,19 @@
|
|
|
17096
17011
|
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17097
17012
|
}
|
|
17098
17013
|
};
|
|
17099
|
-
exports.DefaultCanvasRectRender = __decorate$
|
|
17014
|
+
exports.DefaultCanvasRectRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(RectRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
|
|
17100
17015
|
|
|
17101
|
-
var __decorate$
|
|
17016
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17102
17017
|
var d,
|
|
17103
17018
|
c = arguments.length,
|
|
17104
17019
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17105
17020
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17106
17021
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17107
17022
|
},
|
|
17108
|
-
__metadata$
|
|
17023
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
17109
17024
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17110
17025
|
},
|
|
17111
|
-
__param$
|
|
17026
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17112
17027
|
return function (target, key) {
|
|
17113
17028
|
decorator(target, key, paramIndex);
|
|
17114
17029
|
};
|
|
@@ -17179,7 +17094,7 @@
|
|
|
17179
17094
|
this._draw(symbol, symbolAttribute, !1, drawContext, params);
|
|
17180
17095
|
}
|
|
17181
17096
|
};
|
|
17182
|
-
exports.DefaultCanvasSymbolRender = __decorate$
|
|
17097
|
+
exports.DefaultCanvasSymbolRender = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(SymbolRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
|
|
17183
17098
|
|
|
17184
17099
|
class DefaultBoundsAllocate {
|
|
17185
17100
|
constructor() {
|
|
@@ -17268,17 +17183,17 @@
|
|
|
17268
17183
|
}
|
|
17269
17184
|
const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
17270
17185
|
|
|
17271
|
-
var __decorate$
|
|
17186
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17272
17187
|
var d,
|
|
17273
17188
|
c = arguments.length,
|
|
17274
17189
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17275
17190
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17276
17191
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17277
17192
|
},
|
|
17278
|
-
__metadata$
|
|
17193
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
17279
17194
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17280
17195
|
},
|
|
17281
|
-
__param$
|
|
17196
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17282
17197
|
return function (target, key) {
|
|
17283
17198
|
decorator(target, key, paramIndex);
|
|
17284
17199
|
};
|
|
@@ -17417,9 +17332,9 @@
|
|
|
17417
17332
|
}
|
|
17418
17333
|
}
|
|
17419
17334
|
};
|
|
17420
|
-
exports.DefaultCanvasTextRender = __decorate$
|
|
17335
|
+
exports.DefaultCanvasTextRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
|
|
17421
17336
|
|
|
17422
|
-
var __decorate$
|
|
17337
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17423
17338
|
var d,
|
|
17424
17339
|
c = arguments.length,
|
|
17425
17340
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17427,7 +17342,7 @@
|
|
|
17427
17342
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17428
17343
|
};
|
|
17429
17344
|
exports.AbstractGraphicRender = class AbstractGraphicRender {};
|
|
17430
|
-
exports.AbstractGraphicRender = __decorate$
|
|
17345
|
+
exports.AbstractGraphicRender = __decorate$1u([injectable()], exports.AbstractGraphicRender);
|
|
17431
17346
|
|
|
17432
17347
|
function drawPolygon(path, points, x, y) {
|
|
17433
17348
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -17483,17 +17398,17 @@
|
|
|
17483
17398
|
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
17484
17399
|
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
17485
17400
|
|
|
17486
|
-
var __decorate$
|
|
17401
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17487
17402
|
var d,
|
|
17488
17403
|
c = arguments.length,
|
|
17489
17404
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17490
17405
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17491
17406
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17492
17407
|
},
|
|
17493
|
-
__metadata$
|
|
17408
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
17494
17409
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17495
17410
|
},
|
|
17496
|
-
__param$
|
|
17411
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17497
17412
|
return function (target, key) {
|
|
17498
17413
|
decorator(target, key, paramIndex);
|
|
17499
17414
|
};
|
|
@@ -17534,19 +17449,19 @@
|
|
|
17534
17449
|
this._draw(polygon, polygonAttribute, !1, drawContext, params);
|
|
17535
17450
|
}
|
|
17536
17451
|
};
|
|
17537
|
-
exports.DefaultCanvasPolygonRender = __decorate$
|
|
17452
|
+
exports.DefaultCanvasPolygonRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PolygonRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
|
|
17538
17453
|
|
|
17539
|
-
var __decorate$
|
|
17454
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17540
17455
|
var d,
|
|
17541
17456
|
c = arguments.length,
|
|
17542
17457
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17543
17458
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17544
17459
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17545
17460
|
},
|
|
17546
|
-
__metadata$
|
|
17461
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
17547
17462
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17548
17463
|
},
|
|
17549
|
-
__param$
|
|
17464
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17550
17465
|
return function (target, key) {
|
|
17551
17466
|
decorator(target, key, paramIndex);
|
|
17552
17467
|
};
|
|
@@ -17641,19 +17556,19 @@
|
|
|
17641
17556
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
17642
17557
|
}
|
|
17643
17558
|
};
|
|
17644
|
-
exports.DefaultCanvasGroupRender = __decorate$
|
|
17559
|
+
exports.DefaultCanvasGroupRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(GroupRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
|
|
17645
17560
|
|
|
17646
|
-
var __decorate$
|
|
17561
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17647
17562
|
var d,
|
|
17648
17563
|
c = arguments.length,
|
|
17649
17564
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17650
17565
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17651
17566
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17652
17567
|
},
|
|
17653
|
-
__metadata$
|
|
17568
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
17654
17569
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17655
17570
|
},
|
|
17656
|
-
__param$
|
|
17571
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17657
17572
|
return function (target, key) {
|
|
17658
17573
|
decorator(target, key, paramIndex);
|
|
17659
17574
|
};
|
|
@@ -17721,7 +17636,7 @@
|
|
|
17721
17636
|
this._draw(image, imageAttribute, !1, drawContext);
|
|
17722
17637
|
}
|
|
17723
17638
|
};
|
|
17724
|
-
exports.DefaultCanvasImageRender = __decorate$
|
|
17639
|
+
exports.DefaultCanvasImageRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(ImageRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
|
|
17725
17640
|
|
|
17726
17641
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
17727
17642
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -17789,14 +17704,14 @@
|
|
|
17789
17704
|
return result;
|
|
17790
17705
|
};
|
|
17791
17706
|
|
|
17792
|
-
var __decorate$
|
|
17707
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17793
17708
|
var d,
|
|
17794
17709
|
c = arguments.length,
|
|
17795
17710
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17796
17711
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17797
17712
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17798
17713
|
},
|
|
17799
|
-
__metadata$
|
|
17714
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
17800
17715
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17801
17716
|
};
|
|
17802
17717
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
@@ -17856,7 +17771,7 @@
|
|
|
17856
17771
|
return !1;
|
|
17857
17772
|
}
|
|
17858
17773
|
};
|
|
17859
|
-
exports.CommonDrawItemInterceptorContribution = __decorate$
|
|
17774
|
+
exports.CommonDrawItemInterceptorContribution = __decorate$1q([injectable(), __metadata$13("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
|
|
17860
17775
|
class InteractiveDrawItemInterceptorContribution {
|
|
17861
17776
|
constructor() {
|
|
17862
17777
|
this.order = 1;
|
|
@@ -17947,17 +17862,17 @@
|
|
|
17947
17862
|
}
|
|
17948
17863
|
}
|
|
17949
17864
|
|
|
17950
|
-
var __decorate$
|
|
17865
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17951
17866
|
var d,
|
|
17952
17867
|
c = arguments.length,
|
|
17953
17868
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17954
17869
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17955
17870
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17956
17871
|
},
|
|
17957
|
-
__metadata$
|
|
17872
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
17958
17873
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17959
17874
|
},
|
|
17960
|
-
__param$
|
|
17875
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17961
17876
|
return function (target, key) {
|
|
17962
17877
|
decorator(target, key, paramIndex);
|
|
17963
17878
|
};
|
|
@@ -17995,7 +17910,7 @@
|
|
|
17995
17910
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
|
|
17996
17911
|
}
|
|
17997
17912
|
};
|
|
17998
|
-
exports.DefaultRenderService = __decorate$
|
|
17913
|
+
exports.DefaultRenderService = __decorate$1p([injectable(), __param$H(0, inject(DrawContribution)), __metadata$12("design:paramtypes", [Object])], exports.DefaultRenderService);
|
|
17999
17914
|
|
|
18000
17915
|
var renderModule$1 = new ContainerModule(bind => {
|
|
18001
17916
|
bind(RenderService).to(exports.DefaultRenderService);
|
|
@@ -18008,7 +17923,7 @@
|
|
|
18008
17923
|
const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
18009
17924
|
const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
|
|
18010
17925
|
|
|
18011
|
-
var __decorate$
|
|
17926
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18012
17927
|
var d,
|
|
18013
17928
|
c = arguments.length,
|
|
18014
17929
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18030,7 +17945,7 @@
|
|
|
18030
17945
|
return result;
|
|
18031
17946
|
}
|
|
18032
17947
|
};
|
|
18033
|
-
exports.ShadowPickServiceInterceptorContribution = __decorate$
|
|
17948
|
+
exports.ShadowPickServiceInterceptorContribution = __decorate$1o([injectable()], exports.ShadowPickServiceInterceptorContribution);
|
|
18034
17949
|
exports.ShadowRootPickItemInterceptorContribution = class ShadowRootPickItemInterceptorContribution {
|
|
18035
17950
|
constructor() {
|
|
18036
17951
|
this.order = 1;
|
|
@@ -18061,7 +17976,7 @@
|
|
|
18061
17976
|
return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
|
|
18062
17977
|
}
|
|
18063
17978
|
};
|
|
18064
|
-
exports.ShadowRootPickItemInterceptorContribution = __decorate$
|
|
17979
|
+
exports.ShadowRootPickItemInterceptorContribution = __decorate$1o([injectable()], exports.ShadowRootPickItemInterceptorContribution);
|
|
18065
17980
|
exports.InteractivePickItemInterceptorContribution = class InteractivePickItemInterceptorContribution {
|
|
18066
17981
|
constructor() {
|
|
18067
17982
|
this.order = 1;
|
|
@@ -18080,7 +17995,7 @@
|
|
|
18080
17995
|
return null;
|
|
18081
17996
|
}
|
|
18082
17997
|
};
|
|
18083
|
-
exports.InteractivePickItemInterceptorContribution = __decorate$
|
|
17998
|
+
exports.InteractivePickItemInterceptorContribution = __decorate$1o([injectable()], exports.InteractivePickItemInterceptorContribution);
|
|
18084
17999
|
exports.Canvas3DPickItemInterceptor = class Canvas3DPickItemInterceptor {
|
|
18085
18000
|
constructor() {
|
|
18086
18001
|
this.order = 1;
|
|
@@ -18100,7 +18015,7 @@
|
|
|
18100
18015
|
context.setTransformForCurrent();
|
|
18101
18016
|
}
|
|
18102
18017
|
};
|
|
18103
|
-
exports.Canvas3DPickItemInterceptor = __decorate$
|
|
18018
|
+
exports.Canvas3DPickItemInterceptor = __decorate$1o([injectable()], exports.Canvas3DPickItemInterceptor);
|
|
18104
18019
|
|
|
18105
18020
|
var pickModule = new ContainerModule((bind, unbind, isBound) => {
|
|
18106
18021
|
isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(exports.Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.Canvas3DPickItemInterceptor), bind(exports.ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.ShadowRootPickItemInterceptorContribution), bind(exports.InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor), bind(exports.ShadowPickServiceInterceptorContribution).toSelf().inSingletonScope(), bind(PickServiceInterceptor).toService(exports.ShadowPickServiceInterceptorContribution), bindContributionProvider(bind, PickServiceInterceptor);
|
|
@@ -18113,17 +18028,17 @@
|
|
|
18113
18028
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
18114
18029
|
const PluginService = Symbol.for("PluginService");
|
|
18115
18030
|
|
|
18116
|
-
var __decorate$
|
|
18031
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18117
18032
|
var d,
|
|
18118
18033
|
c = arguments.length,
|
|
18119
18034
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18120
18035
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18121
18036
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18122
18037
|
},
|
|
18123
|
-
__metadata$
|
|
18038
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
18124
18039
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18125
18040
|
},
|
|
18126
|
-
__param$
|
|
18041
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18127
18042
|
return function (target, key) {
|
|
18128
18043
|
decorator(target, key, paramIndex);
|
|
18129
18044
|
};
|
|
@@ -18163,7 +18078,7 @@
|
|
|
18163
18078
|
}), this.onRegisterPlugin = [];
|
|
18164
18079
|
}
|
|
18165
18080
|
};
|
|
18166
|
-
DefaultPluginService = __decorate$
|
|
18081
|
+
DefaultPluginService = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(AutoEnablePlugins)), __metadata$11("design:paramtypes", [Object])], DefaultPluginService);
|
|
18167
18082
|
|
|
18168
18083
|
var pluginModule = new ContainerModule(bind => {
|
|
18169
18084
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -18177,14 +18092,14 @@
|
|
|
18177
18092
|
bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
18178
18093
|
});
|
|
18179
18094
|
|
|
18180
|
-
var __decorate$
|
|
18095
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18181
18096
|
var d,
|
|
18182
18097
|
c = arguments.length,
|
|
18183
18098
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18184
18099
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18185
18100
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18186
18101
|
},
|
|
18187
|
-
__metadata
|
|
18102
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
18188
18103
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18189
18104
|
};
|
|
18190
18105
|
let CanvasLayerHandlerContribution = class {
|
|
@@ -18254,7 +18169,7 @@
|
|
|
18254
18169
|
this.canvas.release();
|
|
18255
18170
|
}
|
|
18256
18171
|
};
|
|
18257
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
18172
|
+
CanvasLayerHandlerContribution = __decorate$1m([injectable(), __metadata$10("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
18258
18173
|
|
|
18259
18174
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
18260
18175
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -18373,17 +18288,17 @@
|
|
|
18373
18288
|
return result;
|
|
18374
18289
|
}
|
|
18375
18290
|
|
|
18376
|
-
var __decorate$
|
|
18291
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18377
18292
|
var d,
|
|
18378
18293
|
c = arguments.length,
|
|
18379
18294
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18380
18295
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18381
18296
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18382
18297
|
},
|
|
18383
|
-
__metadata
|
|
18298
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
18384
18299
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18385
18300
|
},
|
|
18386
|
-
__param$
|
|
18301
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18387
18302
|
return function (target, key) {
|
|
18388
18303
|
decorator(target, key, paramIndex);
|
|
18389
18304
|
};
|
|
@@ -18582,9 +18497,9 @@
|
|
|
18582
18497
|
}
|
|
18583
18498
|
afterDraw(renderService, drawParams) {}
|
|
18584
18499
|
};
|
|
18585
|
-
DefaultDrawContribution = __decorate$
|
|
18500
|
+
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);
|
|
18586
18501
|
|
|
18587
|
-
var __decorate$
|
|
18502
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18588
18503
|
var d,
|
|
18589
18504
|
c = arguments.length,
|
|
18590
18505
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18635,9 +18550,9 @@
|
|
|
18635
18550
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
18636
18551
|
}
|
|
18637
18552
|
};
|
|
18638
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
18553
|
+
DefaultIncrementalCanvasLineRender = __decorate$1k([injectable()], DefaultIncrementalCanvasLineRender);
|
|
18639
18554
|
|
|
18640
|
-
var __decorate$
|
|
18555
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18641
18556
|
var d,
|
|
18642
18557
|
c = arguments.length,
|
|
18643
18558
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18680,20 +18595,20 @@
|
|
|
18680
18595
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
18681
18596
|
}
|
|
18682
18597
|
};
|
|
18683
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
18598
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1j([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
18684
18599
|
|
|
18685
18600
|
var STATUS,
|
|
18686
|
-
__decorate$
|
|
18601
|
+
__decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18687
18602
|
var d,
|
|
18688
18603
|
c = arguments.length,
|
|
18689
18604
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18690
18605
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18691
18606
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18692
18607
|
},
|
|
18693
|
-
__metadata$
|
|
18608
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
18694
18609
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18695
18610
|
},
|
|
18696
|
-
__param$
|
|
18611
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18697
18612
|
return function (target, key) {
|
|
18698
18613
|
decorator(target, key, paramIndex);
|
|
18699
18614
|
};
|
|
@@ -18823,7 +18738,7 @@
|
|
|
18823
18738
|
});
|
|
18824
18739
|
}
|
|
18825
18740
|
};
|
|
18826
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
18741
|
+
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);
|
|
18827
18742
|
|
|
18828
18743
|
var renderModule = new ContainerModule(bind => {
|
|
18829
18744
|
bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(GroupRender).to(exports.DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(exports.CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(exports.CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
|
|
@@ -19519,14 +19434,14 @@
|
|
|
19519
19434
|
return new Stage(params);
|
|
19520
19435
|
}
|
|
19521
19436
|
|
|
19522
|
-
var __decorate$
|
|
19437
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19523
19438
|
var d,
|
|
19524
19439
|
c = arguments.length,
|
|
19525
19440
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19526
19441
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19527
19442
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19528
19443
|
},
|
|
19529
|
-
__metadata$
|
|
19444
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
19530
19445
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19531
19446
|
};
|
|
19532
19447
|
const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -19736,7 +19651,7 @@
|
|
|
19736
19651
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
19737
19652
|
}
|
|
19738
19653
|
};
|
|
19739
|
-
exports.EmptyContext2d = __decorate$
|
|
19654
|
+
exports.EmptyContext2d = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
|
|
19740
19655
|
|
|
19741
19656
|
const DefaultConfig = {
|
|
19742
19657
|
WIDTH: 500,
|
|
@@ -19835,7 +19750,7 @@
|
|
|
19835
19750
|
}
|
|
19836
19751
|
BaseCanvas.env = "browser";
|
|
19837
19752
|
|
|
19838
|
-
var __decorate$
|
|
19753
|
+
var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19839
19754
|
var d,
|
|
19840
19755
|
c = arguments.length,
|
|
19841
19756
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19949,16 +19864,16 @@
|
|
|
19949
19864
|
return Promise.resolve(null);
|
|
19950
19865
|
}
|
|
19951
19866
|
};
|
|
19952
|
-
exports.BaseEnvContribution = __decorate$
|
|
19867
|
+
exports.BaseEnvContribution = __decorate$1g([injectable()], exports.BaseEnvContribution);
|
|
19953
19868
|
|
|
19954
|
-
var __decorate$
|
|
19869
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19955
19870
|
var d,
|
|
19956
19871
|
c = arguments.length,
|
|
19957
19872
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19958
19873
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19959
19874
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19960
19875
|
},
|
|
19961
|
-
__metadata$
|
|
19876
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
19962
19877
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19963
19878
|
};
|
|
19964
19879
|
exports.BaseWindowHandlerContribution = class BaseWindowHandlerContribution {
|
|
@@ -19997,7 +19912,7 @@
|
|
|
19997
19912
|
return this.modelMatrix;
|
|
19998
19913
|
}
|
|
19999
19914
|
};
|
|
20000
|
-
exports.BaseWindowHandlerContribution = __decorate$
|
|
19915
|
+
exports.BaseWindowHandlerContribution = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
|
|
20001
19916
|
|
|
20002
19917
|
class DirectionalLight {
|
|
20003
19918
|
constructor(dir, color) {
|
|
@@ -20088,17 +20003,17 @@
|
|
|
20088
20003
|
Factory.registerPlugin("OrthoCamera", OrthoCamera);
|
|
20089
20004
|
};
|
|
20090
20005
|
|
|
20091
|
-
var __decorate$
|
|
20006
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20092
20007
|
var d,
|
|
20093
20008
|
c = arguments.length,
|
|
20094
20009
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20095
20010
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20096
20011
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20097
20012
|
},
|
|
20098
|
-
__metadata$
|
|
20013
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
20099
20014
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20100
20015
|
},
|
|
20101
|
-
__param$
|
|
20016
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20102
20017
|
return function (target, key) {
|
|
20103
20018
|
decorator(target, key, paramIndex);
|
|
20104
20019
|
};
|
|
@@ -20203,16 +20118,16 @@
|
|
|
20203
20118
|
return picker || null;
|
|
20204
20119
|
}
|
|
20205
20120
|
};
|
|
20206
|
-
exports.DefaultPickService = __decorate$
|
|
20121
|
+
exports.DefaultPickService = __decorate$1e([injectable(), __param$D(0, inject(ContributionProvider)), __param$D(0, named(PickItemInterceptor)), __param$D(1, inject(ContributionProvider)), __param$D(1, named(PickServiceInterceptor)), __metadata$X("design:paramtypes", [Object, Object])], exports.DefaultPickService);
|
|
20207
20122
|
|
|
20208
|
-
var __decorate$
|
|
20123
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20209
20124
|
var d,
|
|
20210
20125
|
c = arguments.length,
|
|
20211
20126
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20212
20127
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20213
20128
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20214
20129
|
},
|
|
20215
|
-
__metadata$
|
|
20130
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
20216
20131
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20217
20132
|
};
|
|
20218
20133
|
exports.DefaultGlobalPickerService = class DefaultGlobalPickerService {
|
|
@@ -20277,7 +20192,7 @@
|
|
|
20277
20192
|
} : null;
|
|
20278
20193
|
}
|
|
20279
20194
|
};
|
|
20280
|
-
exports.DefaultGlobalPickerService = __decorate$
|
|
20195
|
+
exports.DefaultGlobalPickerService = __decorate$1d([injectable(), __metadata$W("design:paramtypes", [])], exports.DefaultGlobalPickerService);
|
|
20281
20196
|
|
|
20282
20197
|
function simplifyRadialDist(points, sqTolerance) {
|
|
20283
20198
|
let deltaX,
|
|
@@ -20358,13 +20273,17 @@
|
|
|
20358
20273
|
} = this.currRt.attribute;
|
|
20359
20274
|
if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
|
|
20360
20275
|
const config = textConfig[0];
|
|
20361
|
-
textConfig.unshift(Object.assign(Object.assign(Object.assign({
|
|
20276
|
+
textConfig.unshift(Object.assign(Object.assign(Object.assign({
|
|
20277
|
+
fill: "black"
|
|
20278
|
+
}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
|
|
20362
20279
|
text: ""
|
|
20363
20280
|
}));
|
|
20364
20281
|
} else {
|
|
20365
20282
|
const configIdx = this.composingConfigIdx,
|
|
20366
20283
|
lastConfig = textConfig[configIdx] || textConfig[configIdx - 1];
|
|
20367
|
-
textConfig.splice(configIdx, 0, Object.assign(Object.assign({
|
|
20284
|
+
textConfig.splice(configIdx, 0, Object.assign(Object.assign({
|
|
20285
|
+
fill: "black"
|
|
20286
|
+
}, lastConfig), {
|
|
20368
20287
|
text: ""
|
|
20369
20288
|
}));
|
|
20370
20289
|
}
|
|
@@ -20436,9 +20355,9 @@
|
|
|
20436
20355
|
textConfig.splice(configIdx, 1);
|
|
20437
20356
|
const text = lastConfig.text,
|
|
20438
20357
|
textList = text ? Array.from(text.toString()) : [];
|
|
20439
|
-
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign(
|
|
20358
|
+
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
|
|
20440
20359
|
fill: "black"
|
|
20441
|
-
}
|
|
20360
|
+
}, lastConfig), {
|
|
20442
20361
|
isComposing: !1,
|
|
20443
20362
|
text: textList[i]
|
|
20444
20363
|
}));
|
|
@@ -20558,13 +20477,13 @@
|
|
|
20558
20477
|
}, this.handleFocusOut = () => {
|
|
20559
20478
|
throw new Error("不会走到这里 handleFocusOut");
|
|
20560
20479
|
}, this.handleMove = e => {
|
|
20561
|
-
this.
|
|
20562
|
-
}, this.handleEnter =
|
|
20480
|
+
this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
|
|
20481
|
+
}, this.handleEnter = e => {
|
|
20563
20482
|
this.editing = !0, this.pluginService.stage.setCursor("text");
|
|
20564
|
-
}, this.handleLeave =
|
|
20483
|
+
}, this.handleLeave = e => {
|
|
20565
20484
|
this.editing = !1, this.pluginService.stage.setCursor("default");
|
|
20566
20485
|
}, this.handlePointerDown = e => {
|
|
20567
|
-
this.editing
|
|
20486
|
+
this.editing ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20568
20487
|
}, this.handlePointerUp = e => {
|
|
20569
20488
|
this.pointerDown = !1;
|
|
20570
20489
|
}, this.handleDBLClick = e => {
|
|
@@ -20638,11 +20557,9 @@
|
|
|
20638
20557
|
const cache = currRt.getFrameCache();
|
|
20639
20558
|
if (!cache) return;
|
|
20640
20559
|
const {
|
|
20641
|
-
|
|
20642
|
-
|
|
20643
|
-
|
|
20644
|
-
if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
|
|
20645
|
-
const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20560
|
+
lines: lines
|
|
20561
|
+
} = cache,
|
|
20562
|
+
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20646
20563
|
return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
|
|
20647
20564
|
}
|
|
20648
20565
|
return !1;
|
|
@@ -20717,9 +20634,6 @@
|
|
|
20717
20634
|
placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
|
|
20718
20635
|
x: 0,
|
|
20719
20636
|
y: 0,
|
|
20720
|
-
pickable: !1,
|
|
20721
|
-
editable: !1,
|
|
20722
|
-
editOptions: null,
|
|
20723
20637
|
angle: 0,
|
|
20724
20638
|
_debug_bounds: !1,
|
|
20725
20639
|
textConfig: [textConfigItem]
|
|
@@ -20735,15 +20649,15 @@
|
|
|
20735
20649
|
} = editOptions;
|
|
20736
20650
|
if (!editOptions || !boundsStrokeWhenInput) return;
|
|
20737
20651
|
const {
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20741
|
-
|
|
20652
|
+
attribute: attribute
|
|
20653
|
+
} = this.currRt,
|
|
20654
|
+
b = this.currRt.AABBBounds;
|
|
20655
|
+
let h = b.height();
|
|
20742
20656
|
if (!attribute.textConfig.length && this.editLine) {
|
|
20743
20657
|
const {
|
|
20744
20658
|
points: points
|
|
20745
20659
|
} = this.editLine.attribute;
|
|
20746
|
-
h = points[1].y - points[0].y
|
|
20660
|
+
h = points[1].y - points[0].y;
|
|
20747
20661
|
}
|
|
20748
20662
|
this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
|
|
20749
20663
|
x: 0,
|
|
@@ -20764,7 +20678,7 @@
|
|
|
20764
20678
|
editOptions: editOptions
|
|
20765
20679
|
} = this.currRt.attribute;
|
|
20766
20680
|
if (textConfig && textConfig.length) return;
|
|
20767
|
-
if (!
|
|
20681
|
+
if (!editOptions || !editOptions.placeholder) return;
|
|
20768
20682
|
const {
|
|
20769
20683
|
placeholder: placeholder
|
|
20770
20684
|
} = editOptions;
|
|
@@ -20855,18 +20769,21 @@
|
|
|
20855
20769
|
}
|
|
20856
20770
|
deFocus() {
|
|
20857
20771
|
let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20858
|
-
const currRt = this.currRt;
|
|
20859
|
-
if (!currRt) return;
|
|
20860
20772
|
this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
|
|
20861
20773
|
trulyDeFocus: trulyDeFocus
|
|
20862
|
-
}))
|
|
20774
|
+
}));
|
|
20775
|
+
const target = this.currRt;
|
|
20776
|
+
if (!target) return;
|
|
20777
|
+
trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), target.detachShadow());
|
|
20778
|
+
const currRt = this.currRt;
|
|
20779
|
+
this.currRt = null, this.editLine && (this.editLine.parent && this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent && this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null), trulyDeFocus && (this.shadowBounds && (this.shadowBounds.parent && this.shadowBounds.parent.removeChild(this.shadowBounds), this.shadowBounds.release(), this.shadowBounds = null), this.shadowPlaceHolder && (this.shadowPlaceHolder.parent && this.shadowPlaceHolder.parent.removeChild(this.shadowPlaceHolder), this.shadowPlaceHolder.release(), this.shadowPlaceHolder = null)), this.focusing = !1;
|
|
20863
20780
|
const textConfig = currRt.attribute.textConfig;
|
|
20864
20781
|
let lastConfig = textConfig[textConfig.length - 1],
|
|
20865
20782
|
cleared = !1;
|
|
20866
20783
|
for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
|
|
20867
20784
|
cleared && currRt.setAttributes({
|
|
20868
20785
|
textConfig: textConfig
|
|
20869
|
-
})
|
|
20786
|
+
});
|
|
20870
20787
|
}
|
|
20871
20788
|
addAnimateToLine(line) {
|
|
20872
20789
|
line.animates && line.animates.forEach(animate => {
|
|
@@ -20914,63 +20831,61 @@
|
|
|
20914
20831
|
},
|
|
20915
20832
|
line0Info = this.getLineByPoint(cache, startCursorPos),
|
|
20916
20833
|
line1Info = this.getLineByPoint(cache, endCursorPos);
|
|
20917
|
-
if (
|
|
20918
|
-
|
|
20919
|
-
|
|
20834
|
+
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({
|
|
20835
|
+
x: startCursorPos.x,
|
|
20836
|
+
y: line0Info.top,
|
|
20837
|
+
width: endCursorPos.x - startCursorPos.x,
|
|
20838
|
+
height: line0Info.height,
|
|
20839
|
+
fill: "#336df4",
|
|
20840
|
+
fillOpacity: .2
|
|
20841
|
+
});else {
|
|
20842
|
+
this.editBg.setAttributes({
|
|
20843
|
+
x: 0,
|
|
20920
20844
|
y: line0Info.top,
|
|
20921
|
-
width:
|
|
20922
|
-
height:
|
|
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
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
this.editBg.add(createRect({
|
|
20961
|
-
x: p0.left,
|
|
20962
|
-
y: y,
|
|
20963
|
-
width: p1.left + p1.width - p0.left,
|
|
20964
|
-
height: line.height,
|
|
20965
|
-
fill: "#336df4",
|
|
20966
|
-
fillOpacity: .2
|
|
20967
|
-
}));
|
|
20968
|
-
}
|
|
20969
|
-
y += line.height;
|
|
20845
|
+
width: 0,
|
|
20846
|
+
height: 0
|
|
20847
|
+
});
|
|
20848
|
+
const startIdx = cache.lines.findIndex(item => item === line0Info),
|
|
20849
|
+
endIdx = cache.lines.findIndex(item => item === line1Info);
|
|
20850
|
+
let y = 0;
|
|
20851
|
+
for (let i = startIdx; i <= endIdx; i++) {
|
|
20852
|
+
const line = cache.lines[i];
|
|
20853
|
+
if (i === startIdx) {
|
|
20854
|
+
const p = line.paragraphs[line.paragraphs.length - 1];
|
|
20855
|
+
this.editBg.add(createRect({
|
|
20856
|
+
x: startCursorPos.x,
|
|
20857
|
+
y: y,
|
|
20858
|
+
width: p.left + p.width - startCursorPos.x,
|
|
20859
|
+
height: line.height,
|
|
20860
|
+
fill: "#336df4",
|
|
20861
|
+
fillOpacity: .2
|
|
20862
|
+
}));
|
|
20863
|
+
} else if (i === endIdx) {
|
|
20864
|
+
const p = line.paragraphs[0];
|
|
20865
|
+
this.editBg.add(createRect({
|
|
20866
|
+
x: p.left,
|
|
20867
|
+
y: y,
|
|
20868
|
+
width: endCursorPos.x - p.left,
|
|
20869
|
+
height: line.height,
|
|
20870
|
+
fill: "#336df4",
|
|
20871
|
+
fillOpacity: .2
|
|
20872
|
+
}));
|
|
20873
|
+
} else {
|
|
20874
|
+
const p0 = line.paragraphs[0],
|
|
20875
|
+
p1 = line.paragraphs[line.paragraphs.length - 1];
|
|
20876
|
+
this.editBg.add(createRect({
|
|
20877
|
+
x: p0.left,
|
|
20878
|
+
y: y,
|
|
20879
|
+
width: p1.left + p1.width - p0.left,
|
|
20880
|
+
height: line.height,
|
|
20881
|
+
fill: "#336df4",
|
|
20882
|
+
fillOpacity: .2
|
|
20883
|
+
}));
|
|
20970
20884
|
}
|
|
20885
|
+
y += line.height;
|
|
20971
20886
|
}
|
|
20972
|
-
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20973
20887
|
}
|
|
20888
|
+
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20974
20889
|
}
|
|
20975
20890
|
hideSelection() {
|
|
20976
20891
|
this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
|
|
@@ -21014,10 +20929,7 @@
|
|
|
21014
20929
|
return -1;
|
|
21015
20930
|
}
|
|
21016
20931
|
isRichtext(e) {
|
|
21017
|
-
return !(!e.target || "richtext" !== e.target.type);
|
|
21018
|
-
}
|
|
21019
|
-
isEditableRichtext(e) {
|
|
21020
|
-
return this.isRichtext(e) && !!e.target.attribute.editable;
|
|
20932
|
+
return !(!e.target || "richtext" !== e.target.type || !e.target.attribute.editable);
|
|
21021
20933
|
}
|
|
21022
20934
|
triggerRender() {
|
|
21023
20935
|
this.pluginService.stage.renderNextFrame();
|
|
@@ -21163,7 +21075,7 @@
|
|
|
21163
21075
|
target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
|
|
21164
21076
|
}
|
|
21165
21077
|
_forceFocusByEvent(e) {
|
|
21166
|
-
this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21078
|
+
this.handleEnter(e), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21167
21079
|
}
|
|
21168
21080
|
_forceFocusByCursorIndex(cursorIndex) {
|
|
21169
21081
|
const richtext = this.currRt;
|
|
@@ -21367,7 +21279,7 @@
|
|
|
21367
21279
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
21368
21280
|
});
|
|
21369
21281
|
|
|
21370
|
-
var __decorate$
|
|
21282
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21371
21283
|
var d,
|
|
21372
21284
|
c = arguments.length,
|
|
21373
21285
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21399,21 +21311,21 @@
|
|
|
21399
21311
|
}), context.highPerformanceRestore();
|
|
21400
21312
|
}
|
|
21401
21313
|
};
|
|
21402
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
21314
|
+
DefaultCanvasGlyphRender = __decorate$1c([injectable()], DefaultCanvasGlyphRender);
|
|
21403
21315
|
|
|
21404
21316
|
let loadGlyphModule = !1;
|
|
21405
21317
|
const glyphModule = new ContainerModule(bind => {
|
|
21406
21318
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
21407
21319
|
});
|
|
21408
21320
|
|
|
21409
|
-
var __decorate$
|
|
21321
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21410
21322
|
var d,
|
|
21411
21323
|
c = arguments.length,
|
|
21412
21324
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21413
21325
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21414
21326
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21415
21327
|
},
|
|
21416
|
-
__metadata$
|
|
21328
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
21417
21329
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21418
21330
|
};
|
|
21419
21331
|
let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
@@ -21467,7 +21379,7 @@
|
|
|
21467
21379
|
this._draw(richtext, richtextAttribute, !1, drawContext);
|
|
21468
21380
|
}
|
|
21469
21381
|
};
|
|
21470
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
21382
|
+
DefaultCanvasRichTextRender = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
21471
21383
|
|
|
21472
21384
|
let loadRichtextModule = !1;
|
|
21473
21385
|
const richtextModule = new ContainerModule(bind => {
|
|
@@ -21551,7 +21463,7 @@
|
|
|
21551
21463
|
}
|
|
21552
21464
|
}
|
|
21553
21465
|
|
|
21554
|
-
var __decorate$
|
|
21466
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21555
21467
|
var d,
|
|
21556
21468
|
c = arguments.length,
|
|
21557
21469
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21607,14 +21519,14 @@
|
|
|
21607
21519
|
this._draw(rect, rectAttribute, !1, drawContext);
|
|
21608
21520
|
}
|
|
21609
21521
|
};
|
|
21610
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
21522
|
+
DefaultCanvasRect3dRender = __decorate$1a([injectable()], DefaultCanvasRect3dRender);
|
|
21611
21523
|
|
|
21612
21524
|
let loadRect3dModule = !1;
|
|
21613
21525
|
const rect3dModule = new ContainerModule(bind => {
|
|
21614
21526
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
21615
21527
|
});
|
|
21616
21528
|
|
|
21617
|
-
var __decorate$
|
|
21529
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21618
21530
|
var d,
|
|
21619
21531
|
c = arguments.length,
|
|
21620
21532
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21741,14 +21653,14 @@
|
|
|
21741
21653
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
21742
21654
|
}
|
|
21743
21655
|
};
|
|
21744
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
21656
|
+
DefaultCanvasArc3DRender = __decorate$19([injectable()], DefaultCanvasArc3DRender);
|
|
21745
21657
|
|
|
21746
21658
|
let loadArc3dModule = !1;
|
|
21747
21659
|
const arc3dModule = new ContainerModule(bind => {
|
|
21748
21660
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
21749
21661
|
});
|
|
21750
21662
|
|
|
21751
|
-
var __decorate$
|
|
21663
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21752
21664
|
var d,
|
|
21753
21665
|
c = arguments.length,
|
|
21754
21666
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21785,7 +21697,7 @@
|
|
|
21785
21697
|
this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
|
|
21786
21698
|
}
|
|
21787
21699
|
};
|
|
21788
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
21700
|
+
DefaultCanvasPyramid3dRender = __decorate$18([injectable()], DefaultCanvasPyramid3dRender);
|
|
21789
21701
|
|
|
21790
21702
|
let loadPyramid3dModule = !1;
|
|
21791
21703
|
const pyramid3dModule = new ContainerModule(bind => {
|
|
@@ -23908,17 +23820,17 @@
|
|
|
23908
23820
|
}
|
|
23909
23821
|
}
|
|
23910
23822
|
|
|
23911
|
-
var __decorate$
|
|
23823
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23912
23824
|
var d,
|
|
23913
23825
|
c = arguments.length,
|
|
23914
23826
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23915
23827
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23916
23828
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23917
23829
|
},
|
|
23918
|
-
__metadata$
|
|
23830
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
23919
23831
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23920
23832
|
},
|
|
23921
|
-
__param$
|
|
23833
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23922
23834
|
return function (target, key) {
|
|
23923
23835
|
decorator(target, key, paramIndex);
|
|
23924
23836
|
};
|
|
@@ -24004,9 +23916,9 @@
|
|
|
24004
23916
|
}), context.highPerformanceRestore();
|
|
24005
23917
|
}
|
|
24006
23918
|
};
|
|
24007
|
-
RoughCanvasArcRender = __decorate$
|
|
23919
|
+
RoughCanvasArcRender = __decorate$17([injectable(), __param$C(0, inject(exports.DefaultCanvasArcRender)), __metadata$U("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
24008
23920
|
|
|
24009
|
-
var __decorate$
|
|
23921
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24010
23922
|
var d,
|
|
24011
23923
|
c = arguments.length,
|
|
24012
23924
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24084,19 +23996,19 @@
|
|
|
24084
23996
|
}), context.highPerformanceRestore(), !1;
|
|
24085
23997
|
}
|
|
24086
23998
|
};
|
|
24087
|
-
RoughCanvasAreaRender = __decorate$
|
|
23999
|
+
RoughCanvasAreaRender = __decorate$16([injectable()], RoughCanvasAreaRender);
|
|
24088
24000
|
|
|
24089
|
-
var __decorate$
|
|
24001
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24090
24002
|
var d,
|
|
24091
24003
|
c = arguments.length,
|
|
24092
24004
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24093
24005
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24094
24006
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24095
24007
|
},
|
|
24096
|
-
__metadata$
|
|
24008
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
24097
24009
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24098
24010
|
},
|
|
24099
|
-
__param$
|
|
24011
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24100
24012
|
return function (target, key) {
|
|
24101
24013
|
decorator(target, key, paramIndex);
|
|
24102
24014
|
};
|
|
@@ -24133,9 +24045,9 @@
|
|
|
24133
24045
|
});
|
|
24134
24046
|
}
|
|
24135
24047
|
};
|
|
24136
|
-
RoughCanvasCircleRender = __decorate$
|
|
24048
|
+
RoughCanvasCircleRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasCircleRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
24137
24049
|
|
|
24138
|
-
var __decorate$
|
|
24050
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24139
24051
|
var d,
|
|
24140
24052
|
c = arguments.length,
|
|
24141
24053
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24214,19 +24126,19 @@
|
|
|
24214
24126
|
}), context.highPerformanceRestore(), !1;
|
|
24215
24127
|
}
|
|
24216
24128
|
};
|
|
24217
|
-
RoughCanvasLineRender = __decorate$
|
|
24129
|
+
RoughCanvasLineRender = __decorate$14([injectable()], RoughCanvasLineRender);
|
|
24218
24130
|
|
|
24219
|
-
var __decorate$
|
|
24131
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24220
24132
|
var d,
|
|
24221
24133
|
c = arguments.length,
|
|
24222
24134
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24223
24135
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24224
24136
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24225
24137
|
},
|
|
24226
|
-
__metadata$
|
|
24138
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
24227
24139
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24228
24140
|
},
|
|
24229
|
-
__param$
|
|
24141
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24230
24142
|
return function (target, key) {
|
|
24231
24143
|
decorator(target, key, paramIndex);
|
|
24232
24144
|
};
|
|
@@ -24300,19 +24212,19 @@
|
|
|
24300
24212
|
}), context.highPerformanceRestore();
|
|
24301
24213
|
}
|
|
24302
24214
|
};
|
|
24303
|
-
RoughCanvasPathRender = __decorate$
|
|
24215
|
+
RoughCanvasPathRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasPathRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
24304
24216
|
|
|
24305
|
-
var __decorate$
|
|
24217
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24306
24218
|
var d,
|
|
24307
24219
|
c = arguments.length,
|
|
24308
24220
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24309
24221
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24310
24222
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24311
24223
|
},
|
|
24312
|
-
__metadata$
|
|
24224
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
24313
24225
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24314
24226
|
},
|
|
24315
|
-
__param$
|
|
24227
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24316
24228
|
return function (target, key) {
|
|
24317
24229
|
decorator(target, key, paramIndex);
|
|
24318
24230
|
};
|
|
@@ -24403,19 +24315,19 @@
|
|
|
24403
24315
|
}), context.highPerformanceRestore();
|
|
24404
24316
|
}
|
|
24405
24317
|
};
|
|
24406
|
-
RoughCanvasRectRender = __decorate$
|
|
24318
|
+
RoughCanvasRectRender = __decorate$12([injectable(), __param$z(0, inject(exports.DefaultCanvasRectRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
24407
24319
|
|
|
24408
|
-
var __decorate
|
|
24320
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24409
24321
|
var d,
|
|
24410
24322
|
c = arguments.length,
|
|
24411
24323
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24412
24324
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24413
24325
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24414
24326
|
},
|
|
24415
|
-
__metadata$
|
|
24327
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
24416
24328
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24417
24329
|
},
|
|
24418
|
-
__param$
|
|
24330
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24419
24331
|
return function (target, key) {
|
|
24420
24332
|
decorator(target, key, paramIndex);
|
|
24421
24333
|
};
|
|
@@ -24507,7 +24419,7 @@
|
|
|
24507
24419
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24508
24420
|
}
|
|
24509
24421
|
};
|
|
24510
|
-
RoughCanvasSymbolRender = __decorate
|
|
24422
|
+
RoughCanvasSymbolRender = __decorate$11([injectable(), __param$y(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
24511
24423
|
|
|
24512
24424
|
var _roughModule = new ContainerModule(bind => {
|
|
24513
24425
|
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);
|
|
@@ -24530,6 +24442,7 @@
|
|
|
24530
24442
|
const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
|
|
24531
24443
|
const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
|
|
24532
24444
|
const CanvasImagePicker = Symbol.for("CanvasImagePicker");
|
|
24445
|
+
const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
|
|
24533
24446
|
const CanvasLinePicker = Symbol.for("CanvasLinePicker");
|
|
24534
24447
|
const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
|
|
24535
24448
|
const CanvasPathPicker = Symbol.for("CanvasPathPicker");
|
|
@@ -24670,9 +24583,11 @@
|
|
|
24670
24583
|
name: name,
|
|
24671
24584
|
id: id,
|
|
24672
24585
|
attribute: attribute,
|
|
24673
|
-
stateProxy: stateProxy
|
|
24586
|
+
stateProxy: stateProxy,
|
|
24587
|
+
animation: animation,
|
|
24588
|
+
timeline: timeline
|
|
24674
24589
|
} = _a,
|
|
24675
|
-
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
|
|
24590
|
+
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
|
|
24676
24591
|
let c = type;
|
|
24677
24592
|
isString$1(type) && (c = graphicCreator[type]);
|
|
24678
24593
|
const childrenList = [];
|
|
@@ -24681,7 +24596,13 @@
|
|
|
24681
24596
|
}
|
|
24682
24597
|
children.length && flatten(1 === children.length ? children[0] : children, childrenList);
|
|
24683
24598
|
const g = "Group" === c.name ? new c(attribute) : c(config);
|
|
24684
|
-
|
|
24599
|
+
if (parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), name && (g.name = name), isArray$1(animation)) {
|
|
24600
|
+
const animate = g.animate();
|
|
24601
|
+
timeline && animate.setTimeline(timeline), animation.forEach(item => {
|
|
24602
|
+
animate[item[0]](...item.slice(1));
|
|
24603
|
+
});
|
|
24604
|
+
}
|
|
24605
|
+
return g;
|
|
24685
24606
|
}
|
|
24686
24607
|
function parseToGraphic$1(g, childrenList, props) {
|
|
24687
24608
|
let out,
|
|
@@ -25011,14 +24932,14 @@
|
|
|
25011
24932
|
}
|
|
25012
24933
|
}
|
|
25013
24934
|
|
|
25014
|
-
var __decorate$
|
|
24935
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25015
24936
|
var d,
|
|
25016
24937
|
c = arguments.length,
|
|
25017
24938
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25018
24939
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25019
24940
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25020
24941
|
},
|
|
25021
|
-
__metadata$
|
|
24942
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
25022
24943
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25023
24944
|
};
|
|
25024
24945
|
const outP = [0, 0, 0],
|
|
@@ -25530,16 +25451,16 @@
|
|
|
25530
25451
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25531
25452
|
}
|
|
25532
25453
|
};
|
|
25533
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
25454
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$10([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
25534
25455
|
|
|
25535
|
-
var __decorate
|
|
25456
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25536
25457
|
var d,
|
|
25537
25458
|
c = arguments.length,
|
|
25538
25459
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25539
25460
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25540
25461
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25541
25462
|
},
|
|
25542
|
-
__metadata$
|
|
25463
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
25543
25464
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25544
25465
|
};
|
|
25545
25466
|
let BrowserCanvas = class extends BaseCanvas {
|
|
@@ -25601,7 +25522,7 @@
|
|
|
25601
25522
|
this._context.dpr = this._dpr;
|
|
25602
25523
|
}
|
|
25603
25524
|
};
|
|
25604
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate
|
|
25525
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$$([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
|
|
25605
25526
|
|
|
25606
25527
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
25607
25528
|
return new ContainerModule(bind => {
|
|
@@ -25611,17 +25532,17 @@
|
|
|
25611
25532
|
|
|
25612
25533
|
const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
25613
25534
|
|
|
25614
|
-
var __decorate$
|
|
25535
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25615
25536
|
var d,
|
|
25616
25537
|
c = arguments.length,
|
|
25617
25538
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25618
25539
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25619
25540
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25620
25541
|
},
|
|
25621
|
-
__metadata$
|
|
25542
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
25622
25543
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25623
25544
|
},
|
|
25624
|
-
__param$
|
|
25545
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25625
25546
|
return function (target, key) {
|
|
25626
25547
|
decorator(target, key, paramIndex);
|
|
25627
25548
|
};
|
|
@@ -25672,9 +25593,9 @@
|
|
|
25672
25593
|
return data;
|
|
25673
25594
|
}
|
|
25674
25595
|
};
|
|
25675
|
-
DefaultCanvasPickerService = __decorate$
|
|
25596
|
+
DefaultCanvasPickerService = __decorate$_([injectable(), __param$x(0, inject(ContributionProvider)), __param$x(0, named(CanvasPickerContribution)), __param$x(1, inject(DrawContribution)), __param$x(2, inject(ContributionProvider)), __param$x(2, named(PickItemInterceptor)), __param$x(3, inject(ContributionProvider)), __param$x(3, named(PickServiceInterceptor)), __metadata$N("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
|
|
25676
25597
|
|
|
25677
|
-
var __decorate$
|
|
25598
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25678
25599
|
var d,
|
|
25679
25600
|
c = arguments.length,
|
|
25680
25601
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25689,7 +25610,7 @@
|
|
|
25689
25610
|
return !1;
|
|
25690
25611
|
}
|
|
25691
25612
|
};
|
|
25692
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
25613
|
+
DefaultCanvasGroupPicker = __decorate$Z([injectable()], DefaultCanvasGroupPicker);
|
|
25693
25614
|
|
|
25694
25615
|
const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
25695
25616
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -25705,14 +25626,14 @@
|
|
|
25705
25626
|
}
|
|
25706
25627
|
|
|
25707
25628
|
var BrowserWindowHandlerContribution_1,
|
|
25708
|
-
__decorate$
|
|
25629
|
+
__decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25709
25630
|
var d,
|
|
25710
25631
|
c = arguments.length,
|
|
25711
25632
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25712
25633
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25713
25634
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25714
25635
|
},
|
|
25715
|
-
__metadata$
|
|
25636
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
25716
25637
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25717
25638
|
};
|
|
25718
25639
|
let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends exports.BaseWindowHandlerContribution {
|
|
@@ -25870,19 +25791,19 @@
|
|
|
25870
25791
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
25871
25792
|
}
|
|
25872
25793
|
};
|
|
25873
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$
|
|
25794
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$Y([injectable(), __metadata$M("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
25874
25795
|
const browserWindowModule = new ContainerModule(bind => {
|
|
25875
25796
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
25876
25797
|
});
|
|
25877
25798
|
|
|
25878
|
-
var __decorate$
|
|
25799
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25879
25800
|
var d,
|
|
25880
25801
|
c = arguments.length,
|
|
25881
25802
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25882
25803
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25883
25804
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25884
25805
|
},
|
|
25885
|
-
__metadata$
|
|
25806
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
25886
25807
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25887
25808
|
},
|
|
25888
25809
|
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -25936,7 +25857,7 @@
|
|
|
25936
25857
|
function createImageElement$1(src) {
|
|
25937
25858
|
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
25938
25859
|
const img = document.createElement("img");
|
|
25939
|
-
if (img.crossOrigin = "anonymous", isSvg) {
|
|
25860
|
+
if (application.global.isImageAnonymous && (img.crossOrigin = "anonymous"), isSvg) {
|
|
25940
25861
|
const data = new Blob([src], {
|
|
25941
25862
|
type: "image/svg+xml"
|
|
25942
25863
|
});
|
|
@@ -26129,7 +26050,7 @@
|
|
|
26129
26050
|
return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
|
|
26130
26051
|
}
|
|
26131
26052
|
};
|
|
26132
|
-
exports.BrowserEnvContribution = __decorate$
|
|
26053
|
+
exports.BrowserEnvContribution = __decorate$X([injectable(), __metadata$L("design:paramtypes", [])], exports.BrowserEnvContribution);
|
|
26133
26054
|
|
|
26134
26055
|
const browserEnvModule = new ContainerModule(bind => {
|
|
26135
26056
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(exports.BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(exports.BrowserEnvContribution));
|
|
@@ -26144,7 +26065,7 @@
|
|
|
26144
26065
|
loadBrowserEnv(container);
|
|
26145
26066
|
}
|
|
26146
26067
|
|
|
26147
|
-
var __decorate$
|
|
26068
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26148
26069
|
var d,
|
|
26149
26070
|
c = arguments.length,
|
|
26150
26071
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26189,16 +26110,16 @@
|
|
|
26189
26110
|
return null;
|
|
26190
26111
|
}
|
|
26191
26112
|
};
|
|
26192
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
26113
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$W([injectable()], FeishuContext2d);
|
|
26193
26114
|
|
|
26194
|
-
var __decorate$
|
|
26115
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26195
26116
|
var d,
|
|
26196
26117
|
c = arguments.length,
|
|
26197
26118
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26198
26119
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26199
26120
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26200
26121
|
},
|
|
26201
|
-
__metadata$
|
|
26122
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
26202
26123
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26203
26124
|
};
|
|
26204
26125
|
let FeishuCanvas = class extends BaseCanvas {
|
|
@@ -26210,21 +26131,21 @@
|
|
|
26210
26131
|
}
|
|
26211
26132
|
release() {}
|
|
26212
26133
|
};
|
|
26213
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
26134
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object])], FeishuCanvas);
|
|
26214
26135
|
|
|
26215
26136
|
const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
26216
26137
|
|
|
26217
|
-
var __decorate$
|
|
26138
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26218
26139
|
var d,
|
|
26219
26140
|
c = arguments.length,
|
|
26220
26141
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26221
26142
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26222
26143
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26223
26144
|
},
|
|
26224
|
-
__metadata$
|
|
26145
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
26225
26146
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26226
26147
|
},
|
|
26227
|
-
__param$
|
|
26148
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26228
26149
|
return function (target, key) {
|
|
26229
26150
|
decorator(target, key, paramIndex);
|
|
26230
26151
|
};
|
|
@@ -26360,22 +26281,22 @@
|
|
|
26360
26281
|
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();
|
|
26361
26282
|
}
|
|
26362
26283
|
};
|
|
26363
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
26284
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$U([injectable(), __param$w(0, inject(VGlobal)), __metadata$J("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
26364
26285
|
const feishuWindowModule = new ContainerModule(bind => {
|
|
26365
26286
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
26366
26287
|
});
|
|
26367
26288
|
|
|
26368
|
-
var __decorate$
|
|
26289
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26369
26290
|
var d,
|
|
26370
26291
|
c = arguments.length,
|
|
26371
26292
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26372
26293
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26373
26294
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26374
26295
|
},
|
|
26375
|
-
__metadata$
|
|
26296
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
26376
26297
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26377
26298
|
},
|
|
26378
|
-
__param$
|
|
26299
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26379
26300
|
return function (target, key) {
|
|
26380
26301
|
decorator(target, key, paramIndex);
|
|
26381
26302
|
};
|
|
@@ -26406,7 +26327,7 @@
|
|
|
26406
26327
|
} : null;
|
|
26407
26328
|
}
|
|
26408
26329
|
};
|
|
26409
|
-
DefaultMathPickerService = __decorate$
|
|
26330
|
+
DefaultMathPickerService = __decorate$T([injectable(), __param$v(0, inject(ContributionProvider)), __param$v(0, named(MathPickerContribution)), __param$v(1, inject(ContributionProvider)), __param$v(1, named(PickItemInterceptor)), __param$v(2, inject(ContributionProvider)), __param$v(2, named(PickServiceInterceptor)), __metadata$I("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
|
|
26410
26331
|
|
|
26411
26332
|
const m = new ContainerModule(bind => {
|
|
26412
26333
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -26443,17 +26364,17 @@
|
|
|
26443
26364
|
}
|
|
26444
26365
|
}
|
|
26445
26366
|
|
|
26446
|
-
var __decorate$
|
|
26367
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26447
26368
|
var d,
|
|
26448
26369
|
c = arguments.length,
|
|
26449
26370
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26450
26371
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26451
26372
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26452
26373
|
},
|
|
26453
|
-
__metadata$
|
|
26374
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
26454
26375
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26455
26376
|
},
|
|
26456
|
-
__param$
|
|
26377
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26457
26378
|
return function (target, key) {
|
|
26458
26379
|
decorator(target, key, paramIndex);
|
|
26459
26380
|
};
|
|
@@ -26463,24 +26384,24 @@
|
|
|
26463
26384
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
26464
26385
|
}
|
|
26465
26386
|
};
|
|
26466
|
-
DefaultMathArcPicker = __decorate$
|
|
26387
|
+
DefaultMathArcPicker = __decorate$S([injectable(), __param$u(0, inject(ArcRender)), __metadata$H("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
26467
26388
|
|
|
26468
26389
|
let loadArcPick$1 = !1;
|
|
26469
26390
|
const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26470
26391
|
loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
|
|
26471
26392
|
});
|
|
26472
26393
|
|
|
26473
|
-
var __decorate$
|
|
26394
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26474
26395
|
var d,
|
|
26475
26396
|
c = arguments.length,
|
|
26476
26397
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26477
26398
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26478
26399
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26479
26400
|
},
|
|
26480
|
-
__metadata$
|
|
26401
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
26481
26402
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26482
26403
|
},
|
|
26483
|
-
__param$
|
|
26404
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26484
26405
|
return function (target, key) {
|
|
26485
26406
|
decorator(target, key, paramIndex);
|
|
26486
26407
|
};
|
|
@@ -26490,24 +26411,24 @@
|
|
|
26490
26411
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
26491
26412
|
}
|
|
26492
26413
|
};
|
|
26493
|
-
DefaultMathAreaPicker = __decorate$
|
|
26414
|
+
DefaultMathAreaPicker = __decorate$R([injectable(), __param$t(0, inject(AreaRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathAreaPicker);
|
|
26494
26415
|
|
|
26495
26416
|
let loadAreaPick$1 = !1;
|
|
26496
26417
|
const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26497
26418
|
loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
|
|
26498
26419
|
});
|
|
26499
26420
|
|
|
26500
|
-
var __decorate$
|
|
26421
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26501
26422
|
var d,
|
|
26502
26423
|
c = arguments.length,
|
|
26503
26424
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26504
26425
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26505
26426
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26506
26427
|
},
|
|
26507
|
-
__metadata$
|
|
26428
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
26508
26429
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26509
26430
|
},
|
|
26510
|
-
__param$
|
|
26431
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26511
26432
|
return function (target, key) {
|
|
26512
26433
|
decorator(target, key, paramIndex);
|
|
26513
26434
|
};
|
|
@@ -26517,7 +26438,7 @@
|
|
|
26517
26438
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
26518
26439
|
}
|
|
26519
26440
|
};
|
|
26520
|
-
DefaultMathCirclePicker = __decorate$
|
|
26441
|
+
DefaultMathCirclePicker = __decorate$Q([injectable(), __param$s(0, inject(CircleRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
26521
26442
|
|
|
26522
26443
|
let loadCirclePick$1 = !1;
|
|
26523
26444
|
const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26548,17 +26469,17 @@
|
|
|
26548
26469
|
}
|
|
26549
26470
|
}
|
|
26550
26471
|
|
|
26551
|
-
var __decorate$
|
|
26472
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26552
26473
|
var d,
|
|
26553
26474
|
c = arguments.length,
|
|
26554
26475
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26555
26476
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26556
26477
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26557
26478
|
},
|
|
26558
|
-
__metadata$
|
|
26479
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
26559
26480
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26560
26481
|
},
|
|
26561
|
-
__param$
|
|
26482
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26562
26483
|
return function (target, key) {
|
|
26563
26484
|
decorator(target, key, paramIndex);
|
|
26564
26485
|
};
|
|
@@ -26568,14 +26489,14 @@
|
|
|
26568
26489
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26569
26490
|
}
|
|
26570
26491
|
};
|
|
26571
|
-
DefaultMathGlyphPicker = __decorate$
|
|
26492
|
+
DefaultMathGlyphPicker = __decorate$P([injectable(), __param$r(0, inject(GlyphRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
26572
26493
|
|
|
26573
26494
|
let loadGlyphPick$1 = !1;
|
|
26574
26495
|
const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26575
26496
|
loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
|
|
26576
26497
|
});
|
|
26577
26498
|
|
|
26578
|
-
var __decorate$
|
|
26499
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26579
26500
|
var d,
|
|
26580
26501
|
c = arguments.length,
|
|
26581
26502
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26593,24 +26514,24 @@
|
|
|
26593
26514
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
26594
26515
|
}
|
|
26595
26516
|
};
|
|
26596
|
-
DefaultMathImagePicker = __decorate$
|
|
26517
|
+
DefaultMathImagePicker = __decorate$O([injectable()], DefaultMathImagePicker);
|
|
26597
26518
|
|
|
26598
26519
|
let loadImagePick$1 = !1;
|
|
26599
26520
|
const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26600
26521
|
loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26601
26522
|
});
|
|
26602
26523
|
|
|
26603
|
-
var __decorate$
|
|
26524
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26604
26525
|
var d,
|
|
26605
26526
|
c = arguments.length,
|
|
26606
26527
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26607
26528
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26608
26529
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26609
26530
|
},
|
|
26610
|
-
__metadata$
|
|
26531
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
26611
26532
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26612
26533
|
},
|
|
26613
|
-
__param$
|
|
26534
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26614
26535
|
return function (target, key) {
|
|
26615
26536
|
decorator(target, key, paramIndex);
|
|
26616
26537
|
};
|
|
@@ -26620,24 +26541,24 @@
|
|
|
26620
26541
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
26621
26542
|
}
|
|
26622
26543
|
};
|
|
26623
|
-
DefaultMathLinePicker = __decorate$
|
|
26544
|
+
DefaultMathLinePicker = __decorate$N([injectable(), __param$q(0, inject(LineRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
26624
26545
|
|
|
26625
26546
|
let loadLinePick$1 = !1;
|
|
26626
26547
|
const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26627
26548
|
loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
|
|
26628
26549
|
});
|
|
26629
26550
|
|
|
26630
|
-
var __decorate$
|
|
26551
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26631
26552
|
var d,
|
|
26632
26553
|
c = arguments.length,
|
|
26633
26554
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26634
26555
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26635
26556
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26636
26557
|
},
|
|
26637
|
-
__metadata$
|
|
26558
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
26638
26559
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26639
26560
|
},
|
|
26640
|
-
__param$
|
|
26561
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26641
26562
|
return function (target, key) {
|
|
26642
26563
|
decorator(target, key, paramIndex);
|
|
26643
26564
|
};
|
|
@@ -26647,24 +26568,24 @@
|
|
|
26647
26568
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
26648
26569
|
}
|
|
26649
26570
|
};
|
|
26650
|
-
DefaultMathPolygonPicker = __decorate$
|
|
26571
|
+
DefaultMathPolygonPicker = __decorate$M([injectable(), __param$p(0, inject(PolygonRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
26651
26572
|
|
|
26652
26573
|
let loadPolygonPick$1 = !1;
|
|
26653
26574
|
const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26654
26575
|
loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
|
|
26655
26576
|
});
|
|
26656
26577
|
|
|
26657
|
-
var __decorate$
|
|
26578
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26658
26579
|
var d,
|
|
26659
26580
|
c = arguments.length,
|
|
26660
26581
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26661
26582
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26662
26583
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26663
26584
|
},
|
|
26664
|
-
__metadata$
|
|
26585
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
26665
26586
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26666
26587
|
},
|
|
26667
|
-
__param$
|
|
26588
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26668
26589
|
return function (target, key) {
|
|
26669
26590
|
decorator(target, key, paramIndex);
|
|
26670
26591
|
};
|
|
@@ -26674,7 +26595,7 @@
|
|
|
26674
26595
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
26675
26596
|
}
|
|
26676
26597
|
};
|
|
26677
|
-
DefaultMathPathPicker = __decorate$
|
|
26598
|
+
DefaultMathPathPicker = __decorate$L([injectable(), __param$o(0, inject(PathRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
26678
26599
|
|
|
26679
26600
|
let loadPathPick$1 = !1;
|
|
26680
26601
|
const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26729,17 +26650,17 @@
|
|
|
26729
26650
|
}
|
|
26730
26651
|
}
|
|
26731
26652
|
|
|
26732
|
-
var __decorate$
|
|
26653
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26733
26654
|
var d,
|
|
26734
26655
|
c = arguments.length,
|
|
26735
26656
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26736
26657
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26737
26658
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26738
26659
|
},
|
|
26739
|
-
__metadata$
|
|
26660
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
26740
26661
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26741
26662
|
},
|
|
26742
|
-
__param$
|
|
26663
|
+
__param$n = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26743
26664
|
return function (target, key) {
|
|
26744
26665
|
decorator(target, key, paramIndex);
|
|
26745
26666
|
};
|
|
@@ -26749,7 +26670,7 @@
|
|
|
26749
26670
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26750
26671
|
}
|
|
26751
26672
|
};
|
|
26752
|
-
DefaultMathRectPicker = __decorate$
|
|
26673
|
+
DefaultMathRectPicker = __decorate$K([injectable(), __param$n(0, inject(RectRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
26753
26674
|
|
|
26754
26675
|
let loadRectPick$1 = !1;
|
|
26755
26676
|
const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26761,17 +26682,17 @@
|
|
|
26761
26682
|
loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26762
26683
|
});
|
|
26763
26684
|
|
|
26764
|
-
var __decorate$
|
|
26685
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26765
26686
|
var d,
|
|
26766
26687
|
c = arguments.length,
|
|
26767
26688
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26768
26689
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26769
26690
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26770
26691
|
},
|
|
26771
|
-
__metadata$
|
|
26692
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
26772
26693
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26773
26694
|
},
|
|
26774
|
-
__param$
|
|
26695
|
+
__param$m = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26775
26696
|
return function (target, key) {
|
|
26776
26697
|
decorator(target, key, paramIndex);
|
|
26777
26698
|
};
|
|
@@ -26781,14 +26702,14 @@
|
|
|
26781
26702
|
super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
26782
26703
|
}
|
|
26783
26704
|
};
|
|
26784
|
-
DefaultMathSymbolPicker = __decorate$
|
|
26705
|
+
DefaultMathSymbolPicker = __decorate$J([injectable(), __param$m(0, inject(SymbolRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
26785
26706
|
|
|
26786
26707
|
let loadSymbolPick$1 = !1;
|
|
26787
26708
|
const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26788
26709
|
loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
|
|
26789
26710
|
});
|
|
26790
26711
|
|
|
26791
|
-
var __decorate$
|
|
26712
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26792
26713
|
var d,
|
|
26793
26714
|
c = arguments.length,
|
|
26794
26715
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26803,7 +26724,7 @@
|
|
|
26803
26724
|
return !!text.AABBBounds.containsPoint(point);
|
|
26804
26725
|
}
|
|
26805
26726
|
};
|
|
26806
|
-
DefaultMathTextPicker = __decorate$
|
|
26727
|
+
DefaultMathTextPicker = __decorate$I([injectable()], DefaultMathTextPicker);
|
|
26807
26728
|
|
|
26808
26729
|
let loadTextPick$1 = !1;
|
|
26809
26730
|
const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26886,19 +26807,20 @@
|
|
|
26886
26807
|
}
|
|
26887
26808
|
}
|
|
26888
26809
|
|
|
26889
|
-
var __decorate$
|
|
26810
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26890
26811
|
var d,
|
|
26891
26812
|
c = arguments.length,
|
|
26892
26813
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26893
26814
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26894
26815
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26895
26816
|
},
|
|
26896
|
-
__metadata$
|
|
26817
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
26897
26818
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26898
26819
|
};
|
|
26899
26820
|
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
26900
26821
|
const dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
|
|
26901
26822
|
canvasIdLists.forEach((id, i) => {
|
|
26823
|
+
if (canvasMap.has(id)) return;
|
|
26902
26824
|
const ctx = tt.createCanvasContext(id),
|
|
26903
26825
|
canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
|
|
26904
26826
|
ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
|
|
@@ -26975,7 +26897,7 @@
|
|
|
26975
26897
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
26976
26898
|
}
|
|
26977
26899
|
};
|
|
26978
|
-
FeishuEnvContribution = __decorate$
|
|
26900
|
+
FeishuEnvContribution = __decorate$H([injectable(), __metadata$y("design:paramtypes", [])], FeishuEnvContribution);
|
|
26979
26901
|
|
|
26980
26902
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
26981
26903
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -26990,7 +26912,7 @@
|
|
|
26990
26912
|
loadFeishuEnv(container);
|
|
26991
26913
|
}
|
|
26992
26914
|
|
|
26993
|
-
var __decorate$
|
|
26915
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26994
26916
|
var d,
|
|
26995
26917
|
c = arguments.length,
|
|
26996
26918
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27037,7 +26959,13 @@
|
|
|
27037
26959
|
measureText(text) {
|
|
27038
26960
|
let method = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : application.global.measureTextMethod;
|
|
27039
26961
|
this.setTransform(1, 0, 0, 1, 0, 0, !0, application.global.devicePixelRatio);
|
|
27040
|
-
return
|
|
26962
|
+
return {
|
|
26963
|
+
width: super.measureText(text, method).width,
|
|
26964
|
+
fontBoundingBoxDescent: void 0,
|
|
26965
|
+
fontBoundingBoxAscent: void 0,
|
|
26966
|
+
actualBoundingBoxAscent: void 0,
|
|
26967
|
+
actualBoundingBoxDescent: void 0
|
|
26968
|
+
};
|
|
27041
26969
|
}
|
|
27042
26970
|
createPattern(image, repetition) {
|
|
27043
26971
|
return null;
|
|
@@ -27051,16 +26979,16 @@
|
|
|
27051
26979
|
}));
|
|
27052
26980
|
}
|
|
27053
26981
|
};
|
|
27054
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
26982
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$G([injectable()], LynxContext2d);
|
|
27055
26983
|
|
|
27056
|
-
var __decorate$
|
|
26984
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27057
26985
|
var d,
|
|
27058
26986
|
c = arguments.length,
|
|
27059
26987
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27060
26988
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27061
26989
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27062
26990
|
},
|
|
27063
|
-
__metadata$
|
|
26991
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
27064
26992
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27065
26993
|
};
|
|
27066
26994
|
let LynxCanvas = class extends BaseCanvas {
|
|
@@ -27076,19 +27004,19 @@
|
|
|
27076
27004
|
}
|
|
27077
27005
|
release() {}
|
|
27078
27006
|
};
|
|
27079
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
27007
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], LynxCanvas);
|
|
27080
27008
|
|
|
27081
|
-
var __decorate$
|
|
27009
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27082
27010
|
var d,
|
|
27083
27011
|
c = arguments.length,
|
|
27084
27012
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27085
27013
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27086
27014
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27087
27015
|
},
|
|
27088
|
-
__metadata$
|
|
27016
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
27089
27017
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27090
27018
|
},
|
|
27091
|
-
__param$
|
|
27019
|
+
__param$l = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27092
27020
|
return function (target, key) {
|
|
27093
27021
|
decorator(target, key, paramIndex);
|
|
27094
27022
|
};
|
|
@@ -27226,21 +27154,21 @@
|
|
|
27226
27154
|
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();
|
|
27227
27155
|
}
|
|
27228
27156
|
};
|
|
27229
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
27157
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$E([injectable(), __param$l(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
27230
27158
|
const lynxWindowModule = new ContainerModule(bind => {
|
|
27231
27159
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
|
|
27232
27160
|
});
|
|
27233
27161
|
|
|
27234
27162
|
const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
27235
27163
|
|
|
27236
|
-
var __decorate$
|
|
27164
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27237
27165
|
var d,
|
|
27238
27166
|
c = arguments.length,
|
|
27239
27167
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27240
27168
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27241
27169
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27242
27170
|
},
|
|
27243
|
-
__metadata$
|
|
27171
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
27244
27172
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27245
27173
|
};
|
|
27246
27174
|
let ng = !1;
|
|
@@ -27350,7 +27278,7 @@
|
|
|
27350
27278
|
}
|
|
27351
27279
|
release() {}
|
|
27352
27280
|
};
|
|
27353
|
-
LynxEnvContribution = __decorate$
|
|
27281
|
+
LynxEnvContribution = __decorate$D([injectable(), __metadata$v("design:paramtypes", [])], LynxEnvContribution);
|
|
27354
27282
|
|
|
27355
27283
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
27356
27284
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -27365,14 +27293,14 @@
|
|
|
27365
27293
|
loadLynxEnv(container);
|
|
27366
27294
|
}
|
|
27367
27295
|
|
|
27368
|
-
var __decorate$
|
|
27296
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27369
27297
|
var d,
|
|
27370
27298
|
c = arguments.length,
|
|
27371
27299
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27372
27300
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27373
27301
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27374
27302
|
},
|
|
27375
|
-
__metadata$
|
|
27303
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
27376
27304
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27377
27305
|
};
|
|
27378
27306
|
let NodeContext2d = class extends BrowserContext2d {
|
|
@@ -27384,16 +27312,16 @@
|
|
|
27384
27312
|
}
|
|
27385
27313
|
release() {}
|
|
27386
27314
|
};
|
|
27387
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
27315
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$C([injectable(), __metadata$u("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
27388
27316
|
|
|
27389
|
-
var __decorate$
|
|
27317
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27390
27318
|
var d,
|
|
27391
27319
|
c = arguments.length,
|
|
27392
27320
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27393
27321
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27394
27322
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27395
27323
|
},
|
|
27396
|
-
__metadata$
|
|
27324
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
27397
27325
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27398
27326
|
};
|
|
27399
27327
|
let NodeCanvas = class extends BaseCanvas {
|
|
@@ -27407,21 +27335,21 @@
|
|
|
27407
27335
|
this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
27408
27336
|
}
|
|
27409
27337
|
};
|
|
27410
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
27338
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$B([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
|
|
27411
27339
|
|
|
27412
27340
|
const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
27413
27341
|
|
|
27414
|
-
var __decorate$
|
|
27342
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27415
27343
|
var d,
|
|
27416
27344
|
c = arguments.length,
|
|
27417
27345
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27418
27346
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27419
27347
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27420
27348
|
},
|
|
27421
|
-
__metadata$
|
|
27349
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
27422
27350
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27423
27351
|
},
|
|
27424
|
-
__param$
|
|
27352
|
+
__param$k = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27425
27353
|
return function (target, key) {
|
|
27426
27354
|
decorator(target, key, paramIndex);
|
|
27427
27355
|
};
|
|
@@ -27512,12 +27440,12 @@
|
|
|
27512
27440
|
}
|
|
27513
27441
|
clearViewBox(color) {}
|
|
27514
27442
|
};
|
|
27515
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
27443
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$A([injectable(), __param$k(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
27516
27444
|
const nodeWindowModule = new ContainerModule(bind => {
|
|
27517
27445
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
27518
27446
|
});
|
|
27519
27447
|
|
|
27520
|
-
var __decorate$
|
|
27448
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27521
27449
|
var d,
|
|
27522
27450
|
c = arguments.length,
|
|
27523
27451
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27603,7 +27531,7 @@
|
|
|
27603
27531
|
release() {}
|
|
27604
27532
|
createOffscreenCanvas(params) {}
|
|
27605
27533
|
};
|
|
27606
|
-
NodeEnvContribution = __decorate$
|
|
27534
|
+
NodeEnvContribution = __decorate$z([injectable()], NodeEnvContribution);
|
|
27607
27535
|
|
|
27608
27536
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
27609
27537
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -27617,7 +27545,7 @@
|
|
|
27617
27545
|
loadNodeEnv(container);
|
|
27618
27546
|
}
|
|
27619
27547
|
|
|
27620
|
-
var __decorate$
|
|
27548
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27621
27549
|
var d,
|
|
27622
27550
|
c = arguments.length,
|
|
27623
27551
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27706,16 +27634,16 @@
|
|
|
27706
27634
|
return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
|
|
27707
27635
|
}
|
|
27708
27636
|
};
|
|
27709
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
27637
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$y([injectable()], TaroContext2d);
|
|
27710
27638
|
|
|
27711
|
-
var __decorate$
|
|
27639
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27712
27640
|
var d,
|
|
27713
27641
|
c = arguments.length,
|
|
27714
27642
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27715
27643
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27716
27644
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27717
27645
|
},
|
|
27718
|
-
__metadata$
|
|
27646
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
27719
27647
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27720
27648
|
};
|
|
27721
27649
|
let TaroCanvas = class extends BaseCanvas {
|
|
@@ -27727,21 +27655,21 @@
|
|
|
27727
27655
|
}
|
|
27728
27656
|
release() {}
|
|
27729
27657
|
};
|
|
27730
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
27658
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$x([injectable(), __metadata$r("design:paramtypes", [Object])], TaroCanvas);
|
|
27731
27659
|
|
|
27732
27660
|
const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
27733
27661
|
|
|
27734
|
-
var __decorate$
|
|
27662
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27735
27663
|
var d,
|
|
27736
27664
|
c = arguments.length,
|
|
27737
27665
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27738
27666
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27739
27667
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27740
27668
|
},
|
|
27741
|
-
__metadata$
|
|
27669
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
27742
27670
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27743
27671
|
},
|
|
27744
|
-
__param$
|
|
27672
|
+
__param$j = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27745
27673
|
return function (target, key) {
|
|
27746
27674
|
decorator(target, key, paramIndex);
|
|
27747
27675
|
};
|
|
@@ -27887,19 +27815,19 @@
|
|
|
27887
27815
|
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();
|
|
27888
27816
|
}
|
|
27889
27817
|
};
|
|
27890
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
27818
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$w([injectable(), __param$j(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
27891
27819
|
const taroWindowModule = new ContainerModule(bind => {
|
|
27892
27820
|
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
27893
27821
|
});
|
|
27894
27822
|
|
|
27895
|
-
var __decorate$
|
|
27823
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27896
27824
|
var d,
|
|
27897
27825
|
c = arguments.length,
|
|
27898
27826
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27899
27827
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27900
27828
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27901
27829
|
},
|
|
27902
|
-
__metadata$
|
|
27830
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
27903
27831
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27904
27832
|
};
|
|
27905
27833
|
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
@@ -27996,7 +27924,7 @@
|
|
|
27996
27924
|
}
|
|
27997
27925
|
release() {}
|
|
27998
27926
|
};
|
|
27999
|
-
TaroEnvContribution = __decorate$
|
|
27927
|
+
TaroEnvContribution = __decorate$v([injectable(), __metadata$p("design:paramtypes", [])], TaroEnvContribution);
|
|
28000
27928
|
|
|
28001
27929
|
const taroEnvModule = new ContainerModule(bind => {
|
|
28002
27930
|
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
@@ -28011,7 +27939,7 @@
|
|
|
28011
27939
|
loadTaroEnv(container);
|
|
28012
27940
|
}
|
|
28013
27941
|
|
|
28014
|
-
var __decorate$
|
|
27942
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28015
27943
|
var d,
|
|
28016
27944
|
c = arguments.length,
|
|
28017
27945
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28024,16 +27952,16 @@
|
|
|
28024
27952
|
return null;
|
|
28025
27953
|
}
|
|
28026
27954
|
};
|
|
28027
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
27955
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
|
|
28028
27956
|
|
|
28029
|
-
var __decorate$
|
|
27957
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28030
27958
|
var d,
|
|
28031
27959
|
c = arguments.length,
|
|
28032
27960
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28033
27961
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28034
27962
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28035
27963
|
},
|
|
28036
|
-
__metadata$
|
|
27964
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
28037
27965
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28038
27966
|
};
|
|
28039
27967
|
let WxCanvas = class extends BaseCanvas {
|
|
@@ -28045,21 +27973,21 @@
|
|
|
28045
27973
|
}
|
|
28046
27974
|
release() {}
|
|
28047
27975
|
};
|
|
28048
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
27976
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$t([injectable(), __metadata$o("design:paramtypes", [Object])], WxCanvas);
|
|
28049
27977
|
|
|
28050
27978
|
const wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
28051
27979
|
|
|
28052
|
-
var __decorate$
|
|
27980
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28053
27981
|
var d,
|
|
28054
27982
|
c = arguments.length,
|
|
28055
27983
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28056
27984
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28057
27985
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28058
27986
|
},
|
|
28059
|
-
__metadata$
|
|
27987
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
28060
27988
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28061
27989
|
},
|
|
28062
|
-
__param$
|
|
27990
|
+
__param$i = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28063
27991
|
return function (target, key) {
|
|
28064
27992
|
decorator(target, key, paramIndex);
|
|
28065
27993
|
};
|
|
@@ -28196,19 +28124,19 @@
|
|
|
28196
28124
|
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();
|
|
28197
28125
|
}
|
|
28198
28126
|
};
|
|
28199
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
28127
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$s([injectable(), __param$i(0, inject(VGlobal)), __metadata$n("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
28200
28128
|
const wxWindowModule = new ContainerModule(bind => {
|
|
28201
28129
|
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
28202
28130
|
});
|
|
28203
28131
|
|
|
28204
|
-
var __decorate$
|
|
28132
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28205
28133
|
var d,
|
|
28206
28134
|
c = arguments.length,
|
|
28207
28135
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28208
28136
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28209
28137
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28210
28138
|
},
|
|
28211
|
-
__metadata$
|
|
28139
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
28212
28140
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28213
28141
|
},
|
|
28214
28142
|
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28241,7 +28169,7 @@
|
|
|
28241
28169
|
const dpr = wx.getSystemInfoSync().pixelRatio;
|
|
28242
28170
|
for (let i = 0; i < canvasIdLists.length; i++) {
|
|
28243
28171
|
const id = canvasIdLists[i];
|
|
28244
|
-
yield new Promise(resolve => {
|
|
28172
|
+
canvasMap.has(id) || (yield new Promise(resolve => {
|
|
28245
28173
|
let data = wx.createSelectorQuery();
|
|
28246
28174
|
component && (data = data.in(component)), data.select(`#${id}`).fields({
|
|
28247
28175
|
node: !0,
|
|
@@ -28253,7 +28181,7 @@
|
|
|
28253
28181
|
height = res[0].height;
|
|
28254
28182
|
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
28255
28183
|
});
|
|
28256
|
-
});
|
|
28184
|
+
}));
|
|
28257
28185
|
}
|
|
28258
28186
|
});
|
|
28259
28187
|
}
|
|
@@ -28322,7 +28250,7 @@
|
|
|
28322
28250
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28323
28251
|
}
|
|
28324
28252
|
};
|
|
28325
|
-
WxEnvContribution = __decorate$
|
|
28253
|
+
WxEnvContribution = __decorate$r([injectable(), __metadata$m("design:paramtypes", [])], WxEnvContribution);
|
|
28326
28254
|
|
|
28327
28255
|
const wxEnvModule = new ContainerModule(bind => {
|
|
28328
28256
|
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
@@ -28350,7 +28278,7 @@
|
|
|
28350
28278
|
loadAllEnv(container);
|
|
28351
28279
|
}
|
|
28352
28280
|
|
|
28353
|
-
var __decorate$
|
|
28281
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28354
28282
|
var d,
|
|
28355
28283
|
c = arguments.length,
|
|
28356
28284
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28358,16 +28286,16 @@
|
|
|
28358
28286
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28359
28287
|
};
|
|
28360
28288
|
let TTContext2d = class extends FeishuContext2d {};
|
|
28361
|
-
TTContext2d.env = "tt", TTContext2d = __decorate$
|
|
28289
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$q([injectable()], TTContext2d);
|
|
28362
28290
|
|
|
28363
|
-
var __decorate$
|
|
28291
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28364
28292
|
var d,
|
|
28365
28293
|
c = arguments.length,
|
|
28366
28294
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28367
28295
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28368
28296
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28369
28297
|
},
|
|
28370
|
-
__metadata$
|
|
28298
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
28371
28299
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28372
28300
|
};
|
|
28373
28301
|
let TTCanvas = class extends BaseCanvas {
|
|
@@ -28379,21 +28307,21 @@
|
|
|
28379
28307
|
}
|
|
28380
28308
|
release() {}
|
|
28381
28309
|
};
|
|
28382
|
-
TTCanvas.env = "tt", TTCanvas = __decorate$
|
|
28310
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$p([injectable(), __metadata$l("design:paramtypes", [Object])], TTCanvas);
|
|
28383
28311
|
|
|
28384
28312
|
const ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
28385
28313
|
|
|
28386
|
-
var __decorate$
|
|
28314
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28387
28315
|
var d,
|
|
28388
28316
|
c = arguments.length,
|
|
28389
28317
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28390
28318
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28391
28319
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28392
28320
|
},
|
|
28393
|
-
__metadata$
|
|
28321
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
28394
28322
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28395
28323
|
},
|
|
28396
|
-
__param$
|
|
28324
|
+
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28397
28325
|
return function (target, key) {
|
|
28398
28326
|
decorator(target, key, paramIndex);
|
|
28399
28327
|
};
|
|
@@ -28529,19 +28457,19 @@
|
|
|
28529
28457
|
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();
|
|
28530
28458
|
}
|
|
28531
28459
|
};
|
|
28532
|
-
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$
|
|
28460
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$o([injectable(), __param$h(0, inject(VGlobal)), __metadata$k("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
28533
28461
|
const ttWindowModule = new ContainerModule(bind => {
|
|
28534
28462
|
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
28535
28463
|
});
|
|
28536
28464
|
|
|
28537
|
-
var __decorate$
|
|
28465
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28538
28466
|
var d,
|
|
28539
28467
|
c = arguments.length,
|
|
28540
28468
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28541
28469
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28542
28470
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28543
28471
|
},
|
|
28544
|
-
__metadata$
|
|
28472
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
28545
28473
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28546
28474
|
},
|
|
28547
28475
|
__awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28574,7 +28502,7 @@
|
|
|
28574
28502
|
const dpr = tt.getSystemInfoSync().pixelRatio;
|
|
28575
28503
|
for (let i = 0; i < canvasIdLists.length; i++) {
|
|
28576
28504
|
const id = canvasIdLists[i];
|
|
28577
|
-
yield new Promise(resolve => {
|
|
28505
|
+
canvasMap.has(id) || (yield new Promise(resolve => {
|
|
28578
28506
|
let data = tt.createSelectorQuery();
|
|
28579
28507
|
component && (data = data.in(component)), data.select(`#${id}`).node().exec(res => {
|
|
28580
28508
|
const canvas = res[0].node,
|
|
@@ -28582,7 +28510,7 @@
|
|
|
28582
28510
|
height = canvas.height;
|
|
28583
28511
|
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
28584
28512
|
});
|
|
28585
|
-
});
|
|
28513
|
+
}));
|
|
28586
28514
|
}
|
|
28587
28515
|
});
|
|
28588
28516
|
}
|
|
@@ -28651,7 +28579,7 @@
|
|
|
28651
28579
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28652
28580
|
}
|
|
28653
28581
|
};
|
|
28654
|
-
TTEnvContribution = __decorate$
|
|
28582
|
+
TTEnvContribution = __decorate$n([injectable(), __metadata$j("design:paramtypes", [])], TTEnvContribution);
|
|
28655
28583
|
|
|
28656
28584
|
const ttEnvModule = new ContainerModule(bind => {
|
|
28657
28585
|
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
@@ -28666,7 +28594,7 @@
|
|
|
28666
28594
|
loadTTEnv(container);
|
|
28667
28595
|
}
|
|
28668
28596
|
|
|
28669
|
-
var __decorate$
|
|
28597
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28670
28598
|
var d,
|
|
28671
28599
|
c = arguments.length,
|
|
28672
28600
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28751,16 +28679,16 @@
|
|
|
28751
28679
|
}
|
|
28752
28680
|
draw() {}
|
|
28753
28681
|
};
|
|
28754
|
-
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$
|
|
28682
|
+
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$m([injectable()], HarmonyContext2d);
|
|
28755
28683
|
|
|
28756
|
-
var __decorate$
|
|
28684
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28757
28685
|
var d,
|
|
28758
28686
|
c = arguments.length,
|
|
28759
28687
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28760
28688
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28761
28689
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28762
28690
|
},
|
|
28763
|
-
__metadata$
|
|
28691
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
28764
28692
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28765
28693
|
};
|
|
28766
28694
|
let HarmonyCanvas = class extends BaseCanvas {
|
|
@@ -28773,19 +28701,19 @@
|
|
|
28773
28701
|
resize(width, height) {}
|
|
28774
28702
|
release() {}
|
|
28775
28703
|
};
|
|
28776
|
-
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$
|
|
28704
|
+
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$l([injectable(), __metadata$i("design:paramtypes", [Object])], HarmonyCanvas);
|
|
28777
28705
|
|
|
28778
|
-
var __decorate$
|
|
28706
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28779
28707
|
var d,
|
|
28780
28708
|
c = arguments.length,
|
|
28781
28709
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28782
28710
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28783
28711
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28784
28712
|
},
|
|
28785
|
-
__metadata$
|
|
28713
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
28786
28714
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28787
28715
|
},
|
|
28788
|
-
__param$
|
|
28716
|
+
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28789
28717
|
return function (target, key) {
|
|
28790
28718
|
decorator(target, key, paramIndex);
|
|
28791
28719
|
};
|
|
@@ -28922,21 +28850,21 @@
|
|
|
28922
28850
|
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();
|
|
28923
28851
|
}
|
|
28924
28852
|
};
|
|
28925
|
-
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$
|
|
28853
|
+
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$k([injectable(), __param$g(0, inject(VGlobal)), __metadata$h("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
|
|
28926
28854
|
const harmonyWindowModule = new ContainerModule(bind => {
|
|
28927
28855
|
bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
|
|
28928
28856
|
});
|
|
28929
28857
|
|
|
28930
28858
|
const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
|
|
28931
28859
|
|
|
28932
|
-
var __decorate$
|
|
28860
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28933
28861
|
var d,
|
|
28934
28862
|
c = arguments.length,
|
|
28935
28863
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28936
28864
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28937
28865
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28938
28866
|
},
|
|
28939
|
-
__metadata$
|
|
28867
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
28940
28868
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28941
28869
|
};
|
|
28942
28870
|
function createCanvas(width, height, id) {
|
|
@@ -29017,7 +28945,7 @@
|
|
|
29017
28945
|
}
|
|
29018
28946
|
release() {}
|
|
29019
28947
|
};
|
|
29020
|
-
HarmonyEnvContribution = __decorate$
|
|
28948
|
+
HarmonyEnvContribution = __decorate$j([injectable(), __metadata$g("design:paramtypes", [])], HarmonyEnvContribution);
|
|
29021
28949
|
|
|
29022
28950
|
const harmonyEnvModule = new ContainerModule(bind => {
|
|
29023
28951
|
harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
|
|
@@ -29032,17 +28960,17 @@
|
|
|
29032
28960
|
loadHarmonyEnv(container);
|
|
29033
28961
|
}
|
|
29034
28962
|
|
|
29035
|
-
var __decorate$
|
|
28963
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29036
28964
|
var d,
|
|
29037
28965
|
c = arguments.length,
|
|
29038
28966
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29039
28967
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29040
28968
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29041
28969
|
},
|
|
29042
|
-
__metadata$
|
|
28970
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
29043
28971
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29044
28972
|
},
|
|
29045
|
-
__param$
|
|
28973
|
+
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29046
28974
|
return function (target, key) {
|
|
29047
28975
|
decorator(target, key, paramIndex);
|
|
29048
28976
|
};
|
|
@@ -29052,24 +28980,24 @@
|
|
|
29052
28980
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
29053
28981
|
}
|
|
29054
28982
|
};
|
|
29055
|
-
DefaultCanvasArcPicker = __decorate$
|
|
28983
|
+
DefaultCanvasArcPicker = __decorate$i([injectable(), __param$f(0, inject(ArcRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
29056
28984
|
|
|
29057
28985
|
let loadArcPick = !1;
|
|
29058
28986
|
const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29059
28987
|
loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
|
|
29060
28988
|
});
|
|
29061
28989
|
|
|
29062
|
-
var __decorate$
|
|
28990
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29063
28991
|
var d,
|
|
29064
28992
|
c = arguments.length,
|
|
29065
28993
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29066
28994
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29067
28995
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29068
28996
|
},
|
|
29069
|
-
__metadata$
|
|
28997
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
29070
28998
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29071
28999
|
},
|
|
29072
|
-
__param$
|
|
29000
|
+
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29073
29001
|
return function (target, key) {
|
|
29074
29002
|
decorator(target, key, paramIndex);
|
|
29075
29003
|
};
|
|
@@ -29079,7 +29007,7 @@
|
|
|
29079
29007
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29080
29008
|
}
|
|
29081
29009
|
};
|
|
29082
|
-
DefaultCanvasRectPicker = __decorate$
|
|
29010
|
+
DefaultCanvasRectPicker = __decorate$h([injectable(), __param$e(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
29083
29011
|
|
|
29084
29012
|
let loadRectPick = !1;
|
|
29085
29013
|
const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -29121,17 +29049,17 @@
|
|
|
29121
29049
|
}
|
|
29122
29050
|
}
|
|
29123
29051
|
|
|
29124
|
-
var __decorate$
|
|
29052
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29125
29053
|
var d,
|
|
29126
29054
|
c = arguments.length,
|
|
29127
29055
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29128
29056
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29129
29057
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29130
29058
|
},
|
|
29131
|
-
__metadata$
|
|
29059
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
29132
29060
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29133
29061
|
},
|
|
29134
|
-
__param$
|
|
29062
|
+
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29135
29063
|
return function (target, key) {
|
|
29136
29064
|
decorator(target, key, paramIndex);
|
|
29137
29065
|
};
|
|
@@ -29141,24 +29069,24 @@
|
|
|
29141
29069
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
29142
29070
|
}
|
|
29143
29071
|
};
|
|
29144
|
-
DefaultCanvasLinePicker = __decorate$
|
|
29072
|
+
DefaultCanvasLinePicker = __decorate$g([injectable(), __param$d(0, inject(LineRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
29145
29073
|
|
|
29146
29074
|
let loadLinePick = !1;
|
|
29147
29075
|
const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29148
29076
|
loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
|
|
29149
29077
|
});
|
|
29150
29078
|
|
|
29151
|
-
var __decorate$
|
|
29079
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29152
29080
|
var d,
|
|
29153
29081
|
c = arguments.length,
|
|
29154
29082
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29155
29083
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29156
29084
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29157
29085
|
},
|
|
29158
|
-
__metadata$
|
|
29086
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
29159
29087
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29160
29088
|
},
|
|
29161
|
-
__param$
|
|
29089
|
+
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29162
29090
|
return function (target, key) {
|
|
29163
29091
|
decorator(target, key, paramIndex);
|
|
29164
29092
|
};
|
|
@@ -29168,7 +29096,7 @@
|
|
|
29168
29096
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
29169
29097
|
}
|
|
29170
29098
|
};
|
|
29171
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
29099
|
+
DefaultCanvasAreaPicker = __decorate$f([injectable(), __param$c(0, inject(AreaRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
29172
29100
|
|
|
29173
29101
|
let loadAreaPick = !1;
|
|
29174
29102
|
const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -29202,17 +29130,17 @@
|
|
|
29202
29130
|
}
|
|
29203
29131
|
}
|
|
29204
29132
|
|
|
29205
|
-
var __decorate$
|
|
29133
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29206
29134
|
var d,
|
|
29207
29135
|
c = arguments.length,
|
|
29208
29136
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29209
29137
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29210
29138
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29211
29139
|
},
|
|
29212
|
-
__metadata$
|
|
29140
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
29213
29141
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29214
29142
|
},
|
|
29215
|
-
__param$
|
|
29143
|
+
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29216
29144
|
return function (target, key) {
|
|
29217
29145
|
decorator(target, key, paramIndex);
|
|
29218
29146
|
};
|
|
@@ -29257,24 +29185,24 @@
|
|
|
29257
29185
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29258
29186
|
}
|
|
29259
29187
|
};
|
|
29260
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
29188
|
+
DefaultCanvasSymbolPicker = __decorate$e([injectable(), __param$b(0, inject(SymbolRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
29261
29189
|
|
|
29262
29190
|
let loadSymbolPick = !1;
|
|
29263
29191
|
const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29264
29192
|
loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
|
|
29265
29193
|
});
|
|
29266
29194
|
|
|
29267
|
-
var __decorate$
|
|
29195
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29268
29196
|
var d,
|
|
29269
29197
|
c = arguments.length,
|
|
29270
29198
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29271
29199
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29272
29200
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29273
29201
|
},
|
|
29274
|
-
__metadata$
|
|
29202
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
29275
29203
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29276
29204
|
},
|
|
29277
|
-
__param$
|
|
29205
|
+
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29278
29206
|
return function (target, key) {
|
|
29279
29207
|
decorator(target, key, paramIndex);
|
|
29280
29208
|
};
|
|
@@ -29284,24 +29212,24 @@
|
|
|
29284
29212
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
29285
29213
|
}
|
|
29286
29214
|
};
|
|
29287
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
29215
|
+
DefaultCanvasCirclePicker = __decorate$d([injectable(), __param$a(0, inject(CircleRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
29288
29216
|
|
|
29289
29217
|
let loadCirclePick = !1;
|
|
29290
29218
|
const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29291
29219
|
loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
|
|
29292
29220
|
});
|
|
29293
29221
|
|
|
29294
|
-
var __decorate$
|
|
29222
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29295
29223
|
var d,
|
|
29296
29224
|
c = arguments.length,
|
|
29297
29225
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29298
29226
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29299
29227
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29300
29228
|
},
|
|
29301
|
-
__metadata$
|
|
29229
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
29302
29230
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29303
29231
|
},
|
|
29304
|
-
__param$
|
|
29232
|
+
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29305
29233
|
return function (target, key) {
|
|
29306
29234
|
decorator(target, key, paramIndex);
|
|
29307
29235
|
};
|
|
@@ -29354,24 +29282,24 @@
|
|
|
29354
29282
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29355
29283
|
}
|
|
29356
29284
|
};
|
|
29357
|
-
DefaultCanvasTextPicker = __decorate$
|
|
29285
|
+
DefaultCanvasTextPicker = __decorate$c([injectable(), __param$9(0, inject(TextRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
29358
29286
|
|
|
29359
29287
|
let loadTextPick = !1;
|
|
29360
29288
|
const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29361
29289
|
loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
|
|
29362
29290
|
});
|
|
29363
29291
|
|
|
29364
|
-
var __decorate$
|
|
29292
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29365
29293
|
var d,
|
|
29366
29294
|
c = arguments.length,
|
|
29367
29295
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29368
29296
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29369
29297
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29370
29298
|
},
|
|
29371
|
-
__metadata$
|
|
29299
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
29372
29300
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29373
29301
|
},
|
|
29374
|
-
__param$
|
|
29302
|
+
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29375
29303
|
return function (target, key) {
|
|
29376
29304
|
decorator(target, key, paramIndex);
|
|
29377
29305
|
};
|
|
@@ -29381,24 +29309,24 @@
|
|
|
29381
29309
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
29382
29310
|
}
|
|
29383
29311
|
};
|
|
29384
|
-
DefaultCanvasPathPicker = __decorate$
|
|
29312
|
+
DefaultCanvasPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
29385
29313
|
|
|
29386
29314
|
let loadPathPick = !1;
|
|
29387
29315
|
const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29388
29316
|
loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
|
|
29389
29317
|
});
|
|
29390
29318
|
|
|
29391
|
-
var __decorate$
|
|
29319
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29392
29320
|
var d,
|
|
29393
29321
|
c = arguments.length,
|
|
29394
29322
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29395
29323
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29396
29324
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29397
29325
|
},
|
|
29398
|
-
__metadata$
|
|
29326
|
+
__metadata$7 = undefined && undefined.__metadata || function (k, v) {
|
|
29399
29327
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29400
29328
|
},
|
|
29401
|
-
__param$
|
|
29329
|
+
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29402
29330
|
return function (target, key) {
|
|
29403
29331
|
decorator(target, key, paramIndex);
|
|
29404
29332
|
};
|
|
@@ -29408,24 +29336,24 @@
|
|
|
29408
29336
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
29409
29337
|
}
|
|
29410
29338
|
};
|
|
29411
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
29339
|
+
DefaultCanvasPolygonPicker = __decorate$a([injectable(), __param$7(0, inject(PolygonRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
29412
29340
|
|
|
29413
29341
|
let loadPolygonPick = !1;
|
|
29414
29342
|
const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29415
29343
|
loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
|
|
29416
29344
|
});
|
|
29417
29345
|
|
|
29418
|
-
var __decorate$
|
|
29346
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29419
29347
|
var d,
|
|
29420
29348
|
c = arguments.length,
|
|
29421
29349
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29422
29350
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29423
29351
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29424
29352
|
},
|
|
29425
|
-
__metadata$
|
|
29353
|
+
__metadata$6 = undefined && undefined.__metadata || function (k, v) {
|
|
29426
29354
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29427
29355
|
},
|
|
29428
|
-
__param$
|
|
29356
|
+
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29429
29357
|
return function (target, key) {
|
|
29430
29358
|
decorator(target, key, paramIndex);
|
|
29431
29359
|
};
|
|
@@ -29435,24 +29363,24 @@
|
|
|
29435
29363
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29436
29364
|
}
|
|
29437
29365
|
};
|
|
29438
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
29366
|
+
DefaultCanvasGlyphPicker = __decorate$9([injectable(), __param$6(0, inject(GlyphRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
29439
29367
|
|
|
29440
29368
|
let loadGlyphPick = !1;
|
|
29441
29369
|
const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29442
29370
|
loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
|
|
29443
29371
|
});
|
|
29444
29372
|
|
|
29445
|
-
var __decorate$
|
|
29373
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29446
29374
|
var d,
|
|
29447
29375
|
c = arguments.length,
|
|
29448
29376
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29449
29377
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29450
29378
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29451
29379
|
},
|
|
29452
|
-
__metadata$
|
|
29380
|
+
__metadata$5 = undefined && undefined.__metadata || function (k, v) {
|
|
29453
29381
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29454
29382
|
},
|
|
29455
|
-
__param$
|
|
29383
|
+
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29456
29384
|
return function (target, key) {
|
|
29457
29385
|
decorator(target, key, paramIndex);
|
|
29458
29386
|
};
|
|
@@ -29465,14 +29393,14 @@
|
|
|
29465
29393
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
29466
29394
|
}
|
|
29467
29395
|
};
|
|
29468
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
29396
|
+
DefaultCanvasRichTextPicker = __decorate$8([injectable(), __param$5(0, inject(RichTextRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
29469
29397
|
|
|
29470
29398
|
let loadRichtextPick = !1;
|
|
29471
29399
|
const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29472
29400
|
loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
|
|
29473
29401
|
});
|
|
29474
29402
|
|
|
29475
|
-
var __decorate$
|
|
29403
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29476
29404
|
var d,
|
|
29477
29405
|
c = arguments.length,
|
|
29478
29406
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29490,24 +29418,24 @@
|
|
|
29490
29418
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
29491
29419
|
}
|
|
29492
29420
|
};
|
|
29493
|
-
DefaultCanvasImagePicker = __decorate$
|
|
29421
|
+
DefaultCanvasImagePicker = __decorate$7([injectable()], DefaultCanvasImagePicker);
|
|
29494
29422
|
|
|
29495
29423
|
let loadImagePick = !1;
|
|
29496
29424
|
const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29497
29425
|
loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
|
|
29498
29426
|
});
|
|
29499
29427
|
|
|
29500
|
-
var __decorate$
|
|
29428
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29501
29429
|
var d,
|
|
29502
29430
|
c = arguments.length,
|
|
29503
29431
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29504
29432
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29505
29433
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29506
29434
|
},
|
|
29507
|
-
__metadata$
|
|
29435
|
+
__metadata$4 = undefined && undefined.__metadata || function (k, v) {
|
|
29508
29436
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29509
29437
|
},
|
|
29510
|
-
__param$
|
|
29438
|
+
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29511
29439
|
return function (target, key) {
|
|
29512
29440
|
decorator(target, key, paramIndex);
|
|
29513
29441
|
};
|
|
@@ -29517,24 +29445,24 @@
|
|
|
29517
29445
|
super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
|
|
29518
29446
|
}
|
|
29519
29447
|
};
|
|
29520
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
29448
|
+
DefaultCanvasRect3dPicker = __decorate$6([injectable(), __param$4(0, inject(Rect3DRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
29521
29449
|
|
|
29522
29450
|
let loadRect3dPick = !1;
|
|
29523
29451
|
const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29524
29452
|
loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
|
|
29525
29453
|
});
|
|
29526
29454
|
|
|
29527
|
-
var __decorate$
|
|
29455
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29528
29456
|
var d,
|
|
29529
29457
|
c = arguments.length,
|
|
29530
29458
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29531
29459
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29532
29460
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29533
29461
|
},
|
|
29534
|
-
__metadata$
|
|
29462
|
+
__metadata$3 = undefined && undefined.__metadata || function (k, v) {
|
|
29535
29463
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29536
29464
|
},
|
|
29537
|
-
__param$
|
|
29465
|
+
__param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29538
29466
|
return function (target, key) {
|
|
29539
29467
|
decorator(target, key, paramIndex);
|
|
29540
29468
|
};
|
|
@@ -29544,24 +29472,24 @@
|
|
|
29544
29472
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
|
|
29545
29473
|
}
|
|
29546
29474
|
};
|
|
29547
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
29475
|
+
DefaultCanvasArc3dPicker = __decorate$5([injectable(), __param$3(0, inject(Arc3dRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
29548
29476
|
|
|
29549
29477
|
let loadArc3dPick = !1;
|
|
29550
29478
|
const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29551
29479
|
loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
|
|
29552
29480
|
});
|
|
29553
29481
|
|
|
29554
|
-
var __decorate$
|
|
29482
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29555
29483
|
var d,
|
|
29556
29484
|
c = arguments.length,
|
|
29557
29485
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29558
29486
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29559
29487
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29560
29488
|
},
|
|
29561
|
-
__metadata$
|
|
29489
|
+
__metadata$2 = undefined && undefined.__metadata || function (k, v) {
|
|
29562
29490
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29563
29491
|
},
|
|
29564
|
-
__param$
|
|
29492
|
+
__param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29565
29493
|
return function (target, key) {
|
|
29566
29494
|
decorator(target, key, paramIndex);
|
|
29567
29495
|
};
|
|
@@ -29571,15 +29499,747 @@
|
|
|
29571
29499
|
super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
|
|
29572
29500
|
}
|
|
29573
29501
|
};
|
|
29574
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
29502
|
+
DefaultCanvasPyramid3dPicker = __decorate$4([injectable(), __param$2(0, inject(Pyramid3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
29575
29503
|
|
|
29576
29504
|
let loadPyramid3dPick = !1;
|
|
29577
29505
|
const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29578
29506
|
loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
|
|
29579
29507
|
});
|
|
29580
29508
|
|
|
29509
|
+
var lib$1 = {};
|
|
29510
|
+
|
|
29511
|
+
var gif = {};
|
|
29512
|
+
|
|
29513
|
+
var lib = {};
|
|
29514
|
+
|
|
29515
|
+
Object.defineProperty(lib, "__esModule", {
|
|
29516
|
+
value: true
|
|
29517
|
+
});
|
|
29518
|
+
lib.loop = lib.conditional = lib.parse = void 0;
|
|
29519
|
+
var parse = function parse(stream, schema) {
|
|
29520
|
+
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
29521
|
+
var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
|
|
29522
|
+
if (Array.isArray(schema)) {
|
|
29523
|
+
schema.forEach(function (partSchema) {
|
|
29524
|
+
return parse(stream, partSchema, result, parent);
|
|
29525
|
+
});
|
|
29526
|
+
} else if (typeof schema === 'function') {
|
|
29527
|
+
schema(stream, result, parent, parse);
|
|
29528
|
+
} else {
|
|
29529
|
+
var key = Object.keys(schema)[0];
|
|
29530
|
+
if (Array.isArray(schema[key])) {
|
|
29531
|
+
parent[key] = {};
|
|
29532
|
+
parse(stream, schema[key], result, parent[key]);
|
|
29533
|
+
} else {
|
|
29534
|
+
parent[key] = schema[key](stream, result, parent, parse);
|
|
29535
|
+
}
|
|
29536
|
+
}
|
|
29537
|
+
return result;
|
|
29538
|
+
};
|
|
29539
|
+
lib.parse = parse;
|
|
29540
|
+
var conditional = function conditional(schema, conditionFunc) {
|
|
29541
|
+
return function (stream, result, parent, parse) {
|
|
29542
|
+
if (conditionFunc(stream, result, parent)) {
|
|
29543
|
+
parse(stream, schema, result, parent);
|
|
29544
|
+
}
|
|
29545
|
+
};
|
|
29546
|
+
};
|
|
29547
|
+
lib.conditional = conditional;
|
|
29548
|
+
var loop = function loop(schema, continueFunc) {
|
|
29549
|
+
return function (stream, result, parent, parse) {
|
|
29550
|
+
var arr = [];
|
|
29551
|
+
var lastStreamPos = stream.pos;
|
|
29552
|
+
while (continueFunc(stream, result, parent)) {
|
|
29553
|
+
var newParent = {};
|
|
29554
|
+
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
|
|
29555
|
+
// it falls into infinite recursion, null check to avoid the same
|
|
29556
|
+
|
|
29557
|
+
if (stream.pos === lastStreamPos) {
|
|
29558
|
+
break;
|
|
29559
|
+
}
|
|
29560
|
+
lastStreamPos = stream.pos;
|
|
29561
|
+
arr.push(newParent);
|
|
29562
|
+
}
|
|
29563
|
+
return arr;
|
|
29564
|
+
};
|
|
29565
|
+
};
|
|
29566
|
+
lib.loop = loop;
|
|
29567
|
+
|
|
29568
|
+
var uint8 = {};
|
|
29569
|
+
|
|
29570
|
+
Object.defineProperty(uint8, "__esModule", {
|
|
29571
|
+
value: true
|
|
29572
|
+
});
|
|
29573
|
+
uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
|
|
29574
|
+
|
|
29575
|
+
// Default stream and parsers for Uint8TypedArray data type
|
|
29576
|
+
var buildStream = function buildStream(uint8Data) {
|
|
29577
|
+
return {
|
|
29578
|
+
data: uint8Data,
|
|
29579
|
+
pos: 0
|
|
29580
|
+
};
|
|
29581
|
+
};
|
|
29582
|
+
uint8.buildStream = buildStream;
|
|
29583
|
+
var readByte = function readByte() {
|
|
29584
|
+
return function (stream) {
|
|
29585
|
+
return stream.data[stream.pos++];
|
|
29586
|
+
};
|
|
29587
|
+
};
|
|
29588
|
+
uint8.readByte = readByte;
|
|
29589
|
+
var peekByte = function peekByte() {
|
|
29590
|
+
var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
29591
|
+
return function (stream) {
|
|
29592
|
+
return stream.data[stream.pos + offset];
|
|
29593
|
+
};
|
|
29594
|
+
};
|
|
29595
|
+
uint8.peekByte = peekByte;
|
|
29596
|
+
var readBytes = function readBytes(length) {
|
|
29597
|
+
return function (stream) {
|
|
29598
|
+
return stream.data.subarray(stream.pos, stream.pos += length);
|
|
29599
|
+
};
|
|
29600
|
+
};
|
|
29601
|
+
uint8.readBytes = readBytes;
|
|
29602
|
+
var peekBytes = function peekBytes(length) {
|
|
29603
|
+
return function (stream) {
|
|
29604
|
+
return stream.data.subarray(stream.pos, stream.pos + length);
|
|
29605
|
+
};
|
|
29606
|
+
};
|
|
29607
|
+
uint8.peekBytes = peekBytes;
|
|
29608
|
+
var readString = function readString(length) {
|
|
29609
|
+
return function (stream) {
|
|
29610
|
+
return Array.from(readBytes(length)(stream)).map(function (value) {
|
|
29611
|
+
return String.fromCharCode(value);
|
|
29612
|
+
}).join('');
|
|
29613
|
+
};
|
|
29614
|
+
};
|
|
29615
|
+
uint8.readString = readString;
|
|
29616
|
+
var readUnsigned = function readUnsigned(littleEndian) {
|
|
29617
|
+
return function (stream) {
|
|
29618
|
+
var bytes = readBytes(2)(stream);
|
|
29619
|
+
return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
|
|
29620
|
+
};
|
|
29621
|
+
};
|
|
29622
|
+
uint8.readUnsigned = readUnsigned;
|
|
29623
|
+
var readArray = function readArray(byteSize, totalOrFunc) {
|
|
29624
|
+
return function (stream, result, parent) {
|
|
29625
|
+
var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
|
|
29626
|
+
var parser = readBytes(byteSize);
|
|
29627
|
+
var arr = new Array(total);
|
|
29628
|
+
for (var i = 0; i < total; i++) {
|
|
29629
|
+
arr[i] = parser(stream);
|
|
29630
|
+
}
|
|
29631
|
+
return arr;
|
|
29632
|
+
};
|
|
29633
|
+
};
|
|
29634
|
+
uint8.readArray = readArray;
|
|
29635
|
+
var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
|
|
29636
|
+
var result = 0;
|
|
29637
|
+
for (var i = 0; i < length; i++) {
|
|
29638
|
+
result += bits[startIndex + i] && Math.pow(2, length - i - 1);
|
|
29639
|
+
}
|
|
29640
|
+
return result;
|
|
29641
|
+
};
|
|
29642
|
+
var readBits = function readBits(schema) {
|
|
29643
|
+
return function (stream) {
|
|
29644
|
+
var _byte = readByte()(stream); // convert the byte to bit array
|
|
29645
|
+
|
|
29646
|
+
var bits = new Array(8);
|
|
29647
|
+
for (var i = 0; i < 8; i++) {
|
|
29648
|
+
bits[7 - i] = !!(_byte & 1 << i);
|
|
29649
|
+
} // convert the bit array to values based on the schema
|
|
29650
|
+
|
|
29651
|
+
return Object.keys(schema).reduce(function (res, key) {
|
|
29652
|
+
var def = schema[key];
|
|
29653
|
+
if (def.length) {
|
|
29654
|
+
res[key] = subBitsTotal(bits, def.index, def.length);
|
|
29655
|
+
} else {
|
|
29656
|
+
res[key] = bits[def.index];
|
|
29657
|
+
}
|
|
29658
|
+
return res;
|
|
29659
|
+
}, {});
|
|
29660
|
+
};
|
|
29661
|
+
};
|
|
29662
|
+
uint8.readBits = readBits;
|
|
29663
|
+
|
|
29664
|
+
(function (exports) {
|
|
29665
|
+
|
|
29666
|
+
Object.defineProperty(exports, "__esModule", {
|
|
29667
|
+
value: true
|
|
29668
|
+
});
|
|
29669
|
+
exports["default"] = void 0;
|
|
29670
|
+
var _ = lib;
|
|
29671
|
+
var _uint = uint8;
|
|
29672
|
+
|
|
29673
|
+
// a set of 0x00 terminated subblocks
|
|
29674
|
+
var subBlocksSchema = {
|
|
29675
|
+
blocks: function blocks(stream) {
|
|
29676
|
+
var terminator = 0x00;
|
|
29677
|
+
var chunks = [];
|
|
29678
|
+
var streamSize = stream.data.length;
|
|
29679
|
+
var total = 0;
|
|
29680
|
+
for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
|
|
29681
|
+
// size becomes undefined for some case when file is corrupted and terminator is not proper
|
|
29682
|
+
// null check to avoid recursion
|
|
29683
|
+
if (!size) break; // catch corrupted files with no terminator
|
|
29684
|
+
|
|
29685
|
+
if (stream.pos + size >= streamSize) {
|
|
29686
|
+
var availableSize = streamSize - stream.pos;
|
|
29687
|
+
chunks.push((0, _uint.readBytes)(availableSize)(stream));
|
|
29688
|
+
total += availableSize;
|
|
29689
|
+
break;
|
|
29690
|
+
}
|
|
29691
|
+
chunks.push((0, _uint.readBytes)(size)(stream));
|
|
29692
|
+
total += size;
|
|
29693
|
+
}
|
|
29694
|
+
var result = new Uint8Array(total);
|
|
29695
|
+
var offset = 0;
|
|
29696
|
+
for (var i = 0; i < chunks.length; i++) {
|
|
29697
|
+
result.set(chunks[i], offset);
|
|
29698
|
+
offset += chunks[i].length;
|
|
29699
|
+
}
|
|
29700
|
+
return result;
|
|
29701
|
+
}
|
|
29702
|
+
}; // global control extension
|
|
29703
|
+
|
|
29704
|
+
var gceSchema = (0, _.conditional)({
|
|
29705
|
+
gce: [{
|
|
29706
|
+
codes: (0, _uint.readBytes)(2)
|
|
29707
|
+
}, {
|
|
29708
|
+
byteSize: (0, _uint.readByte)()
|
|
29709
|
+
}, {
|
|
29710
|
+
extras: (0, _uint.readBits)({
|
|
29711
|
+
future: {
|
|
29712
|
+
index: 0,
|
|
29713
|
+
length: 3
|
|
29714
|
+
},
|
|
29715
|
+
disposal: {
|
|
29716
|
+
index: 3,
|
|
29717
|
+
length: 3
|
|
29718
|
+
},
|
|
29719
|
+
userInput: {
|
|
29720
|
+
index: 6
|
|
29721
|
+
},
|
|
29722
|
+
transparentColorGiven: {
|
|
29723
|
+
index: 7
|
|
29724
|
+
}
|
|
29725
|
+
})
|
|
29726
|
+
}, {
|
|
29727
|
+
delay: (0, _uint.readUnsigned)(true)
|
|
29728
|
+
}, {
|
|
29729
|
+
transparentColorIndex: (0, _uint.readByte)()
|
|
29730
|
+
}, {
|
|
29731
|
+
terminator: (0, _uint.readByte)()
|
|
29732
|
+
}]
|
|
29733
|
+
}, function (stream) {
|
|
29734
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29735
|
+
return codes[0] === 0x21 && codes[1] === 0xf9;
|
|
29736
|
+
}); // image pipeline block
|
|
29737
|
+
|
|
29738
|
+
var imageSchema = (0, _.conditional)({
|
|
29739
|
+
image: [{
|
|
29740
|
+
code: (0, _uint.readByte)()
|
|
29741
|
+
}, {
|
|
29742
|
+
descriptor: [{
|
|
29743
|
+
left: (0, _uint.readUnsigned)(true)
|
|
29744
|
+
}, {
|
|
29745
|
+
top: (0, _uint.readUnsigned)(true)
|
|
29746
|
+
}, {
|
|
29747
|
+
width: (0, _uint.readUnsigned)(true)
|
|
29748
|
+
}, {
|
|
29749
|
+
height: (0, _uint.readUnsigned)(true)
|
|
29750
|
+
}, {
|
|
29751
|
+
lct: (0, _uint.readBits)({
|
|
29752
|
+
exists: {
|
|
29753
|
+
index: 0
|
|
29754
|
+
},
|
|
29755
|
+
interlaced: {
|
|
29756
|
+
index: 1
|
|
29757
|
+
},
|
|
29758
|
+
sort: {
|
|
29759
|
+
index: 2
|
|
29760
|
+
},
|
|
29761
|
+
future: {
|
|
29762
|
+
index: 3,
|
|
29763
|
+
length: 2
|
|
29764
|
+
},
|
|
29765
|
+
size: {
|
|
29766
|
+
index: 5,
|
|
29767
|
+
length: 3
|
|
29768
|
+
}
|
|
29769
|
+
})
|
|
29770
|
+
}]
|
|
29771
|
+
}, (0, _.conditional)({
|
|
29772
|
+
lct: (0, _uint.readArray)(3, function (stream, result, parent) {
|
|
29773
|
+
return Math.pow(2, parent.descriptor.lct.size + 1);
|
|
29774
|
+
})
|
|
29775
|
+
}, function (stream, result, parent) {
|
|
29776
|
+
return parent.descriptor.lct.exists;
|
|
29777
|
+
}), {
|
|
29778
|
+
data: [{
|
|
29779
|
+
minCodeSize: (0, _uint.readByte)()
|
|
29780
|
+
}, subBlocksSchema]
|
|
29781
|
+
}]
|
|
29782
|
+
}, function (stream) {
|
|
29783
|
+
return (0, _uint.peekByte)()(stream) === 0x2c;
|
|
29784
|
+
}); // plain text block
|
|
29785
|
+
|
|
29786
|
+
var textSchema = (0, _.conditional)({
|
|
29787
|
+
text: [{
|
|
29788
|
+
codes: (0, _uint.readBytes)(2)
|
|
29789
|
+
}, {
|
|
29790
|
+
blockSize: (0, _uint.readByte)()
|
|
29791
|
+
}, {
|
|
29792
|
+
preData: function preData(stream, result, parent) {
|
|
29793
|
+
return (0, _uint.readBytes)(parent.text.blockSize)(stream);
|
|
29794
|
+
}
|
|
29795
|
+
}, subBlocksSchema]
|
|
29796
|
+
}, function (stream) {
|
|
29797
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29798
|
+
return codes[0] === 0x21 && codes[1] === 0x01;
|
|
29799
|
+
}); // application block
|
|
29800
|
+
|
|
29801
|
+
var applicationSchema = (0, _.conditional)({
|
|
29802
|
+
application: [{
|
|
29803
|
+
codes: (0, _uint.readBytes)(2)
|
|
29804
|
+
}, {
|
|
29805
|
+
blockSize: (0, _uint.readByte)()
|
|
29806
|
+
}, {
|
|
29807
|
+
id: function id(stream, result, parent) {
|
|
29808
|
+
return (0, _uint.readString)(parent.blockSize)(stream);
|
|
29809
|
+
}
|
|
29810
|
+
}, subBlocksSchema]
|
|
29811
|
+
}, function (stream) {
|
|
29812
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29813
|
+
return codes[0] === 0x21 && codes[1] === 0xff;
|
|
29814
|
+
}); // comment block
|
|
29815
|
+
|
|
29816
|
+
var commentSchema = (0, _.conditional)({
|
|
29817
|
+
comment: [{
|
|
29818
|
+
codes: (0, _uint.readBytes)(2)
|
|
29819
|
+
}, subBlocksSchema]
|
|
29820
|
+
}, function (stream) {
|
|
29821
|
+
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29822
|
+
return codes[0] === 0x21 && codes[1] === 0xfe;
|
|
29823
|
+
});
|
|
29824
|
+
var schema = [{
|
|
29825
|
+
header: [{
|
|
29826
|
+
signature: (0, _uint.readString)(3)
|
|
29827
|
+
}, {
|
|
29828
|
+
version: (0, _uint.readString)(3)
|
|
29829
|
+
}]
|
|
29830
|
+
}, {
|
|
29831
|
+
lsd: [{
|
|
29832
|
+
width: (0, _uint.readUnsigned)(true)
|
|
29833
|
+
}, {
|
|
29834
|
+
height: (0, _uint.readUnsigned)(true)
|
|
29835
|
+
}, {
|
|
29836
|
+
gct: (0, _uint.readBits)({
|
|
29837
|
+
exists: {
|
|
29838
|
+
index: 0
|
|
29839
|
+
},
|
|
29840
|
+
resolution: {
|
|
29841
|
+
index: 1,
|
|
29842
|
+
length: 3
|
|
29843
|
+
},
|
|
29844
|
+
sort: {
|
|
29845
|
+
index: 4
|
|
29846
|
+
},
|
|
29847
|
+
size: {
|
|
29848
|
+
index: 5,
|
|
29849
|
+
length: 3
|
|
29850
|
+
}
|
|
29851
|
+
})
|
|
29852
|
+
}, {
|
|
29853
|
+
backgroundColorIndex: (0, _uint.readByte)()
|
|
29854
|
+
}, {
|
|
29855
|
+
pixelAspectRatio: (0, _uint.readByte)()
|
|
29856
|
+
}]
|
|
29857
|
+
}, (0, _.conditional)({
|
|
29858
|
+
gct: (0, _uint.readArray)(3, function (stream, result) {
|
|
29859
|
+
return Math.pow(2, result.lsd.gct.size + 1);
|
|
29860
|
+
})
|
|
29861
|
+
}, function (stream, result) {
|
|
29862
|
+
return result.lsd.gct.exists;
|
|
29863
|
+
}),
|
|
29864
|
+
// content frames
|
|
29865
|
+
{
|
|
29866
|
+
frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
|
|
29867
|
+
var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
|
|
29868
|
+
// of an ext or image block to avoid infinite loops
|
|
29869
|
+
//var terminator = 0x3B;
|
|
29870
|
+
//return nextCode !== terminator;
|
|
29871
|
+
|
|
29872
|
+
return nextCode === 0x21 || nextCode === 0x2c;
|
|
29873
|
+
})
|
|
29874
|
+
}];
|
|
29875
|
+
var _default = schema;
|
|
29876
|
+
exports["default"] = _default;
|
|
29877
|
+
})(gif);
|
|
29878
|
+
|
|
29879
|
+
var deinterlace$1 = {};
|
|
29880
|
+
|
|
29881
|
+
Object.defineProperty(deinterlace$1, "__esModule", {
|
|
29882
|
+
value: true
|
|
29883
|
+
});
|
|
29884
|
+
deinterlace$1.deinterlace = void 0;
|
|
29885
|
+
|
|
29886
|
+
/**
|
|
29887
|
+
* Deinterlace function from https://github.com/shachaf/jsgif
|
|
29888
|
+
*/
|
|
29889
|
+
var deinterlace = function deinterlace(pixels, width) {
|
|
29890
|
+
var newPixels = new Array(pixels.length);
|
|
29891
|
+
var rows = pixels.length / width;
|
|
29892
|
+
var cpRow = function cpRow(toRow, fromRow) {
|
|
29893
|
+
var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
|
|
29894
|
+
newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
|
|
29895
|
+
}; // See appendix E.
|
|
29896
|
+
|
|
29897
|
+
var offsets = [0, 4, 2, 1];
|
|
29898
|
+
var steps = [8, 8, 4, 2];
|
|
29899
|
+
var fromRow = 0;
|
|
29900
|
+
for (var pass = 0; pass < 4; pass++) {
|
|
29901
|
+
for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
|
|
29902
|
+
cpRow(toRow, fromRow);
|
|
29903
|
+
fromRow++;
|
|
29904
|
+
}
|
|
29905
|
+
}
|
|
29906
|
+
return newPixels;
|
|
29907
|
+
};
|
|
29908
|
+
deinterlace$1.deinterlace = deinterlace;
|
|
29909
|
+
|
|
29910
|
+
var lzw$1 = {};
|
|
29911
|
+
|
|
29912
|
+
Object.defineProperty(lzw$1, "__esModule", {
|
|
29913
|
+
value: true
|
|
29914
|
+
});
|
|
29915
|
+
lzw$1.lzw = void 0;
|
|
29916
|
+
|
|
29917
|
+
/**
|
|
29918
|
+
* javascript port of java LZW decompression
|
|
29919
|
+
* Original java author url: https://gist.github.com/devunwired/4479231
|
|
29920
|
+
*/
|
|
29921
|
+
var lzw = function lzw(minCodeSize, data, pixelCount) {
|
|
29922
|
+
var MAX_STACK_SIZE = 4096;
|
|
29923
|
+
var nullCode = -1;
|
|
29924
|
+
var npix = pixelCount;
|
|
29925
|
+
var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
|
|
29926
|
+
var dstPixels = new Array(pixelCount);
|
|
29927
|
+
var prefix = new Array(MAX_STACK_SIZE);
|
|
29928
|
+
var suffix = new Array(MAX_STACK_SIZE);
|
|
29929
|
+
var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
|
|
29930
|
+
|
|
29931
|
+
data_size = minCodeSize;
|
|
29932
|
+
clear = 1 << data_size;
|
|
29933
|
+
end_of_information = clear + 1;
|
|
29934
|
+
available = clear + 2;
|
|
29935
|
+
old_code = nullCode;
|
|
29936
|
+
code_size = data_size + 1;
|
|
29937
|
+
code_mask = (1 << code_size) - 1;
|
|
29938
|
+
for (code = 0; code < clear; code++) {
|
|
29939
|
+
prefix[code] = 0;
|
|
29940
|
+
suffix[code] = code;
|
|
29941
|
+
} // Decode GIF pixel stream.
|
|
29942
|
+
|
|
29943
|
+
var datum, bits, first, top, pi, bi;
|
|
29944
|
+
datum = bits = first = top = pi = bi = 0;
|
|
29945
|
+
for (i = 0; i < npix;) {
|
|
29946
|
+
if (top === 0) {
|
|
29947
|
+
if (bits < code_size) {
|
|
29948
|
+
// get the next byte
|
|
29949
|
+
datum += data[bi] << bits;
|
|
29950
|
+
bits += 8;
|
|
29951
|
+
bi++;
|
|
29952
|
+
continue;
|
|
29953
|
+
} // Get the next code.
|
|
29954
|
+
|
|
29955
|
+
code = datum & code_mask;
|
|
29956
|
+
datum >>= code_size;
|
|
29957
|
+
bits -= code_size; // Interpret the code
|
|
29958
|
+
|
|
29959
|
+
if (code > available || code == end_of_information) {
|
|
29960
|
+
break;
|
|
29961
|
+
}
|
|
29962
|
+
if (code == clear) {
|
|
29963
|
+
// Reset decoder.
|
|
29964
|
+
code_size = data_size + 1;
|
|
29965
|
+
code_mask = (1 << code_size) - 1;
|
|
29966
|
+
available = clear + 2;
|
|
29967
|
+
old_code = nullCode;
|
|
29968
|
+
continue;
|
|
29969
|
+
}
|
|
29970
|
+
if (old_code == nullCode) {
|
|
29971
|
+
pixelStack[top++] = suffix[code];
|
|
29972
|
+
old_code = code;
|
|
29973
|
+
first = code;
|
|
29974
|
+
continue;
|
|
29975
|
+
}
|
|
29976
|
+
in_code = code;
|
|
29977
|
+
if (code == available) {
|
|
29978
|
+
pixelStack[top++] = first;
|
|
29979
|
+
code = old_code;
|
|
29980
|
+
}
|
|
29981
|
+
while (code > clear) {
|
|
29982
|
+
pixelStack[top++] = suffix[code];
|
|
29983
|
+
code = prefix[code];
|
|
29984
|
+
}
|
|
29985
|
+
first = suffix[code] & 0xff;
|
|
29986
|
+
pixelStack[top++] = first; // add a new string to the table, but only if space is available
|
|
29987
|
+
// if not, just continue with current table until a clear code is found
|
|
29988
|
+
// (deferred clear code implementation as per GIF spec)
|
|
29989
|
+
|
|
29990
|
+
if (available < MAX_STACK_SIZE) {
|
|
29991
|
+
prefix[available] = old_code;
|
|
29992
|
+
suffix[available] = first;
|
|
29993
|
+
available++;
|
|
29994
|
+
if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
|
|
29995
|
+
code_size++;
|
|
29996
|
+
code_mask += available;
|
|
29997
|
+
}
|
|
29998
|
+
}
|
|
29999
|
+
old_code = in_code;
|
|
30000
|
+
} // Pop a pixel off the pixel stack.
|
|
30001
|
+
|
|
30002
|
+
top--;
|
|
30003
|
+
dstPixels[pi++] = pixelStack[top];
|
|
30004
|
+
i++;
|
|
30005
|
+
}
|
|
30006
|
+
for (i = pi; i < npix; i++) {
|
|
30007
|
+
dstPixels[i] = 0; // clear missing pixels
|
|
30008
|
+
}
|
|
30009
|
+
|
|
30010
|
+
return dstPixels;
|
|
30011
|
+
};
|
|
30012
|
+
lzw$1.lzw = lzw;
|
|
30013
|
+
|
|
30014
|
+
Object.defineProperty(lib$1, "__esModule", {
|
|
30015
|
+
value: true
|
|
30016
|
+
});
|
|
30017
|
+
var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
|
|
30018
|
+
var _gif = _interopRequireDefault(gif);
|
|
30019
|
+
var _jsBinarySchemaParser = lib;
|
|
30020
|
+
var _uint = uint8;
|
|
30021
|
+
var _deinterlace = deinterlace$1;
|
|
30022
|
+
var _lzw = lzw$1;
|
|
30023
|
+
function _interopRequireDefault(obj) {
|
|
30024
|
+
return obj && obj.__esModule ? obj : {
|
|
30025
|
+
"default": obj
|
|
30026
|
+
};
|
|
30027
|
+
}
|
|
30028
|
+
var parseGIF = function parseGIF(arrayBuffer) {
|
|
30029
|
+
var byteData = new Uint8Array(arrayBuffer);
|
|
30030
|
+
return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
|
|
30031
|
+
};
|
|
30032
|
+
var parseGIF_1 = lib$1.parseGIF = parseGIF;
|
|
30033
|
+
var generatePatch = function generatePatch(image) {
|
|
30034
|
+
var totalPixels = image.pixels.length;
|
|
30035
|
+
var patchData = new Uint8ClampedArray(totalPixels * 4);
|
|
30036
|
+
for (var i = 0; i < totalPixels; i++) {
|
|
30037
|
+
var pos = i * 4;
|
|
30038
|
+
var colorIndex = image.pixels[i];
|
|
30039
|
+
var color = image.colorTable[colorIndex] || [0, 0, 0];
|
|
30040
|
+
patchData[pos] = color[0];
|
|
30041
|
+
patchData[pos + 1] = color[1];
|
|
30042
|
+
patchData[pos + 2] = color[2];
|
|
30043
|
+
patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
|
|
30044
|
+
}
|
|
30045
|
+
return patchData;
|
|
30046
|
+
};
|
|
30047
|
+
var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
|
|
30048
|
+
if (!frame.image) {
|
|
30049
|
+
console.warn('gif frame does not have associated image.');
|
|
30050
|
+
return;
|
|
30051
|
+
}
|
|
30052
|
+
var image = frame.image; // get the number of pixels
|
|
30053
|
+
|
|
30054
|
+
var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
|
|
30055
|
+
|
|
30056
|
+
var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
|
|
30057
|
+
|
|
30058
|
+
if (image.descriptor.lct.interlaced) {
|
|
30059
|
+
pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
|
|
30060
|
+
}
|
|
30061
|
+
var resultImage = {
|
|
30062
|
+
pixels: pixels,
|
|
30063
|
+
dims: {
|
|
30064
|
+
top: frame.image.descriptor.top,
|
|
30065
|
+
left: frame.image.descriptor.left,
|
|
30066
|
+
width: frame.image.descriptor.width,
|
|
30067
|
+
height: frame.image.descriptor.height
|
|
30068
|
+
}
|
|
30069
|
+
}; // color table
|
|
30070
|
+
|
|
30071
|
+
if (image.descriptor.lct && image.descriptor.lct.exists) {
|
|
30072
|
+
resultImage.colorTable = image.lct;
|
|
30073
|
+
} else {
|
|
30074
|
+
resultImage.colorTable = gct;
|
|
30075
|
+
} // add per frame relevant gce information
|
|
30076
|
+
|
|
30077
|
+
if (frame.gce) {
|
|
30078
|
+
resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
|
|
30079
|
+
|
|
30080
|
+
resultImage.disposalType = frame.gce.extras.disposal; // transparency
|
|
30081
|
+
|
|
30082
|
+
if (frame.gce.extras.transparentColorGiven) {
|
|
30083
|
+
resultImage.transparentIndex = frame.gce.transparentColorIndex;
|
|
30084
|
+
}
|
|
30085
|
+
} // create canvas usable imagedata if desired
|
|
30086
|
+
|
|
30087
|
+
if (buildImagePatch) {
|
|
30088
|
+
resultImage.patch = generatePatch(resultImage);
|
|
30089
|
+
}
|
|
30090
|
+
return resultImage;
|
|
30091
|
+
};
|
|
30092
|
+
lib$1.decompressFrame = decompressFrame;
|
|
30093
|
+
var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
|
|
30094
|
+
return parsedGif.frames.filter(function (f) {
|
|
30095
|
+
return f.image;
|
|
30096
|
+
}).map(function (f) {
|
|
30097
|
+
return decompressFrame(f, parsedGif.gct, buildImagePatches);
|
|
30098
|
+
});
|
|
30099
|
+
};
|
|
30100
|
+
decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
|
|
30101
|
+
|
|
30102
|
+
const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29581
30103
|
const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29582
30104
|
|
|
30105
|
+
class GifImage extends Image$1 {
|
|
30106
|
+
constructor(params) {
|
|
30107
|
+
super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
|
|
30108
|
+
}
|
|
30109
|
+
loadGif() {
|
|
30110
|
+
if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
|
|
30111
|
+
const gif = parseGIF_1(res),
|
|
30112
|
+
frames = decompressFrames_1(gif, !0);
|
|
30113
|
+
this.renderGIF(frames);
|
|
30114
|
+
}).catch(e => {
|
|
30115
|
+
console.error("Gif load error: ", e);
|
|
30116
|
+
});else if (this.attribute.gifImage instanceof ArrayBuffer) {
|
|
30117
|
+
const gif = parseGIF_1(this.attribute.gifImage),
|
|
30118
|
+
frames = decompressFrames_1(gif, !0);
|
|
30119
|
+
this.renderGIF(frames);
|
|
30120
|
+
}
|
|
30121
|
+
}
|
|
30122
|
+
renderGIF(frames) {
|
|
30123
|
+
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();
|
|
30124
|
+
const animation = this.animate();
|
|
30125
|
+
this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
|
|
30126
|
+
}
|
|
30127
|
+
renderFrame(context, x, y) {
|
|
30128
|
+
const frame = this.loadedFrames[this.frameIndex || 0];
|
|
30129
|
+
2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
|
|
30130
|
+
const diff = new Date().getTime() - this.lastTime;
|
|
30131
|
+
frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
|
|
30132
|
+
}
|
|
30133
|
+
drawPatch(frame) {
|
|
30134
|
+
const dims = frame.dims;
|
|
30135
|
+
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);
|
|
30136
|
+
}
|
|
30137
|
+
manipulate(context, x, y) {
|
|
30138
|
+
context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
|
|
30139
|
+
}
|
|
30140
|
+
setAttribute(key, value, forceUpdateTag, context) {
|
|
30141
|
+
super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
|
|
30142
|
+
}
|
|
30143
|
+
setAttributes(params, forceUpdateTag, context) {
|
|
30144
|
+
super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
|
|
30145
|
+
}
|
|
30146
|
+
}
|
|
30147
|
+
function createGifImage(attributes) {
|
|
30148
|
+
return new GifImage(attributes);
|
|
30149
|
+
}
|
|
30150
|
+
|
|
30151
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30152
|
+
var d,
|
|
30153
|
+
c = arguments.length,
|
|
30154
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30155
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30156
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30157
|
+
};
|
|
30158
|
+
let DefaultCanvasGifImagePicker = class {
|
|
30159
|
+
constructor() {
|
|
30160
|
+
this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
|
|
30161
|
+
}
|
|
30162
|
+
contains(gifImage, point, params) {
|
|
30163
|
+
const {
|
|
30164
|
+
pickContext: pickContext
|
|
30165
|
+
} = null != params ? params : {};
|
|
30166
|
+
return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
|
|
30167
|
+
}
|
|
30168
|
+
};
|
|
30169
|
+
DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
|
|
30170
|
+
|
|
30171
|
+
let loadGifImagePick = !1;
|
|
30172
|
+
const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
30173
|
+
loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
|
|
30174
|
+
});
|
|
30175
|
+
|
|
30176
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30177
|
+
var d,
|
|
30178
|
+
c = arguments.length,
|
|
30179
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30180
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30181
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30182
|
+
},
|
|
30183
|
+
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
30184
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30185
|
+
},
|
|
30186
|
+
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30187
|
+
return function (target, key) {
|
|
30188
|
+
decorator(target, key, paramIndex);
|
|
30189
|
+
};
|
|
30190
|
+
};
|
|
30191
|
+
let DefaultCanvasGifImageRender = class extends exports.DefaultCanvasImageRender {
|
|
30192
|
+
constructor(imageRenderContribitions) {
|
|
30193
|
+
super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
|
|
30194
|
+
}
|
|
30195
|
+
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
30196
|
+
const imageAttribute = getTheme(image).image,
|
|
30197
|
+
{
|
|
30198
|
+
x: originX = imageAttribute.x,
|
|
30199
|
+
y: originY = imageAttribute.y,
|
|
30200
|
+
fillStrokeOrder = imageAttribute.fillStrokeOrder
|
|
30201
|
+
} = image.attribute,
|
|
30202
|
+
data = this.valid(image, imageAttribute, fillCb);
|
|
30203
|
+
if (!data) return;
|
|
30204
|
+
const {
|
|
30205
|
+
fVisible: fVisible,
|
|
30206
|
+
sVisible: sVisible,
|
|
30207
|
+
doFill: doFill,
|
|
30208
|
+
doStroke: doStroke
|
|
30209
|
+
} = data,
|
|
30210
|
+
_runFill = () => {
|
|
30211
|
+
doFill && fillCb && fillCb(context, image.attribute, imageAttribute);
|
|
30212
|
+
},
|
|
30213
|
+
_runStroke = () => {
|
|
30214
|
+
doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke()));
|
|
30215
|
+
};
|
|
30216
|
+
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);
|
|
30217
|
+
}
|
|
30218
|
+
draw(image, renderService, drawContext) {
|
|
30219
|
+
const {
|
|
30220
|
+
context: context
|
|
30221
|
+
} = renderService.drawParams;
|
|
30222
|
+
if (!context) return;
|
|
30223
|
+
const imageAttribute = getTheme(image).image;
|
|
30224
|
+
this._draw(image, imageAttribute, !1, drawContext);
|
|
30225
|
+
}
|
|
30226
|
+
};
|
|
30227
|
+
DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
|
|
30228
|
+
class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
|
|
30229
|
+
constructor() {
|
|
30230
|
+
super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
30231
|
+
}
|
|
30232
|
+
drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
30233
|
+
image.renderFrame && image.playing && image.renderFrame(context, x, y);
|
|
30234
|
+
}
|
|
30235
|
+
}
|
|
30236
|
+
const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
|
|
30237
|
+
|
|
30238
|
+
let loadGifImageModule = !1;
|
|
30239
|
+
const gifImageModule = new ContainerModule(bind => {
|
|
30240
|
+
loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
|
|
30241
|
+
});
|
|
30242
|
+
|
|
29583
30243
|
var lottie = {exports: {}};
|
|
29584
30244
|
|
|
29585
30245
|
(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:{}}
|
|
@@ -30481,7 +31141,7 @@
|
|
|
30481
31141
|
|
|
30482
31142
|
const roughModule = _roughModule;
|
|
30483
31143
|
|
|
30484
|
-
const version = "0.22.0-vstory.
|
|
31144
|
+
const version = "0.22.0-vstory.12";
|
|
30485
31145
|
preLoadAllModule();
|
|
30486
31146
|
if (isBrowserEnv()) {
|
|
30487
31147
|
loadBrowserEnv(container);
|
|
@@ -30545,6 +31205,7 @@
|
|
|
30545
31205
|
exports.CanvasAreaPicker = CanvasAreaPicker;
|
|
30546
31206
|
exports.CanvasCirclePicker = CanvasCirclePicker;
|
|
30547
31207
|
exports.CanvasFactory = CanvasFactory;
|
|
31208
|
+
exports.CanvasGifImagePicker = CanvasGifImagePicker;
|
|
30548
31209
|
exports.CanvasGlyphPicker = CanvasGlyphPicker;
|
|
30549
31210
|
exports.CanvasGroupPicker = CanvasGroupPicker;
|
|
30550
31211
|
exports.CanvasImagePicker = CanvasImagePicker;
|
|
@@ -30660,6 +31321,7 @@
|
|
|
30660
31321
|
exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
|
|
30661
31322
|
exports.Generator = Generator;
|
|
30662
31323
|
exports.Gesture = Gesture;
|
|
31324
|
+
exports.GifImage = GifImage;
|
|
30663
31325
|
exports.GlobalPickerService = GlobalPickerService;
|
|
30664
31326
|
exports.Glyph = Glyph;
|
|
30665
31327
|
exports.GlyphRender = GlyphRender;
|
|
@@ -30852,6 +31514,7 @@
|
|
|
30852
31514
|
exports.createCircle = createCircle;
|
|
30853
31515
|
exports.createColor = createColor;
|
|
30854
31516
|
exports.createConicalGradient = createConicalGradient;
|
|
31517
|
+
exports.createGifImage = createGifImage;
|
|
30855
31518
|
exports.createGlyph = createGlyph;
|
|
30856
31519
|
exports.createGroup = createGroup;
|
|
30857
31520
|
exports.createImage = createImage;
|
|
@@ -30946,6 +31609,8 @@
|
|
|
30946
31609
|
exports.getTextBounds = getTextBounds;
|
|
30947
31610
|
exports.getTheme = getTheme;
|
|
30948
31611
|
exports.getThemeFromGroup = getThemeFromGroup;
|
|
31612
|
+
exports.gifImageCanvasPickModule = gifImageCanvasPickModule;
|
|
31613
|
+
exports.gifImageModule = gifImageModule;
|
|
30949
31614
|
exports.globalTheme = globalTheme;
|
|
30950
31615
|
exports.glyphCanvasPickModule = glyphCanvasPickModule;
|
|
30951
31616
|
exports.glyphMathPickModule = glyphMathPickModule;
|