@visactor/vrender 0.22.0-vstory.1 → 0.22.0-vstory.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +864 -1273
- package/dist/index.js +865 -1277
- 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$1J = 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$1i = 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$U = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
591
591
|
return function (target, key) {
|
|
592
592
|
decorator(target, key, paramIndex);
|
|
593
593
|
};
|
|
@@ -621,12 +621,6 @@
|
|
|
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
|
-
}
|
|
630
624
|
get devicePixelRatio() {
|
|
631
625
|
return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
|
|
632
626
|
}
|
|
@@ -661,7 +655,7 @@
|
|
|
661
655
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
662
656
|
}
|
|
663
657
|
constructor(contributions) {
|
|
664
|
-
this.contributions = contributions, this.
|
|
658
|
+
this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
665
659
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
666
660
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
667
661
|
}
|
|
@@ -789,7 +783,7 @@
|
|
|
789
783
|
return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
|
|
790
784
|
}
|
|
791
785
|
};
|
|
792
|
-
exports.DefaultGlobal = __decorate$
|
|
786
|
+
exports.DefaultGlobal = __decorate$1J([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(EnvContribution)), __metadata$1i("design:paramtypes", [Object])], exports.DefaultGlobal);
|
|
793
787
|
|
|
794
788
|
exports.MeasureModeEnum = void 0;
|
|
795
789
|
!function (MeasureModeEnum) {
|
|
@@ -4305,6 +4299,7 @@
|
|
|
4305
4299
|
});
|
|
4306
4300
|
const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
|
|
4307
4301
|
editable: !1,
|
|
4302
|
+
editOptions: null,
|
|
4308
4303
|
width: 300,
|
|
4309
4304
|
height: 300,
|
|
4310
4305
|
ellipsis: !0,
|
|
@@ -4352,7 +4347,7 @@
|
|
|
4352
4347
|
class Application {}
|
|
4353
4348
|
const application = new Application();
|
|
4354
4349
|
|
|
4355
|
-
const parse
|
|
4350
|
+
const parse = function () {
|
|
4356
4351
|
const tokens = {
|
|
4357
4352
|
linearGradient: /^(linear\-gradient)/i,
|
|
4358
4353
|
radialGradient: /^(radial\-gradient)/i,
|
|
@@ -4505,7 +4500,7 @@
|
|
|
4505
4500
|
}
|
|
4506
4501
|
static Parse(c) {
|
|
4507
4502
|
if (GradientParser.IsGradientStr(c)) try {
|
|
4508
|
-
const datum = parse
|
|
4503
|
+
const datum = parse(c)[0];
|
|
4509
4504
|
if (datum) {
|
|
4510
4505
|
if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
|
|
4511
4506
|
if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
|
|
@@ -4759,10 +4754,10 @@
|
|
|
4759
4754
|
descent: 0,
|
|
4760
4755
|
width: 0
|
|
4761
4756
|
};
|
|
4762
|
-
return "number" != typeof measurement.
|
|
4757
|
+
return "number" != typeof measurement.fontBoundingBoxAscent || "number" != typeof measurement.fontBoundingBoxDescent ? (result.width = measurement.width, result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = measurement.width, result.height = Math.floor(measurement.fontBoundingBoxAscent + measurement.fontBoundingBoxDescent), result.ascent = Math.floor(measurement.fontBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
4763
4758
|
}
|
|
4764
4759
|
|
|
4765
|
-
var __decorate$
|
|
4760
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
4766
4761
|
var d,
|
|
4767
4762
|
c = arguments.length,
|
|
4768
4763
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5144,9 +5139,9 @@
|
|
|
5144
5139
|
return data.str = data.result, data.width += suffixWidth, data;
|
|
5145
5140
|
}
|
|
5146
5141
|
};
|
|
5147
|
-
ATextMeasure = __decorate$
|
|
5142
|
+
ATextMeasure = __decorate$1I([injectable()], ATextMeasure);
|
|
5148
5143
|
|
|
5149
|
-
var __decorate$
|
|
5144
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5150
5145
|
var d,
|
|
5151
5146
|
c = arguments.length,
|
|
5152
5147
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5155,7 +5150,7 @@
|
|
|
5155
5150
|
};
|
|
5156
5151
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
5157
5152
|
exports.DefaultTextMeasureContribution = class DefaultTextMeasureContribution extends ATextMeasure {};
|
|
5158
|
-
exports.DefaultTextMeasureContribution = __decorate$
|
|
5153
|
+
exports.DefaultTextMeasureContribution = __decorate$1H([injectable()], exports.DefaultTextMeasureContribution);
|
|
5159
5154
|
|
|
5160
5155
|
const container = new Container();
|
|
5161
5156
|
|
|
@@ -5569,14 +5564,14 @@
|
|
|
5569
5564
|
}
|
|
5570
5565
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
5571
5566
|
|
|
5572
|
-
var __decorate$
|
|
5567
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5573
5568
|
var d,
|
|
5574
5569
|
c = arguments.length,
|
|
5575
5570
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5576
5571
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5577
5572
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5578
5573
|
},
|
|
5579
|
-
__metadata$
|
|
5574
|
+
__metadata$1h = undefined && undefined.__metadata || function (k, v) {
|
|
5580
5575
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5581
5576
|
};
|
|
5582
5577
|
const VWindow = Symbol.for("VWindow");
|
|
@@ -5713,19 +5708,19 @@
|
|
|
5713
5708
|
return this._handler.getTopLeft(baseWindow);
|
|
5714
5709
|
}
|
|
5715
5710
|
};
|
|
5716
|
-
exports.DefaultWindow = __decorate$
|
|
5711
|
+
exports.DefaultWindow = __decorate$1G([injectable(), __metadata$1h("design:paramtypes", [])], exports.DefaultWindow);
|
|
5717
5712
|
|
|
5718
|
-
var __decorate$
|
|
5713
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5719
5714
|
var d,
|
|
5720
5715
|
c = arguments.length,
|
|
5721
5716
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5722
5717
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5723
5718
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5724
5719
|
},
|
|
5725
|
-
__metadata$
|
|
5720
|
+
__metadata$1g = undefined && undefined.__metadata || function (k, v) {
|
|
5726
5721
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5727
5722
|
},
|
|
5728
|
-
__param$
|
|
5723
|
+
__param$T = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
5729
5724
|
return function (target, key) {
|
|
5730
5725
|
decorator(target, key, paramIndex);
|
|
5731
5726
|
};
|
|
@@ -5820,7 +5815,7 @@
|
|
|
5820
5815
|
return c.nativeCanvas ? c.nativeCanvas : null;
|
|
5821
5816
|
}
|
|
5822
5817
|
};
|
|
5823
|
-
exports.DefaultGraphicUtil = __decorate$
|
|
5818
|
+
exports.DefaultGraphicUtil = __decorate$1F([injectable(), __param$T(0, inject(ContributionProvider)), __param$T(0, named(TextMeasureContribution)), __metadata$1g("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
|
|
5824
5819
|
var TransformMode;
|
|
5825
5820
|
!function (TransformMode) {
|
|
5826
5821
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -5878,7 +5873,7 @@
|
|
|
5878
5873
|
return this;
|
|
5879
5874
|
}
|
|
5880
5875
|
};
|
|
5881
|
-
exports.DefaultTransformUtil = __decorate$
|
|
5876
|
+
exports.DefaultTransformUtil = __decorate$1F([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultTransformUtil);
|
|
5882
5877
|
|
|
5883
5878
|
const defaultThemeObj = {
|
|
5884
5879
|
arc: DefaultArcAttribute,
|
|
@@ -9727,7 +9722,7 @@
|
|
|
9727
9722
|
}
|
|
9728
9723
|
static GetFile(url, type) {
|
|
9729
9724
|
let data = ResourceLoader.cache.get(url);
|
|
9730
|
-
return data ? "fail" === data.loadState ? Promise.reject() : "
|
|
9725
|
+
return data ? "init" === data.loadState || "fail" === data.loadState ? Promise.reject() : "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
|
|
9731
9726
|
type: type,
|
|
9732
9727
|
loadState: "init"
|
|
9733
9728
|
}, 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));
|
|
@@ -9837,7 +9832,7 @@
|
|
|
9837
9832
|
}
|
|
9838
9833
|
}
|
|
9839
9834
|
get AABBBounds() {
|
|
9840
|
-
return this.tryUpdateAABBBounds(
|
|
9835
|
+
return this.tryUpdateAABBBounds();
|
|
9841
9836
|
}
|
|
9842
9837
|
get OBBBounds() {
|
|
9843
9838
|
return this.tryUpdateOBBBounds();
|
|
@@ -9881,12 +9876,13 @@
|
|
|
9881
9876
|
onAnimateBind(animate) {
|
|
9882
9877
|
this._emitCustomEvent("animate-bind", animate);
|
|
9883
9878
|
}
|
|
9884
|
-
tryUpdateAABBBounds(
|
|
9879
|
+
tryUpdateAABBBounds() {
|
|
9880
|
+
const full = "imprecise" === this.attribute.boundsMode;
|
|
9885
9881
|
if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
|
|
9886
9882
|
if (!this.valid) return this._AABBBounds.clear(), this._AABBBounds;
|
|
9887
9883
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
|
|
9888
9884
|
const bounds = this.doUpdateAABBBounds(full);
|
|
9889
|
-
return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), bounds;
|
|
9885
|
+
return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
|
|
9890
9886
|
}
|
|
9891
9887
|
tryUpdateOBBBounds() {
|
|
9892
9888
|
if (this._OBBBounds || (this._OBBBounds = new OBBBounds()), this.tryUpdateAABBBounds(), this.updateOBBBoundsStamp === this.updateAABBBoundsStamp) return this._OBBBounds;
|
|
@@ -10123,14 +10119,14 @@
|
|
|
10123
10119
|
null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame), null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove), animate.interpolateFunc = params.interpolate;
|
|
10124
10120
|
}
|
|
10125
10121
|
return this.animates.set(animate.id, animate), animate.onRemove(() => {
|
|
10126
|
-
this.animates.delete(animate.id);
|
|
10122
|
+
animate.stop(), this.animates.delete(animate.id);
|
|
10127
10123
|
}), animate;
|
|
10128
10124
|
}
|
|
10129
10125
|
onAttributeUpdate(context) {
|
|
10130
10126
|
context && context.skipUpdateCallback || (application.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
|
|
10131
10127
|
}
|
|
10132
10128
|
update(d) {
|
|
10133
|
-
d ? (d.bounds && this.tryUpdateAABBBounds(
|
|
10129
|
+
d ? (d.bounds && this.tryUpdateAABBBounds(), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds(), this.tryUpdateLocalTransMatrix());
|
|
10134
10130
|
}
|
|
10135
10131
|
hasState(stateName) {
|
|
10136
10132
|
return !(!this.currentStates || !this.currentStates.length) && (!!isNil$1(stateName) || this.currentStates.includes(stateName));
|
|
@@ -10327,7 +10323,7 @@
|
|
|
10327
10323
|
if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
|
|
10328
10324
|
const timeline = stage.getTimeline();
|
|
10329
10325
|
this.animates.forEach(a => {
|
|
10330
|
-
a.setTimeline(timeline);
|
|
10326
|
+
a.timeline === defaultTimeline && a.setTimeline(timeline);
|
|
10331
10327
|
});
|
|
10332
10328
|
}
|
|
10333
10329
|
this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
|
|
@@ -10431,7 +10427,7 @@
|
|
|
10431
10427
|
return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
|
|
10432
10428
|
}
|
|
10433
10429
|
detachShadow() {
|
|
10434
|
-
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
|
|
10430
|
+
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
|
|
10435
10431
|
}
|
|
10436
10432
|
toJson() {
|
|
10437
10433
|
return {
|
|
@@ -10483,7 +10479,7 @@
|
|
|
10483
10479
|
});
|
|
10484
10480
|
}
|
|
10485
10481
|
release() {
|
|
10486
|
-
this.releaseStatus = "released", application.graphicService.onRelease(this);
|
|
10482
|
+
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
|
|
10487
10483
|
}
|
|
10488
10484
|
_emitCustomEvent(type, context) {
|
|
10489
10485
|
var _a, _b;
|
|
@@ -10922,7 +10918,7 @@
|
|
|
10922
10918
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
|
|
10923
10919
|
const selfChange = this.shouldSelfChangeUpdateAABBBounds(),
|
|
10924
10920
|
bounds = this.doUpdateAABBBounds();
|
|
10925
|
-
return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), bounds;
|
|
10921
|
+
return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
|
|
10926
10922
|
}
|
|
10927
10923
|
doUpdateLocalMatrix() {
|
|
10928
10924
|
const {
|
|
@@ -11059,6 +11055,11 @@
|
|
|
11059
11055
|
getNoWorkAnimateAttr() {
|
|
11060
11056
|
return Group.NOWORK_ANIMATE_ATTR;
|
|
11061
11057
|
}
|
|
11058
|
+
release(all) {
|
|
11059
|
+
all && this.forEachChildren(g => {
|
|
11060
|
+
g.release(all);
|
|
11061
|
+
}), super.release();
|
|
11062
|
+
}
|
|
11062
11063
|
}
|
|
11063
11064
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
11064
11065
|
function createGroup(attributes) {
|
|
@@ -11180,14 +11181,14 @@
|
|
|
11180
11181
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
11181
11182
|
|
|
11182
11183
|
var DefaultLayerService_1,
|
|
11183
|
-
__decorate$
|
|
11184
|
+
__decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11184
11185
|
var d,
|
|
11185
11186
|
c = arguments.length,
|
|
11186
11187
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11187
11188
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11188
11189
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11189
11190
|
},
|
|
11190
|
-
__metadata$
|
|
11191
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
11191
11192
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11192
11193
|
};
|
|
11193
11194
|
exports.DefaultLayerService = DefaultLayerService_1 = class {
|
|
@@ -11251,7 +11252,7 @@
|
|
|
11251
11252
|
this.layerMap.delete(stage);
|
|
11252
11253
|
}
|
|
11253
11254
|
};
|
|
11254
|
-
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
11255
|
+
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultLayerService);
|
|
11255
11256
|
|
|
11256
11257
|
var coreModule = new ContainerModule(bind => {
|
|
11257
11258
|
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();
|
|
@@ -11790,17 +11791,17 @@
|
|
|
11790
11791
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
11791
11792
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
11792
11793
|
|
|
11793
|
-
var __decorate$
|
|
11794
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11794
11795
|
var d,
|
|
11795
11796
|
c = arguments.length,
|
|
11796
11797
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11797
11798
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11798
11799
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11799
11800
|
},
|
|
11800
|
-
__metadata$
|
|
11801
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
11801
11802
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11802
11803
|
},
|
|
11803
|
-
__param$
|
|
11804
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
11804
11805
|
return function (target, key) {
|
|
11805
11806
|
decorator(target, key, paramIndex);
|
|
11806
11807
|
};
|
|
@@ -12012,7 +12013,7 @@
|
|
|
12012
12013
|
};
|
|
12013
12014
|
}
|
|
12014
12015
|
};
|
|
12015
|
-
exports.DefaultGraphicService = __decorate$
|
|
12016
|
+
exports.DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultGraphicService);
|
|
12016
12017
|
|
|
12017
12018
|
const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
|
|
12018
12019
|
const {
|
|
@@ -13249,7 +13250,7 @@
|
|
|
13249
13250
|
return isNumber$1(size) ? size : Math.min(size[0], size[1]);
|
|
13250
13251
|
}
|
|
13251
13252
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
13252
|
-
return this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
13253
|
+
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
13253
13254
|
item.path.drawWithClipRange(ctx, size, x, y, clipRange), cb && cb(item.path, item.attribute);
|
|
13254
13255
|
}), !1) : (this.path.drawWithClipRange(ctx, size, x, y, clipRange), !1);
|
|
13255
13256
|
}
|
|
@@ -13891,6 +13892,14 @@
|
|
|
13891
13892
|
}
|
|
13892
13893
|
}
|
|
13893
13894
|
|
|
13895
|
+
function getFixedLRTB(left, right, top, bottom) {
|
|
13896
|
+
return {
|
|
13897
|
+
left: Math.round(left),
|
|
13898
|
+
top: Math.round(top),
|
|
13899
|
+
right: Math.round(right),
|
|
13900
|
+
bottom: Math.round(bottom)
|
|
13901
|
+
};
|
|
13902
|
+
}
|
|
13894
13903
|
class Paragraph {
|
|
13895
13904
|
constructor(text, newLine, character) {
|
|
13896
13905
|
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
|
|
@@ -13913,7 +13922,32 @@
|
|
|
13913
13922
|
} = measureTextCanvas(this.text, this.character);
|
|
13914
13923
|
this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
|
|
13915
13924
|
}
|
|
13916
|
-
|
|
13925
|
+
drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13926
|
+
if (!this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
|
|
13927
|
+
let baseline = top + ascent,
|
|
13928
|
+
text = this.text,
|
|
13929
|
+
left = this.left + deltaLeft;
|
|
13930
|
+
baseline += this.top;
|
|
13931
|
+
let direction = this.direction;
|
|
13932
|
+
if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
|
|
13933
|
+
if ("hide" === this.ellipsis) return;
|
|
13934
|
+
if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
|
|
13935
|
+
const index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
|
|
13936
|
+
if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
|
|
13937
|
+
const {
|
|
13938
|
+
width: width
|
|
13939
|
+
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
13940
|
+
"vertical" === direction || (left -= this.ellipsisWidth - width);
|
|
13941
|
+
}
|
|
13942
|
+
}
|
|
13943
|
+
}
|
|
13944
|
+
const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
|
|
13945
|
+
return Object.assign(Object.assign({}, lrtb), {
|
|
13946
|
+
fillStyle: this.character.background,
|
|
13947
|
+
globalAlpha: this.character.backgroundOpacity
|
|
13948
|
+
});
|
|
13949
|
+
}
|
|
13950
|
+
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13917
13951
|
let baseline = top + ascent,
|
|
13918
13952
|
text = this.text,
|
|
13919
13953
|
left = this.left + deltaLeft;
|
|
@@ -13938,15 +13972,31 @@
|
|
|
13938
13972
|
case "sub":
|
|
13939
13973
|
baseline += this.descent / 2;
|
|
13940
13974
|
}
|
|
13941
|
-
|
|
13942
|
-
const fillStyle = ctx.fillStyle,
|
|
13943
|
-
globalAlpha = ctx.globalAlpha;
|
|
13944
|
-
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity), ctx.fillRect(left, top, this.widthOrigin || this.width, this.lineHeight), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
|
|
13945
|
-
}
|
|
13975
|
+
"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);
|
|
13946
13976
|
const {
|
|
13947
13977
|
lineWidth = 1
|
|
13948
13978
|
} = this.character;
|
|
13949
|
-
this.character.stroke && lineWidth && ctx.strokeText(text, left, baseline), this.character.fill && ctx.fillText(text, left, baseline), this.character.fill
|
|
13979
|
+
if (this.character.stroke && lineWidth && ctx.strokeText(text, left, baseline), this.character.fill && ctx.fillText(text, left, baseline), this.character.fill) if (this.character.lineThrough || this.character.underline) {
|
|
13980
|
+
if (this.character.underline) {
|
|
13981
|
+
const top = 1 + baseline,
|
|
13982
|
+
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, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13984
|
+
}
|
|
13985
|
+
if (this.character.lineThrough) {
|
|
13986
|
+
const top = 1 + baseline - this.ascent / 2,
|
|
13987
|
+
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, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13989
|
+
}
|
|
13990
|
+
} else if ("underline" === this.character.textDecoration) {
|
|
13991
|
+
const top = 1 + baseline,
|
|
13992
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13993
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13994
|
+
} else if ("line-through" === this.character.textDecoration) {
|
|
13995
|
+
const top = 1 + baseline - this.ascent / 2,
|
|
13996
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13997
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13998
|
+
}
|
|
13999
|
+
"vertical" === direction && ctx.restore();
|
|
13950
14000
|
}
|
|
13951
14001
|
getWidthWithEllips(direction) {
|
|
13952
14002
|
let text = this.text;
|
|
@@ -14169,7 +14219,20 @@
|
|
|
14169
14219
|
paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
|
|
14170
14220
|
}
|
|
14171
14221
|
}
|
|
14222
|
+
let fillStyle = "",
|
|
14223
|
+
globalAlpha = -1,
|
|
14224
|
+
currBgList = [];
|
|
14225
|
+
const bgList = [currBgList];
|
|
14172
14226
|
this.paragraphs.forEach((paragraph, index) => {
|
|
14227
|
+
if (paragraph instanceof RichTextIcon) return;
|
|
14228
|
+
const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14229
|
+
data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
|
|
14230
|
+
}), bgList.forEach(bg => {
|
|
14231
|
+
if (0 === bg.length) return;
|
|
14232
|
+
const data = bg[0],
|
|
14233
|
+
end = bg[bg.length - 1];
|
|
14234
|
+
ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
|
|
14235
|
+
}), this.paragraphs.forEach((paragraph, index) => {
|
|
14173
14236
|
if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
|
|
14174
14237
|
x: x + paragraph._x,
|
|
14175
14238
|
y: y + paragraph._y
|
|
@@ -14180,7 +14243,7 @@
|
|
|
14180
14243
|
x2: this.left + this.actualWidth,
|
|
14181
14244
|
y2: this.top + this.height
|
|
14182
14245
|
};
|
|
14183
|
-
applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
|
|
14246
|
+
applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14184
14247
|
});
|
|
14185
14248
|
}
|
|
14186
14249
|
getWidthWithEllips(ellipsis) {
|
|
@@ -14331,7 +14394,13 @@
|
|
|
14331
14394
|
}
|
|
14332
14395
|
return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
|
|
14333
14396
|
}
|
|
14397
|
+
static splitEmoji(text) {
|
|
14398
|
+
return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
|
|
14399
|
+
}
|
|
14334
14400
|
static splitText(text) {
|
|
14401
|
+
try {
|
|
14402
|
+
return this.splitEmoji(text);
|
|
14403
|
+
} catch (e) {}
|
|
14335
14404
|
return Array.from(text);
|
|
14336
14405
|
}
|
|
14337
14406
|
static TransformTextConfig2SingleCharacter(textConfig) {
|
|
@@ -14347,13 +14416,15 @@
|
|
|
14347
14416
|
}), tc;
|
|
14348
14417
|
}
|
|
14349
14418
|
updateAABBBounds(attribute, richtextTheme, aabbBounds) {
|
|
14419
|
+
var _a, _b;
|
|
14350
14420
|
const {
|
|
14351
14421
|
width = richtextTheme.width,
|
|
14352
14422
|
height = richtextTheme.height,
|
|
14353
14423
|
maxWidth = richtextTheme.maxWidth,
|
|
14354
14424
|
maxHeight = richtextTheme.maxHeight,
|
|
14355
14425
|
textAlign = richtextTheme.textAlign,
|
|
14356
|
-
textBaseline = richtextTheme.textBaseline
|
|
14426
|
+
textBaseline = richtextTheme.textBaseline,
|
|
14427
|
+
editOptions: editOptions
|
|
14357
14428
|
} = attribute;
|
|
14358
14429
|
if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
|
|
14359
14430
|
const frameCache = this.getFrameCache(),
|
|
@@ -14365,6 +14436,7 @@
|
|
|
14365
14436
|
contentHeight = height || actualHeight || 0;
|
|
14366
14437
|
contentHeight = "number" == typeof maxHeight && contentHeight > maxHeight ? maxHeight : contentHeight || 0, contentWidth = "number" == typeof maxWidth && contentWidth > maxWidth ? maxWidth : contentWidth || 0, aabbBounds.set(0, 0, contentWidth, contentHeight);
|
|
14367
14438
|
}
|
|
14439
|
+
editOptions && editOptions.keepHeightWhileEmpty && !aabbBounds.height() && !(null === (_a = attribute.textConfig) || void 0 === _a ? void 0 : _a.length) && (aabbBounds.y2 = aabbBounds.y1 + (null !== (_b = attribute.fontSize) && void 0 !== _b ? _b : 12), aabbBounds.x2 = aabbBounds.x1 + 2);
|
|
14368
14440
|
let deltaY = 0;
|
|
14369
14441
|
switch (textBaseline) {
|
|
14370
14442
|
case "top":
|
|
@@ -15342,17 +15414,17 @@
|
|
|
15342
15414
|
}
|
|
15343
15415
|
}
|
|
15344
15416
|
|
|
15345
|
-
var __decorate$
|
|
15417
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15346
15418
|
var d,
|
|
15347
15419
|
c = arguments.length,
|
|
15348
15420
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
15349
15421
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
15350
15422
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15351
15423
|
},
|
|
15352
|
-
__metadata$
|
|
15424
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
15353
15425
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15354
15426
|
},
|
|
15355
|
-
__param$
|
|
15427
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
15356
15428
|
return function (target, key) {
|
|
15357
15429
|
decorator(target, key, paramIndex);
|
|
15358
15430
|
};
|
|
@@ -15449,7 +15521,7 @@
|
|
|
15449
15521
|
});
|
|
15450
15522
|
}
|
|
15451
15523
|
};
|
|
15452
|
-
exports.DefaultBaseInteractiveRenderContribution = __decorate$
|
|
15524
|
+
exports.DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
|
|
15453
15525
|
|
|
15454
15526
|
function formatRatio(ratio) {
|
|
15455
15527
|
return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
|
|
@@ -15797,7 +15869,7 @@
|
|
|
15797
15869
|
return !edgeCb && path.closePath(), path;
|
|
15798
15870
|
}
|
|
15799
15871
|
|
|
15800
|
-
var __decorate$
|
|
15872
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15801
15873
|
var d,
|
|
15802
15874
|
c = arguments.length,
|
|
15803
15875
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15862,7 +15934,7 @@
|
|
|
15862
15934
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
15863
15935
|
}
|
|
15864
15936
|
};
|
|
15865
|
-
exports.SplitRectBeforeRenderContribution = __decorate$
|
|
15937
|
+
exports.SplitRectBeforeRenderContribution = __decorate$1B([injectable()], exports.SplitRectBeforeRenderContribution);
|
|
15866
15938
|
exports.SplitRectAfterRenderContribution = class SplitRectAfterRenderContribution {
|
|
15867
15939
|
constructor() {
|
|
15868
15940
|
this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -15899,7 +15971,7 @@
|
|
|
15899
15971
|
}
|
|
15900
15972
|
}
|
|
15901
15973
|
};
|
|
15902
|
-
exports.SplitRectAfterRenderContribution = __decorate$
|
|
15974
|
+
exports.SplitRectAfterRenderContribution = __decorate$1B([injectable()], exports.SplitRectAfterRenderContribution);
|
|
15903
15975
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
15904
15976
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15905
15977
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -15908,8 +15980,8 @@
|
|
|
15908
15980
|
constructor() {
|
|
15909
15981
|
super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15910
15982
|
}
|
|
15911
|
-
drawShape(
|
|
15912
|
-
return super.drawShape(
|
|
15983
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15984
|
+
return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15913
15985
|
}
|
|
15914
15986
|
}
|
|
15915
15987
|
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
@@ -16004,17 +16076,17 @@
|
|
|
16004
16076
|
}
|
|
16005
16077
|
}
|
|
16006
16078
|
|
|
16007
|
-
var __decorate$
|
|
16079
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16008
16080
|
var d,
|
|
16009
16081
|
c = arguments.length,
|
|
16010
16082
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16011
16083
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16012
16084
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16013
16085
|
},
|
|
16014
|
-
__metadata$
|
|
16086
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
16015
16087
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16016
16088
|
},
|
|
16017
|
-
__param$
|
|
16089
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16018
16090
|
return function (target, key) {
|
|
16019
16091
|
decorator(target, key, paramIndex);
|
|
16020
16092
|
};
|
|
@@ -16178,19 +16250,19 @@
|
|
|
16178
16250
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
16179
16251
|
}
|
|
16180
16252
|
};
|
|
16181
|
-
exports.DefaultCanvasArcRender = __decorate$
|
|
16253
|
+
exports.DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
|
|
16182
16254
|
|
|
16183
|
-
var __decorate$
|
|
16255
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16184
16256
|
var d,
|
|
16185
16257
|
c = arguments.length,
|
|
16186
16258
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16187
16259
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16188
16260
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16189
16261
|
},
|
|
16190
|
-
__metadata$
|
|
16262
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
16191
16263
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16192
16264
|
},
|
|
16193
|
-
__param$
|
|
16265
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16194
16266
|
return function (target, key) {
|
|
16195
16267
|
decorator(target, key, paramIndex);
|
|
16196
16268
|
};
|
|
@@ -16231,7 +16303,7 @@
|
|
|
16231
16303
|
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
16232
16304
|
}
|
|
16233
16305
|
};
|
|
16234
|
-
exports.DefaultCanvasCircleRender = __decorate$
|
|
16306
|
+
exports.DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
|
|
16235
16307
|
|
|
16236
16308
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
16237
16309
|
if (!curve.p1) return;
|
|
@@ -16355,7 +16427,7 @@
|
|
|
16355
16427
|
});
|
|
16356
16428
|
}
|
|
16357
16429
|
|
|
16358
|
-
var __decorate$
|
|
16430
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16359
16431
|
var d,
|
|
16360
16432
|
c = arguments.length,
|
|
16361
16433
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16516,7 +16588,7 @@
|
|
|
16516
16588
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
16517
16589
|
}
|
|
16518
16590
|
};
|
|
16519
|
-
exports.DefaultCanvasLineRender = __decorate$
|
|
16591
|
+
exports.DefaultCanvasLineRender = __decorate$1y([injectable()], exports.DefaultCanvasLineRender);
|
|
16520
16592
|
|
|
16521
16593
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
16522
16594
|
var _a;
|
|
@@ -16645,17 +16717,17 @@
|
|
|
16645
16717
|
const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
16646
16718
|
const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16647
16719
|
|
|
16648
|
-
var __decorate$
|
|
16720
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16649
16721
|
var d,
|
|
16650
16722
|
c = arguments.length,
|
|
16651
16723
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16652
16724
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16653
16725
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16654
16726
|
},
|
|
16655
|
-
__metadata$
|
|
16727
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
16656
16728
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16657
16729
|
},
|
|
16658
|
-
__param$
|
|
16730
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16659
16731
|
return function (target, key) {
|
|
16660
16732
|
decorator(target, key, paramIndex);
|
|
16661
16733
|
};
|
|
@@ -16898,22 +16970,22 @@
|
|
|
16898
16970
|
})(), !1;
|
|
16899
16971
|
}
|
|
16900
16972
|
};
|
|
16901
|
-
exports.DefaultCanvasAreaRender = __decorate$
|
|
16973
|
+
exports.DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
|
|
16902
16974
|
|
|
16903
16975
|
const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
16904
16976
|
const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16905
16977
|
|
|
16906
|
-
var __decorate$
|
|
16978
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16907
16979
|
var d,
|
|
16908
16980
|
c = arguments.length,
|
|
16909
16981
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16910
16982
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16911
16983
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16912
16984
|
},
|
|
16913
|
-
__metadata$
|
|
16985
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
16914
16986
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16915
16987
|
},
|
|
16916
|
-
__param$
|
|
16988
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16917
16989
|
return function (target, key) {
|
|
16918
16990
|
decorator(target, key, paramIndex);
|
|
16919
16991
|
};
|
|
@@ -16957,19 +17029,19 @@
|
|
|
16957
17029
|
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
16958
17030
|
}
|
|
16959
17031
|
};
|
|
16960
|
-
exports.DefaultCanvasPathRender = __decorate$
|
|
17032
|
+
exports.DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
|
|
16961
17033
|
|
|
16962
|
-
var __decorate$
|
|
17034
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16963
17035
|
var d,
|
|
16964
17036
|
c = arguments.length,
|
|
16965
17037
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16966
17038
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16967
17039
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16968
17040
|
},
|
|
16969
|
-
__metadata$
|
|
17041
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
16970
17042
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16971
17043
|
},
|
|
16972
|
-
__param$
|
|
17044
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16973
17045
|
return function (target, key) {
|
|
16974
17046
|
decorator(target, key, paramIndex);
|
|
16975
17047
|
};
|
|
@@ -17029,19 +17101,19 @@
|
|
|
17029
17101
|
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17030
17102
|
}
|
|
17031
17103
|
};
|
|
17032
|
-
exports.DefaultCanvasRectRender = __decorate$
|
|
17104
|
+
exports.DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
|
|
17033
17105
|
|
|
17034
|
-
var __decorate$
|
|
17106
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17035
17107
|
var d,
|
|
17036
17108
|
c = arguments.length,
|
|
17037
17109
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17038
17110
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17039
17111
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17040
17112
|
},
|
|
17041
|
-
__metadata$
|
|
17113
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
17042
17114
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17043
17115
|
},
|
|
17044
|
-
__param$
|
|
17116
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17045
17117
|
return function (target, key) {
|
|
17046
17118
|
decorator(target, key, paramIndex);
|
|
17047
17119
|
};
|
|
@@ -17112,7 +17184,7 @@
|
|
|
17112
17184
|
this._draw(symbol, symbolAttribute, !1, drawContext, params);
|
|
17113
17185
|
}
|
|
17114
17186
|
};
|
|
17115
|
-
exports.DefaultCanvasSymbolRender = __decorate$
|
|
17187
|
+
exports.DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
|
|
17116
17188
|
|
|
17117
17189
|
class DefaultBoundsAllocate {
|
|
17118
17190
|
constructor() {
|
|
@@ -17201,17 +17273,17 @@
|
|
|
17201
17273
|
}
|
|
17202
17274
|
const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
17203
17275
|
|
|
17204
|
-
var __decorate$
|
|
17276
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17205
17277
|
var d,
|
|
17206
17278
|
c = arguments.length,
|
|
17207
17279
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17208
17280
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17209
17281
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17210
17282
|
},
|
|
17211
|
-
__metadata$
|
|
17283
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
17212
17284
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17213
17285
|
},
|
|
17214
|
-
__param$
|
|
17286
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17215
17287
|
return function (target, key) {
|
|
17216
17288
|
decorator(target, key, paramIndex);
|
|
17217
17289
|
};
|
|
@@ -17350,9 +17422,9 @@
|
|
|
17350
17422
|
}
|
|
17351
17423
|
}
|
|
17352
17424
|
};
|
|
17353
|
-
exports.DefaultCanvasTextRender = __decorate$
|
|
17425
|
+
exports.DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
|
|
17354
17426
|
|
|
17355
|
-
var __decorate$
|
|
17427
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17356
17428
|
var d,
|
|
17357
17429
|
c = arguments.length,
|
|
17358
17430
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17360,7 +17432,7 @@
|
|
|
17360
17432
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17361
17433
|
};
|
|
17362
17434
|
exports.AbstractGraphicRender = class AbstractGraphicRender {};
|
|
17363
|
-
exports.AbstractGraphicRender = __decorate$
|
|
17435
|
+
exports.AbstractGraphicRender = __decorate$1s([injectable()], exports.AbstractGraphicRender);
|
|
17364
17436
|
|
|
17365
17437
|
function drawPolygon(path, points, x, y) {
|
|
17366
17438
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -17416,17 +17488,17 @@
|
|
|
17416
17488
|
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
17417
17489
|
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
17418
17490
|
|
|
17419
|
-
var __decorate$
|
|
17491
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17420
17492
|
var d,
|
|
17421
17493
|
c = arguments.length,
|
|
17422
17494
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17423
17495
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17424
17496
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17425
17497
|
},
|
|
17426
|
-
__metadata$
|
|
17498
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
17427
17499
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17428
17500
|
},
|
|
17429
|
-
__param$
|
|
17501
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17430
17502
|
return function (target, key) {
|
|
17431
17503
|
decorator(target, key, paramIndex);
|
|
17432
17504
|
};
|
|
@@ -17467,19 +17539,19 @@
|
|
|
17467
17539
|
this._draw(polygon, polygonAttribute, !1, drawContext, params);
|
|
17468
17540
|
}
|
|
17469
17541
|
};
|
|
17470
|
-
exports.DefaultCanvasPolygonRender = __decorate$
|
|
17542
|
+
exports.DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
|
|
17471
17543
|
|
|
17472
|
-
var __decorate$
|
|
17544
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17473
17545
|
var d,
|
|
17474
17546
|
c = arguments.length,
|
|
17475
17547
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17476
17548
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17477
17549
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17478
17550
|
},
|
|
17479
|
-
__metadata$
|
|
17551
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
17480
17552
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17481
17553
|
},
|
|
17482
|
-
__param$
|
|
17554
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17483
17555
|
return function (target, key) {
|
|
17484
17556
|
decorator(target, key, paramIndex);
|
|
17485
17557
|
};
|
|
@@ -17574,19 +17646,19 @@
|
|
|
17574
17646
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
17575
17647
|
}
|
|
17576
17648
|
};
|
|
17577
|
-
exports.DefaultCanvasGroupRender = __decorate$
|
|
17649
|
+
exports.DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
|
|
17578
17650
|
|
|
17579
|
-
var __decorate$
|
|
17651
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17580
17652
|
var d,
|
|
17581
17653
|
c = arguments.length,
|
|
17582
17654
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17583
17655
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17584
17656
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17585
17657
|
},
|
|
17586
|
-
__metadata$
|
|
17658
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
17587
17659
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17588
17660
|
},
|
|
17589
|
-
__param$
|
|
17661
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17590
17662
|
return function (target, key) {
|
|
17591
17663
|
decorator(target, key, paramIndex);
|
|
17592
17664
|
};
|
|
@@ -17654,7 +17726,7 @@
|
|
|
17654
17726
|
this._draw(image, imageAttribute, !1, drawContext);
|
|
17655
17727
|
}
|
|
17656
17728
|
};
|
|
17657
|
-
exports.DefaultCanvasImageRender = __decorate$
|
|
17729
|
+
exports.DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
|
|
17658
17730
|
|
|
17659
17731
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
17660
17732
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -17722,14 +17794,14 @@
|
|
|
17722
17794
|
return result;
|
|
17723
17795
|
};
|
|
17724
17796
|
|
|
17725
|
-
var __decorate$
|
|
17797
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17726
17798
|
var d,
|
|
17727
17799
|
c = arguments.length,
|
|
17728
17800
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17729
17801
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17730
17802
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17731
17803
|
},
|
|
17732
|
-
__metadata$
|
|
17804
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
17733
17805
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17734
17806
|
};
|
|
17735
17807
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
@@ -17789,7 +17861,7 @@
|
|
|
17789
17861
|
return !1;
|
|
17790
17862
|
}
|
|
17791
17863
|
};
|
|
17792
|
-
exports.CommonDrawItemInterceptorContribution = __decorate$
|
|
17864
|
+
exports.CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
|
|
17793
17865
|
class InteractiveDrawItemInterceptorContribution {
|
|
17794
17866
|
constructor() {
|
|
17795
17867
|
this.order = 1;
|
|
@@ -17880,17 +17952,17 @@
|
|
|
17880
17952
|
}
|
|
17881
17953
|
}
|
|
17882
17954
|
|
|
17883
|
-
var __decorate$
|
|
17955
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17884
17956
|
var d,
|
|
17885
17957
|
c = arguments.length,
|
|
17886
17958
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17887
17959
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17888
17960
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17889
17961
|
},
|
|
17890
|
-
__metadata$
|
|
17962
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
17891
17963
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17892
17964
|
},
|
|
17893
|
-
__param$
|
|
17965
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17894
17966
|
return function (target, key) {
|
|
17895
17967
|
decorator(target, key, paramIndex);
|
|
17896
17968
|
};
|
|
@@ -17928,7 +18000,7 @@
|
|
|
17928
18000
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
|
|
17929
18001
|
}
|
|
17930
18002
|
};
|
|
17931
|
-
exports.DefaultRenderService = __decorate$
|
|
18003
|
+
exports.DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
|
|
17932
18004
|
|
|
17933
18005
|
var renderModule$1 = new ContainerModule(bind => {
|
|
17934
18006
|
bind(RenderService).to(exports.DefaultRenderService);
|
|
@@ -17941,7 +18013,7 @@
|
|
|
17941
18013
|
const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
17942
18014
|
const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
|
|
17943
18015
|
|
|
17944
|
-
var __decorate$
|
|
18016
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17945
18017
|
var d,
|
|
17946
18018
|
c = arguments.length,
|
|
17947
18019
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17963,7 +18035,7 @@
|
|
|
17963
18035
|
return result;
|
|
17964
18036
|
}
|
|
17965
18037
|
};
|
|
17966
|
-
exports.ShadowPickServiceInterceptorContribution = __decorate$
|
|
18038
|
+
exports.ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], exports.ShadowPickServiceInterceptorContribution);
|
|
17967
18039
|
exports.ShadowRootPickItemInterceptorContribution = class ShadowRootPickItemInterceptorContribution {
|
|
17968
18040
|
constructor() {
|
|
17969
18041
|
this.order = 1;
|
|
@@ -17994,7 +18066,7 @@
|
|
|
17994
18066
|
return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
|
|
17995
18067
|
}
|
|
17996
18068
|
};
|
|
17997
|
-
exports.ShadowRootPickItemInterceptorContribution = __decorate$
|
|
18069
|
+
exports.ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], exports.ShadowRootPickItemInterceptorContribution);
|
|
17998
18070
|
exports.InteractivePickItemInterceptorContribution = class InteractivePickItemInterceptorContribution {
|
|
17999
18071
|
constructor() {
|
|
18000
18072
|
this.order = 1;
|
|
@@ -18013,7 +18085,7 @@
|
|
|
18013
18085
|
return null;
|
|
18014
18086
|
}
|
|
18015
18087
|
};
|
|
18016
|
-
exports.InteractivePickItemInterceptorContribution = __decorate$
|
|
18088
|
+
exports.InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], exports.InteractivePickItemInterceptorContribution);
|
|
18017
18089
|
exports.Canvas3DPickItemInterceptor = class Canvas3DPickItemInterceptor {
|
|
18018
18090
|
constructor() {
|
|
18019
18091
|
this.order = 1;
|
|
@@ -18033,7 +18105,7 @@
|
|
|
18033
18105
|
context.setTransformForCurrent();
|
|
18034
18106
|
}
|
|
18035
18107
|
};
|
|
18036
|
-
exports.Canvas3DPickItemInterceptor = __decorate$
|
|
18108
|
+
exports.Canvas3DPickItemInterceptor = __decorate$1m([injectable()], exports.Canvas3DPickItemInterceptor);
|
|
18037
18109
|
|
|
18038
18110
|
var pickModule = new ContainerModule((bind, unbind, isBound) => {
|
|
18039
18111
|
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);
|
|
@@ -18046,17 +18118,17 @@
|
|
|
18046
18118
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
18047
18119
|
const PluginService = Symbol.for("PluginService");
|
|
18048
18120
|
|
|
18049
|
-
var __decorate$
|
|
18121
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18050
18122
|
var d,
|
|
18051
18123
|
c = arguments.length,
|
|
18052
18124
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18053
18125
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18054
18126
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18055
18127
|
},
|
|
18056
|
-
__metadata$
|
|
18128
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
18057
18129
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18058
18130
|
},
|
|
18059
|
-
__param$
|
|
18131
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18060
18132
|
return function (target, key) {
|
|
18061
18133
|
decorator(target, key, paramIndex);
|
|
18062
18134
|
};
|
|
@@ -18096,7 +18168,7 @@
|
|
|
18096
18168
|
}), this.onRegisterPlugin = [];
|
|
18097
18169
|
}
|
|
18098
18170
|
};
|
|
18099
|
-
DefaultPluginService = __decorate$
|
|
18171
|
+
DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
|
|
18100
18172
|
|
|
18101
18173
|
var pluginModule = new ContainerModule(bind => {
|
|
18102
18174
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -18110,14 +18182,14 @@
|
|
|
18110
18182
|
bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
18111
18183
|
});
|
|
18112
18184
|
|
|
18113
|
-
var __decorate$
|
|
18185
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18114
18186
|
var d,
|
|
18115
18187
|
c = arguments.length,
|
|
18116
18188
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18117
18189
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18118
18190
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18119
18191
|
},
|
|
18120
|
-
__metadata
|
|
18192
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
18121
18193
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18122
18194
|
};
|
|
18123
18195
|
let CanvasLayerHandlerContribution = class {
|
|
@@ -18187,7 +18259,7 @@
|
|
|
18187
18259
|
this.canvas.release();
|
|
18188
18260
|
}
|
|
18189
18261
|
};
|
|
18190
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
18262
|
+
CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
18191
18263
|
|
|
18192
18264
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
18193
18265
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -18306,17 +18378,17 @@
|
|
|
18306
18378
|
return result;
|
|
18307
18379
|
}
|
|
18308
18380
|
|
|
18309
|
-
var __decorate$
|
|
18381
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18310
18382
|
var d,
|
|
18311
18383
|
c = arguments.length,
|
|
18312
18384
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18313
18385
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18314
18386
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18315
18387
|
},
|
|
18316
|
-
__metadata
|
|
18388
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
18317
18389
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18318
18390
|
},
|
|
18319
|
-
__param$
|
|
18391
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18320
18392
|
return function (target, key) {
|
|
18321
18393
|
decorator(target, key, paramIndex);
|
|
18322
18394
|
};
|
|
@@ -18374,7 +18446,7 @@
|
|
|
18374
18446
|
renderGroup(group, drawContext, parentMatrix, skipSort) {
|
|
18375
18447
|
if (drawContext.break || !1 === group.attribute.visibleAll) return;
|
|
18376
18448
|
if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext.break = !0, void this._increaseRender(group, drawContext);
|
|
18377
|
-
if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
|
|
18449
|
+
if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1) && "empty" !== group.attribute.boundsMode) return;
|
|
18378
18450
|
let tempBounds,
|
|
18379
18451
|
nextM = parentMatrix;
|
|
18380
18452
|
if (this.useDirtyBounds) {
|
|
@@ -18455,7 +18527,7 @@
|
|
|
18455
18527
|
} = graphic.parent.attribute;
|
|
18456
18528
|
(scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
|
|
18457
18529
|
}
|
|
18458
|
-
if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
|
|
18530
|
+
if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && "empty" !== graphic.attribute.boundsMode && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
|
|
18459
18531
|
if (retrans && graphic.parent) {
|
|
18460
18532
|
const {
|
|
18461
18533
|
scrollX = 0,
|
|
@@ -18515,9 +18587,9 @@
|
|
|
18515
18587
|
}
|
|
18516
18588
|
afterDraw(renderService, drawParams) {}
|
|
18517
18589
|
};
|
|
18518
|
-
DefaultDrawContribution = __decorate$
|
|
18590
|
+
DefaultDrawContribution = __decorate$1j([injectable(), __param$E(0, multiInject(GraphicRender)), __param$E(1, inject(ContributionProvider)), __param$E(1, named(DrawItemInterceptor)), __metadata$_("design:paramtypes", [Array, Object])], DefaultDrawContribution);
|
|
18519
18591
|
|
|
18520
|
-
var __decorate$
|
|
18592
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18521
18593
|
var d,
|
|
18522
18594
|
c = arguments.length,
|
|
18523
18595
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18568,9 +18640,9 @@
|
|
|
18568
18640
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
18569
18641
|
}
|
|
18570
18642
|
};
|
|
18571
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
18643
|
+
DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
|
|
18572
18644
|
|
|
18573
|
-
var __decorate$
|
|
18645
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18574
18646
|
var d,
|
|
18575
18647
|
c = arguments.length,
|
|
18576
18648
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18613,20 +18685,20 @@
|
|
|
18613
18685
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
18614
18686
|
}
|
|
18615
18687
|
};
|
|
18616
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
18688
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
18617
18689
|
|
|
18618
18690
|
var STATUS,
|
|
18619
|
-
__decorate$
|
|
18691
|
+
__decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18620
18692
|
var d,
|
|
18621
18693
|
c = arguments.length,
|
|
18622
18694
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18623
18695
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18624
18696
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18625
18697
|
},
|
|
18626
|
-
__metadata$
|
|
18698
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
18627
18699
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18628
18700
|
},
|
|
18629
|
-
__param$
|
|
18701
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18630
18702
|
return function (target, key) {
|
|
18631
18703
|
decorator(target, key, paramIndex);
|
|
18632
18704
|
};
|
|
@@ -18756,7 +18828,7 @@
|
|
|
18756
18828
|
});
|
|
18757
18829
|
}
|
|
18758
18830
|
};
|
|
18759
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
18831
|
+
DefaultIncrementalDrawContribution = __decorate$1g([injectable(), __param$D(0, multiInject(GraphicRender)), __param$D(1, inject(DefaultIncrementalCanvasLineRender)), __param$D(2, inject(DefaultIncrementalCanvasAreaRender)), __param$D(3, inject(ContributionProvider)), __param$D(3, named(DrawItemInterceptor)), __metadata$Z("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
|
|
18760
18832
|
|
|
18761
18833
|
var renderModule = new ContainerModule(bind => {
|
|
18762
18834
|
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);
|
|
@@ -19452,14 +19524,14 @@
|
|
|
19452
19524
|
return new Stage(params);
|
|
19453
19525
|
}
|
|
19454
19526
|
|
|
19455
|
-
var __decorate$
|
|
19527
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19456
19528
|
var d,
|
|
19457
19529
|
c = arguments.length,
|
|
19458
19530
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19459
19531
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19460
19532
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19461
19533
|
},
|
|
19462
|
-
__metadata$
|
|
19534
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
19463
19535
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19464
19536
|
};
|
|
19465
19537
|
const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -19669,7 +19741,7 @@
|
|
|
19669
19741
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
19670
19742
|
}
|
|
19671
19743
|
};
|
|
19672
|
-
exports.EmptyContext2d = __decorate$
|
|
19744
|
+
exports.EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
|
|
19673
19745
|
|
|
19674
19746
|
const DefaultConfig = {
|
|
19675
19747
|
WIDTH: 500,
|
|
@@ -19768,7 +19840,7 @@
|
|
|
19768
19840
|
}
|
|
19769
19841
|
BaseCanvas.env = "browser";
|
|
19770
19842
|
|
|
19771
|
-
var __decorate$
|
|
19843
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19772
19844
|
var d,
|
|
19773
19845
|
c = arguments.length,
|
|
19774
19846
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19882,16 +19954,16 @@
|
|
|
19882
19954
|
return Promise.resolve(null);
|
|
19883
19955
|
}
|
|
19884
19956
|
};
|
|
19885
|
-
exports.BaseEnvContribution = __decorate$
|
|
19957
|
+
exports.BaseEnvContribution = __decorate$1e([injectable()], exports.BaseEnvContribution);
|
|
19886
19958
|
|
|
19887
|
-
var __decorate$
|
|
19959
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19888
19960
|
var d,
|
|
19889
19961
|
c = arguments.length,
|
|
19890
19962
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19891
19963
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19892
19964
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19893
19965
|
},
|
|
19894
|
-
__metadata$
|
|
19966
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
19895
19967
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19896
19968
|
};
|
|
19897
19969
|
exports.BaseWindowHandlerContribution = class BaseWindowHandlerContribution {
|
|
@@ -19930,7 +20002,7 @@
|
|
|
19930
20002
|
return this.modelMatrix;
|
|
19931
20003
|
}
|
|
19932
20004
|
};
|
|
19933
|
-
exports.BaseWindowHandlerContribution = __decorate$
|
|
20005
|
+
exports.BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
|
|
19934
20006
|
|
|
19935
20007
|
class DirectionalLight {
|
|
19936
20008
|
constructor(dir, color) {
|
|
@@ -20021,17 +20093,17 @@
|
|
|
20021
20093
|
Factory.registerPlugin("OrthoCamera", OrthoCamera);
|
|
20022
20094
|
};
|
|
20023
20095
|
|
|
20024
|
-
var __decorate$
|
|
20096
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20025
20097
|
var d,
|
|
20026
20098
|
c = arguments.length,
|
|
20027
20099
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20028
20100
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20029
20101
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20030
20102
|
},
|
|
20031
|
-
__metadata$
|
|
20103
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
20032
20104
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20033
20105
|
},
|
|
20034
|
-
__param$
|
|
20106
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20035
20107
|
return function (target, key) {
|
|
20036
20108
|
decorator(target, key, paramIndex);
|
|
20037
20109
|
};
|
|
@@ -20136,16 +20208,16 @@
|
|
|
20136
20208
|
return picker || null;
|
|
20137
20209
|
}
|
|
20138
20210
|
};
|
|
20139
|
-
exports.DefaultPickService = __decorate$
|
|
20211
|
+
exports.DefaultPickService = __decorate$1c([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(PickItemInterceptor)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickServiceInterceptor)), __metadata$W("design:paramtypes", [Object, Object])], exports.DefaultPickService);
|
|
20140
20212
|
|
|
20141
|
-
var __decorate$
|
|
20213
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20142
20214
|
var d,
|
|
20143
20215
|
c = arguments.length,
|
|
20144
20216
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20145
20217
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20146
20218
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20147
20219
|
},
|
|
20148
|
-
__metadata$
|
|
20220
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
20149
20221
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20150
20222
|
};
|
|
20151
20223
|
exports.DefaultGlobalPickerService = class DefaultGlobalPickerService {
|
|
@@ -20210,7 +20282,7 @@
|
|
|
20210
20282
|
} : null;
|
|
20211
20283
|
}
|
|
20212
20284
|
};
|
|
20213
|
-
exports.DefaultGlobalPickerService = __decorate$
|
|
20285
|
+
exports.DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], exports.DefaultGlobalPickerService);
|
|
20214
20286
|
|
|
20215
20287
|
function simplifyRadialDist(points, sqTolerance) {
|
|
20216
20288
|
let deltaX,
|
|
@@ -20235,6 +20307,24 @@
|
|
|
20235
20307
|
}
|
|
20236
20308
|
return t;
|
|
20237
20309
|
};
|
|
20310
|
+
function getDefaultCharacterConfig(attribute) {
|
|
20311
|
+
const {
|
|
20312
|
+
fill = "black",
|
|
20313
|
+
stroke = !1,
|
|
20314
|
+
fontWeight = "normal",
|
|
20315
|
+
fontFamily = "Arial"
|
|
20316
|
+
} = attribute;
|
|
20317
|
+
let {
|
|
20318
|
+
fontSize = 12
|
|
20319
|
+
} = attribute;
|
|
20320
|
+
return isFinite(fontSize) || (fontSize = 12), {
|
|
20321
|
+
fill: fill,
|
|
20322
|
+
stroke: stroke,
|
|
20323
|
+
fontSize: fontSize,
|
|
20324
|
+
fontWeight: fontWeight,
|
|
20325
|
+
fontFamily: fontFamily
|
|
20326
|
+
};
|
|
20327
|
+
}
|
|
20238
20328
|
function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
|
|
20239
20329
|
if (cursorIndex < 0) return 0;
|
|
20240
20330
|
const intCursorIndex = Math.round(cursorIndex);
|
|
@@ -20273,9 +20363,7 @@
|
|
|
20273
20363
|
} = this.currRt.attribute;
|
|
20274
20364
|
if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
|
|
20275
20365
|
const config = textConfig[0];
|
|
20276
|
-
textConfig.unshift(Object.assign(Object.assign({
|
|
20277
|
-
fill: "black"
|
|
20278
|
-
}, config), {
|
|
20366
|
+
textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
|
|
20279
20367
|
text: ""
|
|
20280
20368
|
}));
|
|
20281
20369
|
} else {
|
|
@@ -20292,26 +20380,20 @@
|
|
|
20292
20380
|
cb(text, this.isComposing, this.cursorIndex, this.currRt);
|
|
20293
20381
|
});
|
|
20294
20382
|
}, this.handleInput = ev => {
|
|
20295
|
-
var _a, _b, _c, _d;
|
|
20296
20383
|
if (!this.currRt) return;
|
|
20297
20384
|
if ("historyUndo" === ev.inputType) return;
|
|
20298
|
-
const
|
|
20385
|
+
const _a = this.currRt.attribute,
|
|
20299
20386
|
{
|
|
20300
20387
|
textConfig = []
|
|
20301
|
-
} =
|
|
20302
|
-
rest = __rest$1(
|
|
20388
|
+
} = _a,
|
|
20389
|
+
rest = __rest$1(_a, ["textConfig"]);
|
|
20303
20390
|
if ("Backspace" === ev.type && !textConfig.length) return;
|
|
20304
20391
|
let str = ev.data;
|
|
20305
20392
|
this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
|
|
20306
20393
|
const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
|
|
20307
20394
|
endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
|
|
20308
20395
|
let lastConfig = textConfig[this.isComposing ? this.composingConfigIdx : Math.max(startIdx - 1, 0)];
|
|
20309
|
-
lastConfig || (lastConfig =
|
|
20310
|
-
fill: null !== (_a = rest.fill) && void 0 !== _a ? _a : "black",
|
|
20311
|
-
stroke: null !== (_b = rest.stroke) && void 0 !== _b && _b,
|
|
20312
|
-
fontSize: null !== (_c = rest.fontSize) && void 0 !== _c ? _c : 12,
|
|
20313
|
-
fontWeight: null !== (_d = rest.fontWeight) && void 0 !== _d ? _d : "normal"
|
|
20314
|
-
});
|
|
20396
|
+
lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
|
|
20315
20397
|
let nextConfig = lastConfig;
|
|
20316
20398
|
startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
|
|
20317
20399
|
let nextConfigIdx = startIdx;
|
|
@@ -20359,9 +20441,9 @@
|
|
|
20359
20441
|
textConfig.splice(configIdx, 1);
|
|
20360
20442
|
const text = lastConfig.text,
|
|
20361
20443
|
textList = text ? Array.from(text.toString()) : [];
|
|
20362
|
-
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
|
|
20444
|
+
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
|
|
20363
20445
|
fill: "black"
|
|
20364
|
-
}, lastConfig), {
|
|
20446
|
+
}), lastConfig), {
|
|
20365
20447
|
isComposing: !1,
|
|
20366
20448
|
text: textList[i]
|
|
20367
20449
|
}));
|
|
@@ -20407,25 +20489,27 @@
|
|
|
20407
20489
|
if (!this.rt) return null;
|
|
20408
20490
|
let idx = Math.round(cursorIdx);
|
|
20409
20491
|
const config = this.rt.attribute.textConfig;
|
|
20492
|
+
if (!config.length) return null;
|
|
20410
20493
|
for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
|
|
20411
20494
|
return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
|
|
20412
20495
|
}
|
|
20413
20496
|
getFormat(key) {
|
|
20414
20497
|
return this.getAllFormat(key)[0];
|
|
20415
20498
|
}
|
|
20416
|
-
getAllFormat(key) {
|
|
20499
|
+
getAllFormat(key, includeUndefined) {
|
|
20417
20500
|
const valSet = new Set(),
|
|
20418
20501
|
minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx),
|
|
20419
20502
|
maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);
|
|
20420
20503
|
if (minCursorIdx === maxCursorIdx) return [this._getFormat(key, minCursorIdx)];
|
|
20421
20504
|
for (let i = Math.ceil(minCursorIdx); i <= Math.floor(maxCursorIdx); i++) {
|
|
20422
20505
|
const val = this._getFormat(key, i);
|
|
20423
|
-
val && valSet.add(val);
|
|
20506
|
+
(includeUndefined || void 0 !== val) && valSet.add(val);
|
|
20424
20507
|
}
|
|
20425
20508
|
return Array.from(valSet.values());
|
|
20426
20509
|
}
|
|
20427
20510
|
}
|
|
20428
20511
|
const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
|
|
20512
|
+
const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
|
|
20429
20513
|
const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
|
|
20430
20514
|
class RichTextEditPlugin {
|
|
20431
20515
|
static tryUpdateRichtext(richtext) {
|
|
@@ -20445,45 +20529,57 @@
|
|
|
20445
20529
|
return new Selection(0, textConfig.length - 1, rt);
|
|
20446
20530
|
}
|
|
20447
20531
|
constructor() {
|
|
20448
|
-
this.name = "RichTextEditPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.editing = !1, this.pointerDown = !1, this.
|
|
20532
|
+
this.name = "RichTextEditPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.editing = !1, this.focusing = !1, this.pointerDown = !1, this.formatTextCommandCb = (payload, p) => {
|
|
20533
|
+
const rt = p.currRt;
|
|
20534
|
+
if (!rt) return;
|
|
20535
|
+
const selectionData = p.getSelection();
|
|
20536
|
+
if (!selectionData) return;
|
|
20537
|
+
const {
|
|
20538
|
+
selectionStartCursorIdx: selectionStartCursorIdx,
|
|
20539
|
+
curCursorIdx: curCursorIdx
|
|
20540
|
+
} = selectionData,
|
|
20541
|
+
minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
|
|
20542
|
+
maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
|
|
20543
|
+
minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
|
|
20544
|
+
maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
|
|
20545
|
+
config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
|
|
20546
|
+
this._formatTextCommand(payload, config, rt);
|
|
20547
|
+
}, this.formatAllTextCommandCb = (payload, p) => {
|
|
20548
|
+
const rt = p.currRt;
|
|
20549
|
+
if (!rt) return;
|
|
20550
|
+
const config = rt.attribute.textConfig;
|
|
20551
|
+
this._formatTextCommand(payload, config, rt);
|
|
20552
|
+
}, this.handleKeyDown = e => {
|
|
20449
20553
|
this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
|
|
20450
20554
|
}, this.handleInput = (text, isComposing, cursorIdx, rt) => {
|
|
20451
|
-
this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
|
|
20555
|
+
this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
|
|
20452
20556
|
}, this.handleChange = (text, isComposing, cursorIdx, rt) => {
|
|
20453
|
-
|
|
20557
|
+
if (!this.currRt) return;
|
|
20558
|
+
this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
|
|
20454
20559
|
const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
|
|
20455
20560
|
this.setCursorAndTextArea(p.x, p.y1, p.y2, rt), this.hideSelection(), this.updateCbs.forEach(cb => cb("change", this));
|
|
20456
|
-
}, this.handleFocusIn = () => {
|
|
20457
|
-
|
|
20561
|
+
}, this.handleFocusIn = () => {
|
|
20562
|
+
throw new Error("不会走到这里 handleFocusIn");
|
|
20563
|
+
}, this.handleFocusOut = () => {
|
|
20564
|
+
throw new Error("不会走到这里 handleFocusOut");
|
|
20458
20565
|
}, this.handleMove = e => {
|
|
20459
|
-
this.
|
|
20460
|
-
}, this.handleEnter =
|
|
20566
|
+
this.currRt && !this.currRt.attribute.editable && this.deFocus(!0), this.isEditableRichtext(e) ? (this.handleEnter(), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1)) : this.handleLeave();
|
|
20567
|
+
}, this.handleEnter = () => {
|
|
20461
20568
|
this.editing = !0, this.pluginService.stage.setCursor("text");
|
|
20462
|
-
}, this.handleLeave =
|
|
20569
|
+
}, this.handleLeave = () => {
|
|
20463
20570
|
this.editing = !1, this.pluginService.stage.setCursor("default");
|
|
20464
20571
|
}, this.handlePointerDown = e => {
|
|
20465
|
-
this.editing ? this.onFocus(e) : this.deFocus(), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20572
|
+
this.editing && this.isEditableRichtext(e) ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20466
20573
|
}, this.handlePointerUp = e => {
|
|
20467
20574
|
this.pointerDown = !1;
|
|
20468
20575
|
}, this.handleDBLClick = e => {
|
|
20469
20576
|
this.editing && this.tryShowSelection(e, !0);
|
|
20470
|
-
}, this.commandCbs = new Map(), this.commandCbs.set(FORMAT_TEXT_COMMAND, [this.formatTextCommandCb]), this.updateCbs = [], this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker([this.timeline]), this.deltaX = 0, this.deltaY = 0;
|
|
20577
|
+
}, this.commandCbs = new Map(), this.commandCbs.set(FORMAT_TEXT_COMMAND, [this.formatTextCommandCb]), this.commandCbs.set(FORMAT_ALL_TEXT_COMMAND, [this.formatAllTextCommandCb]), this.updateCbs = [], this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker([this.timeline]), this.deltaX = 0, this.deltaY = 0;
|
|
20471
20578
|
}
|
|
20472
|
-
|
|
20473
|
-
const rt = p.currRt;
|
|
20474
|
-
if (!rt) return;
|
|
20475
|
-
const selectionData = p.getSelection();
|
|
20476
|
-
if (!selectionData) return;
|
|
20477
|
-
const {
|
|
20478
|
-
selectionStartCursorIdx: selectionStartCursorIdx,
|
|
20479
|
-
curCursorIdx: curCursorIdx
|
|
20480
|
-
} = selectionData,
|
|
20481
|
-
minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
|
|
20482
|
-
maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
|
|
20483
|
-
minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
|
|
20484
|
-
maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
|
|
20485
|
-
config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
|
|
20579
|
+
_formatTextCommand(payload, config, rt) {
|
|
20486
20580
|
"bold" === payload ? config.forEach(item => item.fontWeight = "bold") : "italic" === payload ? config.forEach(item => item.fontStyle = "italic") : "underline" === payload ? config.forEach(item => item.underline = !0) : "lineThrough" === payload ? config.forEach(item => item.lineThrough = !0) : isObject$1(payload) && config.forEach(item => merge(item, payload)), rt.setAttributes(rt.attribute);
|
|
20581
|
+
const cache = rt.getFrameCache();
|
|
20582
|
+
cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
|
|
20487
20583
|
}
|
|
20488
20584
|
dispatchCommand(command, payload) {
|
|
20489
20585
|
const cbs = this.commandCbs.get(command);
|
|
@@ -20492,9 +20588,19 @@
|
|
|
20492
20588
|
registerCommand(command, cb) {
|
|
20493
20589
|
(this.commandCbs.get(command) || []).push(cb);
|
|
20494
20590
|
}
|
|
20591
|
+
removeCommand(command, cb) {
|
|
20592
|
+
const cbs = this.commandCbs.get(command) || [],
|
|
20593
|
+
idx = cbs.indexOf(cb);
|
|
20594
|
+
idx > -1 && cbs.splice(idx, 1);
|
|
20595
|
+
}
|
|
20495
20596
|
registerUpdateListener(cb) {
|
|
20496
20597
|
(this.updateCbs || []).push(cb);
|
|
20497
20598
|
}
|
|
20599
|
+
removeUpdateListener(cb) {
|
|
20600
|
+
const cbs = this.updateCbs || [],
|
|
20601
|
+
idx = cbs.indexOf(cb);
|
|
20602
|
+
idx > -1 && cbs.splice(idx, 1);
|
|
20603
|
+
}
|
|
20498
20604
|
activate(context) {
|
|
20499
20605
|
this.pluginService = context, this.editModule = new EditModule(), context.stage.on("pointermove", this.handleMove), context.stage.on("pointerdown", this.handlePointerDown), context.stage.on("pointerup", this.handlePointerUp), context.stage.on("pointerleave", this.handlePointerUp), context.stage.on("dblclick", this.handleDBLClick), application.global.addEventListener("keydown", this.handleKeyDown), this.editModule.onInput(this.handleInput), this.editModule.onChange(this.handleChange), this.editModule.onFocusOut(this.handleFocusOut);
|
|
20500
20606
|
}
|
|
@@ -20514,7 +20620,10 @@
|
|
|
20514
20620
|
lines: lines
|
|
20515
20621
|
} = cache,
|
|
20516
20622
|
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20517
|
-
startIdx > endIdx && ([startIdx, endIdx] = [endIdx, startIdx]), startIdx = Math.min(Math.max(startIdx, -.1), totalCursorCount + .1), endIdx = Math.min(Math.max(endIdx, -.1), totalCursorCount + .1), this.
|
|
20623
|
+
startIdx > endIdx && ([startIdx, endIdx] = [endIdx, startIdx]), startIdx = Math.min(Math.max(startIdx, -.1), totalCursorCount + .1), endIdx = Math.min(Math.max(endIdx, -.1), totalCursorCount + .1), this.selectionRangeByCursorIdx(startIdx, endIdx, cache);
|
|
20624
|
+
}
|
|
20625
|
+
selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
|
|
20626
|
+
this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
|
|
20518
20627
|
const {
|
|
20519
20628
|
x: x,
|
|
20520
20629
|
y1: y1,
|
|
@@ -20534,9 +20643,11 @@
|
|
|
20534
20643
|
const cache = currRt.getFrameCache();
|
|
20535
20644
|
if (!cache) return;
|
|
20536
20645
|
const {
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20646
|
+
lines: lines
|
|
20647
|
+
} = cache;
|
|
20648
|
+
if (0 === lines.length) return;
|
|
20649
|
+
if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
|
|
20650
|
+
const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20540
20651
|
return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
|
|
20541
20652
|
}
|
|
20542
20653
|
return !1;
|
|
@@ -20557,7 +20668,7 @@
|
|
|
20557
20668
|
} = cache,
|
|
20558
20669
|
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20559
20670
|
if (x) {
|
|
20560
|
-
x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1);
|
|
20671
|
+
x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1), this.selectionStartCursorIdx = this.curCursorIdx;
|
|
20561
20672
|
const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);
|
|
20562
20673
|
this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();
|
|
20563
20674
|
}
|
|
@@ -20585,61 +20696,192 @@
|
|
|
20585
20696
|
}
|
|
20586
20697
|
return !0;
|
|
20587
20698
|
}
|
|
20699
|
+
tryShowShadowPlaceholder() {
|
|
20700
|
+
if (!this.currRt) return;
|
|
20701
|
+
const shadowRoot = this.currRt.shadowRoot;
|
|
20702
|
+
if (shadowRoot) {
|
|
20703
|
+
const placeholder = shadowRoot.getElementsByType("richtext")[0];
|
|
20704
|
+
placeholder && shadowRoot.removeChild(placeholder);
|
|
20705
|
+
}
|
|
20706
|
+
const {
|
|
20707
|
+
textConfig: textConfig,
|
|
20708
|
+
editOptions: editOptions
|
|
20709
|
+
} = this.currRt.attribute;
|
|
20710
|
+
if (textConfig && textConfig.length) return;
|
|
20711
|
+
if (!editOptions || !editOptions.placeholder) return;
|
|
20712
|
+
const {
|
|
20713
|
+
placeholder: placeholder,
|
|
20714
|
+
placeholderColor = "rgba(0, 0, 0, 0.6)",
|
|
20715
|
+
placeholderFontFamily: placeholderFontFamily,
|
|
20716
|
+
placeholderFontSize: placeholderFontSize
|
|
20717
|
+
} = editOptions,
|
|
20718
|
+
shadow = this.getShadow(this.currRt),
|
|
20719
|
+
textConfigItem = Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
|
|
20720
|
+
text: placeholder
|
|
20721
|
+
});
|
|
20722
|
+
placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
|
|
20723
|
+
x: 0,
|
|
20724
|
+
y: 0,
|
|
20725
|
+
pickable: !1,
|
|
20726
|
+
editable: !1,
|
|
20727
|
+
editOptions: null,
|
|
20728
|
+
angle: 0,
|
|
20729
|
+
_debug_bounds: !1,
|
|
20730
|
+
textConfig: [textConfigItem]
|
|
20731
|
+
})), shadow.add(this.shadowPlaceHolder);
|
|
20732
|
+
}
|
|
20733
|
+
tryShowInputBounds() {
|
|
20734
|
+
if (!this.currRt || !this.focusing) return;
|
|
20735
|
+
const {
|
|
20736
|
+
editOptions = {}
|
|
20737
|
+
} = this.currRt.attribute,
|
|
20738
|
+
{
|
|
20739
|
+
boundsStrokeWhenInput: boundsStrokeWhenInput
|
|
20740
|
+
} = editOptions;
|
|
20741
|
+
if (!editOptions || !boundsStrokeWhenInput) return;
|
|
20742
|
+
const {
|
|
20743
|
+
attribute: attribute
|
|
20744
|
+
} = this.currRt;
|
|
20745
|
+
let b = this.currRt.AABBBounds,
|
|
20746
|
+
h = b.height();
|
|
20747
|
+
if (!attribute.textConfig.length && this.editLine) {
|
|
20748
|
+
const {
|
|
20749
|
+
points: points
|
|
20750
|
+
} = this.editLine.attribute;
|
|
20751
|
+
h = points[1].y - points[0].y, b = getRichTextBounds(Object.assign({}, this.shadowPlaceHolder.attribute));
|
|
20752
|
+
}
|
|
20753
|
+
this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
|
|
20754
|
+
x: 0,
|
|
20755
|
+
y: 0,
|
|
20756
|
+
width: b.width(),
|
|
20757
|
+
height: h,
|
|
20758
|
+
fill: !1,
|
|
20759
|
+
stroke: boundsStrokeWhenInput,
|
|
20760
|
+
lineWidth: 1,
|
|
20761
|
+
zIndex: -1
|
|
20762
|
+
});
|
|
20763
|
+
this.getShadow(this.currRt).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
|
|
20764
|
+
}
|
|
20765
|
+
trySyncPlaceholderToTextConfig() {
|
|
20766
|
+
if (!this.currRt) return;
|
|
20767
|
+
const {
|
|
20768
|
+
textConfig: textConfig,
|
|
20769
|
+
editOptions: editOptions
|
|
20770
|
+
} = this.currRt.attribute;
|
|
20771
|
+
if (textConfig && textConfig.length) return;
|
|
20772
|
+
if (!(editOptions && editOptions.placeholder && editOptions.syncPlaceHolderToTextConfig)) return;
|
|
20773
|
+
const {
|
|
20774
|
+
placeholder: placeholder
|
|
20775
|
+
} = editOptions;
|
|
20776
|
+
this.currRt.setAttributes({
|
|
20777
|
+
textConfig: [Object.assign({
|
|
20778
|
+
text: placeholder
|
|
20779
|
+
}, getDefaultCharacterConfig(this.currRt.attribute))]
|
|
20780
|
+
});
|
|
20781
|
+
}
|
|
20588
20782
|
deactivate(context) {
|
|
20589
20783
|
context.stage.off("pointermove", this.handleMove), context.stage.off("pointerdown", this.handlePointerDown), context.stage.off("pointerup", this.handlePointerUp), context.stage.off("pointerleave", this.handlePointerUp), context.stage.off("dblclick", this.handleDBLClick), application.global.addEventListener("keydown", this.handleKeyDown);
|
|
20590
20784
|
}
|
|
20591
|
-
onFocus(e) {
|
|
20592
|
-
this.deFocus(), this.
|
|
20785
|
+
onFocus(e, data) {
|
|
20786
|
+
this.updateCbs && this.updateCbs.forEach(cb => cb("beforeOnfocus", this)), this.deFocus(!1), this.focusing = !0;
|
|
20593
20787
|
const target = e.target;
|
|
20594
|
-
|
|
20595
|
-
|
|
20788
|
+
if (!target || "richtext" !== target.type) return;
|
|
20789
|
+
this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
|
|
20790
|
+
const shadowRoot = this.getShadow(target),
|
|
20596
20791
|
cache = target.getFrameCache();
|
|
20597
|
-
if (
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
|
|
20614
|
-
|
|
20615
|
-
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
|
|
20622
|
-
|
|
20623
|
-
|
|
20624
|
-
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
|
|
20629
|
-
|
|
20630
|
-
}
|
|
20792
|
+
if (cache) {
|
|
20793
|
+
if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
|
|
20794
|
+
shadowRootIdx: 1,
|
|
20795
|
+
pickable: !1,
|
|
20796
|
+
x: this.deltaX,
|
|
20797
|
+
y: this.deltaY
|
|
20798
|
+
}), !this.editLine) {
|
|
20799
|
+
const line = createLine({
|
|
20800
|
+
x: 0,
|
|
20801
|
+
y: 0,
|
|
20802
|
+
lineWidth: 1,
|
|
20803
|
+
stroke: "black"
|
|
20804
|
+
});
|
|
20805
|
+
this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
|
|
20806
|
+
const g = createGroup({
|
|
20807
|
+
x: 0,
|
|
20808
|
+
y: 0,
|
|
20809
|
+
width: 0,
|
|
20810
|
+
height: 0
|
|
20811
|
+
});
|
|
20812
|
+
this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
|
|
20813
|
+
}
|
|
20814
|
+
if (data = data || this.computedCursorPosByEvent(e, cache)) {
|
|
20815
|
+
const {
|
|
20816
|
+
x: x,
|
|
20817
|
+
y1: y1,
|
|
20818
|
+
y2: y2,
|
|
20819
|
+
cursorIndex: cursorIndex
|
|
20820
|
+
} = data;
|
|
20821
|
+
this.startCursorPos = {
|
|
20822
|
+
x: x,
|
|
20823
|
+
y: (y1 + y2) / 2
|
|
20824
|
+
}, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
|
|
20825
|
+
} else {
|
|
20826
|
+
const x = 0,
|
|
20827
|
+
y1 = 0,
|
|
20828
|
+
y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
|
|
20829
|
+
textConfig: [{
|
|
20830
|
+
text: "a"
|
|
20831
|
+
}]
|
|
20832
|
+
})).height();
|
|
20833
|
+
this.startCursorPos = {
|
|
20834
|
+
x: x,
|
|
20835
|
+
y: (y1 + y2) / 2
|
|
20836
|
+
}, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
|
|
20837
|
+
}
|
|
20838
|
+
this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
|
|
20631
20839
|
}
|
|
20632
20840
|
}
|
|
20841
|
+
offsetLineBgAndShadowBounds() {
|
|
20842
|
+
const rt = this.currRt,
|
|
20843
|
+
{
|
|
20844
|
+
textBaseline: textBaseline
|
|
20845
|
+
} = rt.attribute;
|
|
20846
|
+
let b,
|
|
20847
|
+
dy = 0,
|
|
20848
|
+
attr = rt.attribute;
|
|
20849
|
+
"middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
|
|
20850
|
+
textConfig: [{
|
|
20851
|
+
text: "a"
|
|
20852
|
+
}]
|
|
20853
|
+
})), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
|
|
20854
|
+
dy: dy
|
|
20855
|
+
}), this.editBg && this.editBg.setAttributes({
|
|
20856
|
+
dy: dy
|
|
20857
|
+
}), this.shadowBounds && this.shadowBounds.setAttributes({
|
|
20858
|
+
dy: dy
|
|
20859
|
+
});
|
|
20860
|
+
}
|
|
20633
20861
|
deFocus() {
|
|
20634
|
-
|
|
20635
|
-
|
|
20862
|
+
let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20863
|
+
const currRt = this.currRt;
|
|
20864
|
+
if (!currRt) return;
|
|
20865
|
+
this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
|
|
20866
|
+
trulyDeFocus: trulyDeFocus
|
|
20867
|
+
})), trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), currRt.detachShadow()), this.currRt = null, this.editLine && (this.editLine.parent && this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent && this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null), trulyDeFocus && (this.shadowBounds && (this.shadowBounds.parent && this.shadowBounds.parent.removeChild(this.shadowBounds), this.shadowBounds.release(), this.shadowBounds = null), this.shadowPlaceHolder && (this.shadowPlaceHolder.parent && this.shadowPlaceHolder.parent.removeChild(this.shadowPlaceHolder), this.shadowPlaceHolder.release(), this.shadowPlaceHolder = null)), this.focusing = !1;
|
|
20868
|
+
const textConfig = currRt.attribute.textConfig;
|
|
20869
|
+
let lastConfig = textConfig[textConfig.length - 1],
|
|
20870
|
+
cleared = !1;
|
|
20871
|
+
for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
|
|
20872
|
+
cleared && currRt.setAttributes({
|
|
20873
|
+
textConfig: textConfig
|
|
20874
|
+
}), currRt.removeEventListener("pointerleave", this.handleLeave);
|
|
20636
20875
|
}
|
|
20637
20876
|
addAnimateToLine(line) {
|
|
20638
|
-
line.
|
|
20877
|
+
line.setAttributes({
|
|
20878
|
+
opacity: 1
|
|
20879
|
+
}), line.animates && line.animates.forEach(animate => {
|
|
20639
20880
|
animate.stop(), animate.release();
|
|
20640
20881
|
});
|
|
20641
|
-
|
|
20642
|
-
|
|
20882
|
+
line.animate({
|
|
20883
|
+
timeline: this.timeline
|
|
20884
|
+
}).to({
|
|
20643
20885
|
opacity: 1
|
|
20644
20886
|
}, 10, "linear").wait(700).to({
|
|
20645
20887
|
opacity: 0
|
|
@@ -20679,67 +20921,75 @@
|
|
|
20679
20921
|
},
|
|
20680
20922
|
line0Info = this.getLineByPoint(cache, startCursorPos),
|
|
20681
20923
|
line1Info = this.getLineByPoint(cache, endCursorPos);
|
|
20682
|
-
if (
|
|
20683
|
-
|
|
20684
|
-
|
|
20685
|
-
width: endCursorPos.x - startCursorPos.x,
|
|
20686
|
-
height: line0Info.height,
|
|
20687
|
-
fill: "#336df4",
|
|
20688
|
-
fillOpacity: .2
|
|
20689
|
-
});else {
|
|
20690
|
-
this.editBg.setAttributes({
|
|
20691
|
-
x: 0,
|
|
20924
|
+
if (line0Info && line1Info) {
|
|
20925
|
+
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({
|
|
20926
|
+
x: startCursorPos.x,
|
|
20692
20927
|
y: line0Info.top,
|
|
20693
|
-
width:
|
|
20694
|
-
height:
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20719
|
-
|
|
20720
|
-
|
|
20721
|
-
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
|
|
20727
|
-
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20928
|
+
width: endCursorPos.x - startCursorPos.x,
|
|
20929
|
+
height: line0Info.height,
|
|
20930
|
+
fill: "#336df4",
|
|
20931
|
+
fillOpacity: .2
|
|
20932
|
+
});else {
|
|
20933
|
+
this.editBg.setAttributes({
|
|
20934
|
+
x: 0,
|
|
20935
|
+
y: line0Info.top,
|
|
20936
|
+
width: 0,
|
|
20937
|
+
height: 0
|
|
20938
|
+
});
|
|
20939
|
+
const startIdx = cache.lines.findIndex(item => item === line0Info),
|
|
20940
|
+
endIdx = cache.lines.findIndex(item => item === line1Info);
|
|
20941
|
+
let y = 0;
|
|
20942
|
+
for (let i = startIdx; i <= endIdx; i++) {
|
|
20943
|
+
const line = cache.lines[i];
|
|
20944
|
+
if (i === startIdx) {
|
|
20945
|
+
const p = line.paragraphs[line.paragraphs.length - 1];
|
|
20946
|
+
this.editBg.add(createRect({
|
|
20947
|
+
x: startCursorPos.x,
|
|
20948
|
+
y: y,
|
|
20949
|
+
width: p.left + p.width - startCursorPos.x,
|
|
20950
|
+
height: line.height,
|
|
20951
|
+
fill: "#336df4",
|
|
20952
|
+
fillOpacity: .2
|
|
20953
|
+
}));
|
|
20954
|
+
} else if (i === endIdx) {
|
|
20955
|
+
const p = line.paragraphs[0];
|
|
20956
|
+
this.editBg.add(createRect({
|
|
20957
|
+
x: p.left,
|
|
20958
|
+
y: y,
|
|
20959
|
+
width: endCursorPos.x - p.left,
|
|
20960
|
+
height: line.height,
|
|
20961
|
+
fill: "#336df4",
|
|
20962
|
+
fillOpacity: .2
|
|
20963
|
+
}));
|
|
20964
|
+
} else {
|
|
20965
|
+
const p0 = line.paragraphs[0],
|
|
20966
|
+
p1 = line.paragraphs[line.paragraphs.length - 1];
|
|
20967
|
+
this.editBg.add(createRect({
|
|
20968
|
+
x: p0.left,
|
|
20969
|
+
y: y,
|
|
20970
|
+
width: p1.left + p1.width - p0.left,
|
|
20971
|
+
height: line.height,
|
|
20972
|
+
fill: "#336df4",
|
|
20973
|
+
fillOpacity: .2
|
|
20974
|
+
}));
|
|
20975
|
+
}
|
|
20976
|
+
y += line.height;
|
|
20732
20977
|
}
|
|
20733
|
-
y += line.height;
|
|
20734
20978
|
}
|
|
20979
|
+
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20735
20980
|
}
|
|
20736
|
-
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1 + 2, currCursorData.y2 - 2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20737
20981
|
}
|
|
20738
20982
|
hideSelection() {
|
|
20739
20983
|
this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
|
|
20740
20984
|
fill: "transparent"
|
|
20741
20985
|
}));
|
|
20742
20986
|
}
|
|
20987
|
+
getShadow(rt) {
|
|
20988
|
+
const sr = rt.shadowRoot || rt.attachShadow();
|
|
20989
|
+
return sr.setAttributes({
|
|
20990
|
+
boundsMode: "empty"
|
|
20991
|
+
}), sr;
|
|
20992
|
+
}
|
|
20743
20993
|
getLineByPoint(cache, p1) {
|
|
20744
20994
|
let lineInfo = cache.lines[0];
|
|
20745
20995
|
for (let i = 0; i < cache.lines.length && !(lineInfo.top <= p1.y && lineInfo.top + lineInfo.height >= p1.y); i++) lineInfo = cache.lines[i + 1];
|
|
@@ -20771,7 +21021,10 @@
|
|
|
20771
21021
|
return -1;
|
|
20772
21022
|
}
|
|
20773
21023
|
isRichtext(e) {
|
|
20774
|
-
return !(!e.target || "richtext" !== e.target.type
|
|
21024
|
+
return !(!e.target || "richtext" !== e.target.type);
|
|
21025
|
+
}
|
|
21026
|
+
isEditableRichtext(e) {
|
|
21027
|
+
return this.isRichtext(e) && !!e.target.attribute.editable;
|
|
20775
21028
|
}
|
|
20776
21029
|
triggerRender() {
|
|
20777
21030
|
this.pluginService.stage.renderNextFrame();
|
|
@@ -20789,7 +21042,18 @@
|
|
|
20789
21042
|
x: 0,
|
|
20790
21043
|
y: 0
|
|
20791
21044
|
};
|
|
20792
|
-
|
|
21045
|
+
e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
|
|
21046
|
+
const rt = this.currRt,
|
|
21047
|
+
{
|
|
21048
|
+
textBaseline: textBaseline
|
|
21049
|
+
} = rt.attribute;
|
|
21050
|
+
let dy = 0;
|
|
21051
|
+
if ("middle" === textBaseline) {
|
|
21052
|
+
dy = getRichTextBounds(rt.attribute).height() / 2;
|
|
21053
|
+
} else if ("bottom" === textBaseline) {
|
|
21054
|
+
dy = getRichTextBounds(rt.attribute).height();
|
|
21055
|
+
}
|
|
21056
|
+
return p1.y += dy, p1;
|
|
20793
21057
|
}
|
|
20794
21058
|
setCursorAndTextArea(x, y1, y2, rt) {
|
|
20795
21059
|
this.editLine.setAttributes({
|
|
@@ -20813,7 +21077,7 @@
|
|
|
20813
21077
|
left: left,
|
|
20814
21078
|
top: top
|
|
20815
21079
|
} = this.pluginService.stage.window.getBoundingClientRect();
|
|
20816
|
-
out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
|
|
21080
|
+
out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
|
|
20817
21081
|
}
|
|
20818
21082
|
computedCursorPosByEvent(e, cache) {
|
|
20819
21083
|
const p1 = this.getEventPosition(e),
|
|
@@ -20824,9 +21088,8 @@
|
|
|
20824
21088
|
delta: delta
|
|
20825
21089
|
} = this.getColumnAndIndexByLinePoint(lineInfo, p1);
|
|
20826
21090
|
if (!columnInfo) return;
|
|
20827
|
-
|
|
21091
|
+
const y1 = lineInfo.top,
|
|
20828
21092
|
y2 = lineInfo.top + lineInfo.height;
|
|
20829
|
-
y1 += 2, y2 -= 2;
|
|
20830
21093
|
let cursorIndex = this.getColumnIndex(cache, columnInfo);
|
|
20831
21094
|
cursorIndex += delta;
|
|
20832
21095
|
return {
|
|
@@ -20845,21 +21108,36 @@
|
|
|
20845
21108
|
cache = rt.getFrameCache(),
|
|
20846
21109
|
column = this.getColumnByIndex(cache, idx),
|
|
20847
21110
|
height = null !== (_a = rt.attribute.fontSize) && void 0 !== _a ? _a : null === (_c = null === (_b = rt.attribute.textConfig) || void 0 === _b ? void 0 : _b[0]) || void 0 === _c ? void 0 : _c.fontSize;
|
|
20848
|
-
if (!column)
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
21111
|
+
if (!column) {
|
|
21112
|
+
if (!cache.lines.length) {
|
|
21113
|
+
return {
|
|
21114
|
+
x: 0,
|
|
21115
|
+
y1: 0,
|
|
21116
|
+
y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
|
|
21117
|
+
textConfig: [{
|
|
21118
|
+
text: "a"
|
|
21119
|
+
}]
|
|
21120
|
+
})).height()
|
|
21121
|
+
};
|
|
21122
|
+
}
|
|
21123
|
+
return {
|
|
21124
|
+
x: 0,
|
|
21125
|
+
y1: 0,
|
|
21126
|
+
y2: height
|
|
21127
|
+
};
|
|
21128
|
+
}
|
|
20853
21129
|
const {
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
21130
|
+
lineInfo: lineInfo,
|
|
21131
|
+
columnInfo: columnInfo
|
|
21132
|
+
} = column,
|
|
21133
|
+
y1 = lineInfo.top,
|
|
20858
21134
|
y2 = lineInfo.top + lineInfo.height;
|
|
20859
|
-
return
|
|
21135
|
+
return {
|
|
20860
21136
|
x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
|
|
20861
21137
|
y1: y1,
|
|
20862
|
-
y2: y2
|
|
21138
|
+
y2: y2,
|
|
21139
|
+
lineInfo: lineInfo,
|
|
21140
|
+
columnInfo: columnInfo
|
|
20863
21141
|
};
|
|
20864
21142
|
}
|
|
20865
21143
|
getColumnByIndex(cache, index) {
|
|
@@ -20883,6 +21161,37 @@
|
|
|
20883
21161
|
let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20884
21162
|
return this.currRt ? null != this.selectionStartCursorIdx && null != this.curCursorIdx ? new Selection(this.selectionStartCursorIdx, this.curCursorIdx, this.currRt) : defaultAll ? RichTextEditPlugin.CreateSelection(this.currRt) : null : null;
|
|
20885
21163
|
}
|
|
21164
|
+
forceFocus(params) {
|
|
21165
|
+
const {
|
|
21166
|
+
target: target,
|
|
21167
|
+
e: e,
|
|
21168
|
+
cursorIndex: cursorIndex
|
|
21169
|
+
} = params;
|
|
21170
|
+
target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
|
|
21171
|
+
}
|
|
21172
|
+
_forceFocusByEvent(e) {
|
|
21173
|
+
this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21174
|
+
}
|
|
21175
|
+
_forceFocusByCursorIndex(cursorIndex) {
|
|
21176
|
+
const richtext = this.currRt;
|
|
21177
|
+
if (!richtext) return;
|
|
21178
|
+
let x = 0,
|
|
21179
|
+
y1 = 0,
|
|
21180
|
+
y2 = 2,
|
|
21181
|
+
lineInfo = null,
|
|
21182
|
+
columnInfo = null;
|
|
21183
|
+
const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
|
|
21184
|
+
x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
|
|
21185
|
+
target: this.currRt
|
|
21186
|
+
}, {
|
|
21187
|
+
x: x,
|
|
21188
|
+
y1: y1,
|
|
21189
|
+
y2: y2,
|
|
21190
|
+
cursorIndex: cursorIndex,
|
|
21191
|
+
lineInfo: lineInfo,
|
|
21192
|
+
columnInfo: columnInfo
|
|
21193
|
+
});
|
|
21194
|
+
}
|
|
20886
21195
|
}
|
|
20887
21196
|
|
|
20888
21197
|
class DefaultGraphicAllocate {
|
|
@@ -21065,7 +21374,7 @@
|
|
|
21065
21374
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
21066
21375
|
});
|
|
21067
21376
|
|
|
21068
|
-
var __decorate$
|
|
21377
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21069
21378
|
var d,
|
|
21070
21379
|
c = arguments.length,
|
|
21071
21380
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21097,21 +21406,21 @@
|
|
|
21097
21406
|
}), context.highPerformanceRestore();
|
|
21098
21407
|
}
|
|
21099
21408
|
};
|
|
21100
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
21409
|
+
DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
|
|
21101
21410
|
|
|
21102
21411
|
let loadGlyphModule = !1;
|
|
21103
21412
|
const glyphModule = new ContainerModule(bind => {
|
|
21104
21413
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
21105
21414
|
});
|
|
21106
21415
|
|
|
21107
|
-
var __decorate$
|
|
21416
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21108
21417
|
var d,
|
|
21109
21418
|
c = arguments.length,
|
|
21110
21419
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21111
21420
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21112
21421
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21113
21422
|
},
|
|
21114
|
-
__metadata$
|
|
21423
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
21115
21424
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21116
21425
|
};
|
|
21117
21426
|
let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
@@ -21165,7 +21474,7 @@
|
|
|
21165
21474
|
this._draw(richtext, richtextAttribute, !1, drawContext);
|
|
21166
21475
|
}
|
|
21167
21476
|
};
|
|
21168
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
21477
|
+
DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
21169
21478
|
|
|
21170
21479
|
let loadRichtextModule = !1;
|
|
21171
21480
|
const richtextModule = new ContainerModule(bind => {
|
|
@@ -21249,7 +21558,7 @@
|
|
|
21249
21558
|
}
|
|
21250
21559
|
}
|
|
21251
21560
|
|
|
21252
|
-
var __decorate$
|
|
21561
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21253
21562
|
var d,
|
|
21254
21563
|
c = arguments.length,
|
|
21255
21564
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21305,14 +21614,14 @@
|
|
|
21305
21614
|
this._draw(rect, rectAttribute, !1, drawContext);
|
|
21306
21615
|
}
|
|
21307
21616
|
};
|
|
21308
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
21617
|
+
DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
|
|
21309
21618
|
|
|
21310
21619
|
let loadRect3dModule = !1;
|
|
21311
21620
|
const rect3dModule = new ContainerModule(bind => {
|
|
21312
21621
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
21313
21622
|
});
|
|
21314
21623
|
|
|
21315
|
-
var __decorate$
|
|
21624
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21316
21625
|
var d,
|
|
21317
21626
|
c = arguments.length,
|
|
21318
21627
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21439,14 +21748,14 @@
|
|
|
21439
21748
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
21440
21749
|
}
|
|
21441
21750
|
};
|
|
21442
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
21751
|
+
DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
|
|
21443
21752
|
|
|
21444
21753
|
let loadArc3dModule = !1;
|
|
21445
21754
|
const arc3dModule = new ContainerModule(bind => {
|
|
21446
21755
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
21447
21756
|
});
|
|
21448
21757
|
|
|
21449
|
-
var __decorate$
|
|
21758
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21450
21759
|
var d,
|
|
21451
21760
|
c = arguments.length,
|
|
21452
21761
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21483,7 +21792,7 @@
|
|
|
21483
21792
|
this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
|
|
21484
21793
|
}
|
|
21485
21794
|
};
|
|
21486
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
21795
|
+
DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
|
|
21487
21796
|
|
|
21488
21797
|
let loadPyramid3dModule = !1;
|
|
21489
21798
|
const pyramid3dModule = new ContainerModule(bind => {
|
|
@@ -23606,17 +23915,17 @@
|
|
|
23606
23915
|
}
|
|
23607
23916
|
}
|
|
23608
23917
|
|
|
23609
|
-
var __decorate$
|
|
23918
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23610
23919
|
var d,
|
|
23611
23920
|
c = arguments.length,
|
|
23612
23921
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23613
23922
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23614
23923
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23615
23924
|
},
|
|
23616
|
-
__metadata$
|
|
23925
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
23617
23926
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23618
23927
|
},
|
|
23619
|
-
__param$
|
|
23928
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23620
23929
|
return function (target, key) {
|
|
23621
23930
|
decorator(target, key, paramIndex);
|
|
23622
23931
|
};
|
|
@@ -23702,9 +24011,9 @@
|
|
|
23702
24011
|
}), context.highPerformanceRestore();
|
|
23703
24012
|
}
|
|
23704
24013
|
};
|
|
23705
|
-
RoughCanvasArcRender = __decorate$
|
|
24014
|
+
RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
23706
24015
|
|
|
23707
|
-
var __decorate$
|
|
24016
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23708
24017
|
var d,
|
|
23709
24018
|
c = arguments.length,
|
|
23710
24019
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23782,19 +24091,19 @@
|
|
|
23782
24091
|
}), context.highPerformanceRestore(), !1;
|
|
23783
24092
|
}
|
|
23784
24093
|
};
|
|
23785
|
-
RoughCanvasAreaRender = __decorate$
|
|
24094
|
+
RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
|
|
23786
24095
|
|
|
23787
|
-
var __decorate$
|
|
24096
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23788
24097
|
var d,
|
|
23789
24098
|
c = arguments.length,
|
|
23790
24099
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23791
24100
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23792
24101
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23793
24102
|
},
|
|
23794
|
-
__metadata$
|
|
24103
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
23795
24104
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23796
24105
|
},
|
|
23797
|
-
__param$
|
|
24106
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23798
24107
|
return function (target, key) {
|
|
23799
24108
|
decorator(target, key, paramIndex);
|
|
23800
24109
|
};
|
|
@@ -23831,9 +24140,9 @@
|
|
|
23831
24140
|
});
|
|
23832
24141
|
}
|
|
23833
24142
|
};
|
|
23834
|
-
RoughCanvasCircleRender = __decorate$
|
|
24143
|
+
RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
23835
24144
|
|
|
23836
|
-
var __decorate$
|
|
24145
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23837
24146
|
var d,
|
|
23838
24147
|
c = arguments.length,
|
|
23839
24148
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23912,19 +24221,19 @@
|
|
|
23912
24221
|
}), context.highPerformanceRestore(), !1;
|
|
23913
24222
|
}
|
|
23914
24223
|
};
|
|
23915
|
-
RoughCanvasLineRender = __decorate$
|
|
24224
|
+
RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
|
|
23916
24225
|
|
|
23917
|
-
var __decorate$
|
|
24226
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23918
24227
|
var d,
|
|
23919
24228
|
c = arguments.length,
|
|
23920
24229
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23921
24230
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23922
24231
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23923
24232
|
},
|
|
23924
|
-
__metadata$
|
|
24233
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
23925
24234
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23926
24235
|
},
|
|
23927
|
-
__param$
|
|
24236
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23928
24237
|
return function (target, key) {
|
|
23929
24238
|
decorator(target, key, paramIndex);
|
|
23930
24239
|
};
|
|
@@ -23998,19 +24307,19 @@
|
|
|
23998
24307
|
}), context.highPerformanceRestore();
|
|
23999
24308
|
}
|
|
24000
24309
|
};
|
|
24001
|
-
RoughCanvasPathRender = __decorate$
|
|
24310
|
+
RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(exports.DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
24002
24311
|
|
|
24003
|
-
var __decorate$
|
|
24312
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24004
24313
|
var d,
|
|
24005
24314
|
c = arguments.length,
|
|
24006
24315
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24007
24316
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24008
24317
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24009
24318
|
},
|
|
24010
|
-
__metadata$
|
|
24319
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
24011
24320
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24012
24321
|
},
|
|
24013
|
-
__param$
|
|
24322
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24014
24323
|
return function (target, key) {
|
|
24015
24324
|
decorator(target, key, paramIndex);
|
|
24016
24325
|
};
|
|
@@ -24101,19 +24410,19 @@
|
|
|
24101
24410
|
}), context.highPerformanceRestore();
|
|
24102
24411
|
}
|
|
24103
24412
|
};
|
|
24104
|
-
RoughCanvasRectRender = __decorate$
|
|
24413
|
+
RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(exports.DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
24105
24414
|
|
|
24106
|
-
var __decorate
|
|
24415
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24107
24416
|
var d,
|
|
24108
24417
|
c = arguments.length,
|
|
24109
24418
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24110
24419
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24111
24420
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24112
24421
|
},
|
|
24113
|
-
__metadata$
|
|
24422
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
24114
24423
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24115
24424
|
},
|
|
24116
|
-
__param$
|
|
24425
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24117
24426
|
return function (target, key) {
|
|
24118
24427
|
decorator(target, key, paramIndex);
|
|
24119
24428
|
};
|
|
@@ -24205,7 +24514,7 @@
|
|
|
24205
24514
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24206
24515
|
}
|
|
24207
24516
|
};
|
|
24208
|
-
RoughCanvasSymbolRender = __decorate
|
|
24517
|
+
RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
24209
24518
|
|
|
24210
24519
|
var _roughModule = new ContainerModule(bind => {
|
|
24211
24520
|
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);
|
|
@@ -24228,7 +24537,6 @@
|
|
|
24228
24537
|
const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
|
|
24229
24538
|
const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
|
|
24230
24539
|
const CanvasImagePicker = Symbol.for("CanvasImagePicker");
|
|
24231
|
-
const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
|
|
24232
24540
|
const CanvasLinePicker = Symbol.for("CanvasLinePicker");
|
|
24233
24541
|
const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
|
|
24234
24542
|
const CanvasPathPicker = Symbol.for("CanvasPathPicker");
|
|
@@ -24369,11 +24677,9 @@
|
|
|
24369
24677
|
name: name,
|
|
24370
24678
|
id: id,
|
|
24371
24679
|
attribute: attribute,
|
|
24372
|
-
stateProxy: stateProxy
|
|
24373
|
-
animation: animation,
|
|
24374
|
-
timeline: timeline
|
|
24680
|
+
stateProxy: stateProxy
|
|
24375
24681
|
} = _a,
|
|
24376
|
-
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"
|
|
24682
|
+
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
|
|
24377
24683
|
let c = type;
|
|
24378
24684
|
isString$1(type) && (c = graphicCreator[type]);
|
|
24379
24685
|
const childrenList = [];
|
|
@@ -24382,13 +24688,7 @@
|
|
|
24382
24688
|
}
|
|
24383
24689
|
children.length && flatten(1 === children.length ? children[0] : children, childrenList);
|
|
24384
24690
|
const g = "Group" === c.name ? new c(attribute) : c(config);
|
|
24385
|
-
|
|
24386
|
-
const animate = g.animate();
|
|
24387
|
-
timeline && animate.setTimeline(timeline), animation.forEach(item => {
|
|
24388
|
-
animate[item[0]](...item.slice(1));
|
|
24389
|
-
});
|
|
24390
|
-
}
|
|
24391
|
-
return g;
|
|
24691
|
+
return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
|
|
24392
24692
|
}
|
|
24393
24693
|
function parseToGraphic$1(g, childrenList, props) {
|
|
24394
24694
|
let out,
|
|
@@ -24718,14 +25018,14 @@
|
|
|
24718
25018
|
}
|
|
24719
25019
|
}
|
|
24720
25020
|
|
|
24721
|
-
var __decorate$
|
|
25021
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24722
25022
|
var d,
|
|
24723
25023
|
c = arguments.length,
|
|
24724
25024
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24725
25025
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24726
25026
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24727
25027
|
},
|
|
24728
|
-
__metadata$
|
|
25028
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
24729
25029
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24730
25030
|
};
|
|
24731
25031
|
const outP = [0, 0, 0],
|
|
@@ -25237,16 +25537,16 @@
|
|
|
25237
25537
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25238
25538
|
}
|
|
25239
25539
|
};
|
|
25240
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
25540
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
25241
25541
|
|
|
25242
|
-
var __decorate
|
|
25542
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25243
25543
|
var d,
|
|
25244
25544
|
c = arguments.length,
|
|
25245
25545
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25246
25546
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25247
25547
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25248
25548
|
},
|
|
25249
|
-
__metadata$
|
|
25549
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
25250
25550
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25251
25551
|
};
|
|
25252
25552
|
let BrowserCanvas = class extends BaseCanvas {
|
|
@@ -25308,7 +25608,7 @@
|
|
|
25308
25608
|
this._context.dpr = this._dpr;
|
|
25309
25609
|
}
|
|
25310
25610
|
};
|
|
25311
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate
|
|
25611
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
|
|
25312
25612
|
|
|
25313
25613
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
25314
25614
|
return new ContainerModule(bind => {
|
|
@@ -25318,17 +25618,17 @@
|
|
|
25318
25618
|
|
|
25319
25619
|
const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
25320
25620
|
|
|
25321
|
-
var __decorate$
|
|
25621
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25322
25622
|
var d,
|
|
25323
25623
|
c = arguments.length,
|
|
25324
25624
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25325
25625
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25326
25626
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25327
25627
|
},
|
|
25328
|
-
__metadata$
|
|
25628
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
25329
25629
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25330
25630
|
},
|
|
25331
|
-
__param$
|
|
25631
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25332
25632
|
return function (target, key) {
|
|
25333
25633
|
decorator(target, key, paramIndex);
|
|
25334
25634
|
};
|
|
@@ -25379,9 +25679,9 @@
|
|
|
25379
25679
|
return data;
|
|
25380
25680
|
}
|
|
25381
25681
|
};
|
|
25382
|
-
DefaultCanvasPickerService = __decorate$
|
|
25682
|
+
DefaultCanvasPickerService = __decorate$Y([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(CanvasPickerContribution)), __param$w(1, inject(DrawContribution)), __param$w(2, inject(ContributionProvider)), __param$w(2, named(PickItemInterceptor)), __param$w(3, inject(ContributionProvider)), __param$w(3, named(PickServiceInterceptor)), __metadata$M("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
|
|
25383
25683
|
|
|
25384
|
-
var __decorate$
|
|
25684
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25385
25685
|
var d,
|
|
25386
25686
|
c = arguments.length,
|
|
25387
25687
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25396,7 +25696,7 @@
|
|
|
25396
25696
|
return !1;
|
|
25397
25697
|
}
|
|
25398
25698
|
};
|
|
25399
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
25699
|
+
DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
|
|
25400
25700
|
|
|
25401
25701
|
const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
25402
25702
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -25412,14 +25712,14 @@
|
|
|
25412
25712
|
}
|
|
25413
25713
|
|
|
25414
25714
|
var BrowserWindowHandlerContribution_1,
|
|
25415
|
-
__decorate$
|
|
25715
|
+
__decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25416
25716
|
var d,
|
|
25417
25717
|
c = arguments.length,
|
|
25418
25718
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25419
25719
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25420
25720
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25421
25721
|
},
|
|
25422
|
-
__metadata$
|
|
25722
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
25423
25723
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25424
25724
|
};
|
|
25425
25725
|
let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends exports.BaseWindowHandlerContribution {
|
|
@@ -25577,19 +25877,19 @@
|
|
|
25577
25877
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
25578
25878
|
}
|
|
25579
25879
|
};
|
|
25580
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$
|
|
25880
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
25581
25881
|
const browserWindowModule = new ContainerModule(bind => {
|
|
25582
25882
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
25583
25883
|
});
|
|
25584
25884
|
|
|
25585
|
-
var __decorate$
|
|
25885
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25586
25886
|
var d,
|
|
25587
25887
|
c = arguments.length,
|
|
25588
25888
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25589
25889
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25590
25890
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25591
25891
|
},
|
|
25592
|
-
__metadata$
|
|
25892
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
25593
25893
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25594
25894
|
},
|
|
25595
25895
|
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -25643,7 +25943,7 @@
|
|
|
25643
25943
|
function createImageElement$1(src) {
|
|
25644
25944
|
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
25645
25945
|
const img = document.createElement("img");
|
|
25646
|
-
if (
|
|
25946
|
+
if (img.crossOrigin = "anonymous", isSvg) {
|
|
25647
25947
|
const data = new Blob([src], {
|
|
25648
25948
|
type: "image/svg+xml"
|
|
25649
25949
|
});
|
|
@@ -25836,7 +26136,7 @@
|
|
|
25836
26136
|
return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
|
|
25837
26137
|
}
|
|
25838
26138
|
};
|
|
25839
|
-
exports.BrowserEnvContribution = __decorate$
|
|
26139
|
+
exports.BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], exports.BrowserEnvContribution);
|
|
25840
26140
|
|
|
25841
26141
|
const browserEnvModule = new ContainerModule(bind => {
|
|
25842
26142
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(exports.BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(exports.BrowserEnvContribution));
|
|
@@ -25851,7 +26151,7 @@
|
|
|
25851
26151
|
loadBrowserEnv(container);
|
|
25852
26152
|
}
|
|
25853
26153
|
|
|
25854
|
-
var __decorate$
|
|
26154
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25855
26155
|
var d,
|
|
25856
26156
|
c = arguments.length,
|
|
25857
26157
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25896,16 +26196,16 @@
|
|
|
25896
26196
|
return null;
|
|
25897
26197
|
}
|
|
25898
26198
|
};
|
|
25899
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
26199
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
|
|
25900
26200
|
|
|
25901
|
-
var __decorate$
|
|
26201
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25902
26202
|
var d,
|
|
25903
26203
|
c = arguments.length,
|
|
25904
26204
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25905
26205
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25906
26206
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25907
26207
|
},
|
|
25908
|
-
__metadata$
|
|
26208
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
25909
26209
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25910
26210
|
};
|
|
25911
26211
|
let FeishuCanvas = class extends BaseCanvas {
|
|
@@ -25917,21 +26217,21 @@
|
|
|
25917
26217
|
}
|
|
25918
26218
|
release() {}
|
|
25919
26219
|
};
|
|
25920
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
26220
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
|
|
25921
26221
|
|
|
25922
26222
|
const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
25923
26223
|
|
|
25924
|
-
var __decorate$
|
|
26224
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25925
26225
|
var d,
|
|
25926
26226
|
c = arguments.length,
|
|
25927
26227
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25928
26228
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25929
26229
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25930
26230
|
},
|
|
25931
|
-
__metadata$
|
|
26231
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
25932
26232
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25933
26233
|
},
|
|
25934
|
-
__param$
|
|
26234
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25935
26235
|
return function (target, key) {
|
|
25936
26236
|
decorator(target, key, paramIndex);
|
|
25937
26237
|
};
|
|
@@ -26067,22 +26367,22 @@
|
|
|
26067
26367
|
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();
|
|
26068
26368
|
}
|
|
26069
26369
|
};
|
|
26070
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
26370
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
26071
26371
|
const feishuWindowModule = new ContainerModule(bind => {
|
|
26072
26372
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
26073
26373
|
});
|
|
26074
26374
|
|
|
26075
|
-
var __decorate$
|
|
26375
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26076
26376
|
var d,
|
|
26077
26377
|
c = arguments.length,
|
|
26078
26378
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26079
26379
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26080
26380
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26081
26381
|
},
|
|
26082
|
-
__metadata$
|
|
26382
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
26083
26383
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26084
26384
|
},
|
|
26085
|
-
__param$
|
|
26385
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26086
26386
|
return function (target, key) {
|
|
26087
26387
|
decorator(target, key, paramIndex);
|
|
26088
26388
|
};
|
|
@@ -26113,7 +26413,7 @@
|
|
|
26113
26413
|
} : null;
|
|
26114
26414
|
}
|
|
26115
26415
|
};
|
|
26116
|
-
DefaultMathPickerService = __decorate$
|
|
26416
|
+
DefaultMathPickerService = __decorate$R([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(MathPickerContribution)), __param$u(1, inject(ContributionProvider)), __param$u(1, named(PickItemInterceptor)), __param$u(2, inject(ContributionProvider)), __param$u(2, named(PickServiceInterceptor)), __metadata$H("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
|
|
26117
26417
|
|
|
26118
26418
|
const m = new ContainerModule(bind => {
|
|
26119
26419
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -26150,17 +26450,17 @@
|
|
|
26150
26450
|
}
|
|
26151
26451
|
}
|
|
26152
26452
|
|
|
26153
|
-
var __decorate$
|
|
26453
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26154
26454
|
var d,
|
|
26155
26455
|
c = arguments.length,
|
|
26156
26456
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26157
26457
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26158
26458
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26159
26459
|
},
|
|
26160
|
-
__metadata$
|
|
26460
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
26161
26461
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26162
26462
|
},
|
|
26163
|
-
__param$
|
|
26463
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26164
26464
|
return function (target, key) {
|
|
26165
26465
|
decorator(target, key, paramIndex);
|
|
26166
26466
|
};
|
|
@@ -26170,24 +26470,24 @@
|
|
|
26170
26470
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
26171
26471
|
}
|
|
26172
26472
|
};
|
|
26173
|
-
DefaultMathArcPicker = __decorate$
|
|
26473
|
+
DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
26174
26474
|
|
|
26175
26475
|
let loadArcPick$1 = !1;
|
|
26176
26476
|
const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26177
26477
|
loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
|
|
26178
26478
|
});
|
|
26179
26479
|
|
|
26180
|
-
var __decorate$
|
|
26480
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26181
26481
|
var d,
|
|
26182
26482
|
c = arguments.length,
|
|
26183
26483
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26184
26484
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26185
26485
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26186
26486
|
},
|
|
26187
|
-
__metadata$
|
|
26487
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
26188
26488
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26189
26489
|
},
|
|
26190
|
-
__param$
|
|
26490
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26191
26491
|
return function (target, key) {
|
|
26192
26492
|
decorator(target, key, paramIndex);
|
|
26193
26493
|
};
|
|
@@ -26197,24 +26497,24 @@
|
|
|
26197
26497
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
26198
26498
|
}
|
|
26199
26499
|
};
|
|
26200
|
-
DefaultMathAreaPicker = __decorate$
|
|
26500
|
+
DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
|
|
26201
26501
|
|
|
26202
26502
|
let loadAreaPick$1 = !1;
|
|
26203
26503
|
const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26204
26504
|
loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
|
|
26205
26505
|
});
|
|
26206
26506
|
|
|
26207
|
-
var __decorate$
|
|
26507
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26208
26508
|
var d,
|
|
26209
26509
|
c = arguments.length,
|
|
26210
26510
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26211
26511
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26212
26512
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26213
26513
|
},
|
|
26214
|
-
__metadata$
|
|
26514
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
26215
26515
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26216
26516
|
},
|
|
26217
|
-
__param$
|
|
26517
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26218
26518
|
return function (target, key) {
|
|
26219
26519
|
decorator(target, key, paramIndex);
|
|
26220
26520
|
};
|
|
@@ -26224,7 +26524,7 @@
|
|
|
26224
26524
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
26225
26525
|
}
|
|
26226
26526
|
};
|
|
26227
|
-
DefaultMathCirclePicker = __decorate$
|
|
26527
|
+
DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
26228
26528
|
|
|
26229
26529
|
let loadCirclePick$1 = !1;
|
|
26230
26530
|
const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26255,17 +26555,17 @@
|
|
|
26255
26555
|
}
|
|
26256
26556
|
}
|
|
26257
26557
|
|
|
26258
|
-
var __decorate$
|
|
26558
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26259
26559
|
var d,
|
|
26260
26560
|
c = arguments.length,
|
|
26261
26561
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26262
26562
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26263
26563
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26264
26564
|
},
|
|
26265
|
-
__metadata$
|
|
26565
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
26266
26566
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26267
26567
|
},
|
|
26268
|
-
__param$
|
|
26568
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26269
26569
|
return function (target, key) {
|
|
26270
26570
|
decorator(target, key, paramIndex);
|
|
26271
26571
|
};
|
|
@@ -26275,14 +26575,14 @@
|
|
|
26275
26575
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26276
26576
|
}
|
|
26277
26577
|
};
|
|
26278
|
-
DefaultMathGlyphPicker = __decorate$
|
|
26578
|
+
DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
26279
26579
|
|
|
26280
26580
|
let loadGlyphPick$1 = !1;
|
|
26281
26581
|
const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26282
26582
|
loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
|
|
26283
26583
|
});
|
|
26284
26584
|
|
|
26285
|
-
var __decorate$
|
|
26585
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26286
26586
|
var d,
|
|
26287
26587
|
c = arguments.length,
|
|
26288
26588
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26300,24 +26600,24 @@
|
|
|
26300
26600
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
26301
26601
|
}
|
|
26302
26602
|
};
|
|
26303
|
-
DefaultMathImagePicker = __decorate$
|
|
26603
|
+
DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
|
|
26304
26604
|
|
|
26305
26605
|
let loadImagePick$1 = !1;
|
|
26306
26606
|
const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26307
26607
|
loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26308
26608
|
});
|
|
26309
26609
|
|
|
26310
|
-
var __decorate$
|
|
26610
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26311
26611
|
var d,
|
|
26312
26612
|
c = arguments.length,
|
|
26313
26613
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26314
26614
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26315
26615
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26316
26616
|
},
|
|
26317
|
-
__metadata$
|
|
26617
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
26318
26618
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26319
26619
|
},
|
|
26320
|
-
__param$
|
|
26620
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26321
26621
|
return function (target, key) {
|
|
26322
26622
|
decorator(target, key, paramIndex);
|
|
26323
26623
|
};
|
|
@@ -26327,24 +26627,24 @@
|
|
|
26327
26627
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
26328
26628
|
}
|
|
26329
26629
|
};
|
|
26330
|
-
DefaultMathLinePicker = __decorate$
|
|
26630
|
+
DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
26331
26631
|
|
|
26332
26632
|
let loadLinePick$1 = !1;
|
|
26333
26633
|
const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26334
26634
|
loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
|
|
26335
26635
|
});
|
|
26336
26636
|
|
|
26337
|
-
var __decorate$
|
|
26637
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26338
26638
|
var d,
|
|
26339
26639
|
c = arguments.length,
|
|
26340
26640
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26341
26641
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26342
26642
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26343
26643
|
},
|
|
26344
|
-
__metadata$
|
|
26644
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
26345
26645
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26346
26646
|
},
|
|
26347
|
-
__param$
|
|
26647
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26348
26648
|
return function (target, key) {
|
|
26349
26649
|
decorator(target, key, paramIndex);
|
|
26350
26650
|
};
|
|
@@ -26354,24 +26654,24 @@
|
|
|
26354
26654
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
26355
26655
|
}
|
|
26356
26656
|
};
|
|
26357
|
-
DefaultMathPolygonPicker = __decorate$
|
|
26657
|
+
DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
26358
26658
|
|
|
26359
26659
|
let loadPolygonPick$1 = !1;
|
|
26360
26660
|
const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26361
26661
|
loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
|
|
26362
26662
|
});
|
|
26363
26663
|
|
|
26364
|
-
var __decorate$
|
|
26664
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26365
26665
|
var d,
|
|
26366
26666
|
c = arguments.length,
|
|
26367
26667
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26368
26668
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26369
26669
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26370
26670
|
},
|
|
26371
|
-
__metadata$
|
|
26671
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
26372
26672
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26373
26673
|
},
|
|
26374
|
-
__param$
|
|
26674
|
+
__param$n = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26375
26675
|
return function (target, key) {
|
|
26376
26676
|
decorator(target, key, paramIndex);
|
|
26377
26677
|
};
|
|
@@ -26381,7 +26681,7 @@
|
|
|
26381
26681
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
26382
26682
|
}
|
|
26383
26683
|
};
|
|
26384
|
-
DefaultMathPathPicker = __decorate$
|
|
26684
|
+
DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
26385
26685
|
|
|
26386
26686
|
let loadPathPick$1 = !1;
|
|
26387
26687
|
const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26436,17 +26736,17 @@
|
|
|
26436
26736
|
}
|
|
26437
26737
|
}
|
|
26438
26738
|
|
|
26439
|
-
var __decorate$
|
|
26739
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26440
26740
|
var d,
|
|
26441
26741
|
c = arguments.length,
|
|
26442
26742
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26443
26743
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26444
26744
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26445
26745
|
},
|
|
26446
|
-
__metadata$
|
|
26746
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
26447
26747
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26448
26748
|
},
|
|
26449
|
-
__param$
|
|
26749
|
+
__param$m = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26450
26750
|
return function (target, key) {
|
|
26451
26751
|
decorator(target, key, paramIndex);
|
|
26452
26752
|
};
|
|
@@ -26456,7 +26756,7 @@
|
|
|
26456
26756
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26457
26757
|
}
|
|
26458
26758
|
};
|
|
26459
|
-
DefaultMathRectPicker = __decorate$
|
|
26759
|
+
DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
26460
26760
|
|
|
26461
26761
|
let loadRectPick$1 = !1;
|
|
26462
26762
|
const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26468,17 +26768,17 @@
|
|
|
26468
26768
|
loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26469
26769
|
});
|
|
26470
26770
|
|
|
26471
|
-
var __decorate$
|
|
26771
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26472
26772
|
var d,
|
|
26473
26773
|
c = arguments.length,
|
|
26474
26774
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26475
26775
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26476
26776
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26477
26777
|
},
|
|
26478
|
-
__metadata$
|
|
26778
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
26479
26779
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26480
26780
|
},
|
|
26481
|
-
__param$
|
|
26781
|
+
__param$l = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26482
26782
|
return function (target, key) {
|
|
26483
26783
|
decorator(target, key, paramIndex);
|
|
26484
26784
|
};
|
|
@@ -26488,14 +26788,14 @@
|
|
|
26488
26788
|
super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
26489
26789
|
}
|
|
26490
26790
|
};
|
|
26491
|
-
DefaultMathSymbolPicker = __decorate$
|
|
26791
|
+
DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
26492
26792
|
|
|
26493
26793
|
let loadSymbolPick$1 = !1;
|
|
26494
26794
|
const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26495
26795
|
loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
|
|
26496
26796
|
});
|
|
26497
26797
|
|
|
26498
|
-
var __decorate$
|
|
26798
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26499
26799
|
var d,
|
|
26500
26800
|
c = arguments.length,
|
|
26501
26801
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26510,7 +26810,7 @@
|
|
|
26510
26810
|
return !!text.AABBBounds.containsPoint(point);
|
|
26511
26811
|
}
|
|
26512
26812
|
};
|
|
26513
|
-
DefaultMathTextPicker = __decorate$
|
|
26813
|
+
DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
|
|
26514
26814
|
|
|
26515
26815
|
let loadTextPick$1 = !1;
|
|
26516
26816
|
const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26593,14 +26893,14 @@
|
|
|
26593
26893
|
}
|
|
26594
26894
|
}
|
|
26595
26895
|
|
|
26596
|
-
var __decorate$
|
|
26896
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26597
26897
|
var d,
|
|
26598
26898
|
c = arguments.length,
|
|
26599
26899
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26600
26900
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26601
26901
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26602
26902
|
},
|
|
26603
|
-
__metadata$
|
|
26903
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
26604
26904
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26605
26905
|
};
|
|
26606
26906
|
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
@@ -26682,7 +26982,7 @@
|
|
|
26682
26982
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
26683
26983
|
}
|
|
26684
26984
|
};
|
|
26685
|
-
FeishuEnvContribution = __decorate$
|
|
26985
|
+
FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
|
|
26686
26986
|
|
|
26687
26987
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
26688
26988
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -26697,7 +26997,7 @@
|
|
|
26697
26997
|
loadFeishuEnv(container);
|
|
26698
26998
|
}
|
|
26699
26999
|
|
|
26700
|
-
var __decorate$
|
|
27000
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26701
27001
|
var d,
|
|
26702
27002
|
c = arguments.length,
|
|
26703
27003
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26758,16 +27058,16 @@
|
|
|
26758
27058
|
}));
|
|
26759
27059
|
}
|
|
26760
27060
|
};
|
|
26761
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
27061
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
|
|
26762
27062
|
|
|
26763
|
-
var __decorate$
|
|
27063
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26764
27064
|
var d,
|
|
26765
27065
|
c = arguments.length,
|
|
26766
27066
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26767
27067
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26768
27068
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26769
27069
|
},
|
|
26770
|
-
__metadata$
|
|
27070
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
26771
27071
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26772
27072
|
};
|
|
26773
27073
|
let LynxCanvas = class extends BaseCanvas {
|
|
@@ -26783,19 +27083,19 @@
|
|
|
26783
27083
|
}
|
|
26784
27084
|
release() {}
|
|
26785
27085
|
};
|
|
26786
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
27086
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
|
|
26787
27087
|
|
|
26788
|
-
var __decorate$
|
|
27088
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26789
27089
|
var d,
|
|
26790
27090
|
c = arguments.length,
|
|
26791
27091
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26792
27092
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26793
27093
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26794
27094
|
},
|
|
26795
|
-
__metadata$
|
|
27095
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
26796
27096
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26797
27097
|
},
|
|
26798
|
-
__param$
|
|
27098
|
+
__param$k = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26799
27099
|
return function (target, key) {
|
|
26800
27100
|
decorator(target, key, paramIndex);
|
|
26801
27101
|
};
|
|
@@ -26933,21 +27233,21 @@
|
|
|
26933
27233
|
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();
|
|
26934
27234
|
}
|
|
26935
27235
|
};
|
|
26936
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
27236
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
26937
27237
|
const lynxWindowModule = new ContainerModule(bind => {
|
|
26938
27238
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
|
|
26939
27239
|
});
|
|
26940
27240
|
|
|
26941
27241
|
const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
26942
27242
|
|
|
26943
|
-
var __decorate$
|
|
27243
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26944
27244
|
var d,
|
|
26945
27245
|
c = arguments.length,
|
|
26946
27246
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26947
27247
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26948
27248
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26949
27249
|
},
|
|
26950
|
-
__metadata$
|
|
27250
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
26951
27251
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26952
27252
|
};
|
|
26953
27253
|
let ng = !1;
|
|
@@ -27057,7 +27357,7 @@
|
|
|
27057
27357
|
}
|
|
27058
27358
|
release() {}
|
|
27059
27359
|
};
|
|
27060
|
-
LynxEnvContribution = __decorate$
|
|
27360
|
+
LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
|
|
27061
27361
|
|
|
27062
27362
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
27063
27363
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -27072,14 +27372,14 @@
|
|
|
27072
27372
|
loadLynxEnv(container);
|
|
27073
27373
|
}
|
|
27074
27374
|
|
|
27075
|
-
var __decorate$
|
|
27375
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27076
27376
|
var d,
|
|
27077
27377
|
c = arguments.length,
|
|
27078
27378
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27079
27379
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27080
27380
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27081
27381
|
},
|
|
27082
|
-
__metadata$
|
|
27382
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
27083
27383
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27084
27384
|
};
|
|
27085
27385
|
let NodeContext2d = class extends BrowserContext2d {
|
|
@@ -27091,16 +27391,16 @@
|
|
|
27091
27391
|
}
|
|
27092
27392
|
release() {}
|
|
27093
27393
|
};
|
|
27094
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
27394
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
27095
27395
|
|
|
27096
|
-
var __decorate$
|
|
27396
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27097
27397
|
var d,
|
|
27098
27398
|
c = arguments.length,
|
|
27099
27399
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27100
27400
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27101
27401
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27102
27402
|
},
|
|
27103
|
-
__metadata$
|
|
27403
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
27104
27404
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27105
27405
|
};
|
|
27106
27406
|
let NodeCanvas = class extends BaseCanvas {
|
|
@@ -27114,21 +27414,21 @@
|
|
|
27114
27414
|
this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
27115
27415
|
}
|
|
27116
27416
|
};
|
|
27117
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
27417
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
|
|
27118
27418
|
|
|
27119
27419
|
const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
27120
27420
|
|
|
27121
|
-
var __decorate$
|
|
27421
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27122
27422
|
var d,
|
|
27123
27423
|
c = arguments.length,
|
|
27124
27424
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27125
27425
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27126
27426
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27127
27427
|
},
|
|
27128
|
-
__metadata$
|
|
27428
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
27129
27429
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27130
27430
|
},
|
|
27131
|
-
__param$
|
|
27431
|
+
__param$j = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27132
27432
|
return function (target, key) {
|
|
27133
27433
|
decorator(target, key, paramIndex);
|
|
27134
27434
|
};
|
|
@@ -27219,12 +27519,12 @@
|
|
|
27219
27519
|
}
|
|
27220
27520
|
clearViewBox(color) {}
|
|
27221
27521
|
};
|
|
27222
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
27522
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
27223
27523
|
const nodeWindowModule = new ContainerModule(bind => {
|
|
27224
27524
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
27225
27525
|
});
|
|
27226
27526
|
|
|
27227
|
-
var __decorate$
|
|
27527
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27228
27528
|
var d,
|
|
27229
27529
|
c = arguments.length,
|
|
27230
27530
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27310,7 +27610,7 @@
|
|
|
27310
27610
|
release() {}
|
|
27311
27611
|
createOffscreenCanvas(params) {}
|
|
27312
27612
|
};
|
|
27313
|
-
NodeEnvContribution = __decorate$
|
|
27613
|
+
NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
|
|
27314
27614
|
|
|
27315
27615
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
27316
27616
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -27324,7 +27624,7 @@
|
|
|
27324
27624
|
loadNodeEnv(container);
|
|
27325
27625
|
}
|
|
27326
27626
|
|
|
27327
|
-
var __decorate$
|
|
27627
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27328
27628
|
var d,
|
|
27329
27629
|
c = arguments.length,
|
|
27330
27630
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27413,16 +27713,16 @@
|
|
|
27413
27713
|
return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
|
|
27414
27714
|
}
|
|
27415
27715
|
};
|
|
27416
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
27716
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
|
|
27417
27717
|
|
|
27418
|
-
var __decorate$
|
|
27718
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27419
27719
|
var d,
|
|
27420
27720
|
c = arguments.length,
|
|
27421
27721
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27422
27722
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27423
27723
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27424
27724
|
},
|
|
27425
|
-
__metadata$
|
|
27725
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
27426
27726
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27427
27727
|
};
|
|
27428
27728
|
let TaroCanvas = class extends BaseCanvas {
|
|
@@ -27434,21 +27734,21 @@
|
|
|
27434
27734
|
}
|
|
27435
27735
|
release() {}
|
|
27436
27736
|
};
|
|
27437
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
27737
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
|
|
27438
27738
|
|
|
27439
27739
|
const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
27440
27740
|
|
|
27441
|
-
var __decorate$
|
|
27741
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27442
27742
|
var d,
|
|
27443
27743
|
c = arguments.length,
|
|
27444
27744
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27445
27745
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27446
27746
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27447
27747
|
},
|
|
27448
|
-
__metadata$
|
|
27748
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
27449
27749
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27450
27750
|
},
|
|
27451
|
-
__param$
|
|
27751
|
+
__param$i = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27452
27752
|
return function (target, key) {
|
|
27453
27753
|
decorator(target, key, paramIndex);
|
|
27454
27754
|
};
|
|
@@ -27594,19 +27894,19 @@
|
|
|
27594
27894
|
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();
|
|
27595
27895
|
}
|
|
27596
27896
|
};
|
|
27597
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
27897
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
27598
27898
|
const taroWindowModule = new ContainerModule(bind => {
|
|
27599
27899
|
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
27600
27900
|
});
|
|
27601
27901
|
|
|
27602
|
-
var __decorate$
|
|
27902
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27603
27903
|
var d,
|
|
27604
27904
|
c = arguments.length,
|
|
27605
27905
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27606
27906
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27607
27907
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27608
27908
|
},
|
|
27609
|
-
__metadata$
|
|
27909
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
27610
27910
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27611
27911
|
};
|
|
27612
27912
|
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
@@ -27703,7 +28003,7 @@
|
|
|
27703
28003
|
}
|
|
27704
28004
|
release() {}
|
|
27705
28005
|
};
|
|
27706
|
-
TaroEnvContribution = __decorate$
|
|
28006
|
+
TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
|
|
27707
28007
|
|
|
27708
28008
|
const taroEnvModule = new ContainerModule(bind => {
|
|
27709
28009
|
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
@@ -27718,7 +28018,7 @@
|
|
|
27718
28018
|
loadTaroEnv(container);
|
|
27719
28019
|
}
|
|
27720
28020
|
|
|
27721
|
-
var __decorate$
|
|
28021
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27722
28022
|
var d,
|
|
27723
28023
|
c = arguments.length,
|
|
27724
28024
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27731,16 +28031,16 @@
|
|
|
27731
28031
|
return null;
|
|
27732
28032
|
}
|
|
27733
28033
|
};
|
|
27734
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
28034
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
|
|
27735
28035
|
|
|
27736
|
-
var __decorate$
|
|
28036
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27737
28037
|
var d,
|
|
27738
28038
|
c = arguments.length,
|
|
27739
28039
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27740
28040
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27741
28041
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27742
28042
|
},
|
|
27743
|
-
__metadata$
|
|
28043
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
27744
28044
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27745
28045
|
};
|
|
27746
28046
|
let WxCanvas = class extends BaseCanvas {
|
|
@@ -27752,21 +28052,21 @@
|
|
|
27752
28052
|
}
|
|
27753
28053
|
release() {}
|
|
27754
28054
|
};
|
|
27755
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
28055
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
|
|
27756
28056
|
|
|
27757
28057
|
const wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
27758
28058
|
|
|
27759
|
-
var __decorate$
|
|
28059
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27760
28060
|
var d,
|
|
27761
28061
|
c = arguments.length,
|
|
27762
28062
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27763
28063
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27764
28064
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27765
28065
|
},
|
|
27766
|
-
__metadata$
|
|
28066
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
27767
28067
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27768
28068
|
},
|
|
27769
|
-
__param$
|
|
28069
|
+
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27770
28070
|
return function (target, key) {
|
|
27771
28071
|
decorator(target, key, paramIndex);
|
|
27772
28072
|
};
|
|
@@ -27903,19 +28203,19 @@
|
|
|
27903
28203
|
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();
|
|
27904
28204
|
}
|
|
27905
28205
|
};
|
|
27906
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
28206
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
27907
28207
|
const wxWindowModule = new ContainerModule(bind => {
|
|
27908
28208
|
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
27909
28209
|
});
|
|
27910
28210
|
|
|
27911
|
-
var __decorate$
|
|
28211
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27912
28212
|
var d,
|
|
27913
28213
|
c = arguments.length,
|
|
27914
28214
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27915
28215
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27916
28216
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27917
28217
|
},
|
|
27918
|
-
__metadata$
|
|
28218
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
27919
28219
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27920
28220
|
},
|
|
27921
28221
|
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28029,7 +28329,7 @@
|
|
|
28029
28329
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28030
28330
|
}
|
|
28031
28331
|
};
|
|
28032
|
-
WxEnvContribution = __decorate$
|
|
28332
|
+
WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
|
|
28033
28333
|
|
|
28034
28334
|
const wxEnvModule = new ContainerModule(bind => {
|
|
28035
28335
|
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
@@ -28057,7 +28357,7 @@
|
|
|
28057
28357
|
loadAllEnv(container);
|
|
28058
28358
|
}
|
|
28059
28359
|
|
|
28060
|
-
var __decorate$
|
|
28360
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28061
28361
|
var d,
|
|
28062
28362
|
c = arguments.length,
|
|
28063
28363
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28065,16 +28365,16 @@
|
|
|
28065
28365
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28066
28366
|
};
|
|
28067
28367
|
let TTContext2d = class extends FeishuContext2d {};
|
|
28068
|
-
TTContext2d.env = "tt", TTContext2d = __decorate$
|
|
28368
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
|
|
28069
28369
|
|
|
28070
|
-
var __decorate$
|
|
28370
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28071
28371
|
var d,
|
|
28072
28372
|
c = arguments.length,
|
|
28073
28373
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28074
28374
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28075
28375
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28076
28376
|
},
|
|
28077
|
-
__metadata$
|
|
28377
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
28078
28378
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28079
28379
|
};
|
|
28080
28380
|
let TTCanvas = class extends BaseCanvas {
|
|
@@ -28086,21 +28386,21 @@
|
|
|
28086
28386
|
}
|
|
28087
28387
|
release() {}
|
|
28088
28388
|
};
|
|
28089
|
-
TTCanvas.env = "tt", TTCanvas = __decorate$
|
|
28389
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
|
|
28090
28390
|
|
|
28091
28391
|
const ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
28092
28392
|
|
|
28093
|
-
var __decorate$
|
|
28393
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28094
28394
|
var d,
|
|
28095
28395
|
c = arguments.length,
|
|
28096
28396
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28097
28397
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28098
28398
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28099
28399
|
},
|
|
28100
|
-
__metadata$
|
|
28400
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
28101
28401
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28102
28402
|
},
|
|
28103
|
-
__param$
|
|
28403
|
+
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28104
28404
|
return function (target, key) {
|
|
28105
28405
|
decorator(target, key, paramIndex);
|
|
28106
28406
|
};
|
|
@@ -28236,19 +28536,19 @@
|
|
|
28236
28536
|
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();
|
|
28237
28537
|
}
|
|
28238
28538
|
};
|
|
28239
|
-
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$
|
|
28539
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
28240
28540
|
const ttWindowModule = new ContainerModule(bind => {
|
|
28241
28541
|
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
28242
28542
|
});
|
|
28243
28543
|
|
|
28244
|
-
var __decorate$
|
|
28544
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28245
28545
|
var d,
|
|
28246
28546
|
c = arguments.length,
|
|
28247
28547
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28248
28548
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28249
28549
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28250
28550
|
},
|
|
28251
|
-
__metadata$
|
|
28551
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
28252
28552
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28253
28553
|
},
|
|
28254
28554
|
__awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28358,7 +28658,7 @@
|
|
|
28358
28658
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28359
28659
|
}
|
|
28360
28660
|
};
|
|
28361
|
-
TTEnvContribution = __decorate$
|
|
28661
|
+
TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
|
|
28362
28662
|
|
|
28363
28663
|
const ttEnvModule = new ContainerModule(bind => {
|
|
28364
28664
|
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
@@ -28373,7 +28673,7 @@
|
|
|
28373
28673
|
loadTTEnv(container);
|
|
28374
28674
|
}
|
|
28375
28675
|
|
|
28376
|
-
var __decorate$
|
|
28676
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28377
28677
|
var d,
|
|
28378
28678
|
c = arguments.length,
|
|
28379
28679
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28458,16 +28758,16 @@
|
|
|
28458
28758
|
}
|
|
28459
28759
|
draw() {}
|
|
28460
28760
|
};
|
|
28461
|
-
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$
|
|
28761
|
+
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
|
|
28462
28762
|
|
|
28463
|
-
var __decorate$
|
|
28763
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28464
28764
|
var d,
|
|
28465
28765
|
c = arguments.length,
|
|
28466
28766
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28467
28767
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28468
28768
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28469
28769
|
},
|
|
28470
|
-
__metadata$
|
|
28770
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
28471
28771
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28472
28772
|
};
|
|
28473
28773
|
let HarmonyCanvas = class extends BaseCanvas {
|
|
@@ -28480,19 +28780,19 @@
|
|
|
28480
28780
|
resize(width, height) {}
|
|
28481
28781
|
release() {}
|
|
28482
28782
|
};
|
|
28483
|
-
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$
|
|
28783
|
+
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
|
|
28484
28784
|
|
|
28485
|
-
var __decorate$
|
|
28785
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28486
28786
|
var d,
|
|
28487
28787
|
c = arguments.length,
|
|
28488
28788
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28489
28789
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28490
28790
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28491
28791
|
},
|
|
28492
|
-
__metadata$
|
|
28792
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
28493
28793
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28494
28794
|
},
|
|
28495
|
-
__param$
|
|
28795
|
+
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28496
28796
|
return function (target, key) {
|
|
28497
28797
|
decorator(target, key, paramIndex);
|
|
28498
28798
|
};
|
|
@@ -28629,21 +28929,21 @@
|
|
|
28629
28929
|
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();
|
|
28630
28930
|
}
|
|
28631
28931
|
};
|
|
28632
|
-
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$
|
|
28932
|
+
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
|
|
28633
28933
|
const harmonyWindowModule = new ContainerModule(bind => {
|
|
28634
28934
|
bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
|
|
28635
28935
|
});
|
|
28636
28936
|
|
|
28637
28937
|
const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
|
|
28638
28938
|
|
|
28639
|
-
var __decorate$
|
|
28939
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28640
28940
|
var d,
|
|
28641
28941
|
c = arguments.length,
|
|
28642
28942
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28643
28943
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28644
28944
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28645
28945
|
},
|
|
28646
|
-
__metadata$
|
|
28946
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
28647
28947
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28648
28948
|
};
|
|
28649
28949
|
function createCanvas(width, height, id) {
|
|
@@ -28724,7 +29024,7 @@
|
|
|
28724
29024
|
}
|
|
28725
29025
|
release() {}
|
|
28726
29026
|
};
|
|
28727
|
-
HarmonyEnvContribution = __decorate$
|
|
29027
|
+
HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
|
|
28728
29028
|
|
|
28729
29029
|
const harmonyEnvModule = new ContainerModule(bind => {
|
|
28730
29030
|
harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
|
|
@@ -28739,17 +29039,17 @@
|
|
|
28739
29039
|
loadHarmonyEnv(container);
|
|
28740
29040
|
}
|
|
28741
29041
|
|
|
28742
|
-
var __decorate$
|
|
29042
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28743
29043
|
var d,
|
|
28744
29044
|
c = arguments.length,
|
|
28745
29045
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28746
29046
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28747
29047
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28748
29048
|
},
|
|
28749
|
-
__metadata$
|
|
29049
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
28750
29050
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28751
29051
|
},
|
|
28752
|
-
__param$
|
|
29052
|
+
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28753
29053
|
return function (target, key) {
|
|
28754
29054
|
decorator(target, key, paramIndex);
|
|
28755
29055
|
};
|
|
@@ -28759,24 +29059,24 @@
|
|
|
28759
29059
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
28760
29060
|
}
|
|
28761
29061
|
};
|
|
28762
|
-
DefaultCanvasArcPicker = __decorate$
|
|
29062
|
+
DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
28763
29063
|
|
|
28764
29064
|
let loadArcPick = !1;
|
|
28765
29065
|
const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28766
29066
|
loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
|
|
28767
29067
|
});
|
|
28768
29068
|
|
|
28769
|
-
var __decorate$
|
|
29069
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28770
29070
|
var d,
|
|
28771
29071
|
c = arguments.length,
|
|
28772
29072
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28773
29073
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28774
29074
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28775
29075
|
},
|
|
28776
|
-
__metadata$
|
|
29076
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
28777
29077
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28778
29078
|
},
|
|
28779
|
-
__param$
|
|
29079
|
+
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28780
29080
|
return function (target, key) {
|
|
28781
29081
|
decorator(target, key, paramIndex);
|
|
28782
29082
|
};
|
|
@@ -28786,7 +29086,7 @@
|
|
|
28786
29086
|
super(), this.canvasRenderer = canvasRenderer;
|
|
28787
29087
|
}
|
|
28788
29088
|
};
|
|
28789
|
-
DefaultCanvasRectPicker = __decorate$
|
|
29089
|
+
DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
28790
29090
|
|
|
28791
29091
|
let loadRectPick = !1;
|
|
28792
29092
|
const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -28828,17 +29128,17 @@
|
|
|
28828
29128
|
}
|
|
28829
29129
|
}
|
|
28830
29130
|
|
|
28831
|
-
var __decorate$
|
|
29131
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28832
29132
|
var d,
|
|
28833
29133
|
c = arguments.length,
|
|
28834
29134
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28835
29135
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28836
29136
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28837
29137
|
},
|
|
28838
|
-
__metadata$
|
|
29138
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
28839
29139
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28840
29140
|
},
|
|
28841
|
-
__param$
|
|
29141
|
+
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28842
29142
|
return function (target, key) {
|
|
28843
29143
|
decorator(target, key, paramIndex);
|
|
28844
29144
|
};
|
|
@@ -28848,24 +29148,24 @@
|
|
|
28848
29148
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
28849
29149
|
}
|
|
28850
29150
|
};
|
|
28851
|
-
DefaultCanvasLinePicker = __decorate$
|
|
29151
|
+
DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
28852
29152
|
|
|
28853
29153
|
let loadLinePick = !1;
|
|
28854
29154
|
const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28855
29155
|
loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
|
|
28856
29156
|
});
|
|
28857
29157
|
|
|
28858
|
-
var __decorate$
|
|
29158
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28859
29159
|
var d,
|
|
28860
29160
|
c = arguments.length,
|
|
28861
29161
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28862
29162
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28863
29163
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28864
29164
|
},
|
|
28865
|
-
__metadata$
|
|
29165
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
28866
29166
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28867
29167
|
},
|
|
28868
|
-
__param$
|
|
29168
|
+
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28869
29169
|
return function (target, key) {
|
|
28870
29170
|
decorator(target, key, paramIndex);
|
|
28871
29171
|
};
|
|
@@ -28875,7 +29175,7 @@
|
|
|
28875
29175
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
28876
29176
|
}
|
|
28877
29177
|
};
|
|
28878
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
29178
|
+
DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
28879
29179
|
|
|
28880
29180
|
let loadAreaPick = !1;
|
|
28881
29181
|
const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -28909,17 +29209,17 @@
|
|
|
28909
29209
|
}
|
|
28910
29210
|
}
|
|
28911
29211
|
|
|
28912
|
-
var __decorate$
|
|
29212
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28913
29213
|
var d,
|
|
28914
29214
|
c = arguments.length,
|
|
28915
29215
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28916
29216
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28917
29217
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28918
29218
|
},
|
|
28919
|
-
__metadata$
|
|
29219
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
28920
29220
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28921
29221
|
},
|
|
28922
|
-
__param$
|
|
29222
|
+
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28923
29223
|
return function (target, key) {
|
|
28924
29224
|
decorator(target, key, paramIndex);
|
|
28925
29225
|
};
|
|
@@ -28964,24 +29264,24 @@
|
|
|
28964
29264
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
28965
29265
|
}
|
|
28966
29266
|
};
|
|
28967
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
29267
|
+
DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
28968
29268
|
|
|
28969
29269
|
let loadSymbolPick = !1;
|
|
28970
29270
|
const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28971
29271
|
loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
|
|
28972
29272
|
});
|
|
28973
29273
|
|
|
28974
|
-
var __decorate$
|
|
29274
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28975
29275
|
var d,
|
|
28976
29276
|
c = arguments.length,
|
|
28977
29277
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28978
29278
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28979
29279
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28980
29280
|
},
|
|
28981
|
-
__metadata$
|
|
29281
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
28982
29282
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28983
29283
|
},
|
|
28984
|
-
__param$
|
|
29284
|
+
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28985
29285
|
return function (target, key) {
|
|
28986
29286
|
decorator(target, key, paramIndex);
|
|
28987
29287
|
};
|
|
@@ -28991,24 +29291,24 @@
|
|
|
28991
29291
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
28992
29292
|
}
|
|
28993
29293
|
};
|
|
28994
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
29294
|
+
DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
28995
29295
|
|
|
28996
29296
|
let loadCirclePick = !1;
|
|
28997
29297
|
const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28998
29298
|
loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
|
|
28999
29299
|
});
|
|
29000
29300
|
|
|
29001
|
-
var __decorate$
|
|
29301
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29002
29302
|
var d,
|
|
29003
29303
|
c = arguments.length,
|
|
29004
29304
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29005
29305
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29006
29306
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29007
29307
|
},
|
|
29008
|
-
__metadata$
|
|
29308
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
29009
29309
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29010
29310
|
},
|
|
29011
|
-
__param$
|
|
29311
|
+
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29012
29312
|
return function (target, key) {
|
|
29013
29313
|
decorator(target, key, paramIndex);
|
|
29014
29314
|
};
|
|
@@ -29061,24 +29361,24 @@
|
|
|
29061
29361
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29062
29362
|
}
|
|
29063
29363
|
};
|
|
29064
|
-
DefaultCanvasTextPicker = __decorate$
|
|
29364
|
+
DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
29065
29365
|
|
|
29066
29366
|
let loadTextPick = !1;
|
|
29067
29367
|
const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29068
29368
|
loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
|
|
29069
29369
|
});
|
|
29070
29370
|
|
|
29071
|
-
var __decorate$
|
|
29371
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29072
29372
|
var d,
|
|
29073
29373
|
c = arguments.length,
|
|
29074
29374
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29075
29375
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29076
29376
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29077
29377
|
},
|
|
29078
|
-
__metadata$
|
|
29378
|
+
__metadata$7 = undefined && undefined.__metadata || function (k, v) {
|
|
29079
29379
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29080
29380
|
},
|
|
29081
|
-
__param$
|
|
29381
|
+
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29082
29382
|
return function (target, key) {
|
|
29083
29383
|
decorator(target, key, paramIndex);
|
|
29084
29384
|
};
|
|
@@ -29088,24 +29388,24 @@
|
|
|
29088
29388
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
29089
29389
|
}
|
|
29090
29390
|
};
|
|
29091
|
-
DefaultCanvasPathPicker = __decorate$
|
|
29391
|
+
DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
29092
29392
|
|
|
29093
29393
|
let loadPathPick = !1;
|
|
29094
29394
|
const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29095
29395
|
loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
|
|
29096
29396
|
});
|
|
29097
29397
|
|
|
29098
|
-
var __decorate$
|
|
29398
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29099
29399
|
var d,
|
|
29100
29400
|
c = arguments.length,
|
|
29101
29401
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29102
29402
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29103
29403
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29104
29404
|
},
|
|
29105
|
-
__metadata$
|
|
29405
|
+
__metadata$6 = undefined && undefined.__metadata || function (k, v) {
|
|
29106
29406
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29107
29407
|
},
|
|
29108
|
-
__param$
|
|
29408
|
+
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29109
29409
|
return function (target, key) {
|
|
29110
29410
|
decorator(target, key, paramIndex);
|
|
29111
29411
|
};
|
|
@@ -29115,24 +29415,24 @@
|
|
|
29115
29415
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
29116
29416
|
}
|
|
29117
29417
|
};
|
|
29118
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
29418
|
+
DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
29119
29419
|
|
|
29120
29420
|
let loadPolygonPick = !1;
|
|
29121
29421
|
const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29122
29422
|
loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
|
|
29123
29423
|
});
|
|
29124
29424
|
|
|
29125
|
-
var __decorate$
|
|
29425
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29126
29426
|
var d,
|
|
29127
29427
|
c = arguments.length,
|
|
29128
29428
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29129
29429
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29130
29430
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29131
29431
|
},
|
|
29132
|
-
__metadata$
|
|
29432
|
+
__metadata$5 = undefined && undefined.__metadata || function (k, v) {
|
|
29133
29433
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29134
29434
|
},
|
|
29135
|
-
__param$
|
|
29435
|
+
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29136
29436
|
return function (target, key) {
|
|
29137
29437
|
decorator(target, key, paramIndex);
|
|
29138
29438
|
};
|
|
@@ -29142,24 +29442,24 @@
|
|
|
29142
29442
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29143
29443
|
}
|
|
29144
29444
|
};
|
|
29145
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
29445
|
+
DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
29146
29446
|
|
|
29147
29447
|
let loadGlyphPick = !1;
|
|
29148
29448
|
const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29149
29449
|
loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
|
|
29150
29450
|
});
|
|
29151
29451
|
|
|
29152
|
-
var __decorate$
|
|
29452
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29153
29453
|
var d,
|
|
29154
29454
|
c = arguments.length,
|
|
29155
29455
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29156
29456
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29157
29457
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29158
29458
|
},
|
|
29159
|
-
__metadata$
|
|
29459
|
+
__metadata$4 = undefined && undefined.__metadata || function (k, v) {
|
|
29160
29460
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29161
29461
|
},
|
|
29162
|
-
__param$
|
|
29462
|
+
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29163
29463
|
return function (target, key) {
|
|
29164
29464
|
decorator(target, key, paramIndex);
|
|
29165
29465
|
};
|
|
@@ -29172,14 +29472,14 @@
|
|
|
29172
29472
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
29173
29473
|
}
|
|
29174
29474
|
};
|
|
29175
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
29475
|
+
DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
29176
29476
|
|
|
29177
29477
|
let loadRichtextPick = !1;
|
|
29178
29478
|
const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29179
29479
|
loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
|
|
29180
29480
|
});
|
|
29181
29481
|
|
|
29182
|
-
var __decorate$
|
|
29482
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29183
29483
|
var d,
|
|
29184
29484
|
c = arguments.length,
|
|
29185
29485
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29197,24 +29497,24 @@
|
|
|
29197
29497
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
29198
29498
|
}
|
|
29199
29499
|
};
|
|
29200
|
-
DefaultCanvasImagePicker = __decorate$
|
|
29500
|
+
DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
|
|
29201
29501
|
|
|
29202
29502
|
let loadImagePick = !1;
|
|
29203
29503
|
const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29204
29504
|
loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
|
|
29205
29505
|
});
|
|
29206
29506
|
|
|
29207
|
-
var __decorate$
|
|
29507
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29208
29508
|
var d,
|
|
29209
29509
|
c = arguments.length,
|
|
29210
29510
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29211
29511
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29212
29512
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29213
29513
|
},
|
|
29214
|
-
__metadata$
|
|
29514
|
+
__metadata$3 = undefined && undefined.__metadata || function (k, v) {
|
|
29215
29515
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29216
29516
|
},
|
|
29217
|
-
__param$
|
|
29517
|
+
__param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29218
29518
|
return function (target, key) {
|
|
29219
29519
|
decorator(target, key, paramIndex);
|
|
29220
29520
|
};
|
|
@@ -29224,24 +29524,24 @@
|
|
|
29224
29524
|
super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
|
|
29225
29525
|
}
|
|
29226
29526
|
};
|
|
29227
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
29527
|
+
DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
29228
29528
|
|
|
29229
29529
|
let loadRect3dPick = !1;
|
|
29230
29530
|
const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29231
29531
|
loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
|
|
29232
29532
|
});
|
|
29233
29533
|
|
|
29234
|
-
var __decorate$
|
|
29534
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29235
29535
|
var d,
|
|
29236
29536
|
c = arguments.length,
|
|
29237
29537
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29238
29538
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29239
29539
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29240
29540
|
},
|
|
29241
|
-
__metadata$
|
|
29541
|
+
__metadata$2 = undefined && undefined.__metadata || function (k, v) {
|
|
29242
29542
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29243
29543
|
},
|
|
29244
|
-
__param$
|
|
29544
|
+
__param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29245
29545
|
return function (target, key) {
|
|
29246
29546
|
decorator(target, key, paramIndex);
|
|
29247
29547
|
};
|
|
@@ -29251,24 +29551,24 @@
|
|
|
29251
29551
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
|
|
29252
29552
|
}
|
|
29253
29553
|
};
|
|
29254
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
29554
|
+
DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
29255
29555
|
|
|
29256
29556
|
let loadArc3dPick = !1;
|
|
29257
29557
|
const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29258
29558
|
loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
|
|
29259
29559
|
});
|
|
29260
29560
|
|
|
29261
|
-
var __decorate$
|
|
29561
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29262
29562
|
var d,
|
|
29263
29563
|
c = arguments.length,
|
|
29264
29564
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29265
29565
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29266
29566
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29267
29567
|
},
|
|
29268
|
-
__metadata$
|
|
29568
|
+
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
29269
29569
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29270
29570
|
},
|
|
29271
|
-
__param$
|
|
29571
|
+
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29272
29572
|
return function (target, key) {
|
|
29273
29573
|
decorator(target, key, paramIndex);
|
|
29274
29574
|
};
|
|
@@ -29278,724 +29578,15 @@
|
|
|
29278
29578
|
super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
|
|
29279
29579
|
}
|
|
29280
29580
|
};
|
|
29281
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
29581
|
+
DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
29282
29582
|
|
|
29283
29583
|
let loadPyramid3dPick = !1;
|
|
29284
29584
|
const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29285
29585
|
loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
|
|
29286
29586
|
});
|
|
29287
29587
|
|
|
29288
|
-
var lib$1 = {};
|
|
29289
|
-
|
|
29290
|
-
var gif = {};
|
|
29291
|
-
|
|
29292
|
-
var lib = {};
|
|
29293
|
-
|
|
29294
|
-
Object.defineProperty(lib, "__esModule", {
|
|
29295
|
-
value: true
|
|
29296
|
-
});
|
|
29297
|
-
lib.loop = lib.conditional = lib.parse = void 0;
|
|
29298
|
-
var parse = function parse(stream, schema) {
|
|
29299
|
-
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
29300
|
-
var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
|
|
29301
|
-
if (Array.isArray(schema)) {
|
|
29302
|
-
schema.forEach(function (partSchema) {
|
|
29303
|
-
return parse(stream, partSchema, result, parent);
|
|
29304
|
-
});
|
|
29305
|
-
} else if (typeof schema === 'function') {
|
|
29306
|
-
schema(stream, result, parent, parse);
|
|
29307
|
-
} else {
|
|
29308
|
-
var key = Object.keys(schema)[0];
|
|
29309
|
-
if (Array.isArray(schema[key])) {
|
|
29310
|
-
parent[key] = {};
|
|
29311
|
-
parse(stream, schema[key], result, parent[key]);
|
|
29312
|
-
} else {
|
|
29313
|
-
parent[key] = schema[key](stream, result, parent, parse);
|
|
29314
|
-
}
|
|
29315
|
-
}
|
|
29316
|
-
return result;
|
|
29317
|
-
};
|
|
29318
|
-
lib.parse = parse;
|
|
29319
|
-
var conditional = function conditional(schema, conditionFunc) {
|
|
29320
|
-
return function (stream, result, parent, parse) {
|
|
29321
|
-
if (conditionFunc(stream, result, parent)) {
|
|
29322
|
-
parse(stream, schema, result, parent);
|
|
29323
|
-
}
|
|
29324
|
-
};
|
|
29325
|
-
};
|
|
29326
|
-
lib.conditional = conditional;
|
|
29327
|
-
var loop = function loop(schema, continueFunc) {
|
|
29328
|
-
return function (stream, result, parent, parse) {
|
|
29329
|
-
var arr = [];
|
|
29330
|
-
var lastStreamPos = stream.pos;
|
|
29331
|
-
while (continueFunc(stream, result, parent)) {
|
|
29332
|
-
var newParent = {};
|
|
29333
|
-
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
|
|
29334
|
-
// it falls into infinite recursion, null check to avoid the same
|
|
29335
|
-
|
|
29336
|
-
if (stream.pos === lastStreamPos) {
|
|
29337
|
-
break;
|
|
29338
|
-
}
|
|
29339
|
-
lastStreamPos = stream.pos;
|
|
29340
|
-
arr.push(newParent);
|
|
29341
|
-
}
|
|
29342
|
-
return arr;
|
|
29343
|
-
};
|
|
29344
|
-
};
|
|
29345
|
-
lib.loop = loop;
|
|
29346
|
-
|
|
29347
|
-
var uint8 = {};
|
|
29348
|
-
|
|
29349
|
-
Object.defineProperty(uint8, "__esModule", {
|
|
29350
|
-
value: true
|
|
29351
|
-
});
|
|
29352
|
-
uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
|
|
29353
|
-
|
|
29354
|
-
// Default stream and parsers for Uint8TypedArray data type
|
|
29355
|
-
var buildStream = function buildStream(uint8Data) {
|
|
29356
|
-
return {
|
|
29357
|
-
data: uint8Data,
|
|
29358
|
-
pos: 0
|
|
29359
|
-
};
|
|
29360
|
-
};
|
|
29361
|
-
uint8.buildStream = buildStream;
|
|
29362
|
-
var readByte = function readByte() {
|
|
29363
|
-
return function (stream) {
|
|
29364
|
-
return stream.data[stream.pos++];
|
|
29365
|
-
};
|
|
29366
|
-
};
|
|
29367
|
-
uint8.readByte = readByte;
|
|
29368
|
-
var peekByte = function peekByte() {
|
|
29369
|
-
var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
29370
|
-
return function (stream) {
|
|
29371
|
-
return stream.data[stream.pos + offset];
|
|
29372
|
-
};
|
|
29373
|
-
};
|
|
29374
|
-
uint8.peekByte = peekByte;
|
|
29375
|
-
var readBytes = function readBytes(length) {
|
|
29376
|
-
return function (stream) {
|
|
29377
|
-
return stream.data.subarray(stream.pos, stream.pos += length);
|
|
29378
|
-
};
|
|
29379
|
-
};
|
|
29380
|
-
uint8.readBytes = readBytes;
|
|
29381
|
-
var peekBytes = function peekBytes(length) {
|
|
29382
|
-
return function (stream) {
|
|
29383
|
-
return stream.data.subarray(stream.pos, stream.pos + length);
|
|
29384
|
-
};
|
|
29385
|
-
};
|
|
29386
|
-
uint8.peekBytes = peekBytes;
|
|
29387
|
-
var readString = function readString(length) {
|
|
29388
|
-
return function (stream) {
|
|
29389
|
-
return Array.from(readBytes(length)(stream)).map(function (value) {
|
|
29390
|
-
return String.fromCharCode(value);
|
|
29391
|
-
}).join('');
|
|
29392
|
-
};
|
|
29393
|
-
};
|
|
29394
|
-
uint8.readString = readString;
|
|
29395
|
-
var readUnsigned = function readUnsigned(littleEndian) {
|
|
29396
|
-
return function (stream) {
|
|
29397
|
-
var bytes = readBytes(2)(stream);
|
|
29398
|
-
return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
|
|
29399
|
-
};
|
|
29400
|
-
};
|
|
29401
|
-
uint8.readUnsigned = readUnsigned;
|
|
29402
|
-
var readArray = function readArray(byteSize, totalOrFunc) {
|
|
29403
|
-
return function (stream, result, parent) {
|
|
29404
|
-
var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
|
|
29405
|
-
var parser = readBytes(byteSize);
|
|
29406
|
-
var arr = new Array(total);
|
|
29407
|
-
for (var i = 0; i < total; i++) {
|
|
29408
|
-
arr[i] = parser(stream);
|
|
29409
|
-
}
|
|
29410
|
-
return arr;
|
|
29411
|
-
};
|
|
29412
|
-
};
|
|
29413
|
-
uint8.readArray = readArray;
|
|
29414
|
-
var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
|
|
29415
|
-
var result = 0;
|
|
29416
|
-
for (var i = 0; i < length; i++) {
|
|
29417
|
-
result += bits[startIndex + i] && Math.pow(2, length - i - 1);
|
|
29418
|
-
}
|
|
29419
|
-
return result;
|
|
29420
|
-
};
|
|
29421
|
-
var readBits = function readBits(schema) {
|
|
29422
|
-
return function (stream) {
|
|
29423
|
-
var _byte = readByte()(stream); // convert the byte to bit array
|
|
29424
|
-
|
|
29425
|
-
var bits = new Array(8);
|
|
29426
|
-
for (var i = 0; i < 8; i++) {
|
|
29427
|
-
bits[7 - i] = !!(_byte & 1 << i);
|
|
29428
|
-
} // convert the bit array to values based on the schema
|
|
29429
|
-
|
|
29430
|
-
return Object.keys(schema).reduce(function (res, key) {
|
|
29431
|
-
var def = schema[key];
|
|
29432
|
-
if (def.length) {
|
|
29433
|
-
res[key] = subBitsTotal(bits, def.index, def.length);
|
|
29434
|
-
} else {
|
|
29435
|
-
res[key] = bits[def.index];
|
|
29436
|
-
}
|
|
29437
|
-
return res;
|
|
29438
|
-
}, {});
|
|
29439
|
-
};
|
|
29440
|
-
};
|
|
29441
|
-
uint8.readBits = readBits;
|
|
29442
|
-
|
|
29443
|
-
(function (exports) {
|
|
29444
|
-
|
|
29445
|
-
Object.defineProperty(exports, "__esModule", {
|
|
29446
|
-
value: true
|
|
29447
|
-
});
|
|
29448
|
-
exports["default"] = void 0;
|
|
29449
|
-
var _ = lib;
|
|
29450
|
-
var _uint = uint8;
|
|
29451
|
-
|
|
29452
|
-
// a set of 0x00 terminated subblocks
|
|
29453
|
-
var subBlocksSchema = {
|
|
29454
|
-
blocks: function blocks(stream) {
|
|
29455
|
-
var terminator = 0x00;
|
|
29456
|
-
var chunks = [];
|
|
29457
|
-
var streamSize = stream.data.length;
|
|
29458
|
-
var total = 0;
|
|
29459
|
-
for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
|
|
29460
|
-
// size becomes undefined for some case when file is corrupted and terminator is not proper
|
|
29461
|
-
// null check to avoid recursion
|
|
29462
|
-
if (!size) break; // catch corrupted files with no terminator
|
|
29463
|
-
|
|
29464
|
-
if (stream.pos + size >= streamSize) {
|
|
29465
|
-
var availableSize = streamSize - stream.pos;
|
|
29466
|
-
chunks.push((0, _uint.readBytes)(availableSize)(stream));
|
|
29467
|
-
total += availableSize;
|
|
29468
|
-
break;
|
|
29469
|
-
}
|
|
29470
|
-
chunks.push((0, _uint.readBytes)(size)(stream));
|
|
29471
|
-
total += size;
|
|
29472
|
-
}
|
|
29473
|
-
var result = new Uint8Array(total);
|
|
29474
|
-
var offset = 0;
|
|
29475
|
-
for (var i = 0; i < chunks.length; i++) {
|
|
29476
|
-
result.set(chunks[i], offset);
|
|
29477
|
-
offset += chunks[i].length;
|
|
29478
|
-
}
|
|
29479
|
-
return result;
|
|
29480
|
-
}
|
|
29481
|
-
}; // global control extension
|
|
29482
|
-
|
|
29483
|
-
var gceSchema = (0, _.conditional)({
|
|
29484
|
-
gce: [{
|
|
29485
|
-
codes: (0, _uint.readBytes)(2)
|
|
29486
|
-
}, {
|
|
29487
|
-
byteSize: (0, _uint.readByte)()
|
|
29488
|
-
}, {
|
|
29489
|
-
extras: (0, _uint.readBits)({
|
|
29490
|
-
future: {
|
|
29491
|
-
index: 0,
|
|
29492
|
-
length: 3
|
|
29493
|
-
},
|
|
29494
|
-
disposal: {
|
|
29495
|
-
index: 3,
|
|
29496
|
-
length: 3
|
|
29497
|
-
},
|
|
29498
|
-
userInput: {
|
|
29499
|
-
index: 6
|
|
29500
|
-
},
|
|
29501
|
-
transparentColorGiven: {
|
|
29502
|
-
index: 7
|
|
29503
|
-
}
|
|
29504
|
-
})
|
|
29505
|
-
}, {
|
|
29506
|
-
delay: (0, _uint.readUnsigned)(true)
|
|
29507
|
-
}, {
|
|
29508
|
-
transparentColorIndex: (0, _uint.readByte)()
|
|
29509
|
-
}, {
|
|
29510
|
-
terminator: (0, _uint.readByte)()
|
|
29511
|
-
}]
|
|
29512
|
-
}, function (stream) {
|
|
29513
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29514
|
-
return codes[0] === 0x21 && codes[1] === 0xf9;
|
|
29515
|
-
}); // image pipeline block
|
|
29516
|
-
|
|
29517
|
-
var imageSchema = (0, _.conditional)({
|
|
29518
|
-
image: [{
|
|
29519
|
-
code: (0, _uint.readByte)()
|
|
29520
|
-
}, {
|
|
29521
|
-
descriptor: [{
|
|
29522
|
-
left: (0, _uint.readUnsigned)(true)
|
|
29523
|
-
}, {
|
|
29524
|
-
top: (0, _uint.readUnsigned)(true)
|
|
29525
|
-
}, {
|
|
29526
|
-
width: (0, _uint.readUnsigned)(true)
|
|
29527
|
-
}, {
|
|
29528
|
-
height: (0, _uint.readUnsigned)(true)
|
|
29529
|
-
}, {
|
|
29530
|
-
lct: (0, _uint.readBits)({
|
|
29531
|
-
exists: {
|
|
29532
|
-
index: 0
|
|
29533
|
-
},
|
|
29534
|
-
interlaced: {
|
|
29535
|
-
index: 1
|
|
29536
|
-
},
|
|
29537
|
-
sort: {
|
|
29538
|
-
index: 2
|
|
29539
|
-
},
|
|
29540
|
-
future: {
|
|
29541
|
-
index: 3,
|
|
29542
|
-
length: 2
|
|
29543
|
-
},
|
|
29544
|
-
size: {
|
|
29545
|
-
index: 5,
|
|
29546
|
-
length: 3
|
|
29547
|
-
}
|
|
29548
|
-
})
|
|
29549
|
-
}]
|
|
29550
|
-
}, (0, _.conditional)({
|
|
29551
|
-
lct: (0, _uint.readArray)(3, function (stream, result, parent) {
|
|
29552
|
-
return Math.pow(2, parent.descriptor.lct.size + 1);
|
|
29553
|
-
})
|
|
29554
|
-
}, function (stream, result, parent) {
|
|
29555
|
-
return parent.descriptor.lct.exists;
|
|
29556
|
-
}), {
|
|
29557
|
-
data: [{
|
|
29558
|
-
minCodeSize: (0, _uint.readByte)()
|
|
29559
|
-
}, subBlocksSchema]
|
|
29560
|
-
}]
|
|
29561
|
-
}, function (stream) {
|
|
29562
|
-
return (0, _uint.peekByte)()(stream) === 0x2c;
|
|
29563
|
-
}); // plain text block
|
|
29564
|
-
|
|
29565
|
-
var textSchema = (0, _.conditional)({
|
|
29566
|
-
text: [{
|
|
29567
|
-
codes: (0, _uint.readBytes)(2)
|
|
29568
|
-
}, {
|
|
29569
|
-
blockSize: (0, _uint.readByte)()
|
|
29570
|
-
}, {
|
|
29571
|
-
preData: function preData(stream, result, parent) {
|
|
29572
|
-
return (0, _uint.readBytes)(parent.text.blockSize)(stream);
|
|
29573
|
-
}
|
|
29574
|
-
}, subBlocksSchema]
|
|
29575
|
-
}, function (stream) {
|
|
29576
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29577
|
-
return codes[0] === 0x21 && codes[1] === 0x01;
|
|
29578
|
-
}); // application block
|
|
29579
|
-
|
|
29580
|
-
var applicationSchema = (0, _.conditional)({
|
|
29581
|
-
application: [{
|
|
29582
|
-
codes: (0, _uint.readBytes)(2)
|
|
29583
|
-
}, {
|
|
29584
|
-
blockSize: (0, _uint.readByte)()
|
|
29585
|
-
}, {
|
|
29586
|
-
id: function id(stream, result, parent) {
|
|
29587
|
-
return (0, _uint.readString)(parent.blockSize)(stream);
|
|
29588
|
-
}
|
|
29589
|
-
}, subBlocksSchema]
|
|
29590
|
-
}, function (stream) {
|
|
29591
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29592
|
-
return codes[0] === 0x21 && codes[1] === 0xff;
|
|
29593
|
-
}); // comment block
|
|
29594
|
-
|
|
29595
|
-
var commentSchema = (0, _.conditional)({
|
|
29596
|
-
comment: [{
|
|
29597
|
-
codes: (0, _uint.readBytes)(2)
|
|
29598
|
-
}, subBlocksSchema]
|
|
29599
|
-
}, function (stream) {
|
|
29600
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29601
|
-
return codes[0] === 0x21 && codes[1] === 0xfe;
|
|
29602
|
-
});
|
|
29603
|
-
var schema = [{
|
|
29604
|
-
header: [{
|
|
29605
|
-
signature: (0, _uint.readString)(3)
|
|
29606
|
-
}, {
|
|
29607
|
-
version: (0, _uint.readString)(3)
|
|
29608
|
-
}]
|
|
29609
|
-
}, {
|
|
29610
|
-
lsd: [{
|
|
29611
|
-
width: (0, _uint.readUnsigned)(true)
|
|
29612
|
-
}, {
|
|
29613
|
-
height: (0, _uint.readUnsigned)(true)
|
|
29614
|
-
}, {
|
|
29615
|
-
gct: (0, _uint.readBits)({
|
|
29616
|
-
exists: {
|
|
29617
|
-
index: 0
|
|
29618
|
-
},
|
|
29619
|
-
resolution: {
|
|
29620
|
-
index: 1,
|
|
29621
|
-
length: 3
|
|
29622
|
-
},
|
|
29623
|
-
sort: {
|
|
29624
|
-
index: 4
|
|
29625
|
-
},
|
|
29626
|
-
size: {
|
|
29627
|
-
index: 5,
|
|
29628
|
-
length: 3
|
|
29629
|
-
}
|
|
29630
|
-
})
|
|
29631
|
-
}, {
|
|
29632
|
-
backgroundColorIndex: (0, _uint.readByte)()
|
|
29633
|
-
}, {
|
|
29634
|
-
pixelAspectRatio: (0, _uint.readByte)()
|
|
29635
|
-
}]
|
|
29636
|
-
}, (0, _.conditional)({
|
|
29637
|
-
gct: (0, _uint.readArray)(3, function (stream, result) {
|
|
29638
|
-
return Math.pow(2, result.lsd.gct.size + 1);
|
|
29639
|
-
})
|
|
29640
|
-
}, function (stream, result) {
|
|
29641
|
-
return result.lsd.gct.exists;
|
|
29642
|
-
}),
|
|
29643
|
-
// content frames
|
|
29644
|
-
{
|
|
29645
|
-
frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
|
|
29646
|
-
var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
|
|
29647
|
-
// of an ext or image block to avoid infinite loops
|
|
29648
|
-
//var terminator = 0x3B;
|
|
29649
|
-
//return nextCode !== terminator;
|
|
29650
|
-
|
|
29651
|
-
return nextCode === 0x21 || nextCode === 0x2c;
|
|
29652
|
-
})
|
|
29653
|
-
}];
|
|
29654
|
-
var _default = schema;
|
|
29655
|
-
exports["default"] = _default;
|
|
29656
|
-
})(gif);
|
|
29657
|
-
|
|
29658
|
-
var deinterlace$1 = {};
|
|
29659
|
-
|
|
29660
|
-
Object.defineProperty(deinterlace$1, "__esModule", {
|
|
29661
|
-
value: true
|
|
29662
|
-
});
|
|
29663
|
-
deinterlace$1.deinterlace = void 0;
|
|
29664
|
-
|
|
29665
|
-
/**
|
|
29666
|
-
* Deinterlace function from https://github.com/shachaf/jsgif
|
|
29667
|
-
*/
|
|
29668
|
-
var deinterlace = function deinterlace(pixels, width) {
|
|
29669
|
-
var newPixels = new Array(pixels.length);
|
|
29670
|
-
var rows = pixels.length / width;
|
|
29671
|
-
var cpRow = function cpRow(toRow, fromRow) {
|
|
29672
|
-
var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
|
|
29673
|
-
newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
|
|
29674
|
-
}; // See appendix E.
|
|
29675
|
-
|
|
29676
|
-
var offsets = [0, 4, 2, 1];
|
|
29677
|
-
var steps = [8, 8, 4, 2];
|
|
29678
|
-
var fromRow = 0;
|
|
29679
|
-
for (var pass = 0; pass < 4; pass++) {
|
|
29680
|
-
for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
|
|
29681
|
-
cpRow(toRow, fromRow);
|
|
29682
|
-
fromRow++;
|
|
29683
|
-
}
|
|
29684
|
-
}
|
|
29685
|
-
return newPixels;
|
|
29686
|
-
};
|
|
29687
|
-
deinterlace$1.deinterlace = deinterlace;
|
|
29688
|
-
|
|
29689
|
-
var lzw$1 = {};
|
|
29690
|
-
|
|
29691
|
-
Object.defineProperty(lzw$1, "__esModule", {
|
|
29692
|
-
value: true
|
|
29693
|
-
});
|
|
29694
|
-
lzw$1.lzw = void 0;
|
|
29695
|
-
|
|
29696
|
-
/**
|
|
29697
|
-
* javascript port of java LZW decompression
|
|
29698
|
-
* Original java author url: https://gist.github.com/devunwired/4479231
|
|
29699
|
-
*/
|
|
29700
|
-
var lzw = function lzw(minCodeSize, data, pixelCount) {
|
|
29701
|
-
var MAX_STACK_SIZE = 4096;
|
|
29702
|
-
var nullCode = -1;
|
|
29703
|
-
var npix = pixelCount;
|
|
29704
|
-
var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
|
|
29705
|
-
var dstPixels = new Array(pixelCount);
|
|
29706
|
-
var prefix = new Array(MAX_STACK_SIZE);
|
|
29707
|
-
var suffix = new Array(MAX_STACK_SIZE);
|
|
29708
|
-
var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
|
|
29709
|
-
|
|
29710
|
-
data_size = minCodeSize;
|
|
29711
|
-
clear = 1 << data_size;
|
|
29712
|
-
end_of_information = clear + 1;
|
|
29713
|
-
available = clear + 2;
|
|
29714
|
-
old_code = nullCode;
|
|
29715
|
-
code_size = data_size + 1;
|
|
29716
|
-
code_mask = (1 << code_size) - 1;
|
|
29717
|
-
for (code = 0; code < clear; code++) {
|
|
29718
|
-
prefix[code] = 0;
|
|
29719
|
-
suffix[code] = code;
|
|
29720
|
-
} // Decode GIF pixel stream.
|
|
29721
|
-
|
|
29722
|
-
var datum, bits, first, top, pi, bi;
|
|
29723
|
-
datum = bits = first = top = pi = bi = 0;
|
|
29724
|
-
for (i = 0; i < npix;) {
|
|
29725
|
-
if (top === 0) {
|
|
29726
|
-
if (bits < code_size) {
|
|
29727
|
-
// get the next byte
|
|
29728
|
-
datum += data[bi] << bits;
|
|
29729
|
-
bits += 8;
|
|
29730
|
-
bi++;
|
|
29731
|
-
continue;
|
|
29732
|
-
} // Get the next code.
|
|
29733
|
-
|
|
29734
|
-
code = datum & code_mask;
|
|
29735
|
-
datum >>= code_size;
|
|
29736
|
-
bits -= code_size; // Interpret the code
|
|
29737
|
-
|
|
29738
|
-
if (code > available || code == end_of_information) {
|
|
29739
|
-
break;
|
|
29740
|
-
}
|
|
29741
|
-
if (code == clear) {
|
|
29742
|
-
// Reset decoder.
|
|
29743
|
-
code_size = data_size + 1;
|
|
29744
|
-
code_mask = (1 << code_size) - 1;
|
|
29745
|
-
available = clear + 2;
|
|
29746
|
-
old_code = nullCode;
|
|
29747
|
-
continue;
|
|
29748
|
-
}
|
|
29749
|
-
if (old_code == nullCode) {
|
|
29750
|
-
pixelStack[top++] = suffix[code];
|
|
29751
|
-
old_code = code;
|
|
29752
|
-
first = code;
|
|
29753
|
-
continue;
|
|
29754
|
-
}
|
|
29755
|
-
in_code = code;
|
|
29756
|
-
if (code == available) {
|
|
29757
|
-
pixelStack[top++] = first;
|
|
29758
|
-
code = old_code;
|
|
29759
|
-
}
|
|
29760
|
-
while (code > clear) {
|
|
29761
|
-
pixelStack[top++] = suffix[code];
|
|
29762
|
-
code = prefix[code];
|
|
29763
|
-
}
|
|
29764
|
-
first = suffix[code] & 0xff;
|
|
29765
|
-
pixelStack[top++] = first; // add a new string to the table, but only if space is available
|
|
29766
|
-
// if not, just continue with current table until a clear code is found
|
|
29767
|
-
// (deferred clear code implementation as per GIF spec)
|
|
29768
|
-
|
|
29769
|
-
if (available < MAX_STACK_SIZE) {
|
|
29770
|
-
prefix[available] = old_code;
|
|
29771
|
-
suffix[available] = first;
|
|
29772
|
-
available++;
|
|
29773
|
-
if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
|
|
29774
|
-
code_size++;
|
|
29775
|
-
code_mask += available;
|
|
29776
|
-
}
|
|
29777
|
-
}
|
|
29778
|
-
old_code = in_code;
|
|
29779
|
-
} // Pop a pixel off the pixel stack.
|
|
29780
|
-
|
|
29781
|
-
top--;
|
|
29782
|
-
dstPixels[pi++] = pixelStack[top];
|
|
29783
|
-
i++;
|
|
29784
|
-
}
|
|
29785
|
-
for (i = pi; i < npix; i++) {
|
|
29786
|
-
dstPixels[i] = 0; // clear missing pixels
|
|
29787
|
-
}
|
|
29788
|
-
|
|
29789
|
-
return dstPixels;
|
|
29790
|
-
};
|
|
29791
|
-
lzw$1.lzw = lzw;
|
|
29792
|
-
|
|
29793
|
-
Object.defineProperty(lib$1, "__esModule", {
|
|
29794
|
-
value: true
|
|
29795
|
-
});
|
|
29796
|
-
var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
|
|
29797
|
-
var _gif = _interopRequireDefault(gif);
|
|
29798
|
-
var _jsBinarySchemaParser = lib;
|
|
29799
|
-
var _uint = uint8;
|
|
29800
|
-
var _deinterlace = deinterlace$1;
|
|
29801
|
-
var _lzw = lzw$1;
|
|
29802
|
-
function _interopRequireDefault(obj) {
|
|
29803
|
-
return obj && obj.__esModule ? obj : {
|
|
29804
|
-
"default": obj
|
|
29805
|
-
};
|
|
29806
|
-
}
|
|
29807
|
-
var parseGIF = function parseGIF(arrayBuffer) {
|
|
29808
|
-
var byteData = new Uint8Array(arrayBuffer);
|
|
29809
|
-
return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
|
|
29810
|
-
};
|
|
29811
|
-
var parseGIF_1 = lib$1.parseGIF = parseGIF;
|
|
29812
|
-
var generatePatch = function generatePatch(image) {
|
|
29813
|
-
var totalPixels = image.pixels.length;
|
|
29814
|
-
var patchData = new Uint8ClampedArray(totalPixels * 4);
|
|
29815
|
-
for (var i = 0; i < totalPixels; i++) {
|
|
29816
|
-
var pos = i * 4;
|
|
29817
|
-
var colorIndex = image.pixels[i];
|
|
29818
|
-
var color = image.colorTable[colorIndex] || [0, 0, 0];
|
|
29819
|
-
patchData[pos] = color[0];
|
|
29820
|
-
patchData[pos + 1] = color[1];
|
|
29821
|
-
patchData[pos + 2] = color[2];
|
|
29822
|
-
patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
|
|
29823
|
-
}
|
|
29824
|
-
return patchData;
|
|
29825
|
-
};
|
|
29826
|
-
var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
|
|
29827
|
-
if (!frame.image) {
|
|
29828
|
-
console.warn('gif frame does not have associated image.');
|
|
29829
|
-
return;
|
|
29830
|
-
}
|
|
29831
|
-
var image = frame.image; // get the number of pixels
|
|
29832
|
-
|
|
29833
|
-
var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
|
|
29834
|
-
|
|
29835
|
-
var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
|
|
29836
|
-
|
|
29837
|
-
if (image.descriptor.lct.interlaced) {
|
|
29838
|
-
pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
|
|
29839
|
-
}
|
|
29840
|
-
var resultImage = {
|
|
29841
|
-
pixels: pixels,
|
|
29842
|
-
dims: {
|
|
29843
|
-
top: frame.image.descriptor.top,
|
|
29844
|
-
left: frame.image.descriptor.left,
|
|
29845
|
-
width: frame.image.descriptor.width,
|
|
29846
|
-
height: frame.image.descriptor.height
|
|
29847
|
-
}
|
|
29848
|
-
}; // color table
|
|
29849
|
-
|
|
29850
|
-
if (image.descriptor.lct && image.descriptor.lct.exists) {
|
|
29851
|
-
resultImage.colorTable = image.lct;
|
|
29852
|
-
} else {
|
|
29853
|
-
resultImage.colorTable = gct;
|
|
29854
|
-
} // add per frame relevant gce information
|
|
29855
|
-
|
|
29856
|
-
if (frame.gce) {
|
|
29857
|
-
resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
|
|
29858
|
-
|
|
29859
|
-
resultImage.disposalType = frame.gce.extras.disposal; // transparency
|
|
29860
|
-
|
|
29861
|
-
if (frame.gce.extras.transparentColorGiven) {
|
|
29862
|
-
resultImage.transparentIndex = frame.gce.transparentColorIndex;
|
|
29863
|
-
}
|
|
29864
|
-
} // create canvas usable imagedata if desired
|
|
29865
|
-
|
|
29866
|
-
if (buildImagePatch) {
|
|
29867
|
-
resultImage.patch = generatePatch(resultImage);
|
|
29868
|
-
}
|
|
29869
|
-
return resultImage;
|
|
29870
|
-
};
|
|
29871
|
-
lib$1.decompressFrame = decompressFrame;
|
|
29872
|
-
var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
|
|
29873
|
-
return parsedGif.frames.filter(function (f) {
|
|
29874
|
-
return f.image;
|
|
29875
|
-
}).map(function (f) {
|
|
29876
|
-
return decompressFrame(f, parsedGif.gct, buildImagePatches);
|
|
29877
|
-
});
|
|
29878
|
-
};
|
|
29879
|
-
decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
|
|
29880
|
-
|
|
29881
|
-
const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29882
29588
|
const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29883
29589
|
|
|
29884
|
-
class GifImage extends Image$1 {
|
|
29885
|
-
constructor(params) {
|
|
29886
|
-
super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
|
|
29887
|
-
}
|
|
29888
|
-
loadGif() {
|
|
29889
|
-
if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
|
|
29890
|
-
const gif = parseGIF_1(res),
|
|
29891
|
-
frames = decompressFrames_1(gif, !0);
|
|
29892
|
-
this.renderGIF(frames);
|
|
29893
|
-
}).catch(e => {
|
|
29894
|
-
console.error("Gif load error: ", e);
|
|
29895
|
-
});else if (this.attribute.gifImage instanceof ArrayBuffer) {
|
|
29896
|
-
const gif = parseGIF_1(this.attribute.gifImage),
|
|
29897
|
-
frames = decompressFrames_1(gif, !0);
|
|
29898
|
-
this.renderGIF(frames);
|
|
29899
|
-
}
|
|
29900
|
-
}
|
|
29901
|
-
renderGIF(frames) {
|
|
29902
|
-
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();
|
|
29903
|
-
const animation = this.animate();
|
|
29904
|
-
this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
|
|
29905
|
-
}
|
|
29906
|
-
renderFrame(context, x, y) {
|
|
29907
|
-
const frame = this.loadedFrames[this.frameIndex || 0];
|
|
29908
|
-
2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
|
|
29909
|
-
const diff = new Date().getTime() - this.lastTime;
|
|
29910
|
-
frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
|
|
29911
|
-
}
|
|
29912
|
-
drawPatch(frame) {
|
|
29913
|
-
const dims = frame.dims;
|
|
29914
|
-
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);
|
|
29915
|
-
}
|
|
29916
|
-
manipulate(context, x, y) {
|
|
29917
|
-
context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
|
|
29918
|
-
}
|
|
29919
|
-
setAttribute(key, value, forceUpdateTag, context) {
|
|
29920
|
-
super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
|
|
29921
|
-
}
|
|
29922
|
-
setAttributes(params, forceUpdateTag, context) {
|
|
29923
|
-
super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
|
|
29924
|
-
}
|
|
29925
|
-
}
|
|
29926
|
-
function createGifImage(attributes) {
|
|
29927
|
-
return new GifImage(attributes);
|
|
29928
|
-
}
|
|
29929
|
-
|
|
29930
|
-
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29931
|
-
var d,
|
|
29932
|
-
c = arguments.length,
|
|
29933
|
-
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29934
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29935
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29936
|
-
};
|
|
29937
|
-
let DefaultCanvasGifImagePicker = class {
|
|
29938
|
-
constructor() {
|
|
29939
|
-
this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
|
|
29940
|
-
}
|
|
29941
|
-
contains(gifImage, point, params) {
|
|
29942
|
-
const {
|
|
29943
|
-
pickContext: pickContext
|
|
29944
|
-
} = null != params ? params : {};
|
|
29945
|
-
return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
|
|
29946
|
-
}
|
|
29947
|
-
};
|
|
29948
|
-
DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
|
|
29949
|
-
|
|
29950
|
-
let loadGifImagePick = !1;
|
|
29951
|
-
const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29952
|
-
loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
|
|
29953
|
-
});
|
|
29954
|
-
|
|
29955
|
-
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29956
|
-
var d,
|
|
29957
|
-
c = arguments.length,
|
|
29958
|
-
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29959
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29960
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29961
|
-
},
|
|
29962
|
-
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
29963
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29964
|
-
},
|
|
29965
|
-
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29966
|
-
return function (target, key) {
|
|
29967
|
-
decorator(target, key, paramIndex);
|
|
29968
|
-
};
|
|
29969
|
-
};
|
|
29970
|
-
let DefaultCanvasGifImageRender = class extends exports.DefaultCanvasImageRender {
|
|
29971
|
-
constructor(imageRenderContribitions) {
|
|
29972
|
-
super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
|
|
29973
|
-
}
|
|
29974
|
-
draw(image, renderService, drawContext) {
|
|
29975
|
-
const {
|
|
29976
|
-
context: context
|
|
29977
|
-
} = renderService.drawParams;
|
|
29978
|
-
if (!context) return;
|
|
29979
|
-
const imageAttribute = getTheme(image).image;
|
|
29980
|
-
this._draw(image, imageAttribute, !1, drawContext);
|
|
29981
|
-
}
|
|
29982
|
-
};
|
|
29983
|
-
DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
|
|
29984
|
-
class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
|
|
29985
|
-
constructor() {
|
|
29986
|
-
super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
29987
|
-
}
|
|
29988
|
-
drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
29989
|
-
image.renderFrame && image.playing && image.renderFrame(context, x, y);
|
|
29990
|
-
}
|
|
29991
|
-
}
|
|
29992
|
-
const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
|
|
29993
|
-
|
|
29994
|
-
let loadGifImageModule = !1;
|
|
29995
|
-
const gifImageModule = new ContainerModule(bind => {
|
|
29996
|
-
loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
|
|
29997
|
-
});
|
|
29998
|
-
|
|
29999
29590
|
var lottie = {exports: {}};
|
|
30000
29591
|
|
|
30001
29592
|
(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:{}}
|
|
@@ -30897,7 +30488,7 @@
|
|
|
30897
30488
|
|
|
30898
30489
|
const roughModule = _roughModule;
|
|
30899
30490
|
|
|
30900
|
-
const version = "0.22.0-vstory.
|
|
30491
|
+
const version = "0.22.0-vstory.11";
|
|
30901
30492
|
preLoadAllModule();
|
|
30902
30493
|
if (isBrowserEnv()) {
|
|
30903
30494
|
loadBrowserEnv(container);
|
|
@@ -30961,7 +30552,6 @@
|
|
|
30961
30552
|
exports.CanvasAreaPicker = CanvasAreaPicker;
|
|
30962
30553
|
exports.CanvasCirclePicker = CanvasCirclePicker;
|
|
30963
30554
|
exports.CanvasFactory = CanvasFactory;
|
|
30964
|
-
exports.CanvasGifImagePicker = CanvasGifImagePicker;
|
|
30965
30555
|
exports.CanvasGlyphPicker = CanvasGlyphPicker;
|
|
30966
30556
|
exports.CanvasGroupPicker = CanvasGroupPicker;
|
|
30967
30557
|
exports.CanvasImagePicker = CanvasImagePicker;
|
|
@@ -31061,6 +30651,7 @@
|
|
|
31061
30651
|
exports.EventManager = EventManager;
|
|
31062
30652
|
exports.EventSystem = EventSystem;
|
|
31063
30653
|
exports.EventTarget = EventTarget;
|
|
30654
|
+
exports.FORMAT_ALL_TEXT_COMMAND = FORMAT_ALL_TEXT_COMMAND;
|
|
31064
30655
|
exports.FORMAT_ELEMENT_COMMAND = FORMAT_ELEMENT_COMMAND;
|
|
31065
30656
|
exports.FORMAT_TEXT_COMMAND = FORMAT_TEXT_COMMAND;
|
|
31066
30657
|
exports.Factory = Factory;
|
|
@@ -31076,7 +30667,6 @@
|
|
|
31076
30667
|
exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
|
|
31077
30668
|
exports.Generator = Generator;
|
|
31078
30669
|
exports.Gesture = Gesture;
|
|
31079
|
-
exports.GifImage = GifImage;
|
|
31080
30670
|
exports.GlobalPickerService = GlobalPickerService;
|
|
31081
30671
|
exports.Glyph = Glyph;
|
|
31082
30672
|
exports.GlyphRender = GlyphRender;
|
|
@@ -31269,7 +30859,6 @@
|
|
|
31269
30859
|
exports.createCircle = createCircle;
|
|
31270
30860
|
exports.createColor = createColor;
|
|
31271
30861
|
exports.createConicalGradient = createConicalGradient;
|
|
31272
|
-
exports.createGifImage = createGifImage;
|
|
31273
30862
|
exports.createGlyph = createGlyph;
|
|
31274
30863
|
exports.createGroup = createGroup;
|
|
31275
30864
|
exports.createImage = createImage;
|
|
@@ -31356,6 +30945,7 @@
|
|
|
31356
30945
|
exports.getAttributeFromDefaultAttrList = getAttributeFromDefaultAttrList;
|
|
31357
30946
|
exports.getConicGradientAt = getConicGradientAt;
|
|
31358
30947
|
exports.getCurrentEnv = getCurrentEnv;
|
|
30948
|
+
exports.getDefaultCharacterConfig = getDefaultCharacterConfig;
|
|
31359
30949
|
exports.getExtraModelMatrix = getExtraModelMatrix;
|
|
31360
30950
|
exports.getModelMatrix = getModelMatrix;
|
|
31361
30951
|
exports.getRichTextBounds = getRichTextBounds;
|
|
@@ -31363,8 +30953,6 @@
|
|
|
31363
30953
|
exports.getTextBounds = getTextBounds;
|
|
31364
30954
|
exports.getTheme = getTheme;
|
|
31365
30955
|
exports.getThemeFromGroup = getThemeFromGroup;
|
|
31366
|
-
exports.gifImageCanvasPickModule = gifImageCanvasPickModule;
|
|
31367
|
-
exports.gifImageModule = gifImageModule;
|
|
31368
30956
|
exports.globalTheme = globalTheme;
|
|
31369
30957
|
exports.glyphCanvasPickModule = glyphCanvasPickModule;
|
|
31370
30958
|
exports.glyphMathPickModule = glyphMathPickModule;
|