@visactor/vrender 0.22.0-vstory.1 → 0.22.0-vstory.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +736 -1197
- package/dist/index.js +737 -1201
- 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);
|
|
@@ -4762,7 +4757,7 @@
|
|
|
4762
4757
|
return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
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;
|
|
@@ -10130,7 +10126,7 @@
|
|
|
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));
|
|
@@ -11180,14 +11176,14 @@
|
|
|
11180
11176
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
11181
11177
|
|
|
11182
11178
|
var DefaultLayerService_1,
|
|
11183
|
-
__decorate$
|
|
11179
|
+
__decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11184
11180
|
var d,
|
|
11185
11181
|
c = arguments.length,
|
|
11186
11182
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11187
11183
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
11184
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11189
11185
|
},
|
|
11190
|
-
__metadata$
|
|
11186
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
11191
11187
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11192
11188
|
};
|
|
11193
11189
|
exports.DefaultLayerService = DefaultLayerService_1 = class {
|
|
@@ -11251,7 +11247,7 @@
|
|
|
11251
11247
|
this.layerMap.delete(stage);
|
|
11252
11248
|
}
|
|
11253
11249
|
};
|
|
11254
|
-
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
11250
|
+
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultLayerService);
|
|
11255
11251
|
|
|
11256
11252
|
var coreModule = new ContainerModule(bind => {
|
|
11257
11253
|
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 +11786,17 @@
|
|
|
11790
11786
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
11791
11787
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
11792
11788
|
|
|
11793
|
-
var __decorate$
|
|
11789
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11794
11790
|
var d,
|
|
11795
11791
|
c = arguments.length,
|
|
11796
11792
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11797
11793
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
11794
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11799
11795
|
},
|
|
11800
|
-
__metadata$
|
|
11796
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
11801
11797
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11802
11798
|
},
|
|
11803
|
-
__param$
|
|
11799
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
11804
11800
|
return function (target, key) {
|
|
11805
11801
|
decorator(target, key, paramIndex);
|
|
11806
11802
|
};
|
|
@@ -12012,7 +12008,7 @@
|
|
|
12012
12008
|
};
|
|
12013
12009
|
}
|
|
12014
12010
|
};
|
|
12015
|
-
exports.DefaultGraphicService = __decorate$
|
|
12011
|
+
exports.DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], exports.DefaultGraphicService);
|
|
12016
12012
|
|
|
12017
12013
|
const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
|
|
12018
12014
|
const {
|
|
@@ -13891,6 +13887,18 @@
|
|
|
13891
13887
|
}
|
|
13892
13888
|
}
|
|
13893
13889
|
|
|
13890
|
+
function getFixedLRTB(left, right, top, bottom) {
|
|
13891
|
+
const leftInt = Math.round(left),
|
|
13892
|
+
topInt = Math.round(top),
|
|
13893
|
+
rightInt = Math.round(right),
|
|
13894
|
+
bottomInt = Math.round(bottom);
|
|
13895
|
+
return {
|
|
13896
|
+
left: left > leftInt ? leftInt : leftInt - .5,
|
|
13897
|
+
top: top > topInt ? topInt : topInt - .5,
|
|
13898
|
+
right: rightInt > right ? rightInt : rightInt + .5,
|
|
13899
|
+
bottom: bottomInt > bottom ? bottomInt : bottomInt + .5
|
|
13900
|
+
};
|
|
13901
|
+
}
|
|
13894
13902
|
class Paragraph {
|
|
13895
13903
|
constructor(text, newLine, character) {
|
|
13896
13904
|
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
|
|
@@ -13913,7 +13921,7 @@
|
|
|
13913
13921
|
} = measureTextCanvas(this.text, this.character);
|
|
13914
13922
|
this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
|
|
13915
13923
|
}
|
|
13916
|
-
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign) {
|
|
13924
|
+
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13917
13925
|
let baseline = top + ascent,
|
|
13918
13926
|
text = this.text,
|
|
13919
13927
|
left = this.left + deltaLeft;
|
|
@@ -13941,12 +13949,34 @@
|
|
|
13941
13949
|
if ("vertical" === direction && (ctx.save(), ctx.rotateAbout(Math.PI / 2, left, baseline), ctx.translate(-this.heightOrigin || -this.lineHeight / 2, -this.descent / 2), ctx.translate(left, baseline), left = 0, baseline = 0), this.character.fill && this.character.background && (!this.character.backgroundOpacity || this.character.backgroundOpacity > 0)) {
|
|
13942
13950
|
const fillStyle = ctx.fillStyle,
|
|
13943
13951
|
globalAlpha = ctx.globalAlpha;
|
|
13944
|
-
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity)
|
|
13952
|
+
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
|
|
13953
|
+
const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
|
|
13954
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
|
|
13945
13955
|
}
|
|
13946
13956
|
const {
|
|
13947
13957
|
lineWidth = 1
|
|
13948
13958
|
} = this.character;
|
|
13949
|
-
this.character.stroke && lineWidth && ctx.strokeText(text, left, baseline), this.character.fill && ctx.fillText(text, left, baseline), this.character.fill
|
|
13959
|
+
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) {
|
|
13960
|
+
if (this.character.underline) {
|
|
13961
|
+
const top = 1 + baseline,
|
|
13962
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13963
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13964
|
+
}
|
|
13965
|
+
if (this.character.lineThrough) {
|
|
13966
|
+
const top = 1 + baseline - this.ascent / 2,
|
|
13967
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13968
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13969
|
+
}
|
|
13970
|
+
} else if ("underline" === this.character.textDecoration) {
|
|
13971
|
+
const top = 1 + baseline,
|
|
13972
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13973
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13974
|
+
} else if ("line-through" === this.character.textDecoration) {
|
|
13975
|
+
const top = 1 + baseline - this.ascent / 2,
|
|
13976
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13977
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13978
|
+
}
|
|
13979
|
+
"vertical" === direction && ctx.restore();
|
|
13950
13980
|
}
|
|
13951
13981
|
getWidthWithEllips(direction) {
|
|
13952
13982
|
let text = this.text;
|
|
@@ -14180,7 +14210,7 @@
|
|
|
14180
14210
|
x2: this.left + this.actualWidth,
|
|
14181
14211
|
y2: this.top + this.height
|
|
14182
14212
|
};
|
|
14183
|
-
applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
|
|
14213
|
+
applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14184
14214
|
});
|
|
14185
14215
|
}
|
|
14186
14216
|
getWidthWithEllips(ellipsis) {
|
|
@@ -14347,13 +14377,15 @@
|
|
|
14347
14377
|
}), tc;
|
|
14348
14378
|
}
|
|
14349
14379
|
updateAABBBounds(attribute, richtextTheme, aabbBounds) {
|
|
14380
|
+
var _a, _b;
|
|
14350
14381
|
const {
|
|
14351
14382
|
width = richtextTheme.width,
|
|
14352
14383
|
height = richtextTheme.height,
|
|
14353
14384
|
maxWidth = richtextTheme.maxWidth,
|
|
14354
14385
|
maxHeight = richtextTheme.maxHeight,
|
|
14355
14386
|
textAlign = richtextTheme.textAlign,
|
|
14356
|
-
textBaseline = richtextTheme.textBaseline
|
|
14387
|
+
textBaseline = richtextTheme.textBaseline,
|
|
14388
|
+
editOptions: editOptions
|
|
14357
14389
|
} = attribute;
|
|
14358
14390
|
if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
|
|
14359
14391
|
const frameCache = this.getFrameCache(),
|
|
@@ -14365,6 +14397,7 @@
|
|
|
14365
14397
|
contentHeight = height || actualHeight || 0;
|
|
14366
14398
|
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
14399
|
}
|
|
14400
|
+
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
14401
|
let deltaY = 0;
|
|
14369
14402
|
switch (textBaseline) {
|
|
14370
14403
|
case "top":
|
|
@@ -15342,17 +15375,17 @@
|
|
|
15342
15375
|
}
|
|
15343
15376
|
}
|
|
15344
15377
|
|
|
15345
|
-
var __decorate$
|
|
15378
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15346
15379
|
var d,
|
|
15347
15380
|
c = arguments.length,
|
|
15348
15381
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
15349
15382
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
15383
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15351
15384
|
},
|
|
15352
|
-
__metadata$
|
|
15385
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
15353
15386
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15354
15387
|
},
|
|
15355
|
-
__param$
|
|
15388
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
15356
15389
|
return function (target, key) {
|
|
15357
15390
|
decorator(target, key, paramIndex);
|
|
15358
15391
|
};
|
|
@@ -15449,7 +15482,7 @@
|
|
|
15449
15482
|
});
|
|
15450
15483
|
}
|
|
15451
15484
|
};
|
|
15452
|
-
exports.DefaultBaseInteractiveRenderContribution = __decorate$
|
|
15485
|
+
exports.DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
|
|
15453
15486
|
|
|
15454
15487
|
function formatRatio(ratio) {
|
|
15455
15488
|
return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
|
|
@@ -15797,7 +15830,7 @@
|
|
|
15797
15830
|
return !edgeCb && path.closePath(), path;
|
|
15798
15831
|
}
|
|
15799
15832
|
|
|
15800
|
-
var __decorate$
|
|
15833
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15801
15834
|
var d,
|
|
15802
15835
|
c = arguments.length,
|
|
15803
15836
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15862,7 +15895,7 @@
|
|
|
15862
15895
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
15863
15896
|
}
|
|
15864
15897
|
};
|
|
15865
|
-
exports.SplitRectBeforeRenderContribution = __decorate$
|
|
15898
|
+
exports.SplitRectBeforeRenderContribution = __decorate$1B([injectable()], exports.SplitRectBeforeRenderContribution);
|
|
15866
15899
|
exports.SplitRectAfterRenderContribution = class SplitRectAfterRenderContribution {
|
|
15867
15900
|
constructor() {
|
|
15868
15901
|
this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -15899,7 +15932,7 @@
|
|
|
15899
15932
|
}
|
|
15900
15933
|
}
|
|
15901
15934
|
};
|
|
15902
|
-
exports.SplitRectAfterRenderContribution = __decorate$
|
|
15935
|
+
exports.SplitRectAfterRenderContribution = __decorate$1B([injectable()], exports.SplitRectAfterRenderContribution);
|
|
15903
15936
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
15904
15937
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15905
15938
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -15908,8 +15941,8 @@
|
|
|
15908
15941
|
constructor() {
|
|
15909
15942
|
super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15910
15943
|
}
|
|
15911
|
-
drawShape(
|
|
15912
|
-
return super.drawShape(
|
|
15944
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15945
|
+
return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15913
15946
|
}
|
|
15914
15947
|
}
|
|
15915
15948
|
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
@@ -16004,17 +16037,17 @@
|
|
|
16004
16037
|
}
|
|
16005
16038
|
}
|
|
16006
16039
|
|
|
16007
|
-
var __decorate$
|
|
16040
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16008
16041
|
var d,
|
|
16009
16042
|
c = arguments.length,
|
|
16010
16043
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16011
16044
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16045
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16013
16046
|
},
|
|
16014
|
-
__metadata$
|
|
16047
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
16015
16048
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16016
16049
|
},
|
|
16017
|
-
__param$
|
|
16050
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16018
16051
|
return function (target, key) {
|
|
16019
16052
|
decorator(target, key, paramIndex);
|
|
16020
16053
|
};
|
|
@@ -16178,19 +16211,19 @@
|
|
|
16178
16211
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
16179
16212
|
}
|
|
16180
16213
|
};
|
|
16181
|
-
exports.DefaultCanvasArcRender = __decorate$
|
|
16214
|
+
exports.DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
|
|
16182
16215
|
|
|
16183
|
-
var __decorate$
|
|
16216
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16184
16217
|
var d,
|
|
16185
16218
|
c = arguments.length,
|
|
16186
16219
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16187
16220
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16221
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16189
16222
|
},
|
|
16190
|
-
__metadata$
|
|
16223
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
16191
16224
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16192
16225
|
},
|
|
16193
|
-
__param$
|
|
16226
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16194
16227
|
return function (target, key) {
|
|
16195
16228
|
decorator(target, key, paramIndex);
|
|
16196
16229
|
};
|
|
@@ -16231,7 +16264,7 @@
|
|
|
16231
16264
|
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
16232
16265
|
}
|
|
16233
16266
|
};
|
|
16234
|
-
exports.DefaultCanvasCircleRender = __decorate$
|
|
16267
|
+
exports.DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
|
|
16235
16268
|
|
|
16236
16269
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
16237
16270
|
if (!curve.p1) return;
|
|
@@ -16355,7 +16388,7 @@
|
|
|
16355
16388
|
});
|
|
16356
16389
|
}
|
|
16357
16390
|
|
|
16358
|
-
var __decorate$
|
|
16391
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16359
16392
|
var d,
|
|
16360
16393
|
c = arguments.length,
|
|
16361
16394
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16516,7 +16549,7 @@
|
|
|
16516
16549
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
16517
16550
|
}
|
|
16518
16551
|
};
|
|
16519
|
-
exports.DefaultCanvasLineRender = __decorate$
|
|
16552
|
+
exports.DefaultCanvasLineRender = __decorate$1y([injectable()], exports.DefaultCanvasLineRender);
|
|
16520
16553
|
|
|
16521
16554
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
16522
16555
|
var _a;
|
|
@@ -16645,17 +16678,17 @@
|
|
|
16645
16678
|
const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
16646
16679
|
const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16647
16680
|
|
|
16648
|
-
var __decorate$
|
|
16681
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16649
16682
|
var d,
|
|
16650
16683
|
c = arguments.length,
|
|
16651
16684
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16652
16685
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16686
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16654
16687
|
},
|
|
16655
|
-
__metadata$
|
|
16688
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
16656
16689
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16657
16690
|
},
|
|
16658
|
-
__param$
|
|
16691
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16659
16692
|
return function (target, key) {
|
|
16660
16693
|
decorator(target, key, paramIndex);
|
|
16661
16694
|
};
|
|
@@ -16898,22 +16931,22 @@
|
|
|
16898
16931
|
})(), !1;
|
|
16899
16932
|
}
|
|
16900
16933
|
};
|
|
16901
|
-
exports.DefaultCanvasAreaRender = __decorate$
|
|
16934
|
+
exports.DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
|
|
16902
16935
|
|
|
16903
16936
|
const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
16904
16937
|
const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16905
16938
|
|
|
16906
|
-
var __decorate$
|
|
16939
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16907
16940
|
var d,
|
|
16908
16941
|
c = arguments.length,
|
|
16909
16942
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16910
16943
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
16944
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16912
16945
|
},
|
|
16913
|
-
__metadata$
|
|
16946
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
16914
16947
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16915
16948
|
},
|
|
16916
|
-
__param$
|
|
16949
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16917
16950
|
return function (target, key) {
|
|
16918
16951
|
decorator(target, key, paramIndex);
|
|
16919
16952
|
};
|
|
@@ -16957,19 +16990,19 @@
|
|
|
16957
16990
|
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
16958
16991
|
}
|
|
16959
16992
|
};
|
|
16960
|
-
exports.DefaultCanvasPathRender = __decorate$
|
|
16993
|
+
exports.DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
|
|
16961
16994
|
|
|
16962
|
-
var __decorate$
|
|
16995
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16963
16996
|
var d,
|
|
16964
16997
|
c = arguments.length,
|
|
16965
16998
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16966
16999
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17000
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16968
17001
|
},
|
|
16969
|
-
__metadata$
|
|
17002
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
16970
17003
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16971
17004
|
},
|
|
16972
|
-
__param$
|
|
17005
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16973
17006
|
return function (target, key) {
|
|
16974
17007
|
decorator(target, key, paramIndex);
|
|
16975
17008
|
};
|
|
@@ -17029,19 +17062,19 @@
|
|
|
17029
17062
|
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17030
17063
|
}
|
|
17031
17064
|
};
|
|
17032
|
-
exports.DefaultCanvasRectRender = __decorate$
|
|
17065
|
+
exports.DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
|
|
17033
17066
|
|
|
17034
|
-
var __decorate$
|
|
17067
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17035
17068
|
var d,
|
|
17036
17069
|
c = arguments.length,
|
|
17037
17070
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17038
17071
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17072
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17040
17073
|
},
|
|
17041
|
-
__metadata$
|
|
17074
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
17042
17075
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17043
17076
|
},
|
|
17044
|
-
__param$
|
|
17077
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17045
17078
|
return function (target, key) {
|
|
17046
17079
|
decorator(target, key, paramIndex);
|
|
17047
17080
|
};
|
|
@@ -17112,7 +17145,7 @@
|
|
|
17112
17145
|
this._draw(symbol, symbolAttribute, !1, drawContext, params);
|
|
17113
17146
|
}
|
|
17114
17147
|
};
|
|
17115
|
-
exports.DefaultCanvasSymbolRender = __decorate$
|
|
17148
|
+
exports.DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
|
|
17116
17149
|
|
|
17117
17150
|
class DefaultBoundsAllocate {
|
|
17118
17151
|
constructor() {
|
|
@@ -17201,17 +17234,17 @@
|
|
|
17201
17234
|
}
|
|
17202
17235
|
const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
17203
17236
|
|
|
17204
|
-
var __decorate$
|
|
17237
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17205
17238
|
var d,
|
|
17206
17239
|
c = arguments.length,
|
|
17207
17240
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17208
17241
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17242
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17210
17243
|
},
|
|
17211
|
-
__metadata$
|
|
17244
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
17212
17245
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17213
17246
|
},
|
|
17214
|
-
__param$
|
|
17247
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17215
17248
|
return function (target, key) {
|
|
17216
17249
|
decorator(target, key, paramIndex);
|
|
17217
17250
|
};
|
|
@@ -17350,9 +17383,9 @@
|
|
|
17350
17383
|
}
|
|
17351
17384
|
}
|
|
17352
17385
|
};
|
|
17353
|
-
exports.DefaultCanvasTextRender = __decorate$
|
|
17386
|
+
exports.DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
|
|
17354
17387
|
|
|
17355
|
-
var __decorate$
|
|
17388
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17356
17389
|
var d,
|
|
17357
17390
|
c = arguments.length,
|
|
17358
17391
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17360,7 +17393,7 @@
|
|
|
17360
17393
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17361
17394
|
};
|
|
17362
17395
|
exports.AbstractGraphicRender = class AbstractGraphicRender {};
|
|
17363
|
-
exports.AbstractGraphicRender = __decorate$
|
|
17396
|
+
exports.AbstractGraphicRender = __decorate$1s([injectable()], exports.AbstractGraphicRender);
|
|
17364
17397
|
|
|
17365
17398
|
function drawPolygon(path, points, x, y) {
|
|
17366
17399
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -17416,17 +17449,17 @@
|
|
|
17416
17449
|
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
17417
17450
|
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
17418
17451
|
|
|
17419
|
-
var __decorate$
|
|
17452
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17420
17453
|
var d,
|
|
17421
17454
|
c = arguments.length,
|
|
17422
17455
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17423
17456
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17457
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17425
17458
|
},
|
|
17426
|
-
__metadata$
|
|
17459
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
17427
17460
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17428
17461
|
},
|
|
17429
|
-
__param$
|
|
17462
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17430
17463
|
return function (target, key) {
|
|
17431
17464
|
decorator(target, key, paramIndex);
|
|
17432
17465
|
};
|
|
@@ -17467,19 +17500,19 @@
|
|
|
17467
17500
|
this._draw(polygon, polygonAttribute, !1, drawContext, params);
|
|
17468
17501
|
}
|
|
17469
17502
|
};
|
|
17470
|
-
exports.DefaultCanvasPolygonRender = __decorate$
|
|
17503
|
+
exports.DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
|
|
17471
17504
|
|
|
17472
|
-
var __decorate$
|
|
17505
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17473
17506
|
var d,
|
|
17474
17507
|
c = arguments.length,
|
|
17475
17508
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17476
17509
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17510
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17478
17511
|
},
|
|
17479
|
-
__metadata$
|
|
17512
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
17480
17513
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17481
17514
|
},
|
|
17482
|
-
__param$
|
|
17515
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17483
17516
|
return function (target, key) {
|
|
17484
17517
|
decorator(target, key, paramIndex);
|
|
17485
17518
|
};
|
|
@@ -17574,19 +17607,19 @@
|
|
|
17574
17607
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
17575
17608
|
}
|
|
17576
17609
|
};
|
|
17577
|
-
exports.DefaultCanvasGroupRender = __decorate$
|
|
17610
|
+
exports.DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasGroupRender);
|
|
17578
17611
|
|
|
17579
|
-
var __decorate$
|
|
17612
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17580
17613
|
var d,
|
|
17581
17614
|
c = arguments.length,
|
|
17582
17615
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17583
17616
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17617
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17585
17618
|
},
|
|
17586
|
-
__metadata$
|
|
17619
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
17587
17620
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17588
17621
|
},
|
|
17589
|
-
__param$
|
|
17622
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17590
17623
|
return function (target, key) {
|
|
17591
17624
|
decorator(target, key, paramIndex);
|
|
17592
17625
|
};
|
|
@@ -17654,7 +17687,7 @@
|
|
|
17654
17687
|
this._draw(image, imageAttribute, !1, drawContext);
|
|
17655
17688
|
}
|
|
17656
17689
|
};
|
|
17657
|
-
exports.DefaultCanvasImageRender = __decorate$
|
|
17690
|
+
exports.DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
|
|
17658
17691
|
|
|
17659
17692
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
17660
17693
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -17722,14 +17755,14 @@
|
|
|
17722
17755
|
return result;
|
|
17723
17756
|
};
|
|
17724
17757
|
|
|
17725
|
-
var __decorate$
|
|
17758
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17726
17759
|
var d,
|
|
17727
17760
|
c = arguments.length,
|
|
17728
17761
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17729
17762
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17763
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17731
17764
|
},
|
|
17732
|
-
__metadata$
|
|
17765
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
17733
17766
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17734
17767
|
};
|
|
17735
17768
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
@@ -17789,7 +17822,7 @@
|
|
|
17789
17822
|
return !1;
|
|
17790
17823
|
}
|
|
17791
17824
|
};
|
|
17792
|
-
exports.CommonDrawItemInterceptorContribution = __decorate$
|
|
17825
|
+
exports.CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
|
|
17793
17826
|
class InteractiveDrawItemInterceptorContribution {
|
|
17794
17827
|
constructor() {
|
|
17795
17828
|
this.order = 1;
|
|
@@ -17880,17 +17913,17 @@
|
|
|
17880
17913
|
}
|
|
17881
17914
|
}
|
|
17882
17915
|
|
|
17883
|
-
var __decorate$
|
|
17916
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17884
17917
|
var d,
|
|
17885
17918
|
c = arguments.length,
|
|
17886
17919
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17887
17920
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
17921
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17889
17922
|
},
|
|
17890
|
-
__metadata$
|
|
17923
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
17891
17924
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17892
17925
|
},
|
|
17893
|
-
__param$
|
|
17926
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17894
17927
|
return function (target, key) {
|
|
17895
17928
|
decorator(target, key, paramIndex);
|
|
17896
17929
|
};
|
|
@@ -17928,7 +17961,7 @@
|
|
|
17928
17961
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
|
|
17929
17962
|
}
|
|
17930
17963
|
};
|
|
17931
|
-
exports.DefaultRenderService = __decorate$
|
|
17964
|
+
exports.DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
|
|
17932
17965
|
|
|
17933
17966
|
var renderModule$1 = new ContainerModule(bind => {
|
|
17934
17967
|
bind(RenderService).to(exports.DefaultRenderService);
|
|
@@ -17941,7 +17974,7 @@
|
|
|
17941
17974
|
const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
17942
17975
|
const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
|
|
17943
17976
|
|
|
17944
|
-
var __decorate$
|
|
17977
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17945
17978
|
var d,
|
|
17946
17979
|
c = arguments.length,
|
|
17947
17980
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17963,7 +17996,7 @@
|
|
|
17963
17996
|
return result;
|
|
17964
17997
|
}
|
|
17965
17998
|
};
|
|
17966
|
-
exports.ShadowPickServiceInterceptorContribution = __decorate$
|
|
17999
|
+
exports.ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], exports.ShadowPickServiceInterceptorContribution);
|
|
17967
18000
|
exports.ShadowRootPickItemInterceptorContribution = class ShadowRootPickItemInterceptorContribution {
|
|
17968
18001
|
constructor() {
|
|
17969
18002
|
this.order = 1;
|
|
@@ -17994,7 +18027,7 @@
|
|
|
17994
18027
|
return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
|
|
17995
18028
|
}
|
|
17996
18029
|
};
|
|
17997
|
-
exports.ShadowRootPickItemInterceptorContribution = __decorate$
|
|
18030
|
+
exports.ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], exports.ShadowRootPickItemInterceptorContribution);
|
|
17998
18031
|
exports.InteractivePickItemInterceptorContribution = class InteractivePickItemInterceptorContribution {
|
|
17999
18032
|
constructor() {
|
|
18000
18033
|
this.order = 1;
|
|
@@ -18013,7 +18046,7 @@
|
|
|
18013
18046
|
return null;
|
|
18014
18047
|
}
|
|
18015
18048
|
};
|
|
18016
|
-
exports.InteractivePickItemInterceptorContribution = __decorate$
|
|
18049
|
+
exports.InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], exports.InteractivePickItemInterceptorContribution);
|
|
18017
18050
|
exports.Canvas3DPickItemInterceptor = class Canvas3DPickItemInterceptor {
|
|
18018
18051
|
constructor() {
|
|
18019
18052
|
this.order = 1;
|
|
@@ -18033,7 +18066,7 @@
|
|
|
18033
18066
|
context.setTransformForCurrent();
|
|
18034
18067
|
}
|
|
18035
18068
|
};
|
|
18036
|
-
exports.Canvas3DPickItemInterceptor = __decorate$
|
|
18069
|
+
exports.Canvas3DPickItemInterceptor = __decorate$1m([injectable()], exports.Canvas3DPickItemInterceptor);
|
|
18037
18070
|
|
|
18038
18071
|
var pickModule = new ContainerModule((bind, unbind, isBound) => {
|
|
18039
18072
|
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 +18079,17 @@
|
|
|
18046
18079
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
18047
18080
|
const PluginService = Symbol.for("PluginService");
|
|
18048
18081
|
|
|
18049
|
-
var __decorate$
|
|
18082
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18050
18083
|
var d,
|
|
18051
18084
|
c = arguments.length,
|
|
18052
18085
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18053
18086
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18087
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18055
18088
|
},
|
|
18056
|
-
__metadata$
|
|
18089
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
18057
18090
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18058
18091
|
},
|
|
18059
|
-
__param$
|
|
18092
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18060
18093
|
return function (target, key) {
|
|
18061
18094
|
decorator(target, key, paramIndex);
|
|
18062
18095
|
};
|
|
@@ -18096,7 +18129,7 @@
|
|
|
18096
18129
|
}), this.onRegisterPlugin = [];
|
|
18097
18130
|
}
|
|
18098
18131
|
};
|
|
18099
|
-
DefaultPluginService = __decorate$
|
|
18132
|
+
DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
|
|
18100
18133
|
|
|
18101
18134
|
var pluginModule = new ContainerModule(bind => {
|
|
18102
18135
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -18110,14 +18143,14 @@
|
|
|
18110
18143
|
bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
18111
18144
|
});
|
|
18112
18145
|
|
|
18113
|
-
var __decorate$
|
|
18146
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18114
18147
|
var d,
|
|
18115
18148
|
c = arguments.length,
|
|
18116
18149
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18117
18150
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18151
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18119
18152
|
},
|
|
18120
|
-
__metadata
|
|
18153
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
18121
18154
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18122
18155
|
};
|
|
18123
18156
|
let CanvasLayerHandlerContribution = class {
|
|
@@ -18187,7 +18220,7 @@
|
|
|
18187
18220
|
this.canvas.release();
|
|
18188
18221
|
}
|
|
18189
18222
|
};
|
|
18190
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
18223
|
+
CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
18191
18224
|
|
|
18192
18225
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
18193
18226
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -18306,17 +18339,17 @@
|
|
|
18306
18339
|
return result;
|
|
18307
18340
|
}
|
|
18308
18341
|
|
|
18309
|
-
var __decorate$
|
|
18342
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18310
18343
|
var d,
|
|
18311
18344
|
c = arguments.length,
|
|
18312
18345
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18313
18346
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18347
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18315
18348
|
},
|
|
18316
|
-
__metadata
|
|
18349
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
18317
18350
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18318
18351
|
},
|
|
18319
|
-
__param$
|
|
18352
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18320
18353
|
return function (target, key) {
|
|
18321
18354
|
decorator(target, key, paramIndex);
|
|
18322
18355
|
};
|
|
@@ -18455,7 +18488,7 @@
|
|
|
18455
18488
|
} = graphic.parent.attribute;
|
|
18456
18489
|
(scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
|
|
18457
18490
|
}
|
|
18458
|
-
if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
|
|
18491
|
+
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
18492
|
if (retrans && graphic.parent) {
|
|
18460
18493
|
const {
|
|
18461
18494
|
scrollX = 0,
|
|
@@ -18515,9 +18548,9 @@
|
|
|
18515
18548
|
}
|
|
18516
18549
|
afterDraw(renderService, drawParams) {}
|
|
18517
18550
|
};
|
|
18518
|
-
DefaultDrawContribution = __decorate$
|
|
18551
|
+
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
18552
|
|
|
18520
|
-
var __decorate$
|
|
18553
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18521
18554
|
var d,
|
|
18522
18555
|
c = arguments.length,
|
|
18523
18556
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18568,9 +18601,9 @@
|
|
|
18568
18601
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
18569
18602
|
}
|
|
18570
18603
|
};
|
|
18571
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
18604
|
+
DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
|
|
18572
18605
|
|
|
18573
|
-
var __decorate$
|
|
18606
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18574
18607
|
var d,
|
|
18575
18608
|
c = arguments.length,
|
|
18576
18609
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18613,20 +18646,20 @@
|
|
|
18613
18646
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
18614
18647
|
}
|
|
18615
18648
|
};
|
|
18616
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
18649
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
18617
18650
|
|
|
18618
18651
|
var STATUS,
|
|
18619
|
-
__decorate$
|
|
18652
|
+
__decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18620
18653
|
var d,
|
|
18621
18654
|
c = arguments.length,
|
|
18622
18655
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18623
18656
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
18657
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18625
18658
|
},
|
|
18626
|
-
__metadata$
|
|
18659
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
18627
18660
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18628
18661
|
},
|
|
18629
|
-
__param$
|
|
18662
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18630
18663
|
return function (target, key) {
|
|
18631
18664
|
decorator(target, key, paramIndex);
|
|
18632
18665
|
};
|
|
@@ -18756,7 +18789,7 @@
|
|
|
18756
18789
|
});
|
|
18757
18790
|
}
|
|
18758
18791
|
};
|
|
18759
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
18792
|
+
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
18793
|
|
|
18761
18794
|
var renderModule = new ContainerModule(bind => {
|
|
18762
18795
|
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 +19485,14 @@
|
|
|
19452
19485
|
return new Stage(params);
|
|
19453
19486
|
}
|
|
19454
19487
|
|
|
19455
|
-
var __decorate$
|
|
19488
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19456
19489
|
var d,
|
|
19457
19490
|
c = arguments.length,
|
|
19458
19491
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19459
19492
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
19493
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19461
19494
|
},
|
|
19462
|
-
__metadata$
|
|
19495
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
19463
19496
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19464
19497
|
};
|
|
19465
19498
|
const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -19669,7 +19702,7 @@
|
|
|
19669
19702
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
19670
19703
|
}
|
|
19671
19704
|
};
|
|
19672
|
-
exports.EmptyContext2d = __decorate$
|
|
19705
|
+
exports.EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
|
|
19673
19706
|
|
|
19674
19707
|
const DefaultConfig = {
|
|
19675
19708
|
WIDTH: 500,
|
|
@@ -19768,7 +19801,7 @@
|
|
|
19768
19801
|
}
|
|
19769
19802
|
BaseCanvas.env = "browser";
|
|
19770
19803
|
|
|
19771
|
-
var __decorate$
|
|
19804
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19772
19805
|
var d,
|
|
19773
19806
|
c = arguments.length,
|
|
19774
19807
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19882,16 +19915,16 @@
|
|
|
19882
19915
|
return Promise.resolve(null);
|
|
19883
19916
|
}
|
|
19884
19917
|
};
|
|
19885
|
-
exports.BaseEnvContribution = __decorate$
|
|
19918
|
+
exports.BaseEnvContribution = __decorate$1e([injectable()], exports.BaseEnvContribution);
|
|
19886
19919
|
|
|
19887
|
-
var __decorate$
|
|
19920
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19888
19921
|
var d,
|
|
19889
19922
|
c = arguments.length,
|
|
19890
19923
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19891
19924
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
19925
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19893
19926
|
},
|
|
19894
|
-
__metadata$
|
|
19927
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
19895
19928
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19896
19929
|
};
|
|
19897
19930
|
exports.BaseWindowHandlerContribution = class BaseWindowHandlerContribution {
|
|
@@ -19930,7 +19963,7 @@
|
|
|
19930
19963
|
return this.modelMatrix;
|
|
19931
19964
|
}
|
|
19932
19965
|
};
|
|
19933
|
-
exports.BaseWindowHandlerContribution = __decorate$
|
|
19966
|
+
exports.BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
|
|
19934
19967
|
|
|
19935
19968
|
class DirectionalLight {
|
|
19936
19969
|
constructor(dir, color) {
|
|
@@ -20021,17 +20054,17 @@
|
|
|
20021
20054
|
Factory.registerPlugin("OrthoCamera", OrthoCamera);
|
|
20022
20055
|
};
|
|
20023
20056
|
|
|
20024
|
-
var __decorate$
|
|
20057
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20025
20058
|
var d,
|
|
20026
20059
|
c = arguments.length,
|
|
20027
20060
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20028
20061
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
20062
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20030
20063
|
},
|
|
20031
|
-
__metadata$
|
|
20064
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
20032
20065
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20033
20066
|
},
|
|
20034
|
-
__param$
|
|
20067
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20035
20068
|
return function (target, key) {
|
|
20036
20069
|
decorator(target, key, paramIndex);
|
|
20037
20070
|
};
|
|
@@ -20136,16 +20169,16 @@
|
|
|
20136
20169
|
return picker || null;
|
|
20137
20170
|
}
|
|
20138
20171
|
};
|
|
20139
|
-
exports.DefaultPickService = __decorate$
|
|
20172
|
+
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
20173
|
|
|
20141
|
-
var __decorate$
|
|
20174
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20142
20175
|
var d,
|
|
20143
20176
|
c = arguments.length,
|
|
20144
20177
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20145
20178
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
20179
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20147
20180
|
},
|
|
20148
|
-
__metadata$
|
|
20181
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
20149
20182
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20150
20183
|
};
|
|
20151
20184
|
exports.DefaultGlobalPickerService = class DefaultGlobalPickerService {
|
|
@@ -20210,7 +20243,7 @@
|
|
|
20210
20243
|
} : null;
|
|
20211
20244
|
}
|
|
20212
20245
|
};
|
|
20213
|
-
exports.DefaultGlobalPickerService = __decorate$
|
|
20246
|
+
exports.DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], exports.DefaultGlobalPickerService);
|
|
20214
20247
|
|
|
20215
20248
|
function simplifyRadialDist(points, sqTolerance) {
|
|
20216
20249
|
let deltaX,
|
|
@@ -20235,6 +20268,24 @@
|
|
|
20235
20268
|
}
|
|
20236
20269
|
return t;
|
|
20237
20270
|
};
|
|
20271
|
+
function getDefaultCharacterConfig(attribute) {
|
|
20272
|
+
const {
|
|
20273
|
+
fill = "black",
|
|
20274
|
+
stroke = !1,
|
|
20275
|
+
fontWeight = "normal",
|
|
20276
|
+
fontFamily = "Arial"
|
|
20277
|
+
} = attribute;
|
|
20278
|
+
let {
|
|
20279
|
+
fontSize = 12
|
|
20280
|
+
} = attribute;
|
|
20281
|
+
return isFinite(fontSize) || (fontSize = 12), {
|
|
20282
|
+
fill: fill,
|
|
20283
|
+
stroke: stroke,
|
|
20284
|
+
fontSize: fontSize,
|
|
20285
|
+
fontWeight: fontWeight,
|
|
20286
|
+
fontFamily: fontFamily
|
|
20287
|
+
};
|
|
20288
|
+
}
|
|
20238
20289
|
function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
|
|
20239
20290
|
if (cursorIndex < 0) return 0;
|
|
20240
20291
|
const intCursorIndex = Math.round(cursorIndex);
|
|
@@ -20273,9 +20324,7 @@
|
|
|
20273
20324
|
} = this.currRt.attribute;
|
|
20274
20325
|
if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
|
|
20275
20326
|
const config = textConfig[0];
|
|
20276
|
-
textConfig.unshift(Object.assign(Object.assign({
|
|
20277
|
-
fill: "black"
|
|
20278
|
-
}, config), {
|
|
20327
|
+
textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
|
|
20279
20328
|
text: ""
|
|
20280
20329
|
}));
|
|
20281
20330
|
} else {
|
|
@@ -20292,26 +20341,20 @@
|
|
|
20292
20341
|
cb(text, this.isComposing, this.cursorIndex, this.currRt);
|
|
20293
20342
|
});
|
|
20294
20343
|
}, this.handleInput = ev => {
|
|
20295
|
-
var _a, _b, _c, _d;
|
|
20296
20344
|
if (!this.currRt) return;
|
|
20297
20345
|
if ("historyUndo" === ev.inputType) return;
|
|
20298
|
-
const
|
|
20346
|
+
const _a = this.currRt.attribute,
|
|
20299
20347
|
{
|
|
20300
20348
|
textConfig = []
|
|
20301
|
-
} =
|
|
20302
|
-
rest = __rest$1(
|
|
20349
|
+
} = _a,
|
|
20350
|
+
rest = __rest$1(_a, ["textConfig"]);
|
|
20303
20351
|
if ("Backspace" === ev.type && !textConfig.length) return;
|
|
20304
20352
|
let str = ev.data;
|
|
20305
20353
|
this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
|
|
20306
20354
|
const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
|
|
20307
20355
|
endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
|
|
20308
20356
|
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
|
-
});
|
|
20357
|
+
lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
|
|
20315
20358
|
let nextConfig = lastConfig;
|
|
20316
20359
|
startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
|
|
20317
20360
|
let nextConfigIdx = startIdx;
|
|
@@ -20407,6 +20450,7 @@
|
|
|
20407
20450
|
if (!this.rt) return null;
|
|
20408
20451
|
let idx = Math.round(cursorIdx);
|
|
20409
20452
|
const config = this.rt.attribute.textConfig;
|
|
20453
|
+
if (!config.length) return null;
|
|
20410
20454
|
for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
|
|
20411
20455
|
return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
|
|
20412
20456
|
}
|
|
@@ -20426,6 +20470,7 @@
|
|
|
20426
20470
|
}
|
|
20427
20471
|
}
|
|
20428
20472
|
const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
|
|
20473
|
+
const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
|
|
20429
20474
|
const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
|
|
20430
20475
|
class RichTextEditPlugin {
|
|
20431
20476
|
static tryUpdateRichtext(richtext) {
|
|
@@ -20445,16 +20490,39 @@
|
|
|
20445
20490
|
return new Selection(0, textConfig.length - 1, rt);
|
|
20446
20491
|
}
|
|
20447
20492
|
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.
|
|
20493
|
+
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) => {
|
|
20494
|
+
const rt = p.currRt;
|
|
20495
|
+
if (!rt) return;
|
|
20496
|
+
const selectionData = p.getSelection();
|
|
20497
|
+
if (!selectionData) return;
|
|
20498
|
+
const {
|
|
20499
|
+
selectionStartCursorIdx: selectionStartCursorIdx,
|
|
20500
|
+
curCursorIdx: curCursorIdx
|
|
20501
|
+
} = selectionData,
|
|
20502
|
+
minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
|
|
20503
|
+
maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
|
|
20504
|
+
minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
|
|
20505
|
+
maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
|
|
20506
|
+
config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
|
|
20507
|
+
this._formatTextCommand(payload, config, rt);
|
|
20508
|
+
}, this.formatAllTextCommandCb = (payload, p) => {
|
|
20509
|
+
const rt = p.currRt;
|
|
20510
|
+
if (!rt) return;
|
|
20511
|
+
const config = rt.attribute.textConfig;
|
|
20512
|
+
this._formatTextCommand(payload, config, rt);
|
|
20513
|
+
}, this.handleKeyDown = e => {
|
|
20449
20514
|
this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
|
|
20450
20515
|
}, this.handleInput = (text, isComposing, cursorIdx, rt) => {
|
|
20451
|
-
this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
|
|
20516
|
+
this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
|
|
20452
20517
|
}, this.handleChange = (text, isComposing, cursorIdx, rt) => {
|
|
20453
|
-
|
|
20518
|
+
if (!this.currRt) return;
|
|
20519
|
+
this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
|
|
20454
20520
|
const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
|
|
20455
20521
|
this.setCursorAndTextArea(p.x, p.y1, p.y2, rt), this.hideSelection(), this.updateCbs.forEach(cb => cb("change", this));
|
|
20456
|
-
}, this.handleFocusIn = () => {
|
|
20457
|
-
|
|
20522
|
+
}, this.handleFocusIn = () => {
|
|
20523
|
+
throw new Error("不会走到这里 handleFocusIn");
|
|
20524
|
+
}, this.handleFocusOut = () => {
|
|
20525
|
+
throw new Error("不会走到这里 handleFocusOut");
|
|
20458
20526
|
}, this.handleMove = e => {
|
|
20459
20527
|
this.isRichtext(e) && (this.currRt = e.target, this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1));
|
|
20460
20528
|
}, this.handleEnter = e => {
|
|
@@ -20462,28 +20530,17 @@
|
|
|
20462
20530
|
}, this.handleLeave = e => {
|
|
20463
20531
|
this.editing = !1, this.pluginService.stage.setCursor("default");
|
|
20464
20532
|
}, 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));
|
|
20533
|
+
this.editing ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20466
20534
|
}, this.handlePointerUp = e => {
|
|
20467
20535
|
this.pointerDown = !1;
|
|
20468
20536
|
}, this.handleDBLClick = e => {
|
|
20469
20537
|
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;
|
|
20538
|
+
}, 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
20539
|
}
|
|
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);
|
|
20540
|
+
_formatTextCommand(payload, config, rt) {
|
|
20486
20541
|
"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);
|
|
20542
|
+
const cache = rt.getFrameCache();
|
|
20543
|
+
cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
|
|
20487
20544
|
}
|
|
20488
20545
|
dispatchCommand(command, payload) {
|
|
20489
20546
|
const cbs = this.commandCbs.get(command);
|
|
@@ -20492,9 +20549,19 @@
|
|
|
20492
20549
|
registerCommand(command, cb) {
|
|
20493
20550
|
(this.commandCbs.get(command) || []).push(cb);
|
|
20494
20551
|
}
|
|
20552
|
+
removeCommand(command, cb) {
|
|
20553
|
+
const cbs = this.commandCbs.get(command) || [],
|
|
20554
|
+
idx = cbs.indexOf(cb);
|
|
20555
|
+
idx > -1 && cbs.splice(idx, 1);
|
|
20556
|
+
}
|
|
20495
20557
|
registerUpdateListener(cb) {
|
|
20496
20558
|
(this.updateCbs || []).push(cb);
|
|
20497
20559
|
}
|
|
20560
|
+
removeUpdateListener(cb) {
|
|
20561
|
+
const cbs = this.updateCbs || [],
|
|
20562
|
+
idx = cbs.indexOf(cb);
|
|
20563
|
+
idx > -1 && cbs.splice(idx, 1);
|
|
20564
|
+
}
|
|
20498
20565
|
activate(context) {
|
|
20499
20566
|
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
20567
|
}
|
|
@@ -20514,7 +20581,10 @@
|
|
|
20514
20581
|
lines: lines
|
|
20515
20582
|
} = cache,
|
|
20516
20583
|
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.
|
|
20584
|
+
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);
|
|
20585
|
+
}
|
|
20586
|
+
selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
|
|
20587
|
+
this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
|
|
20518
20588
|
const {
|
|
20519
20589
|
x: x,
|
|
20520
20590
|
y1: y1,
|
|
@@ -20585,61 +20655,192 @@
|
|
|
20585
20655
|
}
|
|
20586
20656
|
return !0;
|
|
20587
20657
|
}
|
|
20658
|
+
tryShowShadowPlaceholder() {
|
|
20659
|
+
if (!this.currRt) return;
|
|
20660
|
+
const shadowRoot = this.currRt.shadowRoot;
|
|
20661
|
+
if (shadowRoot) {
|
|
20662
|
+
const placeholder = shadowRoot.getElementsByType("richtext")[0];
|
|
20663
|
+
placeholder && shadowRoot.removeChild(placeholder);
|
|
20664
|
+
}
|
|
20665
|
+
const {
|
|
20666
|
+
textConfig: textConfig,
|
|
20667
|
+
editOptions: editOptions
|
|
20668
|
+
} = this.currRt.attribute;
|
|
20669
|
+
if (textConfig && textConfig.length) return;
|
|
20670
|
+
if (!editOptions || !editOptions.placeholder) return;
|
|
20671
|
+
const {
|
|
20672
|
+
placeholder: placeholder,
|
|
20673
|
+
placeholderColor = "rgba(0, 0, 0, 0.6)",
|
|
20674
|
+
placeholderFontFamily: placeholderFontFamily,
|
|
20675
|
+
placeholderFontSize: placeholderFontSize
|
|
20676
|
+
} = editOptions,
|
|
20677
|
+
shadow = this.currRt.shadowRoot || this.currRt.attachShadow();
|
|
20678
|
+
this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
|
|
20679
|
+
x: 0,
|
|
20680
|
+
y: 0,
|
|
20681
|
+
angle: 0,
|
|
20682
|
+
_debug_bounds: !1,
|
|
20683
|
+
textConfig: [{
|
|
20684
|
+
text: placeholder,
|
|
20685
|
+
fill: placeholderColor,
|
|
20686
|
+
fontFamily: placeholderFontFamily,
|
|
20687
|
+
fontSize: placeholderFontSize
|
|
20688
|
+
}]
|
|
20689
|
+
})), shadow.add(this.shadowPlaceHolder);
|
|
20690
|
+
}
|
|
20691
|
+
tryShowInputBounds() {
|
|
20692
|
+
if (!this.currRt || !this.focusing) return;
|
|
20693
|
+
const {
|
|
20694
|
+
editOptions = {}
|
|
20695
|
+
} = this.currRt.attribute,
|
|
20696
|
+
{
|
|
20697
|
+
boundsStrokeWhenInput: boundsStrokeWhenInput
|
|
20698
|
+
} = editOptions;
|
|
20699
|
+
if (!editOptions || !boundsStrokeWhenInput) return;
|
|
20700
|
+
const {
|
|
20701
|
+
attribute: attribute
|
|
20702
|
+
} = this.currRt,
|
|
20703
|
+
b = this.currRt.AABBBounds;
|
|
20704
|
+
let h = b.height();
|
|
20705
|
+
if (!attribute.textConfig.length && this.editLine) {
|
|
20706
|
+
const {
|
|
20707
|
+
points: points
|
|
20708
|
+
} = this.editLine.attribute;
|
|
20709
|
+
h = points[1].y - points[0].y;
|
|
20710
|
+
}
|
|
20711
|
+
this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
|
|
20712
|
+
x: 0,
|
|
20713
|
+
y: 0,
|
|
20714
|
+
width: b.width(),
|
|
20715
|
+
height: h,
|
|
20716
|
+
fill: !1,
|
|
20717
|
+
stroke: boundsStrokeWhenInput,
|
|
20718
|
+
lineWidth: 1,
|
|
20719
|
+
boundsMode: "empty",
|
|
20720
|
+
zIndex: -1
|
|
20721
|
+
});
|
|
20722
|
+
(this.currRt.shadowRoot || this.currRt.attachShadow()).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
|
|
20723
|
+
}
|
|
20724
|
+
trySyncPlaceholderToTextConfig() {
|
|
20725
|
+
if (!this.currRt) return;
|
|
20726
|
+
const {
|
|
20727
|
+
textConfig: textConfig,
|
|
20728
|
+
editOptions: editOptions
|
|
20729
|
+
} = this.currRt.attribute;
|
|
20730
|
+
if (textConfig && textConfig.length) return;
|
|
20731
|
+
if (!editOptions || !editOptions.placeholder) return;
|
|
20732
|
+
const {
|
|
20733
|
+
placeholder: placeholder
|
|
20734
|
+
} = editOptions;
|
|
20735
|
+
this.currRt.setAttributes({
|
|
20736
|
+
textConfig: [Object.assign({
|
|
20737
|
+
text: placeholder
|
|
20738
|
+
}, getDefaultCharacterConfig(this.currRt.attribute))]
|
|
20739
|
+
});
|
|
20740
|
+
}
|
|
20588
20741
|
deactivate(context) {
|
|
20589
20742
|
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
20743
|
}
|
|
20591
|
-
onFocus(e) {
|
|
20592
|
-
this.deFocus(), this.
|
|
20744
|
+
onFocus(e, data) {
|
|
20745
|
+
this.deFocus(!1), this.focusing = !0;
|
|
20593
20746
|
const target = e.target;
|
|
20594
|
-
|
|
20595
|
-
|
|
20747
|
+
if (!target || "richtext" !== target.type) return;
|
|
20748
|
+
this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
|
|
20749
|
+
const shadowRoot = target.shadowRoot || target.attachShadow(),
|
|
20596
20750
|
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
|
-
|
|
20751
|
+
if (cache) {
|
|
20752
|
+
if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
|
|
20753
|
+
shadowRootIdx: 1,
|
|
20754
|
+
pickable: !1,
|
|
20755
|
+
x: this.deltaX,
|
|
20756
|
+
y: this.deltaY
|
|
20757
|
+
}), !this.editLine) {
|
|
20758
|
+
const line = createLine({
|
|
20759
|
+
x: 0,
|
|
20760
|
+
y: 0,
|
|
20761
|
+
lineWidth: 1,
|
|
20762
|
+
stroke: "black",
|
|
20763
|
+
boundsMode: "empty"
|
|
20764
|
+
});
|
|
20765
|
+
this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
|
|
20766
|
+
const g = createGroup({
|
|
20767
|
+
x: 0,
|
|
20768
|
+
y: 0,
|
|
20769
|
+
width: 0,
|
|
20770
|
+
height: 0,
|
|
20771
|
+
boundsMode: "empty"
|
|
20772
|
+
});
|
|
20773
|
+
this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
|
|
20774
|
+
}
|
|
20775
|
+
if (data = data || this.computedCursorPosByEvent(e, cache)) {
|
|
20776
|
+
const {
|
|
20777
|
+
x: x,
|
|
20778
|
+
y1: y1,
|
|
20779
|
+
y2: y2,
|
|
20780
|
+
cursorIndex: cursorIndex
|
|
20781
|
+
} = data;
|
|
20782
|
+
this.startCursorPos = {
|
|
20783
|
+
x: x,
|
|
20784
|
+
y: (y1 + y2) / 2
|
|
20785
|
+
}, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
|
|
20786
|
+
} else {
|
|
20787
|
+
const x = 0,
|
|
20788
|
+
y1 = 0,
|
|
20789
|
+
y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
|
|
20790
|
+
textConfig: [{
|
|
20791
|
+
text: "a"
|
|
20792
|
+
}]
|
|
20793
|
+
})).height();
|
|
20794
|
+
this.startCursorPos = {
|
|
20795
|
+
x: x,
|
|
20796
|
+
y: (y1 + y2) / 2
|
|
20797
|
+
}, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
|
|
20798
|
+
}
|
|
20799
|
+
this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
|
|
20631
20800
|
}
|
|
20632
20801
|
}
|
|
20802
|
+
offsetLineBgAndShadowBounds() {
|
|
20803
|
+
const rt = this.currRt,
|
|
20804
|
+
{
|
|
20805
|
+
textBaseline: textBaseline
|
|
20806
|
+
} = rt.attribute;
|
|
20807
|
+
let b,
|
|
20808
|
+
dy = 0,
|
|
20809
|
+
attr = rt.attribute;
|
|
20810
|
+
"middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
|
|
20811
|
+
textConfig: [{
|
|
20812
|
+
text: "a"
|
|
20813
|
+
}]
|
|
20814
|
+
})), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
|
|
20815
|
+
dy: dy
|
|
20816
|
+
}), this.editBg && this.editBg.setAttributes({
|
|
20817
|
+
dy: dy
|
|
20818
|
+
}), this.shadowBounds && this.shadowBounds.setAttributes({
|
|
20819
|
+
dy: dy
|
|
20820
|
+
});
|
|
20821
|
+
}
|
|
20633
20822
|
deFocus() {
|
|
20823
|
+
let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20634
20824
|
const target = this.currRt;
|
|
20635
|
-
|
|
20825
|
+
if (!target) return;
|
|
20826
|
+
trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), target.detachShadow());
|
|
20827
|
+
const currRt = this.currRt;
|
|
20828
|
+
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;
|
|
20829
|
+
const textConfig = currRt.attribute.textConfig;
|
|
20830
|
+
let lastConfig = textConfig[textConfig.length - 1],
|
|
20831
|
+
cleared = !1;
|
|
20832
|
+
for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
|
|
20833
|
+
cleared && currRt.setAttributes({
|
|
20834
|
+
textConfig: textConfig
|
|
20835
|
+
});
|
|
20636
20836
|
}
|
|
20637
20837
|
addAnimateToLine(line) {
|
|
20638
20838
|
line.animates && line.animates.forEach(animate => {
|
|
20639
20839
|
animate.stop(), animate.release();
|
|
20640
20840
|
});
|
|
20641
|
-
|
|
20642
|
-
|
|
20841
|
+
line.animate({
|
|
20842
|
+
timeline: this.timeline
|
|
20843
|
+
}).to({
|
|
20643
20844
|
opacity: 1
|
|
20644
20845
|
}, 10, "linear").wait(700).to({
|
|
20645
20846
|
opacity: 0
|
|
@@ -20733,7 +20934,7 @@
|
|
|
20733
20934
|
y += line.height;
|
|
20734
20935
|
}
|
|
20735
20936
|
}
|
|
20736
|
-
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1
|
|
20937
|
+
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20737
20938
|
}
|
|
20738
20939
|
hideSelection() {
|
|
20739
20940
|
this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
|
|
@@ -20789,7 +20990,18 @@
|
|
|
20789
20990
|
x: 0,
|
|
20790
20991
|
y: 0
|
|
20791
20992
|
};
|
|
20792
|
-
|
|
20993
|
+
e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
|
|
20994
|
+
const rt = this.currRt,
|
|
20995
|
+
{
|
|
20996
|
+
textBaseline: textBaseline
|
|
20997
|
+
} = rt.attribute;
|
|
20998
|
+
let dy = 0;
|
|
20999
|
+
if ("middle" === textBaseline) {
|
|
21000
|
+
dy = getRichTextBounds(rt.attribute).height() / 2;
|
|
21001
|
+
} else if ("bottom" === textBaseline) {
|
|
21002
|
+
dy = getRichTextBounds(rt.attribute).height();
|
|
21003
|
+
}
|
|
21004
|
+
return p1.y += dy, p1;
|
|
20793
21005
|
}
|
|
20794
21006
|
setCursorAndTextArea(x, y1, y2, rt) {
|
|
20795
21007
|
this.editLine.setAttributes({
|
|
@@ -20813,7 +21025,7 @@
|
|
|
20813
21025
|
left: left,
|
|
20814
21026
|
top: top
|
|
20815
21027
|
} = this.pluginService.stage.window.getBoundingClientRect();
|
|
20816
|
-
out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
|
|
21028
|
+
out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
|
|
20817
21029
|
}
|
|
20818
21030
|
computedCursorPosByEvent(e, cache) {
|
|
20819
21031
|
const p1 = this.getEventPosition(e),
|
|
@@ -20824,9 +21036,8 @@
|
|
|
20824
21036
|
delta: delta
|
|
20825
21037
|
} = this.getColumnAndIndexByLinePoint(lineInfo, p1);
|
|
20826
21038
|
if (!columnInfo) return;
|
|
20827
|
-
|
|
21039
|
+
const y1 = lineInfo.top,
|
|
20828
21040
|
y2 = lineInfo.top + lineInfo.height;
|
|
20829
|
-
y1 += 2, y2 -= 2;
|
|
20830
21041
|
let cursorIndex = this.getColumnIndex(cache, columnInfo);
|
|
20831
21042
|
cursorIndex += delta;
|
|
20832
21043
|
return {
|
|
@@ -20845,21 +21056,36 @@
|
|
|
20845
21056
|
cache = rt.getFrameCache(),
|
|
20846
21057
|
column = this.getColumnByIndex(cache, idx),
|
|
20847
21058
|
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
|
-
|
|
21059
|
+
if (!column) {
|
|
21060
|
+
if (!cache.lines.length) {
|
|
21061
|
+
return {
|
|
21062
|
+
x: 0,
|
|
21063
|
+
y1: 0,
|
|
21064
|
+
y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
|
|
21065
|
+
textConfig: [{
|
|
21066
|
+
text: "a"
|
|
21067
|
+
}]
|
|
21068
|
+
})).height()
|
|
21069
|
+
};
|
|
21070
|
+
}
|
|
21071
|
+
return {
|
|
21072
|
+
x: 0,
|
|
21073
|
+
y1: 0,
|
|
21074
|
+
y2: height
|
|
21075
|
+
};
|
|
21076
|
+
}
|
|
20853
21077
|
const {
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
21078
|
+
lineInfo: lineInfo,
|
|
21079
|
+
columnInfo: columnInfo
|
|
21080
|
+
} = column,
|
|
21081
|
+
y1 = lineInfo.top,
|
|
20858
21082
|
y2 = lineInfo.top + lineInfo.height;
|
|
20859
|
-
return
|
|
21083
|
+
return {
|
|
20860
21084
|
x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
|
|
20861
21085
|
y1: y1,
|
|
20862
|
-
y2: y2
|
|
21086
|
+
y2: y2,
|
|
21087
|
+
lineInfo: lineInfo,
|
|
21088
|
+
columnInfo: columnInfo
|
|
20863
21089
|
};
|
|
20864
21090
|
}
|
|
20865
21091
|
getColumnByIndex(cache, index) {
|
|
@@ -20883,6 +21109,37 @@
|
|
|
20883
21109
|
let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20884
21110
|
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
21111
|
}
|
|
21112
|
+
forceFocus(params) {
|
|
21113
|
+
const {
|
|
21114
|
+
target: target,
|
|
21115
|
+
e: e,
|
|
21116
|
+
cursorIndex: cursorIndex
|
|
21117
|
+
} = params;
|
|
21118
|
+
target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
|
|
21119
|
+
}
|
|
21120
|
+
_forceFocusByEvent(e) {
|
|
21121
|
+
this.handleEnter(e), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21122
|
+
}
|
|
21123
|
+
_forceFocusByCursorIndex(cursorIndex) {
|
|
21124
|
+
const richtext = this.currRt;
|
|
21125
|
+
if (!richtext) return;
|
|
21126
|
+
let x = 0,
|
|
21127
|
+
y1 = 0,
|
|
21128
|
+
y2 = 2,
|
|
21129
|
+
lineInfo = null,
|
|
21130
|
+
columnInfo = null;
|
|
21131
|
+
const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
|
|
21132
|
+
x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
|
|
21133
|
+
target: this.currRt
|
|
21134
|
+
}, {
|
|
21135
|
+
x: x,
|
|
21136
|
+
y1: y1,
|
|
21137
|
+
y2: y2,
|
|
21138
|
+
cursorIndex: cursorIndex,
|
|
21139
|
+
lineInfo: lineInfo,
|
|
21140
|
+
columnInfo: columnInfo
|
|
21141
|
+
});
|
|
21142
|
+
}
|
|
20886
21143
|
}
|
|
20887
21144
|
|
|
20888
21145
|
class DefaultGraphicAllocate {
|
|
@@ -21065,7 +21322,7 @@
|
|
|
21065
21322
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
21066
21323
|
});
|
|
21067
21324
|
|
|
21068
|
-
var __decorate$
|
|
21325
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21069
21326
|
var d,
|
|
21070
21327
|
c = arguments.length,
|
|
21071
21328
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21097,21 +21354,21 @@
|
|
|
21097
21354
|
}), context.highPerformanceRestore();
|
|
21098
21355
|
}
|
|
21099
21356
|
};
|
|
21100
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
21357
|
+
DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
|
|
21101
21358
|
|
|
21102
21359
|
let loadGlyphModule = !1;
|
|
21103
21360
|
const glyphModule = new ContainerModule(bind => {
|
|
21104
21361
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
21105
21362
|
});
|
|
21106
21363
|
|
|
21107
|
-
var __decorate$
|
|
21364
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21108
21365
|
var d,
|
|
21109
21366
|
c = arguments.length,
|
|
21110
21367
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21111
21368
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
21369
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21113
21370
|
},
|
|
21114
|
-
__metadata$
|
|
21371
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
21115
21372
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21116
21373
|
};
|
|
21117
21374
|
let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
@@ -21165,7 +21422,7 @@
|
|
|
21165
21422
|
this._draw(richtext, richtextAttribute, !1, drawContext);
|
|
21166
21423
|
}
|
|
21167
21424
|
};
|
|
21168
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
21425
|
+
DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
21169
21426
|
|
|
21170
21427
|
let loadRichtextModule = !1;
|
|
21171
21428
|
const richtextModule = new ContainerModule(bind => {
|
|
@@ -21249,7 +21506,7 @@
|
|
|
21249
21506
|
}
|
|
21250
21507
|
}
|
|
21251
21508
|
|
|
21252
|
-
var __decorate$
|
|
21509
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21253
21510
|
var d,
|
|
21254
21511
|
c = arguments.length,
|
|
21255
21512
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21305,14 +21562,14 @@
|
|
|
21305
21562
|
this._draw(rect, rectAttribute, !1, drawContext);
|
|
21306
21563
|
}
|
|
21307
21564
|
};
|
|
21308
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
21565
|
+
DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
|
|
21309
21566
|
|
|
21310
21567
|
let loadRect3dModule = !1;
|
|
21311
21568
|
const rect3dModule = new ContainerModule(bind => {
|
|
21312
21569
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
21313
21570
|
});
|
|
21314
21571
|
|
|
21315
|
-
var __decorate$
|
|
21572
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21316
21573
|
var d,
|
|
21317
21574
|
c = arguments.length,
|
|
21318
21575
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21439,14 +21696,14 @@
|
|
|
21439
21696
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
21440
21697
|
}
|
|
21441
21698
|
};
|
|
21442
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
21699
|
+
DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
|
|
21443
21700
|
|
|
21444
21701
|
let loadArc3dModule = !1;
|
|
21445
21702
|
const arc3dModule = new ContainerModule(bind => {
|
|
21446
21703
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
21447
21704
|
});
|
|
21448
21705
|
|
|
21449
|
-
var __decorate$
|
|
21706
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21450
21707
|
var d,
|
|
21451
21708
|
c = arguments.length,
|
|
21452
21709
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21483,7 +21740,7 @@
|
|
|
21483
21740
|
this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
|
|
21484
21741
|
}
|
|
21485
21742
|
};
|
|
21486
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
21743
|
+
DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
|
|
21487
21744
|
|
|
21488
21745
|
let loadPyramid3dModule = !1;
|
|
21489
21746
|
const pyramid3dModule = new ContainerModule(bind => {
|
|
@@ -23606,17 +23863,17 @@
|
|
|
23606
23863
|
}
|
|
23607
23864
|
}
|
|
23608
23865
|
|
|
23609
|
-
var __decorate$
|
|
23866
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23610
23867
|
var d,
|
|
23611
23868
|
c = arguments.length,
|
|
23612
23869
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23613
23870
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
23871
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23615
23872
|
},
|
|
23616
|
-
__metadata$
|
|
23873
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
23617
23874
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23618
23875
|
},
|
|
23619
|
-
__param$
|
|
23876
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23620
23877
|
return function (target, key) {
|
|
23621
23878
|
decorator(target, key, paramIndex);
|
|
23622
23879
|
};
|
|
@@ -23702,9 +23959,9 @@
|
|
|
23702
23959
|
}), context.highPerformanceRestore();
|
|
23703
23960
|
}
|
|
23704
23961
|
};
|
|
23705
|
-
RoughCanvasArcRender = __decorate$
|
|
23962
|
+
RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(exports.DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
23706
23963
|
|
|
23707
|
-
var __decorate$
|
|
23964
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23708
23965
|
var d,
|
|
23709
23966
|
c = arguments.length,
|
|
23710
23967
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23782,19 +24039,19 @@
|
|
|
23782
24039
|
}), context.highPerformanceRestore(), !1;
|
|
23783
24040
|
}
|
|
23784
24041
|
};
|
|
23785
|
-
RoughCanvasAreaRender = __decorate$
|
|
24042
|
+
RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
|
|
23786
24043
|
|
|
23787
|
-
var __decorate$
|
|
24044
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23788
24045
|
var d,
|
|
23789
24046
|
c = arguments.length,
|
|
23790
24047
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23791
24048
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24049
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23793
24050
|
},
|
|
23794
|
-
__metadata$
|
|
24051
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
23795
24052
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23796
24053
|
},
|
|
23797
|
-
__param$
|
|
24054
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23798
24055
|
return function (target, key) {
|
|
23799
24056
|
decorator(target, key, paramIndex);
|
|
23800
24057
|
};
|
|
@@ -23831,9 +24088,9 @@
|
|
|
23831
24088
|
});
|
|
23832
24089
|
}
|
|
23833
24090
|
};
|
|
23834
|
-
RoughCanvasCircleRender = __decorate$
|
|
24091
|
+
RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(exports.DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
23835
24092
|
|
|
23836
|
-
var __decorate$
|
|
24093
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23837
24094
|
var d,
|
|
23838
24095
|
c = arguments.length,
|
|
23839
24096
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23912,19 +24169,19 @@
|
|
|
23912
24169
|
}), context.highPerformanceRestore(), !1;
|
|
23913
24170
|
}
|
|
23914
24171
|
};
|
|
23915
|
-
RoughCanvasLineRender = __decorate$
|
|
24172
|
+
RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
|
|
23916
24173
|
|
|
23917
|
-
var __decorate$
|
|
24174
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23918
24175
|
var d,
|
|
23919
24176
|
c = arguments.length,
|
|
23920
24177
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23921
24178
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24179
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23923
24180
|
},
|
|
23924
|
-
__metadata$
|
|
24181
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
23925
24182
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23926
24183
|
},
|
|
23927
|
-
__param$
|
|
24184
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23928
24185
|
return function (target, key) {
|
|
23929
24186
|
decorator(target, key, paramIndex);
|
|
23930
24187
|
};
|
|
@@ -23998,19 +24255,19 @@
|
|
|
23998
24255
|
}), context.highPerformanceRestore();
|
|
23999
24256
|
}
|
|
24000
24257
|
};
|
|
24001
|
-
RoughCanvasPathRender = __decorate$
|
|
24258
|
+
RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(exports.DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
24002
24259
|
|
|
24003
|
-
var __decorate$
|
|
24260
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24004
24261
|
var d,
|
|
24005
24262
|
c = arguments.length,
|
|
24006
24263
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24007
24264
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24265
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24009
24266
|
},
|
|
24010
|
-
__metadata$
|
|
24267
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
24011
24268
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24012
24269
|
},
|
|
24013
|
-
__param$
|
|
24270
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24014
24271
|
return function (target, key) {
|
|
24015
24272
|
decorator(target, key, paramIndex);
|
|
24016
24273
|
};
|
|
@@ -24101,19 +24358,19 @@
|
|
|
24101
24358
|
}), context.highPerformanceRestore();
|
|
24102
24359
|
}
|
|
24103
24360
|
};
|
|
24104
|
-
RoughCanvasRectRender = __decorate$
|
|
24361
|
+
RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(exports.DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
24105
24362
|
|
|
24106
|
-
var __decorate
|
|
24363
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24107
24364
|
var d,
|
|
24108
24365
|
c = arguments.length,
|
|
24109
24366
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24110
24367
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24368
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24112
24369
|
},
|
|
24113
|
-
__metadata$
|
|
24370
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
24114
24371
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24115
24372
|
},
|
|
24116
|
-
__param$
|
|
24373
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24117
24374
|
return function (target, key) {
|
|
24118
24375
|
decorator(target, key, paramIndex);
|
|
24119
24376
|
};
|
|
@@ -24205,7 +24462,7 @@
|
|
|
24205
24462
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24206
24463
|
}
|
|
24207
24464
|
};
|
|
24208
|
-
RoughCanvasSymbolRender = __decorate
|
|
24465
|
+
RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
24209
24466
|
|
|
24210
24467
|
var _roughModule = new ContainerModule(bind => {
|
|
24211
24468
|
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 +24485,6 @@
|
|
|
24228
24485
|
const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
|
|
24229
24486
|
const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
|
|
24230
24487
|
const CanvasImagePicker = Symbol.for("CanvasImagePicker");
|
|
24231
|
-
const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
|
|
24232
24488
|
const CanvasLinePicker = Symbol.for("CanvasLinePicker");
|
|
24233
24489
|
const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
|
|
24234
24490
|
const CanvasPathPicker = Symbol.for("CanvasPathPicker");
|
|
@@ -24369,11 +24625,9 @@
|
|
|
24369
24625
|
name: name,
|
|
24370
24626
|
id: id,
|
|
24371
24627
|
attribute: attribute,
|
|
24372
|
-
stateProxy: stateProxy
|
|
24373
|
-
animation: animation,
|
|
24374
|
-
timeline: timeline
|
|
24628
|
+
stateProxy: stateProxy
|
|
24375
24629
|
} = _a,
|
|
24376
|
-
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"
|
|
24630
|
+
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
|
|
24377
24631
|
let c = type;
|
|
24378
24632
|
isString$1(type) && (c = graphicCreator[type]);
|
|
24379
24633
|
const childrenList = [];
|
|
@@ -24382,13 +24636,7 @@
|
|
|
24382
24636
|
}
|
|
24383
24637
|
children.length && flatten(1 === children.length ? children[0] : children, childrenList);
|
|
24384
24638
|
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;
|
|
24639
|
+
return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
|
|
24392
24640
|
}
|
|
24393
24641
|
function parseToGraphic$1(g, childrenList, props) {
|
|
24394
24642
|
let out,
|
|
@@ -24718,14 +24966,14 @@
|
|
|
24718
24966
|
}
|
|
24719
24967
|
}
|
|
24720
24968
|
|
|
24721
|
-
var __decorate$
|
|
24969
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24722
24970
|
var d,
|
|
24723
24971
|
c = arguments.length,
|
|
24724
24972
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24725
24973
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
24974
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24727
24975
|
},
|
|
24728
|
-
__metadata$
|
|
24976
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
24729
24977
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24730
24978
|
};
|
|
24731
24979
|
const outP = [0, 0, 0],
|
|
@@ -25237,16 +25485,16 @@
|
|
|
25237
25485
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25238
25486
|
}
|
|
25239
25487
|
};
|
|
25240
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
25488
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
25241
25489
|
|
|
25242
|
-
var __decorate
|
|
25490
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25243
25491
|
var d,
|
|
25244
25492
|
c = arguments.length,
|
|
25245
25493
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25246
25494
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25495
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25248
25496
|
},
|
|
25249
|
-
__metadata$
|
|
25497
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
25250
25498
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25251
25499
|
};
|
|
25252
25500
|
let BrowserCanvas = class extends BaseCanvas {
|
|
@@ -25308,7 +25556,7 @@
|
|
|
25308
25556
|
this._context.dpr = this._dpr;
|
|
25309
25557
|
}
|
|
25310
25558
|
};
|
|
25311
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate
|
|
25559
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
|
|
25312
25560
|
|
|
25313
25561
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
25314
25562
|
return new ContainerModule(bind => {
|
|
@@ -25318,17 +25566,17 @@
|
|
|
25318
25566
|
|
|
25319
25567
|
const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
25320
25568
|
|
|
25321
|
-
var __decorate$
|
|
25569
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25322
25570
|
var d,
|
|
25323
25571
|
c = arguments.length,
|
|
25324
25572
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25325
25573
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25574
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25327
25575
|
},
|
|
25328
|
-
__metadata$
|
|
25576
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
25329
25577
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25330
25578
|
},
|
|
25331
|
-
__param$
|
|
25579
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25332
25580
|
return function (target, key) {
|
|
25333
25581
|
decorator(target, key, paramIndex);
|
|
25334
25582
|
};
|
|
@@ -25379,9 +25627,9 @@
|
|
|
25379
25627
|
return data;
|
|
25380
25628
|
}
|
|
25381
25629
|
};
|
|
25382
|
-
DefaultCanvasPickerService = __decorate$
|
|
25630
|
+
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
25631
|
|
|
25384
|
-
var __decorate$
|
|
25632
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25385
25633
|
var d,
|
|
25386
25634
|
c = arguments.length,
|
|
25387
25635
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25396,7 +25644,7 @@
|
|
|
25396
25644
|
return !1;
|
|
25397
25645
|
}
|
|
25398
25646
|
};
|
|
25399
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
25647
|
+
DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
|
|
25400
25648
|
|
|
25401
25649
|
const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
25402
25650
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -25412,14 +25660,14 @@
|
|
|
25412
25660
|
}
|
|
25413
25661
|
|
|
25414
25662
|
var BrowserWindowHandlerContribution_1,
|
|
25415
|
-
__decorate$
|
|
25663
|
+
__decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25416
25664
|
var d,
|
|
25417
25665
|
c = arguments.length,
|
|
25418
25666
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25419
25667
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25668
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25421
25669
|
},
|
|
25422
|
-
__metadata$
|
|
25670
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
25423
25671
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25424
25672
|
};
|
|
25425
25673
|
let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends exports.BaseWindowHandlerContribution {
|
|
@@ -25577,19 +25825,19 @@
|
|
|
25577
25825
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
25578
25826
|
}
|
|
25579
25827
|
};
|
|
25580
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$
|
|
25828
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
25581
25829
|
const browserWindowModule = new ContainerModule(bind => {
|
|
25582
25830
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
25583
25831
|
});
|
|
25584
25832
|
|
|
25585
|
-
var __decorate$
|
|
25833
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25586
25834
|
var d,
|
|
25587
25835
|
c = arguments.length,
|
|
25588
25836
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25589
25837
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
25838
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25591
25839
|
},
|
|
25592
|
-
__metadata$
|
|
25840
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
25593
25841
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25594
25842
|
},
|
|
25595
25843
|
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -25643,7 +25891,7 @@
|
|
|
25643
25891
|
function createImageElement$1(src) {
|
|
25644
25892
|
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
25645
25893
|
const img = document.createElement("img");
|
|
25646
|
-
if (
|
|
25894
|
+
if (img.crossOrigin = "anonymous", isSvg) {
|
|
25647
25895
|
const data = new Blob([src], {
|
|
25648
25896
|
type: "image/svg+xml"
|
|
25649
25897
|
});
|
|
@@ -25836,7 +26084,7 @@
|
|
|
25836
26084
|
return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
|
|
25837
26085
|
}
|
|
25838
26086
|
};
|
|
25839
|
-
exports.BrowserEnvContribution = __decorate$
|
|
26087
|
+
exports.BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], exports.BrowserEnvContribution);
|
|
25840
26088
|
|
|
25841
26089
|
const browserEnvModule = new ContainerModule(bind => {
|
|
25842
26090
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(exports.BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(exports.BrowserEnvContribution));
|
|
@@ -25851,7 +26099,7 @@
|
|
|
25851
26099
|
loadBrowserEnv(container);
|
|
25852
26100
|
}
|
|
25853
26101
|
|
|
25854
|
-
var __decorate$
|
|
26102
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25855
26103
|
var d,
|
|
25856
26104
|
c = arguments.length,
|
|
25857
26105
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25896,16 +26144,16 @@
|
|
|
25896
26144
|
return null;
|
|
25897
26145
|
}
|
|
25898
26146
|
};
|
|
25899
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
26147
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
|
|
25900
26148
|
|
|
25901
|
-
var __decorate$
|
|
26149
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25902
26150
|
var d,
|
|
25903
26151
|
c = arguments.length,
|
|
25904
26152
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25905
26153
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26154
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25907
26155
|
},
|
|
25908
|
-
__metadata$
|
|
26156
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
25909
26157
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25910
26158
|
};
|
|
25911
26159
|
let FeishuCanvas = class extends BaseCanvas {
|
|
@@ -25917,21 +26165,21 @@
|
|
|
25917
26165
|
}
|
|
25918
26166
|
release() {}
|
|
25919
26167
|
};
|
|
25920
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
26168
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
|
|
25921
26169
|
|
|
25922
26170
|
const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
25923
26171
|
|
|
25924
|
-
var __decorate$
|
|
26172
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25925
26173
|
var d,
|
|
25926
26174
|
c = arguments.length,
|
|
25927
26175
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25928
26176
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26177
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25930
26178
|
},
|
|
25931
|
-
__metadata$
|
|
26179
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
25932
26180
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25933
26181
|
},
|
|
25934
|
-
__param$
|
|
26182
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25935
26183
|
return function (target, key) {
|
|
25936
26184
|
decorator(target, key, paramIndex);
|
|
25937
26185
|
};
|
|
@@ -26067,22 +26315,22 @@
|
|
|
26067
26315
|
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
26316
|
}
|
|
26069
26317
|
};
|
|
26070
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
26318
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
26071
26319
|
const feishuWindowModule = new ContainerModule(bind => {
|
|
26072
26320
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
26073
26321
|
});
|
|
26074
26322
|
|
|
26075
|
-
var __decorate$
|
|
26323
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26076
26324
|
var d,
|
|
26077
26325
|
c = arguments.length,
|
|
26078
26326
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26079
26327
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26328
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26081
26329
|
},
|
|
26082
|
-
__metadata$
|
|
26330
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
26083
26331
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26084
26332
|
},
|
|
26085
|
-
__param$
|
|
26333
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26086
26334
|
return function (target, key) {
|
|
26087
26335
|
decorator(target, key, paramIndex);
|
|
26088
26336
|
};
|
|
@@ -26113,7 +26361,7 @@
|
|
|
26113
26361
|
} : null;
|
|
26114
26362
|
}
|
|
26115
26363
|
};
|
|
26116
|
-
DefaultMathPickerService = __decorate$
|
|
26364
|
+
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
26365
|
|
|
26118
26366
|
const m = new ContainerModule(bind => {
|
|
26119
26367
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -26150,17 +26398,17 @@
|
|
|
26150
26398
|
}
|
|
26151
26399
|
}
|
|
26152
26400
|
|
|
26153
|
-
var __decorate$
|
|
26401
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26154
26402
|
var d,
|
|
26155
26403
|
c = arguments.length,
|
|
26156
26404
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26157
26405
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26406
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26159
26407
|
},
|
|
26160
|
-
__metadata$
|
|
26408
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
26161
26409
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26162
26410
|
},
|
|
26163
|
-
__param$
|
|
26411
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26164
26412
|
return function (target, key) {
|
|
26165
26413
|
decorator(target, key, paramIndex);
|
|
26166
26414
|
};
|
|
@@ -26170,24 +26418,24 @@
|
|
|
26170
26418
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
26171
26419
|
}
|
|
26172
26420
|
};
|
|
26173
|
-
DefaultMathArcPicker = __decorate$
|
|
26421
|
+
DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
26174
26422
|
|
|
26175
26423
|
let loadArcPick$1 = !1;
|
|
26176
26424
|
const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26177
26425
|
loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
|
|
26178
26426
|
});
|
|
26179
26427
|
|
|
26180
|
-
var __decorate$
|
|
26428
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26181
26429
|
var d,
|
|
26182
26430
|
c = arguments.length,
|
|
26183
26431
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26184
26432
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26433
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26186
26434
|
},
|
|
26187
|
-
__metadata$
|
|
26435
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
26188
26436
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26189
26437
|
},
|
|
26190
|
-
__param$
|
|
26438
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26191
26439
|
return function (target, key) {
|
|
26192
26440
|
decorator(target, key, paramIndex);
|
|
26193
26441
|
};
|
|
@@ -26197,24 +26445,24 @@
|
|
|
26197
26445
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
26198
26446
|
}
|
|
26199
26447
|
};
|
|
26200
|
-
DefaultMathAreaPicker = __decorate$
|
|
26448
|
+
DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
|
|
26201
26449
|
|
|
26202
26450
|
let loadAreaPick$1 = !1;
|
|
26203
26451
|
const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26204
26452
|
loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
|
|
26205
26453
|
});
|
|
26206
26454
|
|
|
26207
|
-
var __decorate$
|
|
26455
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26208
26456
|
var d,
|
|
26209
26457
|
c = arguments.length,
|
|
26210
26458
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26211
26459
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26460
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26213
26461
|
},
|
|
26214
|
-
__metadata$
|
|
26462
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
26215
26463
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26216
26464
|
},
|
|
26217
|
-
__param$
|
|
26465
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26218
26466
|
return function (target, key) {
|
|
26219
26467
|
decorator(target, key, paramIndex);
|
|
26220
26468
|
};
|
|
@@ -26224,7 +26472,7 @@
|
|
|
26224
26472
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
26225
26473
|
}
|
|
26226
26474
|
};
|
|
26227
|
-
DefaultMathCirclePicker = __decorate$
|
|
26475
|
+
DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
26228
26476
|
|
|
26229
26477
|
let loadCirclePick$1 = !1;
|
|
26230
26478
|
const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26255,17 +26503,17 @@
|
|
|
26255
26503
|
}
|
|
26256
26504
|
}
|
|
26257
26505
|
|
|
26258
|
-
var __decorate$
|
|
26506
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26259
26507
|
var d,
|
|
26260
26508
|
c = arguments.length,
|
|
26261
26509
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26262
26510
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26511
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26264
26512
|
},
|
|
26265
|
-
__metadata$
|
|
26513
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
26266
26514
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26267
26515
|
},
|
|
26268
|
-
__param$
|
|
26516
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26269
26517
|
return function (target, key) {
|
|
26270
26518
|
decorator(target, key, paramIndex);
|
|
26271
26519
|
};
|
|
@@ -26275,14 +26523,14 @@
|
|
|
26275
26523
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26276
26524
|
}
|
|
26277
26525
|
};
|
|
26278
|
-
DefaultMathGlyphPicker = __decorate$
|
|
26526
|
+
DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
26279
26527
|
|
|
26280
26528
|
let loadGlyphPick$1 = !1;
|
|
26281
26529
|
const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26282
26530
|
loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
|
|
26283
26531
|
});
|
|
26284
26532
|
|
|
26285
|
-
var __decorate$
|
|
26533
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26286
26534
|
var d,
|
|
26287
26535
|
c = arguments.length,
|
|
26288
26536
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26300,24 +26548,24 @@
|
|
|
26300
26548
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
26301
26549
|
}
|
|
26302
26550
|
};
|
|
26303
|
-
DefaultMathImagePicker = __decorate$
|
|
26551
|
+
DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
|
|
26304
26552
|
|
|
26305
26553
|
let loadImagePick$1 = !1;
|
|
26306
26554
|
const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26307
26555
|
loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26308
26556
|
});
|
|
26309
26557
|
|
|
26310
|
-
var __decorate$
|
|
26558
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26311
26559
|
var d,
|
|
26312
26560
|
c = arguments.length,
|
|
26313
26561
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26314
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);
|
|
26315
26563
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26316
26564
|
},
|
|
26317
|
-
__metadata$
|
|
26565
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
26318
26566
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26319
26567
|
},
|
|
26320
|
-
__param$
|
|
26568
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26321
26569
|
return function (target, key) {
|
|
26322
26570
|
decorator(target, key, paramIndex);
|
|
26323
26571
|
};
|
|
@@ -26327,24 +26575,24 @@
|
|
|
26327
26575
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
26328
26576
|
}
|
|
26329
26577
|
};
|
|
26330
|
-
DefaultMathLinePicker = __decorate$
|
|
26578
|
+
DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
26331
26579
|
|
|
26332
26580
|
let loadLinePick$1 = !1;
|
|
26333
26581
|
const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26334
26582
|
loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
|
|
26335
26583
|
});
|
|
26336
26584
|
|
|
26337
|
-
var __decorate$
|
|
26585
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26338
26586
|
var d,
|
|
26339
26587
|
c = arguments.length,
|
|
26340
26588
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26341
26589
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26590
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26343
26591
|
},
|
|
26344
|
-
__metadata$
|
|
26592
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
26345
26593
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26346
26594
|
},
|
|
26347
|
-
__param$
|
|
26595
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26348
26596
|
return function (target, key) {
|
|
26349
26597
|
decorator(target, key, paramIndex);
|
|
26350
26598
|
};
|
|
@@ -26354,24 +26602,24 @@
|
|
|
26354
26602
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
26355
26603
|
}
|
|
26356
26604
|
};
|
|
26357
|
-
DefaultMathPolygonPicker = __decorate$
|
|
26605
|
+
DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
26358
26606
|
|
|
26359
26607
|
let loadPolygonPick$1 = !1;
|
|
26360
26608
|
const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26361
26609
|
loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
|
|
26362
26610
|
});
|
|
26363
26611
|
|
|
26364
|
-
var __decorate$
|
|
26612
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26365
26613
|
var d,
|
|
26366
26614
|
c = arguments.length,
|
|
26367
26615
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26368
26616
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26617
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26370
26618
|
},
|
|
26371
|
-
__metadata$
|
|
26619
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
26372
26620
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26373
26621
|
},
|
|
26374
|
-
__param$
|
|
26622
|
+
__param$n = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26375
26623
|
return function (target, key) {
|
|
26376
26624
|
decorator(target, key, paramIndex);
|
|
26377
26625
|
};
|
|
@@ -26381,7 +26629,7 @@
|
|
|
26381
26629
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
26382
26630
|
}
|
|
26383
26631
|
};
|
|
26384
|
-
DefaultMathPathPicker = __decorate$
|
|
26632
|
+
DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
26385
26633
|
|
|
26386
26634
|
let loadPathPick$1 = !1;
|
|
26387
26635
|
const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26436,17 +26684,17 @@
|
|
|
26436
26684
|
}
|
|
26437
26685
|
}
|
|
26438
26686
|
|
|
26439
|
-
var __decorate$
|
|
26687
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26440
26688
|
var d,
|
|
26441
26689
|
c = arguments.length,
|
|
26442
26690
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26443
26691
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26692
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26445
26693
|
},
|
|
26446
|
-
__metadata$
|
|
26694
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
26447
26695
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26448
26696
|
},
|
|
26449
|
-
__param$
|
|
26697
|
+
__param$m = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26450
26698
|
return function (target, key) {
|
|
26451
26699
|
decorator(target, key, paramIndex);
|
|
26452
26700
|
};
|
|
@@ -26456,7 +26704,7 @@
|
|
|
26456
26704
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26457
26705
|
}
|
|
26458
26706
|
};
|
|
26459
|
-
DefaultMathRectPicker = __decorate$
|
|
26707
|
+
DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
26460
26708
|
|
|
26461
26709
|
let loadRectPick$1 = !1;
|
|
26462
26710
|
const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26468,17 +26716,17 @@
|
|
|
26468
26716
|
loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26469
26717
|
});
|
|
26470
26718
|
|
|
26471
|
-
var __decorate$
|
|
26719
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26472
26720
|
var d,
|
|
26473
26721
|
c = arguments.length,
|
|
26474
26722
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26475
26723
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26724
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26477
26725
|
},
|
|
26478
|
-
__metadata$
|
|
26726
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
26479
26727
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26480
26728
|
},
|
|
26481
|
-
__param$
|
|
26729
|
+
__param$l = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26482
26730
|
return function (target, key) {
|
|
26483
26731
|
decorator(target, key, paramIndex);
|
|
26484
26732
|
};
|
|
@@ -26488,14 +26736,14 @@
|
|
|
26488
26736
|
super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
26489
26737
|
}
|
|
26490
26738
|
};
|
|
26491
|
-
DefaultMathSymbolPicker = __decorate$
|
|
26739
|
+
DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
26492
26740
|
|
|
26493
26741
|
let loadSymbolPick$1 = !1;
|
|
26494
26742
|
const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26495
26743
|
loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
|
|
26496
26744
|
});
|
|
26497
26745
|
|
|
26498
|
-
var __decorate$
|
|
26746
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26499
26747
|
var d,
|
|
26500
26748
|
c = arguments.length,
|
|
26501
26749
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26510,7 +26758,7 @@
|
|
|
26510
26758
|
return !!text.AABBBounds.containsPoint(point);
|
|
26511
26759
|
}
|
|
26512
26760
|
};
|
|
26513
|
-
DefaultMathTextPicker = __decorate$
|
|
26761
|
+
DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
|
|
26514
26762
|
|
|
26515
26763
|
let loadTextPick$1 = !1;
|
|
26516
26764
|
const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26593,14 +26841,14 @@
|
|
|
26593
26841
|
}
|
|
26594
26842
|
}
|
|
26595
26843
|
|
|
26596
|
-
var __decorate$
|
|
26844
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26597
26845
|
var d,
|
|
26598
26846
|
c = arguments.length,
|
|
26599
26847
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26600
26848
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
26849
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26602
26850
|
},
|
|
26603
|
-
__metadata$
|
|
26851
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
26604
26852
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26605
26853
|
};
|
|
26606
26854
|
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
@@ -26682,7 +26930,7 @@
|
|
|
26682
26930
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
26683
26931
|
}
|
|
26684
26932
|
};
|
|
26685
|
-
FeishuEnvContribution = __decorate$
|
|
26933
|
+
FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
|
|
26686
26934
|
|
|
26687
26935
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
26688
26936
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -26697,7 +26945,7 @@
|
|
|
26697
26945
|
loadFeishuEnv(container);
|
|
26698
26946
|
}
|
|
26699
26947
|
|
|
26700
|
-
var __decorate$
|
|
26948
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26701
26949
|
var d,
|
|
26702
26950
|
c = arguments.length,
|
|
26703
26951
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26758,16 +27006,16 @@
|
|
|
26758
27006
|
}));
|
|
26759
27007
|
}
|
|
26760
27008
|
};
|
|
26761
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
27009
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
|
|
26762
27010
|
|
|
26763
|
-
var __decorate$
|
|
27011
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26764
27012
|
var d,
|
|
26765
27013
|
c = arguments.length,
|
|
26766
27014
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26767
27015
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27016
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26769
27017
|
},
|
|
26770
|
-
__metadata$
|
|
27018
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
26771
27019
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26772
27020
|
};
|
|
26773
27021
|
let LynxCanvas = class extends BaseCanvas {
|
|
@@ -26783,19 +27031,19 @@
|
|
|
26783
27031
|
}
|
|
26784
27032
|
release() {}
|
|
26785
27033
|
};
|
|
26786
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
27034
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
|
|
26787
27035
|
|
|
26788
|
-
var __decorate$
|
|
27036
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26789
27037
|
var d,
|
|
26790
27038
|
c = arguments.length,
|
|
26791
27039
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26792
27040
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27041
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26794
27042
|
},
|
|
26795
|
-
__metadata$
|
|
27043
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
26796
27044
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26797
27045
|
},
|
|
26798
|
-
__param$
|
|
27046
|
+
__param$k = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26799
27047
|
return function (target, key) {
|
|
26800
27048
|
decorator(target, key, paramIndex);
|
|
26801
27049
|
};
|
|
@@ -26933,21 +27181,21 @@
|
|
|
26933
27181
|
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
27182
|
}
|
|
26935
27183
|
};
|
|
26936
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
27184
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
26937
27185
|
const lynxWindowModule = new ContainerModule(bind => {
|
|
26938
27186
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
|
|
26939
27187
|
});
|
|
26940
27188
|
|
|
26941
27189
|
const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
26942
27190
|
|
|
26943
|
-
var __decorate$
|
|
27191
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26944
27192
|
var d,
|
|
26945
27193
|
c = arguments.length,
|
|
26946
27194
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26947
27195
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27196
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26949
27197
|
},
|
|
26950
|
-
__metadata$
|
|
27198
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
26951
27199
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26952
27200
|
};
|
|
26953
27201
|
let ng = !1;
|
|
@@ -27057,7 +27305,7 @@
|
|
|
27057
27305
|
}
|
|
27058
27306
|
release() {}
|
|
27059
27307
|
};
|
|
27060
|
-
LynxEnvContribution = __decorate$
|
|
27308
|
+
LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
|
|
27061
27309
|
|
|
27062
27310
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
27063
27311
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -27072,14 +27320,14 @@
|
|
|
27072
27320
|
loadLynxEnv(container);
|
|
27073
27321
|
}
|
|
27074
27322
|
|
|
27075
|
-
var __decorate$
|
|
27323
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27076
27324
|
var d,
|
|
27077
27325
|
c = arguments.length,
|
|
27078
27326
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27079
27327
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27328
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27081
27329
|
},
|
|
27082
|
-
__metadata$
|
|
27330
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
27083
27331
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27084
27332
|
};
|
|
27085
27333
|
let NodeContext2d = class extends BrowserContext2d {
|
|
@@ -27091,16 +27339,16 @@
|
|
|
27091
27339
|
}
|
|
27092
27340
|
release() {}
|
|
27093
27341
|
};
|
|
27094
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
27342
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
27095
27343
|
|
|
27096
|
-
var __decorate$
|
|
27344
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27097
27345
|
var d,
|
|
27098
27346
|
c = arguments.length,
|
|
27099
27347
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27100
27348
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27349
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27102
27350
|
},
|
|
27103
|
-
__metadata$
|
|
27351
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
27104
27352
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27105
27353
|
};
|
|
27106
27354
|
let NodeCanvas = class extends BaseCanvas {
|
|
@@ -27114,21 +27362,21 @@
|
|
|
27114
27362
|
this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
27115
27363
|
}
|
|
27116
27364
|
};
|
|
27117
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
27365
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
|
|
27118
27366
|
|
|
27119
27367
|
const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
27120
27368
|
|
|
27121
|
-
var __decorate$
|
|
27369
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27122
27370
|
var d,
|
|
27123
27371
|
c = arguments.length,
|
|
27124
27372
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27125
27373
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27126
27374
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27127
27375
|
},
|
|
27128
|
-
__metadata$
|
|
27376
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
27129
27377
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27130
27378
|
},
|
|
27131
|
-
__param$
|
|
27379
|
+
__param$j = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27132
27380
|
return function (target, key) {
|
|
27133
27381
|
decorator(target, key, paramIndex);
|
|
27134
27382
|
};
|
|
@@ -27219,12 +27467,12 @@
|
|
|
27219
27467
|
}
|
|
27220
27468
|
clearViewBox(color) {}
|
|
27221
27469
|
};
|
|
27222
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
27470
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
27223
27471
|
const nodeWindowModule = new ContainerModule(bind => {
|
|
27224
27472
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
27225
27473
|
});
|
|
27226
27474
|
|
|
27227
|
-
var __decorate$
|
|
27475
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27228
27476
|
var d,
|
|
27229
27477
|
c = arguments.length,
|
|
27230
27478
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27310,7 +27558,7 @@
|
|
|
27310
27558
|
release() {}
|
|
27311
27559
|
createOffscreenCanvas(params) {}
|
|
27312
27560
|
};
|
|
27313
|
-
NodeEnvContribution = __decorate$
|
|
27561
|
+
NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
|
|
27314
27562
|
|
|
27315
27563
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
27316
27564
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -27324,7 +27572,7 @@
|
|
|
27324
27572
|
loadNodeEnv(container);
|
|
27325
27573
|
}
|
|
27326
27574
|
|
|
27327
|
-
var __decorate$
|
|
27575
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27328
27576
|
var d,
|
|
27329
27577
|
c = arguments.length,
|
|
27330
27578
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27413,16 +27661,16 @@
|
|
|
27413
27661
|
return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
|
|
27414
27662
|
}
|
|
27415
27663
|
};
|
|
27416
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
27664
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
|
|
27417
27665
|
|
|
27418
|
-
var __decorate$
|
|
27666
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27419
27667
|
var d,
|
|
27420
27668
|
c = arguments.length,
|
|
27421
27669
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27422
27670
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27671
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27424
27672
|
},
|
|
27425
|
-
__metadata$
|
|
27673
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
27426
27674
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27427
27675
|
};
|
|
27428
27676
|
let TaroCanvas = class extends BaseCanvas {
|
|
@@ -27434,21 +27682,21 @@
|
|
|
27434
27682
|
}
|
|
27435
27683
|
release() {}
|
|
27436
27684
|
};
|
|
27437
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
27685
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
|
|
27438
27686
|
|
|
27439
27687
|
const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
27440
27688
|
|
|
27441
|
-
var __decorate$
|
|
27689
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27442
27690
|
var d,
|
|
27443
27691
|
c = arguments.length,
|
|
27444
27692
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27445
27693
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27694
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27447
27695
|
},
|
|
27448
|
-
__metadata$
|
|
27696
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
27449
27697
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27450
27698
|
},
|
|
27451
|
-
__param$
|
|
27699
|
+
__param$i = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27452
27700
|
return function (target, key) {
|
|
27453
27701
|
decorator(target, key, paramIndex);
|
|
27454
27702
|
};
|
|
@@ -27594,19 +27842,19 @@
|
|
|
27594
27842
|
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
27843
|
}
|
|
27596
27844
|
};
|
|
27597
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
27845
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
27598
27846
|
const taroWindowModule = new ContainerModule(bind => {
|
|
27599
27847
|
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
27600
27848
|
});
|
|
27601
27849
|
|
|
27602
|
-
var __decorate$
|
|
27850
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27603
27851
|
var d,
|
|
27604
27852
|
c = arguments.length,
|
|
27605
27853
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27606
27854
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27855
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27608
27856
|
},
|
|
27609
|
-
__metadata$
|
|
27857
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
27610
27858
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27611
27859
|
};
|
|
27612
27860
|
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
@@ -27703,7 +27951,7 @@
|
|
|
27703
27951
|
}
|
|
27704
27952
|
release() {}
|
|
27705
27953
|
};
|
|
27706
|
-
TaroEnvContribution = __decorate$
|
|
27954
|
+
TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
|
|
27707
27955
|
|
|
27708
27956
|
const taroEnvModule = new ContainerModule(bind => {
|
|
27709
27957
|
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
@@ -27718,7 +27966,7 @@
|
|
|
27718
27966
|
loadTaroEnv(container);
|
|
27719
27967
|
}
|
|
27720
27968
|
|
|
27721
|
-
var __decorate$
|
|
27969
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27722
27970
|
var d,
|
|
27723
27971
|
c = arguments.length,
|
|
27724
27972
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27731,16 +27979,16 @@
|
|
|
27731
27979
|
return null;
|
|
27732
27980
|
}
|
|
27733
27981
|
};
|
|
27734
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
27982
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
|
|
27735
27983
|
|
|
27736
|
-
var __decorate$
|
|
27984
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27737
27985
|
var d,
|
|
27738
27986
|
c = arguments.length,
|
|
27739
27987
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27740
27988
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
27989
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27742
27990
|
},
|
|
27743
|
-
__metadata$
|
|
27991
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
27744
27992
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27745
27993
|
};
|
|
27746
27994
|
let WxCanvas = class extends BaseCanvas {
|
|
@@ -27752,21 +28000,21 @@
|
|
|
27752
28000
|
}
|
|
27753
28001
|
release() {}
|
|
27754
28002
|
};
|
|
27755
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
28003
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
|
|
27756
28004
|
|
|
27757
28005
|
const wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
27758
28006
|
|
|
27759
|
-
var __decorate$
|
|
28007
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27760
28008
|
var d,
|
|
27761
28009
|
c = arguments.length,
|
|
27762
28010
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27763
28011
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28012
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27765
28013
|
},
|
|
27766
|
-
__metadata$
|
|
28014
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
27767
28015
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27768
28016
|
},
|
|
27769
|
-
__param$
|
|
28017
|
+
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27770
28018
|
return function (target, key) {
|
|
27771
28019
|
decorator(target, key, paramIndex);
|
|
27772
28020
|
};
|
|
@@ -27903,19 +28151,19 @@
|
|
|
27903
28151
|
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
28152
|
}
|
|
27905
28153
|
};
|
|
27906
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
28154
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
27907
28155
|
const wxWindowModule = new ContainerModule(bind => {
|
|
27908
28156
|
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
27909
28157
|
});
|
|
27910
28158
|
|
|
27911
|
-
var __decorate$
|
|
28159
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27912
28160
|
var d,
|
|
27913
28161
|
c = arguments.length,
|
|
27914
28162
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27915
28163
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28164
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27917
28165
|
},
|
|
27918
|
-
__metadata$
|
|
28166
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
27919
28167
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27920
28168
|
},
|
|
27921
28169
|
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28029,7 +28277,7 @@
|
|
|
28029
28277
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28030
28278
|
}
|
|
28031
28279
|
};
|
|
28032
|
-
WxEnvContribution = __decorate$
|
|
28280
|
+
WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
|
|
28033
28281
|
|
|
28034
28282
|
const wxEnvModule = new ContainerModule(bind => {
|
|
28035
28283
|
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
@@ -28057,7 +28305,7 @@
|
|
|
28057
28305
|
loadAllEnv(container);
|
|
28058
28306
|
}
|
|
28059
28307
|
|
|
28060
|
-
var __decorate$
|
|
28308
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28061
28309
|
var d,
|
|
28062
28310
|
c = arguments.length,
|
|
28063
28311
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28065,16 +28313,16 @@
|
|
|
28065
28313
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28066
28314
|
};
|
|
28067
28315
|
let TTContext2d = class extends FeishuContext2d {};
|
|
28068
|
-
TTContext2d.env = "tt", TTContext2d = __decorate$
|
|
28316
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
|
|
28069
28317
|
|
|
28070
|
-
var __decorate$
|
|
28318
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28071
28319
|
var d,
|
|
28072
28320
|
c = arguments.length,
|
|
28073
28321
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28074
28322
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28323
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28076
28324
|
},
|
|
28077
|
-
__metadata$
|
|
28325
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
28078
28326
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28079
28327
|
};
|
|
28080
28328
|
let TTCanvas = class extends BaseCanvas {
|
|
@@ -28086,21 +28334,21 @@
|
|
|
28086
28334
|
}
|
|
28087
28335
|
release() {}
|
|
28088
28336
|
};
|
|
28089
|
-
TTCanvas.env = "tt", TTCanvas = __decorate$
|
|
28337
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
|
|
28090
28338
|
|
|
28091
28339
|
const ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
28092
28340
|
|
|
28093
|
-
var __decorate$
|
|
28341
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28094
28342
|
var d,
|
|
28095
28343
|
c = arguments.length,
|
|
28096
28344
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28097
28345
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28346
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28099
28347
|
},
|
|
28100
|
-
__metadata$
|
|
28348
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
28101
28349
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28102
28350
|
},
|
|
28103
|
-
__param$
|
|
28351
|
+
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28104
28352
|
return function (target, key) {
|
|
28105
28353
|
decorator(target, key, paramIndex);
|
|
28106
28354
|
};
|
|
@@ -28236,19 +28484,19 @@
|
|
|
28236
28484
|
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
28485
|
}
|
|
28238
28486
|
};
|
|
28239
|
-
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$
|
|
28487
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
28240
28488
|
const ttWindowModule = new ContainerModule(bind => {
|
|
28241
28489
|
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
28242
28490
|
});
|
|
28243
28491
|
|
|
28244
|
-
var __decorate$
|
|
28492
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28245
28493
|
var d,
|
|
28246
28494
|
c = arguments.length,
|
|
28247
28495
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28248
28496
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28497
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28250
28498
|
},
|
|
28251
|
-
__metadata$
|
|
28499
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
28252
28500
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28253
28501
|
},
|
|
28254
28502
|
__awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28358,7 +28606,7 @@
|
|
|
28358
28606
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28359
28607
|
}
|
|
28360
28608
|
};
|
|
28361
|
-
TTEnvContribution = __decorate$
|
|
28609
|
+
TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
|
|
28362
28610
|
|
|
28363
28611
|
const ttEnvModule = new ContainerModule(bind => {
|
|
28364
28612
|
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
@@ -28373,7 +28621,7 @@
|
|
|
28373
28621
|
loadTTEnv(container);
|
|
28374
28622
|
}
|
|
28375
28623
|
|
|
28376
|
-
var __decorate$
|
|
28624
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28377
28625
|
var d,
|
|
28378
28626
|
c = arguments.length,
|
|
28379
28627
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28458,16 +28706,16 @@
|
|
|
28458
28706
|
}
|
|
28459
28707
|
draw() {}
|
|
28460
28708
|
};
|
|
28461
|
-
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$
|
|
28709
|
+
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
|
|
28462
28710
|
|
|
28463
|
-
var __decorate$
|
|
28711
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28464
28712
|
var d,
|
|
28465
28713
|
c = arguments.length,
|
|
28466
28714
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28467
28715
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28716
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28469
28717
|
},
|
|
28470
|
-
__metadata$
|
|
28718
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
28471
28719
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28472
28720
|
};
|
|
28473
28721
|
let HarmonyCanvas = class extends BaseCanvas {
|
|
@@ -28480,19 +28728,19 @@
|
|
|
28480
28728
|
resize(width, height) {}
|
|
28481
28729
|
release() {}
|
|
28482
28730
|
};
|
|
28483
|
-
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$
|
|
28731
|
+
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
|
|
28484
28732
|
|
|
28485
|
-
var __decorate$
|
|
28733
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28486
28734
|
var d,
|
|
28487
28735
|
c = arguments.length,
|
|
28488
28736
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28489
28737
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28738
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28491
28739
|
},
|
|
28492
|
-
__metadata$
|
|
28740
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
28493
28741
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28494
28742
|
},
|
|
28495
|
-
__param$
|
|
28743
|
+
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28496
28744
|
return function (target, key) {
|
|
28497
28745
|
decorator(target, key, paramIndex);
|
|
28498
28746
|
};
|
|
@@ -28629,21 +28877,21 @@
|
|
|
28629
28877
|
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
28878
|
}
|
|
28631
28879
|
};
|
|
28632
|
-
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$
|
|
28880
|
+
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
|
|
28633
28881
|
const harmonyWindowModule = new ContainerModule(bind => {
|
|
28634
28882
|
bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
|
|
28635
28883
|
});
|
|
28636
28884
|
|
|
28637
28885
|
const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
|
|
28638
28886
|
|
|
28639
|
-
var __decorate$
|
|
28887
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28640
28888
|
var d,
|
|
28641
28889
|
c = arguments.length,
|
|
28642
28890
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28643
28891
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
28892
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28645
28893
|
},
|
|
28646
|
-
__metadata$
|
|
28894
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
28647
28895
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28648
28896
|
};
|
|
28649
28897
|
function createCanvas(width, height, id) {
|
|
@@ -28724,7 +28972,7 @@
|
|
|
28724
28972
|
}
|
|
28725
28973
|
release() {}
|
|
28726
28974
|
};
|
|
28727
|
-
HarmonyEnvContribution = __decorate$
|
|
28975
|
+
HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
|
|
28728
28976
|
|
|
28729
28977
|
const harmonyEnvModule = new ContainerModule(bind => {
|
|
28730
28978
|
harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
|
|
@@ -28739,17 +28987,17 @@
|
|
|
28739
28987
|
loadHarmonyEnv(container);
|
|
28740
28988
|
}
|
|
28741
28989
|
|
|
28742
|
-
var __decorate$
|
|
28990
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28743
28991
|
var d,
|
|
28744
28992
|
c = arguments.length,
|
|
28745
28993
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28746
28994
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28747
28995
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28748
28996
|
},
|
|
28749
|
-
__metadata$
|
|
28997
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
28750
28998
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28751
28999
|
},
|
|
28752
|
-
__param$
|
|
29000
|
+
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28753
29001
|
return function (target, key) {
|
|
28754
29002
|
decorator(target, key, paramIndex);
|
|
28755
29003
|
};
|
|
@@ -28759,24 +29007,24 @@
|
|
|
28759
29007
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
28760
29008
|
}
|
|
28761
29009
|
};
|
|
28762
|
-
DefaultCanvasArcPicker = __decorate$
|
|
29010
|
+
DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
28763
29011
|
|
|
28764
29012
|
let loadArcPick = !1;
|
|
28765
29013
|
const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28766
29014
|
loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
|
|
28767
29015
|
});
|
|
28768
29016
|
|
|
28769
|
-
var __decorate$
|
|
29017
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28770
29018
|
var d,
|
|
28771
29019
|
c = arguments.length,
|
|
28772
29020
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28773
29021
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29022
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28775
29023
|
},
|
|
28776
|
-
__metadata$
|
|
29024
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
28777
29025
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28778
29026
|
},
|
|
28779
|
-
__param$
|
|
29027
|
+
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28780
29028
|
return function (target, key) {
|
|
28781
29029
|
decorator(target, key, paramIndex);
|
|
28782
29030
|
};
|
|
@@ -28786,7 +29034,7 @@
|
|
|
28786
29034
|
super(), this.canvasRenderer = canvasRenderer;
|
|
28787
29035
|
}
|
|
28788
29036
|
};
|
|
28789
|
-
DefaultCanvasRectPicker = __decorate$
|
|
29037
|
+
DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
28790
29038
|
|
|
28791
29039
|
let loadRectPick = !1;
|
|
28792
29040
|
const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -28828,17 +29076,17 @@
|
|
|
28828
29076
|
}
|
|
28829
29077
|
}
|
|
28830
29078
|
|
|
28831
|
-
var __decorate$
|
|
29079
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28832
29080
|
var d,
|
|
28833
29081
|
c = arguments.length,
|
|
28834
29082
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28835
29083
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28836
29084
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28837
29085
|
},
|
|
28838
|
-
__metadata$
|
|
29086
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
28839
29087
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28840
29088
|
},
|
|
28841
|
-
__param$
|
|
29089
|
+
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28842
29090
|
return function (target, key) {
|
|
28843
29091
|
decorator(target, key, paramIndex);
|
|
28844
29092
|
};
|
|
@@ -28848,24 +29096,24 @@
|
|
|
28848
29096
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
28849
29097
|
}
|
|
28850
29098
|
};
|
|
28851
|
-
DefaultCanvasLinePicker = __decorate$
|
|
29099
|
+
DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
28852
29100
|
|
|
28853
29101
|
let loadLinePick = !1;
|
|
28854
29102
|
const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28855
29103
|
loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
|
|
28856
29104
|
});
|
|
28857
29105
|
|
|
28858
|
-
var __decorate$
|
|
29106
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28859
29107
|
var d,
|
|
28860
29108
|
c = arguments.length,
|
|
28861
29109
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28862
29110
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29111
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28864
29112
|
},
|
|
28865
|
-
__metadata$
|
|
29113
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
28866
29114
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28867
29115
|
},
|
|
28868
|
-
__param$
|
|
29116
|
+
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28869
29117
|
return function (target, key) {
|
|
28870
29118
|
decorator(target, key, paramIndex);
|
|
28871
29119
|
};
|
|
@@ -28875,7 +29123,7 @@
|
|
|
28875
29123
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
28876
29124
|
}
|
|
28877
29125
|
};
|
|
28878
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
29126
|
+
DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
28879
29127
|
|
|
28880
29128
|
let loadAreaPick = !1;
|
|
28881
29129
|
const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -28909,17 +29157,17 @@
|
|
|
28909
29157
|
}
|
|
28910
29158
|
}
|
|
28911
29159
|
|
|
28912
|
-
var __decorate$
|
|
29160
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28913
29161
|
var d,
|
|
28914
29162
|
c = arguments.length,
|
|
28915
29163
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28916
29164
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29165
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28918
29166
|
},
|
|
28919
|
-
__metadata$
|
|
29167
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
28920
29168
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28921
29169
|
},
|
|
28922
|
-
__param$
|
|
29170
|
+
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28923
29171
|
return function (target, key) {
|
|
28924
29172
|
decorator(target, key, paramIndex);
|
|
28925
29173
|
};
|
|
@@ -28964,24 +29212,24 @@
|
|
|
28964
29212
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
28965
29213
|
}
|
|
28966
29214
|
};
|
|
28967
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
29215
|
+
DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
28968
29216
|
|
|
28969
29217
|
let loadSymbolPick = !1;
|
|
28970
29218
|
const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28971
29219
|
loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
|
|
28972
29220
|
});
|
|
28973
29221
|
|
|
28974
|
-
var __decorate$
|
|
29222
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28975
29223
|
var d,
|
|
28976
29224
|
c = arguments.length,
|
|
28977
29225
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28978
29226
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28979
29227
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28980
29228
|
},
|
|
28981
|
-
__metadata$
|
|
29229
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
28982
29230
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28983
29231
|
},
|
|
28984
|
-
__param$
|
|
29232
|
+
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28985
29233
|
return function (target, key) {
|
|
28986
29234
|
decorator(target, key, paramIndex);
|
|
28987
29235
|
};
|
|
@@ -28991,24 +29239,24 @@
|
|
|
28991
29239
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
28992
29240
|
}
|
|
28993
29241
|
};
|
|
28994
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
29242
|
+
DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
28995
29243
|
|
|
28996
29244
|
let loadCirclePick = !1;
|
|
28997
29245
|
const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28998
29246
|
loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
|
|
28999
29247
|
});
|
|
29000
29248
|
|
|
29001
|
-
var __decorate$
|
|
29249
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29002
29250
|
var d,
|
|
29003
29251
|
c = arguments.length,
|
|
29004
29252
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29005
29253
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29254
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29007
29255
|
},
|
|
29008
|
-
__metadata$
|
|
29256
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
29009
29257
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29010
29258
|
},
|
|
29011
|
-
__param$
|
|
29259
|
+
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29012
29260
|
return function (target, key) {
|
|
29013
29261
|
decorator(target, key, paramIndex);
|
|
29014
29262
|
};
|
|
@@ -29061,24 +29309,24 @@
|
|
|
29061
29309
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29062
29310
|
}
|
|
29063
29311
|
};
|
|
29064
|
-
DefaultCanvasTextPicker = __decorate$
|
|
29312
|
+
DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
29065
29313
|
|
|
29066
29314
|
let loadTextPick = !1;
|
|
29067
29315
|
const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29068
29316
|
loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
|
|
29069
29317
|
});
|
|
29070
29318
|
|
|
29071
|
-
var __decorate$
|
|
29319
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29072
29320
|
var d,
|
|
29073
29321
|
c = arguments.length,
|
|
29074
29322
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29075
29323
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29076
29324
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29077
29325
|
},
|
|
29078
|
-
__metadata$
|
|
29326
|
+
__metadata$7 = undefined && undefined.__metadata || function (k, v) {
|
|
29079
29327
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29080
29328
|
},
|
|
29081
|
-
__param$
|
|
29329
|
+
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29082
29330
|
return function (target, key) {
|
|
29083
29331
|
decorator(target, key, paramIndex);
|
|
29084
29332
|
};
|
|
@@ -29088,24 +29336,24 @@
|
|
|
29088
29336
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
29089
29337
|
}
|
|
29090
29338
|
};
|
|
29091
|
-
DefaultCanvasPathPicker = __decorate$
|
|
29339
|
+
DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
29092
29340
|
|
|
29093
29341
|
let loadPathPick = !1;
|
|
29094
29342
|
const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29095
29343
|
loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
|
|
29096
29344
|
});
|
|
29097
29345
|
|
|
29098
|
-
var __decorate$
|
|
29346
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29099
29347
|
var d,
|
|
29100
29348
|
c = arguments.length,
|
|
29101
29349
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29102
29350
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29103
29351
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29104
29352
|
},
|
|
29105
|
-
__metadata$
|
|
29353
|
+
__metadata$6 = undefined && undefined.__metadata || function (k, v) {
|
|
29106
29354
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29107
29355
|
},
|
|
29108
|
-
__param$
|
|
29356
|
+
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29109
29357
|
return function (target, key) {
|
|
29110
29358
|
decorator(target, key, paramIndex);
|
|
29111
29359
|
};
|
|
@@ -29115,24 +29363,24 @@
|
|
|
29115
29363
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
29116
29364
|
}
|
|
29117
29365
|
};
|
|
29118
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
29366
|
+
DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
29119
29367
|
|
|
29120
29368
|
let loadPolygonPick = !1;
|
|
29121
29369
|
const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29122
29370
|
loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
|
|
29123
29371
|
});
|
|
29124
29372
|
|
|
29125
|
-
var __decorate$
|
|
29373
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29126
29374
|
var d,
|
|
29127
29375
|
c = arguments.length,
|
|
29128
29376
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29129
29377
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29130
29378
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29131
29379
|
},
|
|
29132
|
-
__metadata$
|
|
29380
|
+
__metadata$5 = undefined && undefined.__metadata || function (k, v) {
|
|
29133
29381
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29134
29382
|
},
|
|
29135
|
-
__param$
|
|
29383
|
+
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29136
29384
|
return function (target, key) {
|
|
29137
29385
|
decorator(target, key, paramIndex);
|
|
29138
29386
|
};
|
|
@@ -29142,24 +29390,24 @@
|
|
|
29142
29390
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29143
29391
|
}
|
|
29144
29392
|
};
|
|
29145
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
29393
|
+
DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
29146
29394
|
|
|
29147
29395
|
let loadGlyphPick = !1;
|
|
29148
29396
|
const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29149
29397
|
loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
|
|
29150
29398
|
});
|
|
29151
29399
|
|
|
29152
|
-
var __decorate$
|
|
29400
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29153
29401
|
var d,
|
|
29154
29402
|
c = arguments.length,
|
|
29155
29403
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29156
29404
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29405
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29158
29406
|
},
|
|
29159
|
-
__metadata$
|
|
29407
|
+
__metadata$4 = undefined && undefined.__metadata || function (k, v) {
|
|
29160
29408
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29161
29409
|
},
|
|
29162
|
-
__param$
|
|
29410
|
+
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29163
29411
|
return function (target, key) {
|
|
29164
29412
|
decorator(target, key, paramIndex);
|
|
29165
29413
|
};
|
|
@@ -29172,14 +29420,14 @@
|
|
|
29172
29420
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
29173
29421
|
}
|
|
29174
29422
|
};
|
|
29175
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
29423
|
+
DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
29176
29424
|
|
|
29177
29425
|
let loadRichtextPick = !1;
|
|
29178
29426
|
const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29179
29427
|
loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
|
|
29180
29428
|
});
|
|
29181
29429
|
|
|
29182
|
-
var __decorate$
|
|
29430
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29183
29431
|
var d,
|
|
29184
29432
|
c = arguments.length,
|
|
29185
29433
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29197,24 +29445,24 @@
|
|
|
29197
29445
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
29198
29446
|
}
|
|
29199
29447
|
};
|
|
29200
|
-
DefaultCanvasImagePicker = __decorate$
|
|
29448
|
+
DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
|
|
29201
29449
|
|
|
29202
29450
|
let loadImagePick = !1;
|
|
29203
29451
|
const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29204
29452
|
loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
|
|
29205
29453
|
});
|
|
29206
29454
|
|
|
29207
|
-
var __decorate$
|
|
29455
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29208
29456
|
var d,
|
|
29209
29457
|
c = arguments.length,
|
|
29210
29458
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29211
29459
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29212
29460
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29213
29461
|
},
|
|
29214
|
-
__metadata$
|
|
29462
|
+
__metadata$3 = undefined && undefined.__metadata || function (k, v) {
|
|
29215
29463
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29216
29464
|
},
|
|
29217
|
-
__param$
|
|
29465
|
+
__param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29218
29466
|
return function (target, key) {
|
|
29219
29467
|
decorator(target, key, paramIndex);
|
|
29220
29468
|
};
|
|
@@ -29224,24 +29472,24 @@
|
|
|
29224
29472
|
super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
|
|
29225
29473
|
}
|
|
29226
29474
|
};
|
|
29227
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
29475
|
+
DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
29228
29476
|
|
|
29229
29477
|
let loadRect3dPick = !1;
|
|
29230
29478
|
const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29231
29479
|
loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
|
|
29232
29480
|
});
|
|
29233
29481
|
|
|
29234
|
-
var __decorate$
|
|
29482
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29235
29483
|
var d,
|
|
29236
29484
|
c = arguments.length,
|
|
29237
29485
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29238
29486
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29239
29487
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29240
29488
|
},
|
|
29241
|
-
__metadata$
|
|
29489
|
+
__metadata$2 = undefined && undefined.__metadata || function (k, v) {
|
|
29242
29490
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29243
29491
|
},
|
|
29244
|
-
__param$
|
|
29492
|
+
__param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29245
29493
|
return function (target, key) {
|
|
29246
29494
|
decorator(target, key, paramIndex);
|
|
29247
29495
|
};
|
|
@@ -29251,24 +29499,24 @@
|
|
|
29251
29499
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
|
|
29252
29500
|
}
|
|
29253
29501
|
};
|
|
29254
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
29502
|
+
DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
29255
29503
|
|
|
29256
29504
|
let loadArc3dPick = !1;
|
|
29257
29505
|
const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29258
29506
|
loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
|
|
29259
29507
|
});
|
|
29260
29508
|
|
|
29261
|
-
var __decorate$
|
|
29509
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29262
29510
|
var d,
|
|
29263
29511
|
c = arguments.length,
|
|
29264
29512
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29265
29513
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = 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
29514
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29267
29515
|
},
|
|
29268
|
-
__metadata$
|
|
29516
|
+
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
29269
29517
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29270
29518
|
},
|
|
29271
|
-
__param$
|
|
29519
|
+
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29272
29520
|
return function (target, key) {
|
|
29273
29521
|
decorator(target, key, paramIndex);
|
|
29274
29522
|
};
|
|
@@ -29278,724 +29526,15 @@
|
|
|
29278
29526
|
super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
|
|
29279
29527
|
}
|
|
29280
29528
|
};
|
|
29281
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
29529
|
+
DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
29282
29530
|
|
|
29283
29531
|
let loadPyramid3dPick = !1;
|
|
29284
29532
|
const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29285
29533
|
loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
|
|
29286
29534
|
});
|
|
29287
29535
|
|
|
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
29536
|
const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29883
29537
|
|
|
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
29538
|
var lottie = {exports: {}};
|
|
30000
29539
|
|
|
30001
29540
|
(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 +30436,7 @@
|
|
|
30897
30436
|
|
|
30898
30437
|
const roughModule = _roughModule;
|
|
30899
30438
|
|
|
30900
|
-
const version = "0.22.0-vstory.
|
|
30439
|
+
const version = "0.22.0-vstory.2";
|
|
30901
30440
|
preLoadAllModule();
|
|
30902
30441
|
if (isBrowserEnv()) {
|
|
30903
30442
|
loadBrowserEnv(container);
|
|
@@ -30961,7 +30500,6 @@
|
|
|
30961
30500
|
exports.CanvasAreaPicker = CanvasAreaPicker;
|
|
30962
30501
|
exports.CanvasCirclePicker = CanvasCirclePicker;
|
|
30963
30502
|
exports.CanvasFactory = CanvasFactory;
|
|
30964
|
-
exports.CanvasGifImagePicker = CanvasGifImagePicker;
|
|
30965
30503
|
exports.CanvasGlyphPicker = CanvasGlyphPicker;
|
|
30966
30504
|
exports.CanvasGroupPicker = CanvasGroupPicker;
|
|
30967
30505
|
exports.CanvasImagePicker = CanvasImagePicker;
|
|
@@ -31061,6 +30599,7 @@
|
|
|
31061
30599
|
exports.EventManager = EventManager;
|
|
31062
30600
|
exports.EventSystem = EventSystem;
|
|
31063
30601
|
exports.EventTarget = EventTarget;
|
|
30602
|
+
exports.FORMAT_ALL_TEXT_COMMAND = FORMAT_ALL_TEXT_COMMAND;
|
|
31064
30603
|
exports.FORMAT_ELEMENT_COMMAND = FORMAT_ELEMENT_COMMAND;
|
|
31065
30604
|
exports.FORMAT_TEXT_COMMAND = FORMAT_TEXT_COMMAND;
|
|
31066
30605
|
exports.Factory = Factory;
|
|
@@ -31076,7 +30615,6 @@
|
|
|
31076
30615
|
exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
|
|
31077
30616
|
exports.Generator = Generator;
|
|
31078
30617
|
exports.Gesture = Gesture;
|
|
31079
|
-
exports.GifImage = GifImage;
|
|
31080
30618
|
exports.GlobalPickerService = GlobalPickerService;
|
|
31081
30619
|
exports.Glyph = Glyph;
|
|
31082
30620
|
exports.GlyphRender = GlyphRender;
|
|
@@ -31269,7 +30807,6 @@
|
|
|
31269
30807
|
exports.createCircle = createCircle;
|
|
31270
30808
|
exports.createColor = createColor;
|
|
31271
30809
|
exports.createConicalGradient = createConicalGradient;
|
|
31272
|
-
exports.createGifImage = createGifImage;
|
|
31273
30810
|
exports.createGlyph = createGlyph;
|
|
31274
30811
|
exports.createGroup = createGroup;
|
|
31275
30812
|
exports.createImage = createImage;
|
|
@@ -31356,6 +30893,7 @@
|
|
|
31356
30893
|
exports.getAttributeFromDefaultAttrList = getAttributeFromDefaultAttrList;
|
|
31357
30894
|
exports.getConicGradientAt = getConicGradientAt;
|
|
31358
30895
|
exports.getCurrentEnv = getCurrentEnv;
|
|
30896
|
+
exports.getDefaultCharacterConfig = getDefaultCharacterConfig;
|
|
31359
30897
|
exports.getExtraModelMatrix = getExtraModelMatrix;
|
|
31360
30898
|
exports.getModelMatrix = getModelMatrix;
|
|
31361
30899
|
exports.getRichTextBounds = getRichTextBounds;
|
|
@@ -31363,8 +30901,6 @@
|
|
|
31363
30901
|
exports.getTextBounds = getTextBounds;
|
|
31364
30902
|
exports.getTheme = getTheme;
|
|
31365
30903
|
exports.getThemeFromGroup = getThemeFromGroup;
|
|
31366
|
-
exports.gifImageCanvasPickModule = gifImageCanvasPickModule;
|
|
31367
|
-
exports.gifImageModule = gifImageModule;
|
|
31368
30904
|
exports.globalTheme = globalTheme;
|
|
31369
30905
|
exports.glyphCanvasPickModule = glyphCanvasPickModule;
|
|
31370
30906
|
exports.glyphMathPickModule = glyphMathPickModule;
|